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
21cef26ca58fe00b8842cb62662b10edf2b9a793
970
py
Python
services/traction/acapy_wrapper/models/schema_send_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/schema_send_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/schema_send_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class SchemaSendRequest(BaseModel): """NOTE: This cla...
27.714286
96
0.720619
21cef38f6138790b87b079a2f9c7a282f26ef864
2,407
py
Python
datum/configs/default_configs.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
6
2020-05-17T10:03:24.000Z
2021-07-05T18:38:06.000Z
datum/configs/default_configs.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
2
2021-07-26T03:22:47.000Z
2022-02-09T23:33:33.000Z
datum/configs/default_configs.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
1
2021-06-14T14:49:38.000Z
2021-06-14T14:49:38.000Z
# Copyright 2021 The OpenAGI Datum 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 ...
38.822581
95
0.747403
21cef5c1c7d639eadfaf61d47ef09562e81adee5
6,875
py
Python
setup.py
abought/weetabix
805dd444b9b57f6cacab545c5d6875d6a74eacdf
[ "MIT" ]
null
null
null
setup.py
abought/weetabix
805dd444b9b57f6cacab545c5d6875d6a74eacdf
[ "MIT" ]
null
null
null
setup.py
abought/weetabix
805dd444b9b57f6cacab545c5d6875d6a74eacdf
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) # Get the long description...
40.922619
98
0.687709
21cf115cef13b81c7ed01ba381c52c851fb47441
4,230
py
Python
detectron/tests/test_zero_even_op.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
60
2021-08-07T09:16:52.000Z
2022-03-14T09:09:00.000Z
detectron/tests/test_zero_even_op.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
4
2021-10-14T02:44:49.000Z
2022-03-14T08:18:20.000Z
detectron/tests/test_zero_even_op.py
singhnarotam1997/Detectron
ecc6b25fc8869486126f1384b4e6e042a718bd5b
[ "Apache-2.0" ]
11
2021-11-01T00:30:37.000Z
2021-12-08T10:01:52.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ############################### from __future__ import absolute_import from __future__ import division from __future__ impo...
35.25
71
0.642553
21cf3b46f2e260c03dcda0081f0c18c8934cb093
889
py
Python
alipay/aop/api/domain/MybankCreditLoanapplyFinleaseConsultQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MybankCreditLoanapplyFinleaseConsultQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MybankCreditLoanapplyFinleaseConsultQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditLoanapplyFinleaseConsultQueryModel(object): def __init__(self): self._userid = None @property def userid(self): return self._userid @userid.setter de...
21.682927
63
0.592801
21cf6b2bb338f23f132dfeaa40652d7160277b70
3,189
py
Python
keepasshttp/protocol.py
jobevers/python-keepasshttp
c42045915e16e1f264ad6d8b506fab352fb868be
[ "Unlicense" ]
5
2016-12-18T15:39:35.000Z
2020-03-21T01:39:30.000Z
keepasshttp/protocol.py
jobevers/python-keepasshttp
c42045915e16e1f264ad6d8b506fab352fb868be
[ "Unlicense" ]
6
2016-10-06T07:42:20.000Z
2019-08-14T13:21:08.000Z
keepasshttp/protocol.py
jobevers/python-keepasshttp
c42045915e16e1f264ad6d8b506fab352fb868be
[ "Unlicense" ]
9
2016-10-05T07:50:20.000Z
2021-04-16T00:54:15.000Z
import logging import requests from keepasshttp import common from keepasshttp import crypto from keepasshttp import password from keepasshttp import util logger = logging.getLogger(__name__) DEFAULT_KEEPASS_URL = 'http://localhost:19455/' def associate(requestor=None): """Send a new encryption key to keepas...
30.663462
77
0.651615
21cf8e026e9edd02aa7f0985fb2dc7ec2a3cc97d
11,610
py
Python
core/controllers/topics_and_skills_dashboard_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
core/controllers/topics_and_skills_dashboard_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
core/controllers/topics_and_skills_dashboard_test.py
cclauss/oppia
7ad9d06e434c589f0aaa015252ca65872557b7eb
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
39.489796
77
0.670112
21cf97725b89bbeddd96976468220fdc4a6deb95
3,072
py
Python
acme/tf/networks/multiplexers.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
2,650
2020-06-01T16:31:25.000Z
2022-03-31T07:32:41.000Z
acme/tf/networks/multiplexers.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
199
2020-06-02T01:09:09.000Z
2022-03-31T17:11:20.000Z
acme/tf/networks/multiplexers.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
344
2020-06-01T16:45:21.000Z
2022-03-30T11:15:09.000Z
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
37.925926
80
0.727539
21cfa32bc4273b7f884a0458ba0962d91476a692
3,367
py
Python
partools/sql/process.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
partools/sql/process.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
partools/sql/process.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
import sys import time from threading import Thread from threading import RLock from threading import Semaphore import partools.utils as u from . import gl from . import log verrou = RLock() def process_query_list(): from . import merge gl.multi_th = len(gl.QUERY_LIST) > 1 and gl.MAX_DB_CNX > 1 gl.c_q...
25.315789
93
0.605287
21cfd059843670ffc4c377aaf17c77ed28c9541e
4,418
py
Python
website/settings/base.py
BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp
c0ed7fde78f9af5afbd91c53ed3f543046e8dd41
[ "BSD-2-Clause-FreeBSD" ]
2
2020-11-17T18:02:44.000Z
2021-02-02T04:00:21.000Z
website/settings/base.py
BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp
c0ed7fde78f9af5afbd91c53ed3f543046e8dd41
[ "BSD-2-Clause-FreeBSD" ]
5
2020-06-05T19:00:59.000Z
2022-01-13T00:52:30.000Z
website/settings/base.py
BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp
c0ed7fde78f9af5afbd91c53ed3f543046e8dd41
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" Django settings for website project. Generated by 'django-admin startproject' using Django 2.0.1. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ from django....
27.271605
152
0.708239
21cfd66a8948314987b69e6d670daf4c5965434a
406
py
Python
reo/migrations/0122_loadprofilemodel_load_met_pct.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
7
2022-01-29T12:10:10.000Z
2022-03-28T13:45:20.000Z
reo/migrations/0122_loadprofilemodel_load_met_pct.py
NREL/reopt_api
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
12
2022-02-01T18:23:18.000Z
2022-03-31T17:22:17.000Z
reo/migrations/0122_loadprofilemodel_load_met_pct.py
NREL/REopt_API
fbc70f3b0cdeec9ee220266d6b3b0c5d64f257a6
[ "BSD-3-Clause" ]
3
2022-02-08T19:44:40.000Z
2022-03-12T11:05:36.000Z
# Generated by Django 3.1.13 on 2021-11-02 17:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reo', '0121_auto_20211012_0305'), ] operations = [ migrations.AddField( model_name='loadprofilemodel', name='load_m...
21.368421
59
0.610837
21cfe62131d65dd47bd6583fc9ce263d01ceeda1
13,971
py
Python
sfepy/linalg/geometry.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/linalg/geometry.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/linalg/geometry.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import numpy as nm import numpy.linalg as nla from scipy.misc import factorial from sfepy.base.base import assert_, output from sfepy.linalg.utils import norm_l2_along_axis as norm from sfepy.linalg.utils import mini_newton, dets_fast from six.moves import range def transform_b...
30.24026
79
0.527521
21cfecffa553d1ec6349b0e3fd7e3d84edd76499
2,826
py
Python
strategy/src/object_pos.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
strategy/src/object_pos.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
strategy/src/object_pos.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Use to reset pose of model for simulation.""" import rospy import rospkg from gazebo_msgs.msg import ModelState from gazebo_msgs.srv import SetModelState def main(): rospy.init_node('set_pose') state_msg = ModelState() state_msg.model_name = 'aa_box' state_msg.pose.positio...
27.980198
80
0.499646
21cfffd4b38b509d8f8012864297b9aa83326fa4
1,403
py
Python
rlkit/core/timer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1,662
2018-01-25T05:23:56.000Z
2021-07-19T10:14:06.000Z
rlkit/core/timer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
121
2018-05-07T22:09:09.000Z
2021-07-08T16:33:37.000Z
rlkit/core/timer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
443
2018-03-04T17:53:25.000Z
2021-07-21T17:16:16.000Z
import time from collections import defaultdict class Timer: def __init__(self, return_global_times=False): self.stamps = None self.epoch_start_time = None self.global_start_time = time.time() self._return_global_times = return_global_times self.reset() def reset(sel...
26.980769
77
0.631504
21d01d222486a51b4c4fd482b66f819b8bdc0424
3,007
py
Python
src/indriya_msgs/python/request_pb2.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2017-07-12T15:30:58.000Z
2017-07-12T15:30:58.000Z
src/indriya_msgs/python/request_pb2.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
null
null
null
src/indriya_msgs/python/request_pb2.py
praveenv4k/Indriya
a74a4b8bb9f04b5e858305769e892edfcab32df5
[ "MIT" ]
1
2016-03-09T12:34:19.000Z
2016-03-09T12:34:19.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: request.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refle...
33.043956
235
0.731959
21d0225ed02fcfdbf73ead4f9abeab0cb3bba6f3
10,201
py
Python
master/searx-master/tests/unit/engines/test_wikipedia.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/searx-master/tests/unit/engines/test_wikipedia.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/searx-master/tests/unit/engines/test_wikipedia.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# -*- coding: utf-8 -*- from collections import defaultdict import mock from searx.engines import wikipedia from searx.testing import SearxTestCase class TestWikipediaEngine(SearxTestCase): def test_request(self): wikipedia.supported_languages = ['fr', 'en'] query = 'test_query' dicto = ...
39.847656
262
0.390746
21d03d3c46d86180b3047637f97214a1ac9401b1
274
py
Python
quest/tools/hide_quencher.py
Fluorescence-Tools/quest
e17e5682f7686d1acc1fd8a22bdae33963bc16d6
[ "MIT" ]
null
null
null
quest/tools/hide_quencher.py
Fluorescence-Tools/quest
e17e5682f7686d1acc1fd8a22bdae33963bc16d6
[ "MIT" ]
1
2019-08-14T08:01:26.000Z
2019-08-15T22:59:05.000Z
quest/tools/hide_quencher.py
Fluorescence-Tools/quest
e17e5682f7686d1acc1fd8a22bdae33963bc16d6
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys resi=int(sys.argv[1]) inFname=sys.argv[2] outFname=sys.argv[3] inf=open(inFname) outf=open(outFname, 'w') for line in inf: sz=line if line[:4]=="ATOM" and line[22:26]=='{:4d}'.format(resi): sz=line[:17]+"ALA"+line[20:] outf.write(sz)
19.571429
60
0.649635
21d0451dd500d3f49d5ec1e7bfc8d443c5d4f9f7
1,836
py
Python
func_tests/tests/submissionlogtests/test_submission_log_filters.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
func_tests/tests/submissionlogtests/test_submission_log_filters.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
func_tests/tests/submissionlogtests/test_submission_log_filters.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import json import unittest from django.test import Client from nose.plugins.attrib import attr from framework.utils.common_utils import random_string from testdata.constants import SENDER, RECEIVER, SMS from tests.submissionlogtests.submission_log_tests import send_valid_sms_with from tests.testdatasetup.project impor...
45.9
150
0.711874
21d04e06c5de23e91323ac906a9f3ab7dc8ae3e7
1,316
py
Python
nequip/nn/radial_basis.py
albertzhu01/nequip
63ba41185e7852ebb6f68983ec30d1f569e43271
[ "MIT" ]
1
2022-03-13T10:17:53.000Z
2022-03-13T10:17:53.000Z
nequip/nn/radial_basis.py
leoil/nequip
83b888797025c94b9963a508bc213a7c98da5bcb
[ "MIT" ]
null
null
null
nequip/nn/radial_basis.py
leoil/nequip
83b888797025c94b9963a508bc213a7c98da5bcb
[ "MIT" ]
null
null
null
import math import torch from torch import nn class BesselBasis(nn.Module): r_max: float prefactor: float def __init__(self, r_max, num_basis=8, trainable=True): r"""Radial Bessel Basis, as proposed in DimeNet: https://arxiv.org/abs/2003.03123 Parameters ---------- r_m...
23.927273
89
0.572948
21d095f89fa1cb8878999e4f4455b0ad05c22c6b
3,535
py
Python
examples/macropad_tone_keypad_extended.py
ajs256/Adafruit_CircuitPython_MacroPad
8b1d38b03e1f0fa0d66aee4cbaa16105f7bbb661
[ "Unlicense", "MIT-0", "MIT" ]
27
2021-07-24T01:01:12.000Z
2022-03-16T04:46:17.000Z
examples/macropad_tone_keypad_extended.py
Neradoc/Adafruit_CircuitPython_MacroPad
73f85d2ff25f332787f54618b112cb4d9e636ba2
[ "Unlicense", "MIT-0", "MIT" ]
17
2021-07-12T18:33:59.000Z
2022-02-26T19:21:48.000Z
examples/macropad_tone_keypad_extended.py
Neradoc/Adafruit_CircuitPython_MacroPad
73f85d2ff25f332787f54618b112cb4d9e636ba2
[ "Unlicense", "MIT-0", "MIT" ]
17
2021-06-29T18:52:52.000Z
2022-02-26T05:50:53.000Z
# SPDX-FileCopyrightText: Copyright (c) 2021 Aaron Pendley # # SPDX-License-Identifier: Unlicense """ MacroPad extended tone demo. Expands upon the basic tone demo by using a stack to track pressed keys, allowing multiple keys to be pressed at once, while preserving the order they were pressed. Also, improved responsiv...
34.320388
79
0.654031
21d0d25391bbcc3206c144b9b334ec9adec9c9cb
4,777
py
Python
docs/mail/examples/smtpclient_tls.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
null
null
null
docs/mail/examples/smtpclient_tls.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
null
null
null
docs/mail/examples/smtpclient_tls.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
null
null
null
""" Demonstrate sending mail via SMTP while employing TLS and performing authentication. """ from __future__ import print_function import sys from OpenSSL.SSL import SSLv3_METHOD from twisted.mail.smtp import ESMTPSenderFactory from twisted.python.usage import Options, UsageError from twisted.internet.ssl import C...
29.85625
77
0.634289
21d0d5158534c9fd1d50dc38b0b93f095b77e912
20,291
py
Python
masakari/engine/worker.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
null
null
null
masakari/engine/worker.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
null
null
null
masakari/engine/worker.py
sampathP/openstack-masakari
108d988165271b7bafd66d985ff1000537ef3183
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2015 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/lic...
40.909274
79
0.599675
21d10a59007c43aa7dfa240e73aa4cccd9a8c6f8
3,981
py
Python
au-zone/nnef_converter/caffe2/protobufs/caffe2/proto/prof_dag_pb2.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
au-zone/nnef_converter/caffe2/protobufs/caffe2/proto/prof_dag_pb2.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
au-zone/nnef_converter/caffe2/protobufs/caffe2/proto/prof_dag_pb2.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: caffe2/proto/prof_dag.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflec...
32.104839
316
0.744788
21d12892c5379c19b79f85092ad3dbba74476455
447
py
Python
src/carts/migrations/0008_cart_active.py
Toruitas/ecom
c0dc4150f0b8112d591b5b5e3b462d24be4a4d79
[ "MIT" ]
null
null
null
src/carts/migrations/0008_cart_active.py
Toruitas/ecom
c0dc4150f0b8112d591b5b5e3b462d24be4a4d79
[ "MIT" ]
null
null
null
src/carts/migrations/0008_cart_active.py
Toruitas/ecom
c0dc4150f0b8112d591b5b5e3b462d24be4a4d79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2016-04-01 05:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('carts', '0007_cart_tax_percentage'), ] operations = [ migrations.AddField( ...
21.285714
52
0.612975
21d145c78c7ab9285b7c7b3fbdeb56ae34947fc1
24,927
py
Python
ThirdParty/Twisted/twisted/test/test_udp.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
3
2016-02-01T02:29:51.000Z
2020-09-04T17:19:24.000Z
ThirdParty/Twisted/twisted/test/test_udp.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/test/test_udp.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# -*- test-case-name: twisted.test.test_udp -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for implementations of L{IReactorUDP} and L{IReactorMulticast}. """ from __future__ import division, absolute_import from twisted.trial import unittest from twisted.python.compat import ...
35.157969
100
0.605488
21d157ff95254711e370c873bd2e456aa3f17af0
1,667
py
Python
marvelapiwrapper/tests/entity_test.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
marvelapiwrapper/tests/entity_test.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
marvelapiwrapper/tests/entity_test.py
thendo-rambs/marvelapi
0b63fb560e89e88d15e6fbb2b2b54db8ee6a9921
[ "MIT" ]
null
null
null
"""Unit Test module for marvel api interface""" from datetime import datetime import json import os import unittest import os.path as path from marvelapiwrapper.entity import Entity from marvelapiwrapper.authenticator import Authenticator class TestEntities(unittest.TestCase): def setUp(self): test_path ...
37.886364
73
0.602879
21d1e84130a7486e0e8a7aecd2b309abd728d295
53,056
py
Python
snap7/client.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
412
2015-02-25T11:07:09.000Z
2022-03-28T10:03:09.000Z
snap7/client.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
240
2015-02-24T18:10:13.000Z
2022-03-22T11:10:09.000Z
snap7/client.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
238
2015-02-24T16:12:32.000Z
2022-03-30T08:50:29.000Z
""" Snap7 client used for connection to a siemens 7 server. """ import logging import re from ctypes import c_int, c_char_p, byref, sizeof, c_uint16, c_int32, c_byte, c_ulong, Array from ctypes import c_void_p, create_string_buffer from datetime import datetime from typing import Union, Tuple, Optional, List import sn...
33.815169
142
0.58214
21d1fa270900c0a3cf9361bff4ac5a597fae8673
24,161
py
Python
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/functional/test_rsa.py
cloud-security-research/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
36
2017-11-08T23:36:35.000Z
2022-03-20T16:01:55.000Z
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/functional/test_rsa.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
2
2017-11-17T03:19:17.000Z
2018-07-04T03:37:36.000Z
Barbican/Server/barbican-stable-mitaka/barbican/functionaltests/api/v1/functional/test_rsa.py
Calctopia-OpenSource/sgx-kms
2f07bf36721dafe0e4a000ca3f41529dc8d2004a
[ "Apache-2.0" ]
12
2017-11-13T03:20:40.000Z
2021-07-16T03:26:41.000Z
# Copyright (c) 2015 Cisco Systems # # 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 writ...
40.881557
77
0.671661
21d22a87e8eba4cde4ced5d17f89af2019eb593a
26,615
py
Python
tests/pulses/mapping_pulse_template_tests.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
tests/pulses/mapping_pulse_template_tests.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
tests/pulses/mapping_pulse_template_tests.py
lankes-fzj/qupulse
46f00f70bc998b98ac1ae4721d1a9a1c10b675aa
[ "MIT" ]
null
null
null
import unittest from unittest import mock import itertools from qupulse.pulses.mapping_pulse_template import MissingMappingException,\ UnnecessaryMappingException, MappingPulseTemplate,\ AmbiguousMappingException, MappingCollisionException from qupulse.pulses.parameters import ConstantParameter, ParameterConst...
54.316327
143
0.610182
21d24d59958c2bc8b174c75bf0f5a92987eb6b76
547
py
Python
.guides/secure/unit_tests/recursion/exercise4_helper.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
.guides/secure/unit_tests/recursion/exercise4_helper.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
.guides/secure/unit_tests/recursion/exercise4_helper.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
import os, shutil, sys # path to student file student_file = "/home/codio/workspace/code/recursion/exercise4.py" # new location for testing new_location = "/home/codio/workspace/.guides/secure/unit_tests/recursion" # copy student file to the new location shutil.copy(student_file, new_location) # run the code test...
28.789474
84
0.753199
21d2548932b8594defac2cbd819b5d78af58c20c
18,390
py
Python
statsmodels/tools/tests/test_tools.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
1
2016-09-02T20:31:32.000Z
2016-09-02T20:31:32.000Z
statsmodels/tools/tests/test_tools.py
kevindavenport/statsmodels
c8e980da57cb9d5be64872ad5e13893e6ae7cd0d
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tools/tests/test_tools.py
kevindavenport/statsmodels
c8e980da57cb9d5be64872ad5e13893e6ae7cd0d
[ "BSD-3-Clause" ]
null
null
null
""" Test functions for models.tools """ from statsmodels.compat.python import lrange, range import numpy as np from numpy.random import standard_normal from numpy.testing import (assert_equal, assert_array_equal, assert_almost_equal, assert_string_equal, TestCase) from nose.tools import (asse...
37.607362
79
0.617074
21d2697425f321346b36aaface6bb8d59f0dbf5c
3,154
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_single_media.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/input_single_media.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_single_media.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
35.044444
156
0.618897
21d28da1a12b792cc408f0779aef0d6bfd41ad4d
282
py
Python
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/tools/merge.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/tools/merge.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/tools/merge.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
""" DEPRECATED; To be removed in 1.0 """ from __future__ import absolute_import import rasterio.merge def merge(*args, **kwargs): import warnings warnings.warn("Deprecated; Use rasterio.merge instead", DeprecationWarning) return rasterio.merge.merge(*args, **kwargs)
21.692308
79
0.737589
21d2a4d50387e2279dba094377658dbf5367b928
10,791
py
Python
nutanix_vm_vdi.py
ghzwireless/control
81525249962f840e2d286cdd87dee0f15f20fadb
[ "MIT" ]
5
2017-07-01T12:44:17.000Z
2018-11-22T04:47:32.000Z
nutanix_vm_vdi.py
ghzwireless/control
81525249962f840e2d286cdd87dee0f15f20fadb
[ "MIT" ]
null
null
null
nutanix_vm_vdi.py
ghzwireless/control
81525249962f840e2d286cdd87dee0f15f20fadb
[ "MIT" ]
1
2017-07-08T17:45:39.000Z
2017-07-08T17:45:39.000Z
#!/usr/bin/env python """nutanix_vm_vdi - Uses Nutanix REST API to get summary of performance stats. Requires requests pip install requests """ import json import time import operator import requests import logging.config from credentials import NUTANIX_USER # Login info now stored in credentials.py from credentials...
41.825581
114
0.610694
21d2d47e6dd481e9b64d2042c312c36704a7c649
1,003
py
Python
translation.py
PapstJL4U/BaikenMains
4cd66004a1ef23772f961bfb4e7faffa8465061e
[ "MIT" ]
null
null
null
translation.py
PapstJL4U/BaikenMains
4cd66004a1ef23772f961bfb4e7faffa8465061e
[ "MIT" ]
null
null
null
translation.py
PapstJL4U/BaikenMains
4cd66004a1ef23772f961bfb4e7faffa8465061e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- translation_dic = {'ソル=バッドガイ': 'Sol', 'カイ=キスク': 'Ky', 'スレイヤー': 'Slayer', 'ジョニー': 'Johnny', '梅喧': 'Baiken', 'ポチョムキン': 'Potemkin', 'メイ': 'May', 'レ...
34.586207
47
0.289133
21d32eb08e94383dfba319b545ce0dce7cac20e9
1,431
py
Python
terrascript/tfe/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/tfe/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/tfe/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/tfe/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class tfe_agent_pool(terrascript.Resource): pass class tfe_agent_token(terrascript.Resource): pass ...
15.223404
79
0.77638
21d3532c8dd55ada47338b1901a9bca98923ec25
2,060
py
Python
nbgrader_to_canvas/settings.py
ucsd-ets/nbgrader-canvas-lti-oauth-flask
ddde08dbc60675358c3bf255a6be7843f05a6c17
[ "MIT" ]
null
null
null
nbgrader_to_canvas/settings.py
ucsd-ets/nbgrader-canvas-lti-oauth-flask
ddde08dbc60675358c3bf255a6be7843f05a6c17
[ "MIT" ]
null
null
null
nbgrader_to_canvas/settings.py
ucsd-ets/nbgrader-canvas-lti-oauth-flask
ddde08dbc60675358c3bf255a6be7843f05a6c17
[ "MIT" ]
1
2021-11-10T00:27:45.000Z
2021-11-10T00:27:45.000Z
import os from dotenv import load_dotenv load_dotenv() # API url and LTI key/secret BASE_URL = os.getenv('CANVAS_BASE_URL') + '/' API_URL = os.getenv('CANVAS_BASE_URL') + '/' LTI_CONSUMER_KEY = os.getenv('LTI_CONSUMER_KEY') LTI_SHARED_SECRET = os.getenv('LTI_SHARED_SECRET') # generate a secret key with os.urandom(24...
29.428571
87
0.686893
21d386b728fc0f0105733ce257446e23b6031a19
23,733
py
Python
tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py
smarthi/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
2
2019-10-09T08:06:48.000Z
2021-01-07T03:16:09.000Z
tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
1
2017-02-06T08:12:22.000Z
2017-02-06T08:12:22.000Z
tensorflow/contrib/learn/python/learn/learn_io/graph_io_test.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.545852
107
0.653605
21d38873fa97d8f0c0a44b3fe83c1db7693d1109
406
py
Python
tests/core/test_message_pack.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
15
2020-11-02T21:11:03.000Z
2022-03-10T14:17:46.000Z
tests/core/test_message_pack.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
4
2020-11-01T17:54:15.000Z
2022-03-04T21:42:41.000Z
tests/core/test_message_pack.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
2
2021-05-01T06:59:12.000Z
2021-11-25T07:01:02.000Z
from datetime import datetime import msgpack from scalpel.core.message_pack import datetime_encoder, datetime_decoder def test_should_encode_and_decode_datetimes(): data = {'fruit': 'water melon', 'date': datetime.now()} packed_data = msgpack.packb(data, default=datetime_encoder) unpacked_data = msgpack...
29
78
0.783251
21d38f7860ecb85ccf2c4aa74e13436f56a67215
435
py
Python
ophiuchus/potential/load.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
1
2015-09-25T10:12:52.000Z
2015-09-25T10:12:52.000Z
ophiuchus/potential/load.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
ophiuchus/potential/load.py
adrn/ophiuchus
fe7e937bf421d506ec252165f044d514f571667b
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Third-party from astropy.utils.data import get_pkg_data_filename import gala.potential as gp def load_potential(name): from .. import potential as op return gp.load(get_pkg_data_filename('yml/{}.y...
25.588235
79
0.76092
21d3de9997fd72c49679354f98b742e6973930b7
23
py
Python
eupy/mrcrawley/__init__.py
fivosts/eupy
9e21ee2cf3ba5666db85723384c7b3422c71286a
[ "MIT" ]
null
null
null
eupy/mrcrawley/__init__.py
fivosts/eupy
9e21ee2cf3ba5666db85723384c7b3422c71286a
[ "MIT" ]
4
2020-04-03T00:03:48.000Z
2020-06-24T18:37:03.000Z
eupy/mrcrawley/__init__.py
fivosts/eupy
9e21ee2cf3ba5666db85723384c7b3422c71286a
[ "MIT" ]
null
null
null
__all__ = ['AZspider']
11.5
22
0.652174
21d3ea7f2f326eebd178b78980194a319a51b2ac
2,760
py
Python
salt/modules/freebsdkmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/modules/freebsdkmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/modules/freebsdkmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Module to manage FreeBSD kernel modules ''' # Import python libs import os def __virtual__(): ''' Only runs on FreeBSD systems ''' return 'kmod' if __grains__['kernel'] == 'FreeBSD' else False def _new_mods(pre_mods, post_mods): ''' Return a list of the new modules, pass an kldstat dict...
21.904762
80
0.573188
21d41d1be2f20d28d5789bb0a08cf50884fe7e1f
4,370
py
Python
tools/wptrunner/wptrunner/browsers/edge.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
1
2020-07-03T21:13:22.000Z
2020-07-03T21:13:22.000Z
tools/wptrunner/wptrunner/browsers/edge.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
null
null
null
tools/wptrunner/wptrunner/browsers/edge.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
1
2017-09-04T11:09:07.000Z
2017-09-04T11:09:07.000Z
from __future__ import print_function import subprocess from .base import Browser, ExecutorBrowser, require_arg from ..webdriver_server import EdgeDriverServer from ..executors import executor_kwargs as base_executor_kwargs from ..executors.executorselenium import (SeleniumTestharnessExecutor, # noqa: F401 ...
37.672414
107
0.615103
21d42eeb8b3a4c324a41b8241cf5a09e3324d291
12,395
py
Python
venv/lib/python3.5/site-packages/extract_msg/utils.py
andrewcgarber/NoteSmoosh
1e9b95cf276ae1b78c846027f8ada98f266a30c7
[ "DOC" ]
null
null
null
venv/lib/python3.5/site-packages/extract_msg/utils.py
andrewcgarber/NoteSmoosh
1e9b95cf276ae1b78c846027f8ada98f266a30c7
[ "DOC" ]
16
2020-01-28T23:10:19.000Z
2021-09-08T01:29:55.000Z
venv/lib/python3.5/site-packages/extract_msg/utils.py
andrewcgarber/NoteSmoosh
1e9b95cf276ae1b78c846027f8ada98f266a30c7
[ "DOC" ]
null
null
null
""" Utility functions of extract_msg. """ import argparse import datetime import json import logging import logging.config import sys import tzlocal from extract_msg import constants from extract_msg.compat import os_ as os logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) logging.addLev...
33.230563
147
0.607584
21d43331d73a243ac14bf9aedd936ded549dc8a4
660
py
Python
src/anyvar/restapi/routes/sequence.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
null
null
null
src/anyvar/restapi/routes/sequence.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
null
null
null
src/anyvar/restapi/routes/sequence.py
theferrit32/anyvar
44c30a808155d1510590a9d72a1570307cad6a3a
[ "Apache-2.0" ]
null
null
null
import logging import re from connexion import NoContent, request from ..globals import get_seqrepo from .utils import get_sequence_ids, problem _logger = logging.getLogger(__name__) def get(alias, start=None, end=None): if start is not None and end is not None: if start > end: return probl...
27.5
76
0.687879
21d4349b2d35b6d9454724e53fa1c319f395d83e
8,992
py
Python
src/kinesis/consumer.py
matgoebl/kinesis-python
6b59bdeb339f8f3889259c2bbf9b8738d78f95c6
[ "Apache-2.0" ]
null
null
null
src/kinesis/consumer.py
matgoebl/kinesis-python
6b59bdeb339f8f3889259c2bbf9b8738d78f95c6
[ "Apache-2.0" ]
null
null
null
src/kinesis/consumer.py
matgoebl/kinesis-python
6b59bdeb339f8f3889259c2bbf9b8738d78f95c6
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import logging import multiprocessing import time import dateutil.parser import boto3 import six.moves.queue from kinesis.shard_reader import ShardReader as ShardReaderV2 log = logging.getLogger(__name__) class KinesisCheckPointType(object): BY_RECORD = 1 BY_SEC = 10 ...
39.787611
118
0.544818
21d44d887554a479675e03fa5a03ec5149328c5b
5,070
py
Python
experiments/vitchyr/probabilistic_goal_reaching/ant/exp_8_xy_sparse_epsilon_sensitivity.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/probabilistic_goal_reaching/ant/exp_8_xy_sparse_epsilon_sensitivity.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/probabilistic_goal_reaching/ant/exp_8_xy_sparse_epsilon_sensitivity.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( # env_id='FetchPush-v1', obse...
29.823529
86
0.520907
21d4654fd21dc116dbde21356491998d6f3e5cc3
6,189
py
Python
mdx_steroids/md_mako.py
twardoch/markdown-steroids
919b332c32aa1ea92857a5079b36cf522d07371a
[ "BSD-3-Clause" ]
4
2018-01-25T23:30:30.000Z
2019-09-13T08:26:19.000Z
mdx_steroids/md_mako.py
twardoch/markdown-steroids
919b332c32aa1ea92857a5079b36cf522d07371a
[ "BSD-3-Clause" ]
1
2020-12-03T19:44:04.000Z
2020-12-03T19:44:04.000Z
mdx_steroids/md_mako.py
twardoch/markdown-steroids
919b332c32aa1ea92857a5079b36cf522d07371a
[ "BSD-3-Clause" ]
1
2018-01-26T01:18:10.000Z
2018-01-26T01:18:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ # mdx_steroids.md_mako The `mdx_steroids.md_mako` feeds Markdown through the Mako templating system. ### Installation ```bash pip install --user --upgrade git+https://github.com/twardoch/markdown-steroids.git ``` ### Docs * https://github.com/twardoch/markdown-ster...
37.283133
160
0.639037
21d491ae99493f9bcd2a096ce83c34b17d37674f
4,935
py
Python
tests/unit/utils/test_JsonStream.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
77
2019-04-08T12:55:29.000Z
2022-03-29T14:40:11.000Z
tests/unit/utils/test_JsonStream.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
55
2019-03-11T14:37:41.000Z
2022-02-02T08:19:43.000Z
tests/unit/utils/test_JsonStream.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
20
2019-03-11T16:10:53.000Z
2022-03-21T16:09:37.000Z
# Copyright (c) 2021, INRIA # Copyright (c) 2021, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
37.671756
131
0.754407
21d4995063e50737f0b947f6889bf7c4b9c5993b
82
py
Python
__init__.py
wojsam/viur-html5
25483dbf7accde99223ad25c13f9efb8c25c1127
[ "MIT" ]
8
2017-11-24T10:00:01.000Z
2019-12-08T09:03:32.000Z
__init__.py
wojsam/viur-html5
25483dbf7accde99223ad25c13f9efb8c25c1127
[ "MIT" ]
9
2020-06-03T13:57:06.000Z
2021-01-05T11:46:30.000Z
__init__.py
wojsam/viur-html5
25483dbf7accde99223ad25c13f9efb8c25c1127
[ "MIT" ]
3
2018-01-21T01:09:49.000Z
2019-10-21T13:23:28.000Z
#-*- coding: utf-8 -*- from .core import * from . import ext, ignite, svg, utils
16.4
37
0.621951
21d49d3544a3dad3be96f00ed348ce32fba40ef1
17,298
py
Python
py_trees/trees.py
hiradg/py_trees
b0025e7060ec4ec5f3f79b0e8405230e1a3635cd
[ "BSD-3-Clause" ]
null
null
null
py_trees/trees.py
hiradg/py_trees
b0025e7060ec4ec5f3f79b0e8405230e1a3635cd
[ "BSD-3-Clause" ]
null
null
null
py_trees/trees.py
hiradg/py_trees
b0025e7060ec4ec5f3f79b0e8405230e1a3635cd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # License: BSD # https://raw.githubusercontent.com/splintered-reality/py_trees/devel/LICENSE # ############################################################################## # Documentation ############################################################################## """ While a graph of con...
39.857143
162
0.617991
21d4a79bf9a6a5cde5389fbe4038519f891a4f46
32,593
py
Python
pypeit/processimages.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/processimages.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
pypeit/processimages.py
baileyji/PypeIt
eea71304f4a4bcf70148ea686967ed699dc36dfb
[ "BSD-3-Clause" ]
null
null
null
""" Module for Processing Images, e.g. bias frames, arc frames """ import inspect import numpy as np import os from collections import OrderedDict #from importlib import reload from astropy.io import fits from pypeit import msgs from pypeit import ginga from pypeit.core import combine from pypeit.core import procim...
39.033533
131
0.56595
21d4d475df071069fc4587bf7f79ae9cf62331dc
67,654
py
Python
models.py
diacaf/image-enhance-keras
118859a95e3c053ec0084332db841016bc513a0c
[ "MIT" ]
9
2018-09-27T17:36:04.000Z
2020-12-19T11:39:43.000Z
models.py
diacaf/image-enhance-keras
118859a95e3c053ec0084332db841016bc513a0c
[ "MIT" ]
1
2018-09-27T18:42:51.000Z
2018-09-27T19:45:40.000Z
models.py
diacaf/image-enhance-keras
118859a95e3c053ec0084332db841016bc513a0c
[ "MIT" ]
6
2018-10-14T16:37:23.000Z
2020-12-19T11:39:46.000Z
from __future__ import print_function, division import tensorflow as tf from keras.models import Model from keras.layers import Concatenate, Add,Subtract, Average, Input, Dense,Dropout, Flatten, BatchNormalization, Activation, LeakyReLU ,ELU,Lambda from keras.layers.convolutional import Conv2D,Convolution2D, MaxPoolin...
39.265235
158
0.606128
21d4eacfd77c5887226a5c74380b0a5adb1ea087
2,147
py
Python
rd/tmgsyn_test.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
1
2022-02-24T20:39:46.000Z
2022-02-24T20:39:46.000Z
rd/tmgsyn_test.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
rd/tmgsyn_test.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ Created on Thu Jan 04 15:26:50 2018 @author: DanielM """ from neuron import h, gui import numpy as np import matplotlib.pyplot as plt from pyDentate.mossycell_cat import MossyCell h.nrn_load_dll("C:\\Users\\DanielM\\Repos\\models_dentate\\dentate_gyrus_Santhakumar2005_and_Yim_patterns\\de...
27.525641
141
0.667443
21d5029c1e209c53f7f21703ab8096e8aaa0574b
4,787
py
Python
ThirdParty/Twisted/twisted/lore/test/test_latex.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/Twisted/twisted/lore/test/test_latex.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/lore/test/test_latex.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.lore.latex}. """ import os.path from xml.dom.minidom import Comment, Element, Text from twisted.python.filepath import FilePath from twisted.trial.unittest import TestCase from twisted.lore.latex import LatexSpitter, getL...
32.564626
95
0.588887
21d51a7b21d3b06ce953ee38632fc21a6dfc1fbb
6,127
py
Python
froide/foirequest/tests/test_admin.py
ashmpace/question-mtl
5ce1289cd6db0e629aa138d2dee235d9a4c4546b
[ "MIT" ]
null
null
null
froide/foirequest/tests/test_admin.py
ashmpace/question-mtl
5ce1289cd6db0e629aa138d2dee235d9a4c4546b
[ "MIT" ]
3
2020-02-11T21:43:56.000Z
2021-11-15T17:47:06.000Z
froide/foirequest/tests/test_admin.py
ashmpace/question-mtl
5ce1289cd6db0e629aa138d2dee235d9a4c4546b
[ "MIT" ]
null
null
null
from __future__ import with_statement from django.test import TestCase from django.contrib.admin.sites import AdminSite from django.test.client import RequestFactory from django.contrib.auth import get_user_model from django.contrib.messages.storage import default_storage from froide.foirequest.tests import factories...
33.298913
87
0.614167
21d5365fee525d20f35793f97f346d31268bff98
823
py
Python
vegapy/examples/example_session.py
scivision/vegapy
db095f790c7e86b3dd273fdd260c83fcb2550772
[ "MIT" ]
2
2021-03-21T22:16:04.000Z
2022-03-24T22:38:40.000Z
vegapy/examples/example_session.py
scivision/vegapy
db095f790c7e86b3dd273fdd260c83fcb2550772
[ "MIT" ]
null
null
null
vegapy/examples/example_session.py
scivision/vegapy
db095f790c7e86b3dd273fdd260c83fcb2550772
[ "MIT" ]
2
2018-11-16T12:14:03.000Z
2019-03-03T03:58:49.000Z
import vegapy import os import astropy.units as u PATH, FILE = os.path.split(__file__) SOURCE_PATH = os.path.join(PATH, '../source/') target = vegapy.Target(band='H', FoV=22*u.arcsec, shape=(1024, 1024), star_table=SOURCE_PATH+'example/smalltarget4_stars.dat', sky_background=13) telescope = vegapy.Telescope(8.2*u.m...
37.409091
145
0.727825
21d536c6c299bd4d3e8ee80d477004c75782fab5
4,443
py
Python
falkon/benchmarks/models/gpytorch_sgpr.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
130
2020-06-18T08:30:30.000Z
2022-03-21T15:43:17.000Z
falkon/benchmarks/models/gpytorch_sgpr.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
32
2020-06-26T09:24:45.000Z
2022-03-20T10:37:36.000Z
falkon/benchmarks/models/gpytorch_sgpr.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
17
2020-07-13T17:28:02.000Z
2022-02-15T19:55:40.000Z
import time import gpytorch import torch class SGPRBaseModel(gpytorch.models.ExactGP): def __init__(self, train_x, train_y, likelihood, inducing_points): super().__init__(train_x, train_y, likelihood) self.likelihood = likelihood self.mean_module = gpytorch.means.Constant...
34.984252
118
0.59892
21d58313c3c5e27ca24e0e706353f3203dc35b6e
6,198
py
Python
examples/ommhelper/reporter/drudetemperaturereporter.py
z-gong/openmm-velocityVerlet
87783cdec2eb64cf0811707ebd97be656e23ab34
[ "Unlicense" ]
5
2021-04-02T06:08:57.000Z
2022-02-13T17:37:28.000Z
examples/ommhelper/reporter/drudetemperaturereporter.py
z-gong/openmm-velocityVerlet
87783cdec2eb64cf0811707ebd97be656e23ab34
[ "Unlicense" ]
5
2021-05-12T07:34:24.000Z
2022-03-21T14:49:59.000Z
examples/ommhelper/reporter/drudetemperaturereporter.py
z-gong/openmm-velocityVerlet
87783cdec2eb64cf0811707ebd97be656e23ab34
[ "Unlicense" ]
1
2022-01-17T16:19:54.000Z
2022-01-17T16:19:54.000Z
import numpy as np import simtk.openmm as mm from simtk.openmm.app import Simulation from ..unit import * class DrudeTemperatureReporter(object): ''' DrudeTemperatureReporter reports the temperatures of different DOFs in a Drude simulation system. The temperatures for three sets of degrees of freedom are ...
43.957447
109
0.609229
21d58889a5f44368068b02ff04c44a480f5d226d
1,080
py
Python
app/models/reviews.py
jpremo/open_bar
ee08e4b51af11d21fa339e15daea1248e8409e4d
[ "MIT", "PostgreSQL", "Unlicense" ]
3
2021-01-25T18:25:22.000Z
2021-03-09T07:19:25.000Z
app/models/reviews.py
jpremo/open_bar
ee08e4b51af11d21fa339e15daea1248e8409e4d
[ "MIT", "PostgreSQL", "Unlicense" ]
1
2021-01-25T18:40:20.000Z
2021-01-25T18:40:22.000Z
app/models/reviews.py
jpremo/open_bar
ee08e4b51af11d21fa339e15daea1248e8409e4d
[ "MIT", "PostgreSQL", "Unlicense" ]
null
null
null
from .db import db class Review(db.Model): __tablename__ = 'reviews' id = db.Column(db.Integer, primary_key=True) overall = db.Column(db.Integer, nullable=False) food = db.Column(db.Integer, nullable=False) service = db.Column(db.Integer, nullable=False) ambience = db.Column(db.Integer, nulla...
34.83871
77
0.612037
21d5a1a2ab50d45efcf96b919c8feee9328d0383
11,130
py
Python
salt/modules/boto_cloudwatch.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/modules/boto_cloudwatch.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/modules/boto_cloudwatch.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
1
2020-10-19T11:49:50.000Z
2020-10-19T11:49:50.000Z
# -*- coding: utf-8 -*- ''' Connection module for Amazon CloudWatch .. versionadded:: 2014.7.0 :configuration: This module accepts explicit credentials but can also utilize IAM roles assigned to the instance trough Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no furt...
34.890282
157
0.665499
21d5d6a874f2da62750cd2d3b7bb524b00cbb1b4
694
py
Python
937. Reorder Log Files.py
Jorewang/LeetCode_Solutions
0c483a915e2a8b3bfc4bcb4b5a35df3dd0dbe8ba
[ "Apache-2.0" ]
2
2020-06-13T06:37:50.000Z
2020-06-13T06:37:52.000Z
937. Reorder Log Files.py
Jorewang/LeetCode_Solutions
0c483a915e2a8b3bfc4bcb4b5a35df3dd0dbe8ba
[ "Apache-2.0" ]
null
null
null
937. Reorder Log Files.py
Jorewang/LeetCode_Solutions
0c483a915e2a8b3bfc4bcb4b5a35df3dd0dbe8ba
[ "Apache-2.0" ]
null
null
null
class Solution(object): def reorderLogFiles(self, logs): letter_log = {} letter_logs = [] res = [] for idx, log in enumerate(logs): if log.split(' ')[-1].isdigit(): res.append(log) else: letters = tuple(log.split(' ')[1:]) ...
26.692308
111
0.527378
21d6085db2863ae95aea469dc9ee6fc3f809f510
1,422
py
Python
config/settings/test.py
sharmautkarsh31/ETL
632048f2aef5210cb39ea4c485ecc073327a3231
[ "MIT" ]
null
null
null
config/settings/test.py
sharmautkarsh31/ETL
632048f2aef5210cb39ea4c485ecc073327a3231
[ "MIT" ]
null
null
null
config/settings/test.py
sharmautkarsh31/ETL
632048f2aef5210cb39ea4c485ecc073327a3231
[ "MIT" ]
null
null
null
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="N1kVjH2wn...
33.857143
80
0.510549
21d628c90ceb7cc35459896198e2f6ab25398f0d
10,176
py
Python
ninfs/mount/nandtwl.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
null
null
null
ninfs/mount/nandtwl.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
null
null
null
ninfs/mount/nandtwl.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
null
null
null
# This file is a part of ninfs. # # Copyright (c) 2017-2021 Ian Burgwin # This file is licensed under The MIT License (MIT). # You can find the full license text in LICENSE.md in the root of this project. """ Mounts Nintendo DSi NAND images, creating a virtual filesystem of decrypted partitions. """ import logging im...
40.704
116
0.568986
21d630fdebdf9f176bdd91f16d0baac09ee3e3e7
175
py
Python
python/ABC/170/a.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
python/ABC/170/a.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
python/ABC/170/a.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
import sys input = sys.stdin.readline def main(): x = list(map(int, input().split())) ans = x.index(0) + 1 print(ans) if __name__ == "__main__": main()
10.9375
39
0.565714
21d63a14a616a06e803a60a3ad91b0cdf0beb571
2,458
py
Python
tests/engine_tests/unit/io/test_connection_group.py
pitzer42/micro-tcg
eec416fb3b7b992a206ab900f3d85d172f494103
[ "MIT" ]
null
null
null
tests/engine_tests/unit/io/test_connection_group.py
pitzer42/micro-tcg
eec416fb3b7b992a206ab900f3d85d172f494103
[ "MIT" ]
2
2019-06-25T02:15:10.000Z
2019-06-25T02:22:14.000Z
tests/engine_tests/unit/io/test_connection_group.py
pitzer42/micro-tcg
eec416fb3b7b992a206ab900f3d85d172f494103
[ "MIT" ]
1
2019-06-12T00:35:41.000Z
2019-06-12T00:35:41.000Z
import unittest from tests import run_async from tests.engine_tests.mocks.socket import SocketMock from engine.io.client_connection import ClientConnection from engine.io.connection_group import ConnectionGroup __default_size__ = 3 def create_group(size=__default_size__): clients = list() for i in range(si...
30.345679
77
0.666395
21d657bf19ccb78b71ed38404c9270ae7543ac0a
45,976
py
Python
Lib/fontbakery/profile.py
vv-monsalve/fontbakery
8551b89924b92a8e226519fda98a1955380ecbe9
[ "Apache-2.0" ]
1
2019-01-29T20:47:49.000Z
2019-01-29T20:47:49.000Z
Lib/fontbakery/profile.py
bdenckla/fontbakery
4d680af06705aac3b5a7cfb34e22ffcd1c4f0a5d
[ "Apache-2.0" ]
107
2020-01-30T07:33:33.000Z
2021-07-27T05:48:41.000Z
Lib/fontbakery/profile.py
chrissimpkins/fontbakery
9a9ec38f87b02aecc1a2f987e0b0fa9acffa6b8c
[ "Apache-2.0" ]
null
null
null
from typing import Iterable from collections import OrderedDict from functools import wraps, partial from itertools import chain import re import importlib import inspect import types import json import logging from fontbakery.errors import NamespaceError, SetupError, CircularAliasError from fontbakery.callable import...
39.566265
92
0.582695
21d662bbea81a2c2c6d687ff9a5ce2d7a7933189
405
py
Python
trigger/utils/submodule_update.py
lyft/trigger
2c834c42a0d8310cc2fb8542e584bc9c8aa0b6dd
[ "Apache-2.0" ]
null
null
null
trigger/utils/submodule_update.py
lyft/trigger
2c834c42a0d8310cc2fb8542e584bc9c8aa0b6dd
[ "Apache-2.0" ]
null
null
null
trigger/utils/submodule_update.py
lyft/trigger
2c834c42a0d8310cc2fb8542e584bc9c8aa0b6dd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import subprocess def main(): try: f = open('.git', 'r') subgitdir = f.read() f.close() except (IOError, OSError): raise SystemExit(1) subgitdir = subgitdir.replace('gitdir: ', '').strip() cmd = 'git update-server-info' p = subprocess.Popen(cmd, sh...
20.25
57
0.580247
21d6a4689f8250f46d552ccbf1de7f07ebcf8f50
1,794
py
Python
diversity/MMO/basinhopping/python-lib/arcspec/frenet.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
diversity/MMO/basinhopping/python-lib/arcspec/frenet.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
diversity/MMO/basinhopping/python-lib/arcspec/frenet.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
""" frenet.py Spectral analysis of frenet variables given an x,y input. """ import sys sys.path.insert(1, '/home/ryi/projects_py/lib') import numpy as np from scipy import signal # Custom. import interparc as ia from twodimnav import curvature from psd import psdfull # Functions for data transformation. def cal...
27.181818
97
0.633779
21d6dd6a157dbcf2909f2aaa793627b7dc3a1ef7
165
py
Python
bridger/models.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
bridger/models.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
bridger/models.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
from .frontend_user_configuration import FrontendUserConfiguration from .notifications.models import Notification, NotificationSendType from .tags.models import Tag
41.25
68
0.884848
21d6dd8d69d786707a36514276790fd22d363d68
675
py
Python
bot/static_answers.py
LeonErath/eve
6dc1f34fb0e063aa8efeff1e81274d05873d79c8
[ "MIT" ]
8
2018-03-09T12:49:13.000Z
2021-06-25T09:33:31.000Z
bot/static_answers.py
LeonErath/eve
6dc1f34fb0e063aa8efeff1e81274d05873d79c8
[ "MIT" ]
77
2018-02-20T17:16:33.000Z
2018-10-20T07:57:50.000Z
bot/static_answers.py
LeonErath/eve
6dc1f34fb0e063aa8efeff1e81274d05873d79c8
[ "MIT" ]
2
2018-08-17T13:17:02.000Z
2018-12-14T05:05:11.000Z
import random from bot.data import Request from bot.model_definitions import PatternCategory from bot.predefined_answers import answers_for_category def get_static_answer(category: PatternCategory, request: Request) -> str: """ Retrieves and formats a random predefined answer for the specified category f...
27
79
0.739259
21d734c640478e937fb99f27869cdd1f355ba160
546
py
Python
wms/api/apiBlueprintV1.py
WillsMediaServer/Wills-Media-Server
40fd6e86d3ce387861510a4e5e2a7c8c2c5eb921
[ "MIT" ]
null
null
null
wms/api/apiBlueprintV1.py
WillsMediaServer/Wills-Media-Server
40fd6e86d3ce387861510a4e5e2a7c8c2c5eb921
[ "MIT" ]
null
null
null
wms/api/apiBlueprintV1.py
WillsMediaServer/Wills-Media-Server
40fd6e86d3ce387861510a4e5e2a7c8c2c5eb921
[ "MIT" ]
1
2019-12-18T22:35:55.000Z
2019-12-18T22:35:55.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # /wms/api/apiBlueprintV1.py # Wills Media Server Core # Version: 0.0.1.0 Alpha # Created By William Neild # import logging from flask import Blueprint from wms.api.v1 import musicAPI class api: def __init__(self, database, config): self.logger = logging.g...
22.75
69
0.673993
21d74118cffdd5ef60db3334510c37b92646aa41
23,185
py
Python
cinder/volume/drivers/dell_emc/vnx/client.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/vnx/client.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/vnx/client.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 EMC 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 applica...
38.577371
79
0.599482
21d7856fbd3a1df3bdd98cf07bfa57f880632959
35,432
py
Python
ccmlib/scylla_node.py
rafie/scylla-ccm
b3783d7f19fb4bd4cb14ca1d3a960e6ab7ca1c36
[ "Apache-2.0" ]
null
null
null
ccmlib/scylla_node.py
rafie/scylla-ccm
b3783d7f19fb4bd4cb14ca1d3a960e6ab7ca1c36
[ "Apache-2.0" ]
null
null
null
ccmlib/scylla_node.py
rafie/scylla-ccm
b3783d7f19fb4bd4cb14ca1d3a960e6ab7ca1c36
[ "Apache-2.0" ]
null
null
null
# ccm node from __future__ import with_statement import datetime import errno import os import signal import shutil import socket import stat import subprocess import time import threading import psutil import yaml from six import print_ from ccmlib import common from ccmlib.node import Node from ccmlib.node import ...
44.014907
129
0.524357
21d7a0aba6df6b03f58b6114ca84939fa22271e7
1,869
py
Python
src/python/pants/backend/codegen/targets/java_protobuf_library.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/targets/java_protobuf_library.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/codegen/targets/java_protobuf_library.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging from...
38.142857
97
0.729267
21d7be7a69c7c0a6a8e017988ff91ed4d3c17c43
8,028
py
Python
axonius_api_client/tests/conftest.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/tests/conftest.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/tests/conftest.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """Conf for py.test.""" import os import pytest from axonius_api_client.api import ( ActivityLogs, Adapters, Dashboard, Devices, Enforcements, Instances, Meta, RemoteSupport, SettingsGlobal, SettingsGui, SettingsLifecycle, Signup, SystemRoles,...
24.401216
98
0.672023
21d7de02040874fd5e0bb5ca8a647c011ad2be76
3,001
py
Python
tensorflow/python/tools/print_selective_registration_header.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/tools/print_selective_registration_header.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/tools/print_selective_registration_header.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.987342
80
0.727424
21d7e63d1ee7d7c7540201eabdda34d5582e0355
3,104
py
Python
scripts/fbOS/coding/AlienDictionary.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/fbOS/coding/AlienDictionary.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/fbOS/coding/AlienDictionary.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Alien Dictionary There is a new alien language that uses the English alphabet. However, the order among the letters is unknown to you. You are given a list of strings words from the alien language's dictionary, where the strings in words are sorted lexicographically by the rules of this new language. Retu...
28.218182
79
0.604381
21d8251a8ef05e75ee52922f31b112e093ce9926
944
py
Python
toontown/cogdominium/CogdoCraneGameConsts.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/cogdominium/CogdoCraneGameConsts.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/cogdominium/CogdoCraneGameConsts.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.fsm.StatePush import StateVar from otp.level.EntityStateVarSet import EntityStateVarSet from toontown.cogdominium.CogdoEntityTypes import CogdoCraneGameSettings, CogdoCraneCogSettings Settings = EntityStateVarSet(CogdoCraneGameSettings) CogSettings = EntityStateVarSet(CogdoCraneCogSettings) CranePosHprs = [...
16
95
0.568856
21d82c40b86eb23790b1596592e6f077608e6bd0
200
py
Python
posts/vr/post_config.py
isabella232/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
15
2015-02-21T13:56:25.000Z
2019-08-14T21:19:09.000Z
posts/vr/post_config.py
nprapps/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
444
2015-01-06T16:54:13.000Z
2021-09-22T11:46:33.000Z
posts/vr/post_config.py
isabella232/lookatthis
fe9ccc896f50ede13f9c469d38d90c8a732f9a71
[ "FSFAP" ]
13
2015-01-05T14:33:15.000Z
2021-02-23T10:45:32.000Z
COPY_GOOGLE_DOC_KEY = '1Svi1KWJhW1STHrYszjH5QVVSq-5GmSo9xuod6SYWoeE' DEPLOY_SLUG = 'vr' NUM_SLIDES_AFTER_CONTENT = 2 # Configuration AUDIO = False VIDEO = False FILMSTRIP = False PROGRESS_BAR = False
22.222222
68
0.82
21d862d3be5e5aad1865b74093f986837d25a260
6,340
py
Python
kats/models/linear_model.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/models/linear_model.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/models/linear_model.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Forecasting with simple linear regression model # # In the simplest case, the regression model explores a linear relationship # between th...
36.647399
118
0.625552
21d88f2afa7cb1e4e9c3235eb296a966ae504b4f
48,816
py
Python
improver/calibration/reliability_calibration.py
VictoriaLouiseS/improver
86470bff973e21fbd5f24e26047871ad3bc2f3db
[ "BSD-3-Clause" ]
null
null
null
improver/calibration/reliability_calibration.py
VictoriaLouiseS/improver
86470bff973e21fbd5f24e26047871ad3bc2f3db
[ "BSD-3-Clause" ]
3
2020-04-25T12:55:42.000Z
2020-07-23T11:50:46.000Z
improver/calibration/reliability_calibration.py
VictoriaLouiseS/improver
86470bff973e21fbd5f24e26047871ad3bc2f3db
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2020 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
41.938144
88
0.635632
21d8a5198736a6d1a45ae25fcb49db381b60947b
987
py
Python
egs/avatar10mix2/ConvTasNet/local/create_local_metadata.py
hushell/asteroid
73d93c8af734b0d985c67013e9f4a8462d1a924f
[ "MIT" ]
null
null
null
egs/avatar10mix2/ConvTasNet/local/create_local_metadata.py
hushell/asteroid
73d93c8af734b0d985c67013e9f4a8462d1a924f
[ "MIT" ]
null
null
null
egs/avatar10mix2/ConvTasNet/local/create_local_metadata.py
hushell/asteroid
73d93c8af734b0d985c67013e9f4a8462d1a924f
[ "MIT" ]
null
null
null
import os import shutil import argparse from glob import glob # Command line arguments parser = argparse.ArgumentParser() parser.add_argument( "--librimix_dir", type=str, default=None, help="Path to librispeech root directory" ) def main(args): librimix_dir = args.librimix_dir create_local_metadata(libri...
27.416667
94
0.658561
21d8b9d717f7ef8110e50cc85fe682e976b7ed6f
5,153
py
Python
sdk/core/azure-core/tests/azure_core_asynctests/test_pipeline.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/core/azure-core/tests/azure_core_asynctests/test_pipeline.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/core/azure-core/tests/azure_core_asynctests/test_pipeline.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
#-------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), t...
33.901316
95
0.691054
21d8fa9766638d3f51acfc3ba243bcd72f2e4735
2,085
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/service_management/common_flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/service_management/common_flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/service_management/common_flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.948276
78
0.725659
21d9182307ca452db44ace0c9c044141f1ec5930
8,871
py
Python
util/timit/old/timit_preprocess_spikegram_k_8.py
HanSeokhyeon/Speech_recogniton_for_English_and_Korean
e0eaf1da1e1ac15f34402fea8cb330d008140d61
[ "MIT" ]
null
null
null
util/timit/old/timit_preprocess_spikegram_k_8.py
HanSeokhyeon/Speech_recogniton_for_English_and_Korean
e0eaf1da1e1ac15f34402fea8cb330d008140d61
[ "MIT" ]
null
null
null
util/timit/old/timit_preprocess_spikegram_k_8.py
HanSeokhyeon/Speech_recogniton_for_English_and_Korean
e0eaf1da1e1ac15f34402fea8cb330d008140d61
[ "MIT" ]
null
null
null
# reference : https://github.com/Faur/TIMIT # https://github.com/jameslyons/python_speech_features/issues/53 import os import sys import timeit; program_start_time = timeit.default_timer() import random; random.seed(int(timeit.default_timer())) from six.moves import cPickle import numpy as np import librosa # a py...
32.025271
128
0.636005
21d96c308a8e97a0debcacc35663e5717e83fbec
11
py
Python
advanced-lane-detection/tempCodeRunnerFile.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
null
null
null
advanced-lane-detection/tempCodeRunnerFile.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
null
null
null
advanced-lane-detection/tempCodeRunnerFile.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
1
2022-03-31T10:33:45.000Z
2022-03-31T10:33:45.000Z
self.binary
11
11
0.909091
21d97236235f35d0af476cb8a7531c23799bb24d
2,949
py
Python
pvoutput/tests/pvoutput_test.py
vnshanmukh/pvoutput
9773c60445b38b7b67f8d5e10316379f47090549
[ "Apache-2.0" ]
22
2019-08-14T15:54:38.000Z
2022-03-22T17:34:05.000Z
pvoutput/tests/pvoutput_test.py
vnshanmukh/pvoutput
9773c60445b38b7b67f8d5e10316379f47090549
[ "Apache-2.0" ]
81
2019-08-09T08:09:13.000Z
2022-03-28T17:30:44.000Z
pvoutput/tests/pvoutput_test.py
vnshanmukh/pvoutput
9773c60445b38b7b67f8d5e10316379f47090549
[ "Apache-2.0" ]
14
2019-09-08T04:54:52.000Z
2021-12-06T14:34:28.000Z
from datetime import date from io import StringIO import numpy as np import pandas as pd import pytest from pvoutput import pvoutput def test_date_to_pvoutput_str(): VALID_DATE_STR = "20190101" assert pvoutput.date_to_pvoutput_str(VALID_DATE_STR) == VALID_DATE_STR ts = pd.Timestamp(VALID_DATE_STR) a...
34.290698
92
0.703967
21d97e4b8b4dc36458693fe195998ec453412f8f
4,600
py
Python
pyIsoDep/functions/batemansolvers.py
MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
ccad214de8721aa9b499ef70cd39966f18bceb76
[ "MIT" ]
null
null
null
pyIsoDep/functions/batemansolvers.py
MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
ccad214de8721aa9b499ef70cd39966f18bceb76
[ "MIT" ]
null
null
null
pyIsoDep/functions/batemansolvers.py
MattKrecicki/PYTHON-ISOTOPIC-DEPLETION-PACKAGE
ccad214de8721aa9b499ef70cd39966f18bceb76
[ "MIT" ]
null
null
null
"""batemansolvers Three solvers are enabled here to solve the Bateman equations: (1) ODEINT solver ----------------- Integrate a system of ordinary differential equations (2) EXPM solver --------------- Compute the matrix exponential using Pade approximation (3) CRAM solver --------------- CHBV computes the direct a...
33.823529
79
0.646957
21d9ad5c2feeca2ae723d9f542826371a85778ee
53,232
py
Python
gym_electric_motor/physical_systems/electric_motors.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
gym_electric_motor/physical_systems/electric_motors.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
gym_electric_motor/physical_systems/electric_motors.py
zizai/gym-electric-motor
48a0232edf3474e441453126df0f52dc391aed11
[ "MIT" ]
null
null
null
import numpy as np import math class ElectricMotor: """ Base class for all technical electrical motor models. A motor consists of the ode-state. These are the dynamic quantities of its ODE. For example: ODE-State of a DC-shunt motor: `` [i_a, i_e ] `` ...
45.30383
121
0.471333
21d9d9dea82ce9142810ec0edaeea2ff9d4b7a61
18,400
py
Python
test/content_parser_test.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
3
2018-01-09T05:58:21.000Z
2021-07-15T13:18:10.000Z
test/content_parser_test.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
14
2018-01-17T06:19:48.000Z
2022-02-12T02:29:14.000Z
test/content_parser_test.py
foxty/node-monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
null
null
null
import unittest import model import content_parser from datetime import datetime class ContentParserTest(unittest.TestCase): def test_parse_w_solaris(self): ctime = datetime.now() r = content_parser.parse_w('2', ctime, content=''' 9:11pm up 43 day(s), 8:52, 11 user, load average: 2.3...
51.396648
166
0.525272
21d9e43f4bd95fbe4213dec28105a98d54779c18
1,410
py
Python
test.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2018-03-16T09:56:23.000Z
2018-03-16T09:56:23.000Z
test.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
test.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
import os import re from django.conf import settings from os import listdir from os.path import isfile, join def get_upload_dir(directory): directory_abs = os.path.join(settings.PROJECT_ROOT, directory) user_dir = os.path.dirname(directory_abs) dirname = os.path.basename(directory_abs) dirlist = elistdi...
34.390244
81
0.621986
21da5b881fa5c9f7d8b6f64e24516634729f23ea
10,132
py
Python
nylon/preprocessing/preprocessing_methods.py
admariner/nylon
a66cc594b83f50bcc38bd199382755ffbc99cfb8
[ "MIT" ]
80
2021-06-14T15:30:17.000Z
2022-01-27T03:56:43.000Z
nylon/preprocessing/preprocessing_methods.py
admariner/nylon
a66cc594b83f50bcc38bd199382755ffbc99cfb8
[ "MIT" ]
24
2021-06-14T17:29:27.000Z
2021-08-09T14:43:40.000Z
nylon/preprocessing/preprocessing_methods.py
admariner/nylon
a66cc594b83f50bcc38bd199382755ffbc99cfb8
[ "MIT" ]
10
2021-06-21T16:30:44.000Z
2021-07-17T12:48:32.000Z
from pandas.api.types import is_numeric_dtype import numpy as np import pandas as pd from sklearn.compose import ColumnTransformer from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.pipeline import Pipeline from nltk.stem import WordNetLemmatizer from nltk.tokenize import word_tokenize from nltk...
30.244776
105
0.579254
21da67f35eed41abaf15dac4b2c51eccfb50ee68
2,186
py
Python
python/test/test_entity_type_collection.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/test/test_entity_type_collection.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/test/test_entity_type_collection.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import openlattice from openlat...
30.361111
96
0.567246
21da99425b0a8fffd5331494ba940cd488fd8072
1,331
py
Python
angrmanagement/ui/widgets/qaddress_input.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
2
2022-01-23T21:43:54.000Z
2022-02-02T08:20:20.000Z
angrmanagement/ui/widgets/qaddress_input.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
1
2021-12-04T01:11:46.000Z
2021-12-04T01:11:46.000Z
angrmanagement/ui/widgets/qaddress_input.py
Kyle-Kyle/angr-management
6ea65f19d813be510a38f06510b2b2148a6b5000
[ "BSD-2-Clause" ]
1
2021-05-17T05:46:19.000Z
2021-05-17T05:46:19.000Z
from PySide2.QtWidgets import QLineEdit class QAddressInput(QLineEdit): def __init__(self, textchanged_callback, workspace, parent=None, default=None): super(QAddressInput, self).__init__(parent) self.workspace = workspace if default is not None: self.setText(str(default)) ...
26.62
83
0.621337
21dadc2039e849ce92973e40f6b2e362d81a592c
3,089
py
Python
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_task_properties_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
44.768116
120
0.662674
21dae4cacc78a14e481371efd82d9f7cbd4243d4
6,485
py
Python
scripts/db_migrations.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
scripts/db_migrations.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
scripts/db_migrations.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 from datetime import datetime import os from azure.cosmos.cosmos_client import CosmosClient from azure.mgmt.cosmosdb import CosmosDBManagementClient from azure.cosmos import PartitionKey from azure.identity import DefaultAzureCredential import json import semantic_version import uuid STATE_ST...
47.335766
176
0.6734
21db158d62900a5fd0cf2eea3ef4afb7b9249f50
1,370
py
Python
HW6/q1.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW6/q1.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
HW6/q1.py
sina-moammar/2020-Fall-Computational-Physics
f03e95b0a97022b628175fd06c301aecfdcf60af
[ "MIT" ]
null
null
null
import numpy as np import networkx as nx import matplotlib.pyplot as plt def analyse_erdos_renyi(n, k_mean): m = int(k_mean * n / 2) graph = nx.gnm_random_graph(n, m) degrees = np.zeros(graph.number_of_nodes()) for node_index, node_degree in nx.degree(graph): degrees[node_index] = node_degre...
29.148936
84
0.652555
21db4e1411348721d4ee5e2bda8eaa251dd62798
7,088
py
Python
src/color_functions.py
AgentElement/mandelbrot-set
7618f83312ebfcf6284ca0ea8f6bd238b782c4cb
[ "MIT" ]
10
2019-03-16T18:50:10.000Z
2022-03-24T19:03:54.000Z
src/color_functions.py
AgentElement/mandelbrot-set
7618f83312ebfcf6284ca0ea8f6bd238b782c4cb
[ "MIT" ]
1
2019-05-10T16:36:59.000Z
2019-05-10T18:37:09.000Z
src/color_functions.py
AgentElement/mandelbrot-set
7618f83312ebfcf6284ca0ea8f6bd238b782c4cb
[ "MIT" ]
null
null
null
# Copyright (c) 2019 AgentElement import numpy as np from PIL import Image from numba import jit import matplotlib.pyplot as plt import colorsys ################################################################################ # MAIN COLOR FUNCTIONS ###################################################################...
30.161702
117
0.618228
21db5102d91180bce020259d13505f6a83e5ea32
269
py
Python
karison/__init__.py
AnClark/Karison
b3cbb887204198dc7b07bc66312cac78f40d7cfe
[ "MIT" ]
null
null
null
karison/__init__.py
AnClark/Karison
b3cbb887204198dc7b07bc66312cac78f40d7cfe
[ "MIT" ]
null
null
null
karison/__init__.py
AnClark/Karison
b3cbb887204198dc7b07bc66312cac78f40d7cfe
[ "MIT" ]
null
null
null
""" __init__.py - Mark that karison is a package """ import sys """ Version code """ VERSION = (0, 0, 1) def gen_version_str(): v = "" for i in VERSION: v += str(i) v += "." return v[:len(v) - 1] """ Global variables """ args = None
9.962963
44
0.513011