hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b88d191d44659fedfa1724903ef9f36e23ddc26c
37,153
py
Python
src/ezdxf/path/converter.py
Gmadges/ezdxf
ad4f8329cfb75035ffff94f8529a4d79269ddfc9
[ "MIT" ]
null
null
null
src/ezdxf/path/converter.py
Gmadges/ezdxf
ad4f8329cfb75035ffff94f8529a4d79269ddfc9
[ "MIT" ]
null
null
null
src/ezdxf/path/converter.py
Gmadges/ezdxf
ad4f8329cfb75035ffff94f8529a4d79269ddfc9
[ "MIT" ]
null
null
null
# Copyright (c) 2020-2021, Manfred Moitzi # License: MIT License from typing import ( List, Iterable, Union, Tuple, Optional, Dict, Callable, Type, TypeVar, ) from functools import singledispatch, partial import enum from ezdxf.math import ( ABS_TOL, Vec2, Vec3, NULLV...
31.090377
94
0.630797
5d85367c0eaaa71de4f4fcc6573f2d8f1c9dcad9
60,034
py
Python
neon/backends/kernels/cuda/pooling.py
theGreenJedi/neon
b85ba0fbbb0458d8a8599e5ead335959b10318c1
[ "Apache-2.0" ]
null
null
null
neon/backends/kernels/cuda/pooling.py
theGreenJedi/neon
b85ba0fbbb0458d8a8599e5ead335959b10318c1
[ "Apache-2.0" ]
3
2021-06-08T23:56:39.000Z
2022-03-12T00:56:34.000Z
neon/backends/kernels/cuda/pooling.py
theGreenJedi/neon
b85ba0fbbb0458d8a8599e5ead335959b10318c1
[ "Apache-2.0" ]
null
null
null
from builtins import str from pycuda.tools import context_dependent_memoize from neon.backends import cuda_templates from neon.backends.cuda_templates import (_common_fp16_to_fp32, _common_round, # for fp32_to_fp16 converter _common_m...
32.12092
195
0.53583
f618417307c569b27304e354ce7a8d4e6050cf30
502
py
Python
os_v4_hek/defs/scen.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
os_v4_hek/defs/scen.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
os_v4_hek/defs/scen.py
holy-crust/reclaimer
0aa693da3866ce7999c68d5f71f31a9c932cdb2c
[ "MIT" ]
null
null
null
from ...os_v3_hek.defs.scen import * #import and use the open saucified obje attrs from .obje import * # replace the object_type enum one that uses # the correct default value for this object obje_attrs = dict(obje_attrs) obje_attrs[0] = dict(obje_attrs[0], DEFAULT=6) scen_body = dict(scen_body) scen_body...
21.826087
48
0.679283
dfe86cb702da5b47af6427112e5820e424f46667
6,800
py
Python
test/integration/test_profiles.py
raddessi/napalm-yang
19bbd6549b1343fd3b6b319d68f8fdcb835d91f9
[ "Apache-2.0" ]
64
2016-10-20T15:47:18.000Z
2021-11-11T11:57:32.000Z
test/integration/test_profiles.py
raddessi/napalm-yang
19bbd6549b1343fd3b6b319d68f8fdcb835d91f9
[ "Apache-2.0" ]
126
2016-10-05T10:36:14.000Z
2019-05-15T08:43:23.000Z
test/integration/test_profiles.py
raddessi/napalm-yang
19bbd6549b1343fd3b6b319d68f8fdcb835d91f9
[ "Apache-2.0" ]
63
2016-11-07T15:23:08.000Z
2021-09-22T14:41:16.000Z
from __future__ import unicode_literals from collections import OrderedDict # from napalm.base import get_network_driver import napalm_yang from napalm.base.mock import MockDriver import pytest import json import os # napalm_yang.helpers.config_logging() device_configuration = { "junos": { "host...
34
88
0.633088
b030916d68ea17ffc084001ce208a515ea643143
2,980
py
Python
fastcounting/queries.py
elcolumbio/fastcounting
50da69602c08e23ccd8df70424590da268d53989
[ "Apache-2.0" ]
1
2020-04-08T22:40:21.000Z
2020-04-08T22:40:21.000Z
fastcounting/queries.py
elcolumbio/fastcounting
50da69602c08e23ccd8df70424590da268d53989
[ "Apache-2.0" ]
null
null
null
fastcounting/queries.py
elcolumbio/fastcounting
50da69602c08e23ccd8df70424590da268d53989
[ "Apache-2.0" ]
null
null
null
"""Queries and data processing classes you can use or get inspired by.""" import datetime as dt import numpy as np import pandas as pd import redis from fastcounting import helper, views r = redis.Redis(**helper.Helper().rediscred, decode_responses=True) def stream_to_dataframe(streamdata): """Parse List of tup...
36.341463
104
0.666779
5dd66a50fbeb096fdc2b0b6e70074208ecbbbe9c
6,773
py
Python
tests/test_data.py
egilbertson-ucsf/basenji
3d06ec0f5e12f7c5c4be8dfd17efdad3feefd68f
[ "Apache-2.0" ]
232
2017-07-10T23:33:09.000Z
2022-03-28T21:43:12.000Z
tests/test_data.py
vaalessi/basenji
52dc3dbd53aa12f482041007236e89ef94f48cb4
[ "Apache-2.0" ]
88
2017-07-12T22:32:17.000Z
2022-03-29T17:40:03.000Z
tests/test_data.py
vaalessi/basenji
52dc3dbd53aa12f482041007236e89ef94f48cb4
[ "Apache-2.0" ]
107
2017-07-11T02:11:28.000Z
2022-03-23T17:05:15.000Z
#!/usr/bin/env python # Copyright 2017 Calico 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 ...
30.926941
80
0.648752
a78f6a3a7f067272c8df264eb81d774a45c6c26d
319
py
Python
tests/perf/test-array-write.py
wenq1/duktape
5ed3eee19b291f3b3de0b212cc62c0aba0ab4ecb
[ "MIT" ]
4,268
2015-01-01T17:33:40.000Z
2022-03-31T17:53:31.000Z
tests/perf/test-array-write.py
KiraanRK/esp32-duktape
1b7fbcb8bd6bfc346d92df30ec099df7f13b03aa
[ "MIT" ]
1,667
2015-01-01T22:43:03.000Z
2022-02-23T22:27:19.000Z
tests/perf/test-array-write.py
KiraanRK/esp32-duktape
1b7fbcb8bd6bfc346d92df30ec099df7f13b03aa
[ "MIT" ]
565
2015-01-08T14:15:28.000Z
2022-03-31T16:29:31.000Z
def test(): arr = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]; i = 0 while i < 1e7: arr[7] = 234 arr[7] = 234 arr[7] = 234 arr[7] = 234 arr[7] = 234 arr[7] = 234 arr[7] = 234 arr[7] = 234 arr[7] = 234 arr[7] = 234 i += 1 test()
17.722222
44
0.338558
33fb46d255e1fa743db00e7be8cad82dbb463c83
748
py
Python
cassandra/physics/integrators.py
Popeyef5/Cassandra
ed33e72b4a7256a711a5a4c5138deb0526edc6ec
[ "MIT" ]
3
2021-03-24T17:17:12.000Z
2021-03-28T00:25:07.000Z
cassandra/physics/integrators.py
Popeyef5/Cassandra
ed33e72b4a7256a711a5a4c5138deb0526edc6ec
[ "MIT" ]
null
null
null
cassandra/physics/integrators.py
Popeyef5/Cassandra
ed33e72b4a7256a711a5a4c5138deb0526edc6ec
[ "MIT" ]
null
null
null
class Integrator: """ Base class for numerical integrators. """ def step(self, y, f, h, **kwargs): raise NotImplementedError class Euler(Integrator): """ Euler integration method. For more information check out https://en.wikipedia.org/wiki/Euler_method. """ def step(self, y, f, h, **kwargs): ...
24.129032
91
0.596257
407922f01f042a575f6b3066cf471f39e56313a9
8,307
py
Python
experiments/crude_oil.py
wesselb/gpcm
91a9d0935688501127c733ee47283b3ca60f5e92
[ "MIT" ]
2
2020-12-16T11:00:49.000Z
2021-04-19T11:54:00.000Z
experiments/crude_oil.py
wesselb/gpcm
91a9d0935688501127c733ee47283b3ca60f5e92
[ "MIT" ]
null
null
null
experiments/crude_oil.py
wesselb/gpcm
91a9d0935688501127c733ee47283b3ca60f5e92
[ "MIT" ]
1
2021-01-26T08:28:07.000Z
2021-01-26T08:28:07.000Z
import argparse from datetime import datetime, timedelta import lab as B import matplotlib.pyplot as plt import numpy as np import wbml.metric as metric import wbml.out as out from matplotlib.patches import Ellipse from probmods.bijection import Normaliser from slugify import slugify from wbml.data import date_to_deci...
29.881295
87
0.635007
65ac6c6dc3f1637fb955bdd485581c27a16a80fd
2,771
py
Python
eoxserver/services/ows/wps/parameters/crs.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
1
2017-11-21T22:23:30.000Z
2017-11-21T22:23:30.000Z
eoxserver/services/ows/wps/parameters/crs.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
eoxserver/services/ows/wps/parameters/crs.py
constantinius/eoxserver_combined
68f261133fed65a4e8a6ddba82b0d2845171e4bf
[ "OML" ]
null
null
null
#------------------------------------------------------------------------------- # # CRS data type. # # Project: EOxServer <http://eoxserver.org> # Authors: Martin Paces <martin.paces@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2014 EOX IT Services GmbH # ...
38.486111
83
0.620354
5022b598b7af2a6a635af1a99d6858fbfec5bf87
2,310
py
Python
sklvq/distances/_base.py
rickvanveen/LVQLib
4fba52a14ed37b0444becb96ef09c40d38d263ff
[ "BSD-3-Clause" ]
44
2020-10-21T19:54:29.000Z
2022-03-23T15:43:52.000Z
sklvq/distances/_base.py
rickvanveen/LVQLib
4fba52a14ed37b0444becb96ef09c40d38d263ff
[ "BSD-3-Clause" ]
40
2020-10-30T13:34:23.000Z
2021-06-30T09:32:59.000Z
sklvq/distances/_base.py
rickvanveen/LVQLib
4fba52a14ed37b0444becb96ef09c40d38d263ff
[ "BSD-3-Clause" ]
5
2021-03-15T13:10:03.000Z
2021-06-22T16:32:38.000Z
from abc import ABC, abstractmethod from typing import TYPE_CHECKING import numpy as np if TYPE_CHECKING: from ..models import LVQBaseClass class DistanceBaseClass(ABC): """Distance base class Abstract class for implementing distance functions. It provides abstract methods with expected call signat...
33.478261
98
0.659307
4bffc766dc08dd00f90f69e4753bc39ef0d00c31
777
py
Python
t_speech_assisstant/venv/lib/python3.7/site-packages/GameplayKit/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2020-09-01T16:24:50.000Z
2020-09-01T16:24:50.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/GameplayKit/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2021-01-28T20:40:19.000Z
2021-01-28T20:40:19.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/GameplayKit/__init__.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
null
null
null
""" Python mapping for the GameplayKit framework. This module does not contain docstrings for the wrapped code, check Apple's documentation for details on how to use these functions and classes. """ import objc import sys import Cocoa import SpriteKit from GameplayKit import _metadata from GameplayKit._GameplayKit i...
22.2
78
0.707851
35820550b559f3be2da806bfceec760ffac8ffbb
1,436
py
Python
ScrumSaga/Account.py
IMTorgCustomSoln/SS-API-Wrapper
5fba41cac443b559fe579f798a62394db53c5080
[ "MIT" ]
null
null
null
ScrumSaga/Account.py
IMTorgCustomSoln/SS-API-Wrapper
5fba41cac443b559fe579f798a62394db53c5080
[ "MIT" ]
null
null
null
ScrumSaga/Account.py
IMTorgCustomSoln/SS-API-Wrapper
5fba41cac443b559fe579f798a62394db53c5080
[ "MIT" ]
null
null
null
import requests class Account: """ conainer for user account data """ __URL = "http://api.scrumsaga.com/v1" __pathLogin = "/login" __pathViewData = "/acctData" __pathViewDiagram = "/acctDiagram" __pathUpdateData = "/acctDataUpdate" __pathRmData = "/acctDataRm" __pathViewLicense = "/acc...
29.916667
74
0.571727
78a58d7165d4a166fbf3ca7249bd73f09f19f2f8
3,081
py
Python
filer/templatetags/filer_image_tags.py
maykinmedia/django-filer
1b7c6b16f7fb19d89f9bd9df624d2de666837b67
[ "BSD-3-Clause" ]
1
2015-03-03T15:49:14.000Z
2015-03-03T15:49:14.000Z
filer/templatetags/filer_image_tags.py
maykinmedia/django-filer
1b7c6b16f7fb19d89f9bd9df624d2de666837b67
[ "BSD-3-Clause" ]
10
2015-04-08T14:16:52.000Z
2021-12-15T16:17:57.000Z
filer/templatetags/filer_image_tags.py
maykinmedia/django-filer
1b7c6b16f7fb19d89f9bd9df624d2de666837b67
[ "BSD-3-Clause" ]
null
null
null
#-*- coding: utf-8 -*- from django.template import Library import re register = Library() RE_SIZE = re.compile(r'(\d+)x(\d+)$') def _recalculate_size(size, index, divisor=0, padding=0, keep_aspect_ratio=False): new_one = size[index] if divisor: new_one = new_one / float(divisor...
29.912621
77
0.673483
004b2034b19f71e02e8221ed2d352c5729b272f9
815
py
Python
tbone/resources/authentication.py
tbone-framework/tbone
5a6672d8bbac449a0ab9e99560609f671fe84d4d
[ "MIT" ]
37
2017-09-27T10:34:15.000Z
2019-11-21T22:57:07.000Z
tbone/resources/authentication.py
tbone-framework/tbone
5a6672d8bbac449a0ab9e99560609f671fe84d4d
[ "MIT" ]
9
2017-10-01T10:24:18.000Z
2018-12-30T15:51:33.000Z
tbone/resources/authentication.py
tbone-framework/tbone
5a6672d8bbac449a0ab9e99560609f671fe84d4d
[ "MIT" ]
3
2017-10-03T12:28:51.000Z
2017-10-16T19:43:25.000Z
#!/usr/bin/env python # encoding: utf-8 class NoAuthentication(object): ''' Base class for all authentication methods. Used as the default for all resouces. This is a no-op authenttication class which always returns ``True`` ''' async def is_authenticated(self, request): ''' Th...
30.185185
126
0.666258
c774575b526a708c097016c5b4c7c35f340df729
1,694
py
Python
Modulo/Programa_Principal/Arquivo/__init__.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Modulo/Programa_Principal/Arquivo/__init__.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Modulo/Programa_Principal/Arquivo/__init__.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
from Programa_Principal.Interface import * def Arqexiste(nome): try: a = open(nome, 'rt') a.close() except FileNotFoundError: return False else: return True def CriarArquivo(nome): try: a = open(nome, 'wt+') a.close() except: print('Houve um...
22.891892
64
0.494097
d79cbc03cbc0074f6ecfeb6bcc58720209eba14a
1,893
py
Python
backend/config.py
sambacha/graphql-fastapi-boilerplate
b928c86038dddd2b78c98fae6de16ee1b050bcff
[ "MIT" ]
null
null
null
backend/config.py
sambacha/graphql-fastapi-boilerplate
b928c86038dddd2b78c98fae6de16ee1b050bcff
[ "MIT" ]
null
null
null
backend/config.py
sambacha/graphql-fastapi-boilerplate
b928c86038dddd2b78c98fae6de16ee1b050bcff
[ "MIT" ]
null
null
null
import os from pathlib import Path from typing import Literal, Optional, cast import sentry_sdk from dynaconf import Dynaconf from pydantic import BaseModel, HttpUrl, PositiveInt, RedisDsn, StrictStr APP_ENV = Literal["development", "testing", "production"] PROJECT_ROOT = Path(__file__).parent.parent class CacheCon...
24.907895
78
0.717908
6d24b929393a651eb0d99a807243b40d040a23aa
6,110
py
Python
tests/core/test_commands.py
vanessa/djangogirls
e56423ceda172858147dfa7006353f23264d4c67
[ "BSD-3-Clause" ]
null
null
null
tests/core/test_commands.py
vanessa/djangogirls
e56423ceda172858147dfa7006353f23264d4c67
[ "BSD-3-Clause" ]
null
null
null
tests/core/test_commands.py
vanessa/djangogirls
e56423ceda172858147dfa7006353f23264d4c67
[ "BSD-3-Clause" ]
null
null
null
import random from datetime import date from unittest import mock import pytest import vcr from click.testing import CliRunner from django.core.management import call_command from core.management.commands.add_organizer import command as add_organizer from core.management.commands.copy_event import command as copy_eve...
29.95098
78
0.691162
6f4392b5380b7b54058b11c2d04fed60994aca6c
2,140
py
Python
src/tests/test_openmmio.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
1
2019-09-19T17:40:21.000Z
2019-09-19T17:40:21.000Z
src/tests/test_openmmio.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
6
2021-07-20T00:07:12.000Z
2022-01-14T16:39:25.000Z
src/tests/test_openmmio.py
bieniekmateusz/forcebalance
593791866e622ab4eae23ce29a0bed27499a118d
[ "BSD-3-Clause" ]
1
2021-05-18T12:57:41.000Z
2021-05-18T12:57:41.000Z
from __future__ import absolute_import import forcebalance import shutil from .test_target import TargetTests # general targets tests defined in test_target.py import pytest """ The testing functions for this class are located in test_target.py. """ class TestLiquid_OpenMM(TargetTests): def setup_method(self, metho...
35.081967
99
0.627103
243d39729b3665b775dfdff6a8b674d934cdb2bc
992
py
Python
auto_tweet.py
pipinstallyogi/Basic_scripts
486b66e02601abf8eab1b2ef42ae836615c23a77
[ "MIT" ]
null
null
null
auto_tweet.py
pipinstallyogi/Basic_scripts
486b66e02601abf8eab1b2ef42ae836615c23a77
[ "MIT" ]
null
null
null
auto_tweet.py
pipinstallyogi/Basic_scripts
486b66e02601abf8eab1b2ef42ae836615c23a77
[ "MIT" ]
null
null
null
from selenium import webdriver from getpass import getpass from time import sleep usr = input("Enter your username or Email: ") pwd = getpass("Enter your password: ") #getpass() will help your password remain hidden msg = input("Please enter your tweet: ") driver =webdriver.Firefox() # or Firefox() if using firefox d...
35.428571
117
0.799395
6a881f828aa857a003b5d31378fb7757f01af21a
5,031
py
Python
operators/azure-service-operator/python/pulumi_pulumi_kubernetes_crds_operators_azure_service_operator/azure/v1alpha1/AzureNetworkInterface.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/azure-service-operator/python/pulumi_pulumi_kubernetes_crds_operators_azure_service_operator/azure/v1alpha1/AzureNetworkInterface.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/azure-service-operator/python/pulumi_pulumi_kubernetes_crds_operators_azure_service_operator/azure/v1alpha1/AzureNetworkInterface.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outp...
41.925
175
0.665474
ade22b72ada9b9c3f4611f52dc33e95efe01748a
25,695
py
Python
python/pycml/validator.py
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/pycml/validator.py
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
python/pycml/validator.py
DGermano8/ChasteDom
539a3a811698214c0938489b0cfdffd1abccf667
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Copyright (c) 2005-2018, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in s...
38.179792
108
0.594007
c0fe518fc476f10c0e29039e54471a747ec32348
5,480
py
Python
insights/combiners/tests/test_nmcli_dev_show.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
121
2017-05-30T20:23:25.000Z
2022-03-23T12:52:15.000Z
insights/combiners/tests/test_nmcli_dev_show.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
1,977
2017-05-26T14:36:03.000Z
2022-03-31T10:38:53.000Z
insights/combiners/tests/test_nmcli_dev_show.py
lhuett/insights-core
1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8
[ "Apache-2.0" ]
244
2017-05-30T20:22:57.000Z
2022-03-26T10:09:39.000Z
from insights.tests import context_wrap from insights.combiners.nmcli_dev_show import AllNmcliDevShow from insights.combiners import nmcli_dev_show from insights.parsers.nmcli import NmcliDevShow import doctest NMCLI_SHOW1 = """ GENERAL.DEVICE: eth0 GENERAL.TYPE: ether...
48.495575
99
0.495255
8c93160a125088533783aec9d5b3ea28bf2d2daa
4,124
py
Python
scripts/busybox-ping-test/container_ops.py
kiran1048/alcor
786fdcf7b225588080eb8f907855024eba37f2e2
[ "MIT" ]
null
null
null
scripts/busybox-ping-test/container_ops.py
kiran1048/alcor
786fdcf7b225588080eb8f907855024eba37f2e2
[ "MIT" ]
null
null
null
scripts/busybox-ping-test/container_ops.py
kiran1048/alcor
786fdcf7b225588080eb8f907855024eba37f2e2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # MIT License # Copyright(c) 2020 Futurewei Cloud # 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, cop...
45.318681
127
0.693501
ef9c722c2b3ecc4aa9cff2c90db4e8ddd2ad3ff8
11,397
py
Python
gmeterpy/core/relative.py
ioshchepkov/gmeterpy
594cf7c15193ae86b98c9474259843eeadc04f5b
[ "MIT" ]
null
null
null
gmeterpy/core/relative.py
ioshchepkov/gmeterpy
594cf7c15193ae86b98c9474259843eeadc04f5b
[ "MIT" ]
null
null
null
gmeterpy/core/relative.py
ioshchepkov/gmeterpy
594cf7c15193ae86b98c9474259843eeadc04f5b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from copy import deepcopy import numpy as np import pandas as pd import networkx as nx import statsmodels.formula.api as smf import statsmodels.api as sm from scipy.cluster.vq import kmeans, whiten, vq from gmeterpy.core.readings import Readings from gm...
30.719677
79
0.554444
3f09bd405c6a98a1c1bca5bb330ff32035d58b21
9,254
py
Python
rootfs/api/migrations/0001_initial.py
aledbf/deis-workflow
c371950f79583d60f0f17adada44a18e5fccbb0d
[ "Apache-2.0" ]
null
null
null
rootfs/api/migrations/0001_initial.py
aledbf/deis-workflow
c371950f79583d60f0f17adada44a18e5fccbb0d
[ "Apache-2.0" ]
null
null
null
rootfs/api/migrations/0001_initial.py
aledbf/deis-workflow
c371950f79583d60f0f17adada44a18e5fccbb0d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models, migrations import jsonfield.fields import api.models import api.fields from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ ...
45.811881
174
0.543116
298f3cf9d97d3645eadd2e39c02b07df9a1b514d
3,792
py
Python
p_mine/interface.py
The-chosen/MAPF-combination-decentralize-centralize
9f0641cc9408091054ba386d13fce575214b7315
[ "MIT" ]
null
null
null
p_mine/interface.py
The-chosen/MAPF-combination-decentralize-centralize
9f0641cc9408091054ba386d13fce575214b7315
[ "MIT" ]
null
null
null
p_mine/interface.py
The-chosen/MAPF-combination-decentralize-centralize
9f0641cc9408091054ba386d13fce575214b7315
[ "MIT" ]
null
null
null
import socket import json import time import sys from pynput import keyboard class PiRobot: def __init__(self,rid,ip): self.ip = ip self.rid = rid # self.ip = '192.168.3.2' self.in_port = 4999 #into the robot self.out_port = 4999 #outof the robot def send_message(self,d...
26.893617
69
0.505274
22dc3b44249702695ef8790823fa816c89a1673c
748
py
Python
osc_bge/branch/migrations/0003_auto_20181206_0826.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
osc_bge/branch/migrations/0003_auto_20181206_0826.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
5
2020-06-05T19:49:47.000Z
2021-09-08T00:50:55.000Z
osc_bge/branch/migrations/0003_auto_20181206_0826.py
jisuhan3201/osc-bge
125c441d23d7f1fdb2d9b8f42f859082e757e25a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.9 on 2018-12-06 08:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('branch', '0002_auto_20181205_1244'), ] operations = [ migrations.AlterField( model_name='hostfa...
29.92
136
0.644385
0c8eb00a08508942cdfe0be702dbb47eb026b654
1,171
py
Python
postCodeHelper.py
sycomix/identityGenerator
50644fa77cec314f79f51e19d5fe4134753cf914
[ "Unlicense" ]
1
2021-05-12T18:47:47.000Z
2021-05-12T18:47:47.000Z
postCodeHelper.py
sycomix/identityGenerator
50644fa77cec314f79f51e19d5fe4134753cf914
[ "Unlicense" ]
null
null
null
postCodeHelper.py
sycomix/identityGenerator
50644fa77cec314f79f51e19d5fe4134753cf914
[ "Unlicense" ]
1
2020-12-09T06:40:02.000Z
2020-12-09T06:40:02.000Z
import requests from bs4 import BeautifulSoup from infoCrawler import requestAssistant as ra class PostCodeHelper: def __init__(self): self.baseUrl = "https://worldpostalcode.com/lookup" self.rhg = ra.RequestHeaderGenerator() def getPostcode(self, city): print(city) try: ...
29.275
108
0.620837
d3d2c4214cfd8ec5bd6ef24d74b53e44f51f2a4d
620
py
Python
documents/vocabulary.py
minhdua/my-vocabulary
cf9788b3a4d91089895275c7014a72b34c471277
[ "Apache-2.0" ]
null
null
null
documents/vocabulary.py
minhdua/my-vocabulary
cf9788b3a4d91089895275c7014a72b34c471277
[ "Apache-2.0" ]
null
null
null
documents/vocabulary.py
minhdua/my-vocabulary
cf9788b3a4d91089895275c7014a72b34c471277
[ "Apache-2.0" ]
null
null
null
from documents.base_models import AuditEntity from constants.enums.languages import Language from constants.enums.word_form import WordForm from documents.typing import Typing class Vocabulary(AuditEntity): def __init__(self, kwargs={}): self.word = kwargs.pop('word', '').lower() self.translations...
36.470588
60
0.679032
01d37d7a89804e774aebc22b8ad25f8885640afe
3,861
py
Python
source/etl_script/ods_alter_mysql.py
chinasonglei/data-etl-sloth
e00ce6129b49b5f48fb0c657b244c6010b733bfc
[ "Apache-2.0" ]
10
2019-07-15T04:21:48.000Z
2021-11-05T08:21:56.000Z
source/etl_script/ods_alter_mysql.py
chinasonglei/data-etl-sloth
e00ce6129b49b5f48fb0c657b244c6010b733bfc
[ "Apache-2.0" ]
1
2019-07-16T09:44:00.000Z
2019-08-01T14:35:55.000Z
source/etl_script/ods_alter_mysql.py
chinasonglei/data-etl-sloth
e00ce6129b49b5f48fb0c657b244c6010b733bfc
[ "Apache-2.0" ]
8
2019-08-20T11:00:14.000Z
2022-01-07T07:51:01.000Z
import re import pandas as pd import traceback import io # 类型转换 def type_conversion(type_name, type_dict, source,target): # type_name = "timestamp" parttern = re.compile(r"[a-z]+", re.I) # 匹配英文 # 匹配字典中类型映射 type_name_in_hive = type_dict[type_dict[source]==parttern.match(type_name).group(0)][target]...
47.666667
357
0.630666
8958c466f55ac6106e478176ce9d9b22e7033274
4,858
py
Python
model-optimizer/mo/ops/strided_slice.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
model-optimizer/mo/ops/strided_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
model-optimizer/mo/ops/strided_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from typing import List, Tuple import numpy as np from mo.front.common.partial_infer.utils import get_shape_from_slice, dynamic_dimension, dynamic_dimension_value, \ is_dynamic_slice from mo.graph.graph import Node, Graph from mo.o...
42.614035
116
0.619802
91c50da13a85b0f39a9f325452add81fb0b18b80
572
py
Python
tests/test_experiment_class.py
JoranAngevaare/dddm
3461e37984bac4d850beafecc9d1881b84fb226c
[ "MIT" ]
null
null
null
tests/test_experiment_class.py
JoranAngevaare/dddm
3461e37984bac4d850beafecc9d1881b84fb226c
[ "MIT" ]
85
2021-09-20T12:08:53.000Z
2022-03-30T12:48:06.000Z
tests/test_experiment_class.py
JoranAngevaare/dddm
3461e37984bac4d850beafecc9d1881b84fb226c
[ "MIT" ]
null
null
null
from unittest import TestCase import dddm class TestExperimentClass(TestCase): """See if we can init the Experiment class as we expect""" def test_dummy_init(self): class DummyExperiment(dddm.Experiment): pass dummy_experiment = DummyExperiment() # dummy_experiment._check...
26
62
0.681818
cf9b488558d72983aa2779d60cf80a481a5470b5
4,431
py
Python
tests/test_catalog.py
r4co0n/django-shop
69cbddba27066568920cce177511c95824bfe45b
[ "BSD-3-Clause" ]
null
null
null
tests/test_catalog.py
r4co0n/django-shop
69cbddba27066568920cce177511c95824bfe45b
[ "BSD-3-Clause" ]
5
2021-03-19T16:04:13.000Z
2022-01-13T03:35:33.000Z
tests/test_catalog.py
r4co0n/django-shop
69cbddba27066568920cce177511c95824bfe45b
[ "BSD-3-Clause" ]
1
2020-07-06T05:06:05.000Z
2020-07-06T05:06:05.000Z
# -*- coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AnonymousUser from django.urls import reverse from django.utils import six from shop.models.cart import CartModel, CartItemModel from shop.models.customer import CustomerModel from shop.views.catalog import ProductListVi...
39.212389
93
0.728504
9a860ea480c8d892ad17fc17ee76280b7c4a11be
571
py
Python
semester-6/data-mining/rules1.py
saranshbht/bsc-codes
7386c09cc986de9c84947f7dea7db3dc42219a35
[ "MIT" ]
3
2021-03-22T12:07:14.000Z
2021-08-30T17:28:23.000Z
semester-6/data-mining/rules1.py
saranshbht/bsc-codes
7386c09cc986de9c84947f7dea7db3dc42219a35
[ "MIT" ]
null
null
null
semester-6/data-mining/rules1.py
saranshbht/bsc-codes
7386c09cc986de9c84947f7dea7db3dc42219a35
[ "MIT" ]
null
null
null
def rule1(dataset): return (dataset['Age'] >= 0) & (dataset['Age'] <= 150) def rule2(dataset): return dataset['Age'] > dataset['yearsmarried'] def rule3(dataset): return (dataset['status'] == 'married') | (dataset['status'] == 'single') | (dataset['status'] == 'widowed') def rule4(dataset): a = datas...
38.066667
112
0.593695
95a7d664517c247a19dc557bfc06398808ee1693
16,039
py
Python
gym_collision_avoidance/envs/visualize.py
meghdeepj/Social-Navigation-Simulator
806d304081bf5ff4fc7a0a58defb050627375865
[ "MIT" ]
3
2021-12-16T05:39:14.000Z
2022-02-25T06:07:51.000Z
gym_collision_avoidance/envs/visualize.py
meghdeepj/Social-Navigation-Simulator
806d304081bf5ff4fc7a0a58defb050627375865
[ "MIT" ]
null
null
null
gym_collision_avoidance/envs/visualize.py
meghdeepj/Social-Navigation-Simulator
806d304081bf5ff4fc7a0a58defb050627375865
[ "MIT" ]
1
2021-11-09T18:04:01.000Z
2021-11-09T18:04:01.000Z
import numpy as np from gym_collision_avoidance.envs.util import find_nearest, rgba2rgb from sys import platform if platform == "darwin": import matplotlib as mpl mpl.use('TkAgg') import matplotlib.pyplot as plt import matplotlib matplotlib.use('TkAgg') import os import matplotlib.patches as ptch from matplot...
43.942466
199
0.64499
ee0ea88ca9758c7323efd101d596321aeba7e285
2,377
py
Python
openfold/utils/checkpointing.py
cclauss/openfold
a933bc7479a13e4fcb95f7c7d7ffb9a6b55b0d4f
[ "Apache-2.0" ]
null
null
null
openfold/utils/checkpointing.py
cclauss/openfold
a933bc7479a13e4fcb95f7c7d7ffb9a6b55b0d4f
[ "Apache-2.0" ]
null
null
null
openfold/utils/checkpointing.py
cclauss/openfold
a933bc7479a13e4fcb95f7c7d7ffb9a6b55b0d4f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 AlQuraishi Laboratory # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
29.345679
80
0.667648
b49bea9bd29e9714afe1ae12da20040c6f8f0aef
1,913
py
Python
server/models.py
PaluMacil/rootbeer
d936d0c7bcb69fbe0dec7773c192319a5cdb302e
[ "MIT" ]
1
2018-02-12T02:16:37.000Z
2018-02-12T02:16:37.000Z
server/models.py
PaluMacil/rootbeer
d936d0c7bcb69fbe0dec7773c192319a5cdb302e
[ "MIT" ]
null
null
null
server/models.py
PaluMacil/rootbeer
d936d0c7bcb69fbe0dec7773c192319a5cdb302e
[ "MIT" ]
null
null
null
# from flask.ext.login import UserMixin, AnonymousUserMixin from server import db from werkzeug.security import generate_password_hash, check_password_hash # from datetime import datetime class UserAccount(db.Model): __tablename__ = 'user_accounts' id = db.Column(db.Integer, primary_key=True) username = d...
32.982759
77
0.679038
3d9794ae9b6a8ae8468e7b9766804121683f45ef
529
py
Python
Journal.py
prattcmp/OpenJournal
7030fe5ae0bb1f5f74c78267463e5314e1081b99
[ "MIT" ]
null
null
null
Journal.py
prattcmp/OpenJournal
7030fe5ae0bb1f5f74c78267463e5314e1081b99
[ "MIT" ]
null
null
null
Journal.py
prattcmp/OpenJournal
7030fe5ae0bb1f5f74c78267463e5314e1081b99
[ "MIT" ]
null
null
null
# Module imports import os from PyQt5 import QtCore from peewee import * from playhouse.sqlite_ext import SqliteExtDatabase from datetime import date dbDirectory = str(QtCore.QStandardPaths.writableLocation(QtCore.QStandardPaths.AppDataLocation)) + "/OpenJournal" if not os.path.exists(dbDirectory): os.makedirs(db...
23
113
0.754253
ffbed15aa0697a8c45673277b5d549e816129845
7,224
py
Python
old/vae_tree_reduced.py
HomerW/CSGNet
4ecc7f3e836867118dba3d5f220ed5e74a536b93
[ "MIT" ]
null
null
null
old/vae_tree_reduced.py
HomerW/CSGNet
4ecc7f3e836867118dba3d5f220ed5e74a536b93
[ "MIT" ]
null
null
null
old/vae_tree_reduced.py
HomerW/CSGNet
4ecc7f3e836867118dba3d5f220ed5e74a536b93
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.nn import functional as F import numpy as np from globals import device class MLP(nn.Module): def __init__(self, ind, hdim, odim): super(MLP, self).__init__() self.l1 = nn.Linear(ind, hdim) self.l2 = nn.Linear(hdim, hdim) self.l3 = nn.Lin...
41.28
126
0.577658
52bd18e2cbb91ca6e5f05c167587f4ea0f425e6b
466
py
Python
hw3/hwserver.py
jonescarissa/csc321
7adaacdac1b9bbc3b1a0fa18e763e4d1272c99a7
[ "MIT" ]
null
null
null
hw3/hwserver.py
jonescarissa/csc321
7adaacdac1b9bbc3b1a0fa18e763e4d1272c99a7
[ "MIT" ]
null
null
null
hw3/hwserver.py
jonescarissa/csc321
7adaacdac1b9bbc3b1a0fa18e763e4d1272c99a7
[ "MIT" ]
null
null
null
# # Hello World server in Python # Binds REP socket to tcp://*:5555 # Expects b"Hello" from client, replies with b"World" # import time import zmq context = zmq.Context() socket = context.socket(zmq.REP) socket.bind("tcp://*:5555") while True: # Wait for next request from client message = socket.recv(...
20.26087
55
0.652361
e66bf62168ea07fbafb7f1e7181822b84c040ddc
9,616
py
Python
sdk/python/pulumi_azure_nextgen/consumption/latest/budget_by_resource_group_name.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/consumption/latest/budget_by_resource_group_name.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/consumption/latest/budget_by_resource_group_name.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
48.08
478
0.660982
6fcd6251cda4a7b0c4424c56313db9034c570961
274
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pysam-0.7.5-py2.7-linux-x86_64.egg/pysam/cvcf.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pysam-0.7.5-py2.7-linux-x86_64.egg/pysam/cvcf.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pysam-0.7.5-py2.7-linux-x86_64.egg/pysam/cvcf.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = pkg_resources.resource_filename(__name__,'cvcf.so') __loader__ = None; del __bootstrap__, __loader__ imp.load_dynamic(__name__,__file__) __bootstrap__()
34.25
65
0.781022
8b156444cf819dc684599a7a3e87abf0d1cc5d6c
8,751
py
Python
main_demo.py
PancakeAwesome/CRNN_tensorflow
f12ae81243b02da80fb3e70d7dedf2b9888ad672
[ "MIT" ]
4
2018-07-09T10:38:52.000Z
2019-11-08T06:27:23.000Z
main_demo.py
PancakeAwesome/scenetext_recognition
08fd19880d9c228e75aa1a642fc811932324be00
[ "MIT" ]
null
null
null
main_demo.py
PancakeAwesome/scenetext_recognition
08fd19880d9c228e75aa1a642fc811932324be00
[ "MIT" ]
1
2020-08-21T04:59:40.000Z
2020-08-21T04:59:40.000Z
import datetime import logging import os import time import cv2 import numpy as np import tensorflow as tf import cnn_lstm_otc_ocr import utils import helper # 使用gpu0 os.environ["CUDA_VISIBLE_DEVICES"] = "0" FLAGS = utils.FLAGS logger = logging.getLogger('Train for OCR using CNN+LStM+CTC') logger.setLevle(logging....
41.671429
199
0.568049
0bfcf52817f60bfffd70af47d87340260d854fa9
28,758
py
Python
primespin.py
chetabahana/hexagon
75eaec72e9075113921e724729fc32027a84b414
[ "MIT" ]
null
null
null
primespin.py
chetabahana/hexagon
75eaec72e9075113921e724729fc32027a84b414
[ "MIT" ]
null
null
null
primespin.py
chetabahana/hexagon
75eaec72e9075113921e724729fc32027a84b414
[ "MIT" ]
null
null
null
""" The Number Coil """ # List a prime; List mod6 of prime; Compare with another set (offset of mod6) # to see spin change, determine cell of each prime. # # """ This code plots the positons in the central triangle of the prime hexagon. See accompanying notes and images for what these mean. """ import sys, os,...
37.690695
158
0.61788
5307683d0c665ca9348f7d82584903756985c076
12,021
py
Python
skweak/gazetteers.py
martarho/skweak
0e2b794b4e6aaa62016c57a495eba9745829a705
[ "MIT" ]
null
null
null
skweak/gazetteers.py
martarho/skweak
0e2b794b4e6aaa62016c57a495eba9745829a705
[ "MIT" ]
null
null
null
skweak/gazetteers.py
martarho/skweak
0e2b794b4e6aaa62016c57a495eba9745829a705
[ "MIT" ]
null
null
null
import json import re from typing import Iterable, List, Dict, Tuple, Optional from . import base, utils from spacy.tokens import Doc, Span, Token # type: ignore import gzip ############################################ # Gazetteer annotator ############################################ class GazetteerAnnotator(base.S...
36.64939
94
0.567424
aae85977a139d78c8b91240a9460e5f724c33b47
258
py
Python
static/Pygeostat/plotting-34.py
MHadavand/MHadavand.github.io
b830d45ac64e393905a612e3e0bef793689d2848
[ "MIT" ]
null
null
null
static/Pygeostat/plotting-34.py
MHadavand/MHadavand.github.io
b830d45ac64e393905a612e3e0bef793689d2848
[ "MIT" ]
1
2021-05-11T06:18:32.000Z
2021-05-11T06:18:32.000Z
static/Pygeostat/plotting-34.py
MHadavand/MHadavand.github.io
b830d45ac64e393905a612e3e0bef793689d2848
[ "MIT" ]
null
null
null
import pygeostat as gs varcalcdat = gs.ExampleData('experimental_variogram') varmodeldat = gs.ExampleData('variogram_model') ax = gs.variogram_plot(varcalcdat.data, index=1, sill=False) gs.variogram_plot(varmodeldat.data, index=1, experimental=False, ax=ax)
43
71
0.806202
dc7568eb8a44c330703118ef7d1bd5c195559c43
31,760
py
Python
pyNastran/bdf/bdf_interface/hdf5_exporter.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
1
2021-08-02T09:49:24.000Z
2021-08-02T09:49:24.000Z
pyNastran/bdf/bdf_interface/hdf5_exporter.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/bdf_interface/hdf5_exporter.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
null
null
null
"""Defines various helper functions for exporting a HDF5 BDF file""" from __future__ import annotations from collections import defaultdict from typing import List, Any, TYPE_CHECKING from io import StringIO import numpy as np from pyNastran.utils.dict_to_h5py import ( add_list_tuple, integer_types, float_types) f...
34.901099
97
0.580447
426d893d13a07078232a69d5a58f7561ba475904
209
py
Python
opendeep/data/standard_datasets/midi/__init__.py
vitruvianscience/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
252
2015-03-13T21:55:22.000Z
2021-09-06T21:37:38.000Z
opendeep/data/standard_datasets/midi/__init__.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
16
2015-03-14T06:47:04.000Z
2016-09-23T19:13:35.000Z
opendeep/data/standard_datasets/midi/__init__.py
afcarl/OpenDeep
e96efc449101094354b615cf15afe6d03644fc36
[ "Apache-2.0" ]
68
2015-03-14T00:05:53.000Z
2020-06-04T13:36:13.000Z
from __future__ import division, absolute_import, print_function from .jsb_chorales import JSBChorales from .musedata import MuseData from .nottingham import Nottingham from .piano_midi_de import PianoMidiDe
29.857143
64
0.861244
6b2e49f147338160c5b24176cd7d8c2c5ccb932c
10,043
py
Python
ros/niryo_one_ros/niryo_one_pose_converter/src/niryo_one_pose_converter/transform_handler.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-06T18:35:57.000Z
2021-04-30T07:16:42.000Z
ros/niryo_one_ros/niryo_one_pose_converter/src/niryo_one_pose_converter/transform_handler.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
5
2020-11-05T13:39:28.000Z
2021-12-09T04:37:30.000Z
ros/niryo_one_ros/niryo_one_pose_converter/src/niryo_one_pose_converter/transform_handler.py
paubrunet97/astrocytes
c21bbd2473adf68ef076356bcf578fb2ae14031f
[ "MIT" ]
8
2020-09-25T10:07:15.000Z
2022-03-11T06:26:30.000Z
import threading import numpy as np import rospy import tf2_ros from geometry_msgs.msg import TransformStamped from visualization_msgs.msg import Marker from tf import transformations class TransformHandler(object): """ This class uses a tfBuffer to handle transforms related to the vision kit. """ d...
38.041667
90
0.596734
d6b090873e838612023a3a430dd9328dc17980c9
3,940
py
Python
app/libs/berta_led_pattern.py
PassionPlus/berta
3b99ebb556bfcc81f857e2f24a55eed789d0630d
[ "Apache-2.0" ]
2
2021-04-16T09:12:03.000Z
2022-01-28T14:17:19.000Z
app/libs/berta_led_pattern.py
PassionPlus/berta
3b99ebb556bfcc81f857e2f24a55eed789d0630d
[ "Apache-2.0" ]
null
null
null
app/libs/berta_led_pattern.py
PassionPlus/berta
3b99ebb556bfcc81f857e2f24a55eed789d0630d
[ "Apache-2.0" ]
2
2021-07-07T18:40:02.000Z
2022-01-17T10:54:40.000Z
#!/usr/bin/env python # Copyright (C) 2017 Seeed Technology 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 ...
27.361111
74
0.525381
49aa54adcd07ccc8c2741229f52c8d43823eae28
315
py
Python
amr_verbnet_semantics/test/test_local_amr_client.py
daiki-kimura/AMR-CSLogic-1
f0227809aa29a7eb666d12f3cafa828cfb042fff
[ "Apache-2.0" ]
4
2022-02-17T17:52:56.000Z
2022-02-22T16:36:58.000Z
amr_verbnet_semantics/test/test_local_amr_client.py
daiki-kimura/AMR-CSLogic-1
f0227809aa29a7eb666d12f3cafa828cfb042fff
[ "Apache-2.0" ]
1
2022-02-25T07:58:58.000Z
2022-02-25T07:58:58.000Z
amr_verbnet_semantics/test/test_local_amr_client.py
daiki-kimura/AMR-CSLogic-1
f0227809aa29a7eb666d12f3cafa828cfb042fff
[ "Apache-2.0" ]
1
2022-02-22T16:40:41.000Z
2022-02-22T16:40:41.000Z
from amr_verbnet_semantics.service.amr import LocalAMRClient if __name__ == "__main__": amr_client = LocalAMRClient() list_text = [ "I loved him writing novels.", "I admired him for his honesty." ] for text in list_text: amr = amr_client.get_amr(text) print(amr)
21
60
0.64127
7a4fdddf8081adcf7e8aa71ed5c82ef48b038524
3,660
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/uz.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/uz.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/uz.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "uz", "date_order": "DMY", "january": [ "yanvar", "yan" ], "february": [ "fevral", "fev" ], "march": [ "mart", "mar" ], "april": [ "aprel", "apr" ], "may": [ "may"...
16.788991
36
0.26776
14dd70498890a647d0253c990f25dbb1f4f23ec0
757
py
Python
ibpythonic/__init__.py
quantrocket-app/IbPy
0dae353e4f83fd48583b07edfd5d6524c49e59cb
[ "BSD-3-Clause" ]
54
2017-08-10T13:57:44.000Z
2022-03-07T12:44:39.000Z
ibpythonic/__init__.py
quantrocket-llc/ibopt
0dae353e4f83fd48583b07edfd5d6524c49e59cb
[ "BSD-3-Clause" ]
5
2017-07-22T14:16:56.000Z
2021-02-15T04:03:44.000Z
ibpythonic/__init__.py
quantrocket-llc/ibopt
0dae353e4f83fd48583b07edfd5d6524c49e59cb
[ "BSD-3-Clause" ]
11
2017-11-13T14:47:26.000Z
2022-01-18T11:54:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ## # Sugary sweet layer of icing on top of the TWS API. # # Use: # {{{ # from ibpythonic import ibConnection, message # # def my_callback(msg): # ... # # con = ibConnection() # con.register(my_callback, message.TickSize, message.TickPrice) # con.co...
22.939394
67
0.688243
fbdf56df650981d0a5fc85a38ec9ee3b49ad4754
7,252
py
Python
trimesh/interfaces/gmsh.py
asnt/trimesh
9363b6ead375555b03416f639847a480c18670a3
[ "MIT" ]
1
2022-01-21T08:23:08.000Z
2022-01-21T08:23:08.000Z
trimesh/interfaces/gmsh.py
asnt/trimesh
9363b6ead375555b03416f639847a480c18670a3
[ "MIT" ]
null
null
null
trimesh/interfaces/gmsh.py
asnt/trimesh
9363b6ead375555b03416f639847a480c18670a3
[ "MIT" ]
1
2022-01-21T08:23:10.000Z
2022-01-21T08:23:10.000Z
import tempfile import numpy as np def load_gmsh(file_name, gmsh_args=None): """ Returns a surface mesh from CAD model in Open Cascade Breap (.brep), Step (.stp or .step) and Iges formats Or returns a surface mesh from 3D volume mesh using gmsh. For a list of possible options to pass to GMSH, ch...
34.533333
89
0.642857
88d7220ec794c0dd6736a8e59cc3ffa91db11d6b
2,303
py
Python
conda/cli/find_commands.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
conda/cli/find_commands.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
3
2022-03-03T02:36:53.000Z
2022-03-03T02:42:50.000Z
conda/cli/find_commands.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals import os from os.path import basename, expanduser, isdir, isfile, join import re import sys import sysconfig from ..auxlib.decorators i...
28.7875
82
0.583152
5718bd8fba9e7fe1495a15e8b5948c4a027c59f3
153
py
Python
Contents/Libraries/Shared/plex/objects/user.py
jippo015/Sub-Zero.bundle
734e0f7128c05c0f639e11e7dfc77daa1014064b
[ "MIT" ]
1,553
2015-11-09T02:17:06.000Z
2022-03-31T20:24:52.000Z
Contents/Libraries/Shared/plex/objects/user.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
691
2015-11-05T21:32:26.000Z
2022-03-17T10:52:45.000Z
Contents/Libraries/Shared/plex/objects/user.py
saiterlz/Sub-Zero.bundle
1a0bb9c3e4be84be35d46672907783363fe5a87b
[ "MIT" ]
191
2015-01-02T18:27:22.000Z
2022-03-29T10:49:48.000Z
from plex.objects.core.base import Descriptor, Property class User(Descriptor): id = Property(type=int) title = Property thumb = Property
17
55
0.712418
54b187b86639d4536047867275374386bacfafa0
718
py
Python
pal/writer/register/none.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
26
2020-01-06T23:53:17.000Z
2022-02-01T08:58:21.000Z
pal/writer/register/none.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
30
2019-11-13T00:55:22.000Z
2022-01-06T08:09:35.000Z
pal/writer/register/none.py
mars-research/pal
5977394cda8750ff5dcb89c2bf193ec1ef4cd137
[ "MIT" ]
14
2019-11-15T16:56:22.000Z
2021-12-22T10:14:17.000Z
from pal.writer.register.register import RegisterWriter class NoneRegisterWriter(RegisterWriter): def declare_register_dependencies(self, outfile, register, config): pass def declare_register_accessors(self, outfile, register): pass def declare_field_accessors(self, outfile, register, f...
26.592593
79
0.694986
aadbc2f5733b40f842af667691bf443683e6c78f
23,997
py
Python
angr/sim_procedure.py
capuanob/angr
4e5bb119965cb282f5bcb3dea5b598e88097f715
[ "BSD-2-Clause" ]
null
null
null
angr/sim_procedure.py
capuanob/angr
4e5bb119965cb282f5bcb3dea5b598e88097f715
[ "BSD-2-Clause" ]
null
null
null
angr/sim_procedure.py
capuanob/angr
4e5bb119965cb282f5bcb3dea5b598e88097f715
[ "BSD-2-Clause" ]
null
null
null
import inspect import copy import itertools import logging from typing import TYPE_CHECKING, Union, Tuple from cle import SymbolType from archinfo.arch_soot import SootAddressDescriptor if TYPE_CHECKING: import angr import archinfo from angr.sim_state import SimState l = logging.getLogger(name=__name__) ...
44.938202
135
0.641664
d0ef7419b606825ae640b62353618340acc020be
60,207
py
Python
tests/test_c_parser.py
saurabhshrivastava/pycparser
7ef85cca413d38b81d545ff273f5aa6562ba4453
[ "BSD-3-Clause" ]
1
2021-01-23T00:18:53.000Z
2021-01-23T00:18:53.000Z
tests/test_c_parser.py
renpytom/pycparser
c926670643ebb5f88a2bf56579fc9934c82be6d2
[ "BSD-3-Clause" ]
null
null
null
tests/test_c_parser.py
renpytom/pycparser
c926670643ebb5f88a2bf56579fc9934c82be6d2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import pprint import re import os, sys import unittest sys.path[0:0] = ['.', '..'] from pycparser import c_parser from pycparser.c_ast import * from pycparser.c_parser import CParser, Coord, ParseError _c_parser = c_parser.CParser( lex_optimize=False, yacc_debug...
33.862205
98
0.446759
9d8ad192883a4ee3500cf487690a0355e16216f1
760
py
Python
5-semester/programming/lab1-tests.py
Rakleed/rgpu
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
[ "MIT" ]
null
null
null
5-semester/programming/lab1-tests.py
Rakleed/rgpu
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
[ "MIT" ]
null
null
null
5-semester/programming/lab1-tests.py
Rakleed/rgpu
47ab2a05a8398c15be7e41e9e98fafe5c2a36627
[ "MIT" ]
null
null
null
import squareseqdigit def test_squareseqdigit_1(): assert squareseqdigit.square_sequence_digit(1) == 1, " square_sequence_digit(1) == 1 " def test_squareseqdigit_2(): assert squareseqdigit.square_sequence_digit(2) == 4, " square_sequence_digit(2) == 4 " def test_squareseqdigit_3(): assert squareseqdig...
29.230769
92
0.744737
e23226a6f5475cf8a7425b187808d3cb53236394
731
py
Python
setup.py
chrisherold/django-weekday-field
0ef8c52c81e7dbdb451585790a1b3cfdd76d5600
[ "BSD-3-Clause" ]
2
2016-07-27T12:56:56.000Z
2016-07-27T12:56:57.000Z
setup.py
jjdelrom/django-weekday-field
f2fef50d5924459c1a1e1f2a726801f01a1f6130
[ "BSD-3-Clause" ]
1
2021-12-01T02:28:10.000Z
2021-12-01T02:28:10.000Z
setup.py
jjdelrom/django-weekday-field
f2fef50d5924459c1a1e1f2a726801f01a1f6130
[ "BSD-3-Clause" ]
1
2020-09-18T02:42:18.000Z
2020-09-18T02:42:18.000Z
from setuptools import setup, find_packages README = open('README.txt').read() setup( name = "django-weekday-field", version = "1.1.0", description = "Weekday field for django models", url = "http://bitbucket.org/schinckel/django-weekday-field/", author = "Matthew Schinckel", author_email = "m...
28.115385
65
0.608755
d4ad13fdc99c5cceb0829fe61e3c9205a6142d53
21,172
py
Python
learnit/autolearn/autolearn.py
suhara/learnit
5db6e80d2bd2d1bf1a381f668db40288888236e4
[ "Apache-2.0" ]
5
2020-02-27T22:16:29.000Z
2020-07-12T21:50:38.000Z
learnit/autolearn/autolearn.py
suhara/learnit
5db6e80d2bd2d1bf1a381f668db40288888236e4
[ "Apache-2.0" ]
2
2020-02-28T04:06:04.000Z
2020-02-28T04:06:08.000Z
learnit/autolearn/autolearn.py
suhara/learnit
5db6e80d2bd2d1bf1a381f668db40288888236e4
[ "Apache-2.0" ]
1
2020-02-27T22:19:17.000Z
2020-02-27T22:19:17.000Z
# -*- coding: utf-8 -*- import os import sys from time import time import numpy as np import pandas as pd from progressbar import ProgressBar from sklearn.base import clone from sklearn.exceptions import NotFittedError from tabulate import tabulate from learnit.autolearn.blueprints import ClassifierCatalog from learn...
31.742129
78
0.525789
64bd5cf871902165a0895d176c80e123feaddc58
298
py
Python
binary_search.py
welchenys/Hello_world
890eef2fab9809e7d3724cc78fe37f691862fced
[ "MIT" ]
null
null
null
binary_search.py
welchenys/Hello_world
890eef2fab9809e7d3724cc78fe37f691862fced
[ "MIT" ]
null
null
null
binary_search.py
welchenys/Hello_world
890eef2fab9809e7d3724cc78fe37f691862fced
[ "MIT" ]
null
null
null
def binary_search(my_list,item): low=0 high=len(my_list)-1 while low<=high: mid=(low+high)//2 guess=my_list[mid] if guess==item: return mid if guess>item: high=mid-1 else: low=mid+1 return None list1=[1,2,44,55,74,95,102] print(binary_search(list1,44)) a=5//2 print(a)
12.416667
32
0.657718
831077631649459f137011bc27b8843586e49cdc
2,821
py
Python
userbot/modules/salam.py
iegonxy/iegonxyisback
71e0b61b73fab2e6051cc980d302d8db3edf6535
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2022-03-03T01:31:48.000Z
2022-03-26T00:15:41.000Z
userbot/modules/salam.py
Doraucul/Man-Userbot
aebb7681c4ca657c5a5d18235d769d2d61740109
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-16T02:54:27.000Z
2022-03-17T09:17:12.000Z
userbot/modules/salam.py
Doraucul/Man-Userbot
aebb7681c4ca657c5a5d18235d769d2d61740109
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2022-03-12T00:13:54.000Z
2022-03-14T07:05:04.000Z
from time import sleep from userbot import CMD_HANDLER as cmd from userbot import CMD_HELP from userbot.utils import edit_or_reply, man_cmd @man_cmd(pattern="p(?: |$)(.*)") async def _(event): await event.client.send_message( event.chat_id, "**Assalamualaikum Dulu Biar Sopan**", reply_to=...
28.785714
78
0.556895
ac4822e18a4c0263ae1fcc6f01532b6b261d6930
105,362
py
Python
django/db/models/sql/query.py
jingeulkim/django
cebd41e41603c3ca77c5b29d6cd20c1bff43827f
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
1
2019-12-22T12:53:16.000Z
2019-12-22T12:53:16.000Z
django/db/models/sql/query.py
accounthuai/django
cebd41e41603c3ca77c5b29d6cd20c1bff43827f
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
null
null
null
django/db/models/sql/query.py
accounthuai/django
cebd41e41603c3ca77c5b29d6cd20c1bff43827f
[ "CNRI-Python-GPL-Compatible", "BSD-3-Clause" ]
null
null
null
""" Create SQL statements for QuerySets. The code in here encapsulates all of the SQL construction so that QuerySets themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get ...
44.550529
119
0.612071
68e386cac852a2c6e1026659e13f71b10fbb6e6a
1,505
py
Python
functions.py
IgnacioRondini/Hard_Disc
3be42c117121b1237ca005d961f897e89b1cfa08
[ "MIT" ]
null
null
null
functions.py
IgnacioRondini/Hard_Disc
3be42c117121b1237ca005d961f897e89b1cfa08
[ "MIT" ]
null
null
null
functions.py
IgnacioRondini/Hard_Disc
3be42c117121b1237ca005d961f897e89b1cfa08
[ "MIT" ]
null
null
null
# functions # some miscelaneous functions from math import sqrt def scalar_product(a, b): if len(a) != len(b): return -900000000 product = 0 for i in range(len(a)): product = product + a[i] * b[i] return product def are_superposed_in_all_cell(center_a, radius_a, center_b, radius_...
21.811594
113
0.528904
df0a0e3da878b9b5a4b47797ba55b2fb9fd1a451
2,645
py
Python
LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/base.py
liks79/moving-to-serverless-renew
2f173071ab387654d4cc851a0b39130613906378
[ "MIT" ]
6
2019-08-21T04:13:34.000Z
2019-10-29T07:15:39.000Z
LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/base.py
liks79/moving-to-serverless-renew
2f173071ab387654d4cc851a0b39130613906378
[ "MIT" ]
89
2019-07-31T02:29:54.000Z
2022-03-12T01:03:22.000Z
LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/base.py
michaelrishiforrester/moving-to-serverless-renew
27cbcbde9db3d2bc66212fe4f768563d25f64c19
[ "MIT" ]
4
2019-08-02T03:00:35.000Z
2020-02-26T18:44:03.000Z
""" cloudalbum/tests/base.py ~~~~~~~~~~~~~~~~~~~~~~~ Base test cases :description: CloudAlbum is a fully featured sample application for 'Moving to AWS serverless' training course :copyright: © 2019 written by Dayoungle Jun, Sungshik Jou. :license: MIT, see LICENSE for more details. """ import ...
33.0625
114
0.567108
ec3fe02781d7c7ad4dfa8b58b967d0a9de863f4c
28,892
py
Python
nitro/resource/config/rdp/rdpclientprofile.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
2
2020-08-24T18:04:22.000Z
2020-08-24T18:04:47.000Z
nitro/resource/config/rdp/rdpclientprofile.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
nitro/resource/config/rdp/rdpclientprofile.py
HanseMerkur/nitro-python
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
37.66884
230
0.594248
2bfb22e5666c807caafc0960473486c5b2a7b184
8,762
py
Python
SCZ_sleep/evaluation.py
vagechirkov/NI-project
fa0687d81ffad9b2e3737fe9115a151335bda358
[ "MIT" ]
1
2021-06-01T08:06:15.000Z
2021-06-01T08:06:15.000Z
SCZ_sleep/evaluation.py
vagechirkov/NI-project
fa0687d81ffad9b2e3737fe9115a151335bda358
[ "MIT" ]
null
null
null
SCZ_sleep/evaluation.py
vagechirkov/NI-project
fa0687d81ffad9b2e3737fe9115a151335bda358
[ "MIT" ]
null
null
null
import numpy as np import scipy from neurolib.utils import functions as func from neurolib.optimize.exploration import BoxSearch from neurolib.utils.stimulus import construct_stimulus import brainplot as bp # https://doi.org/10.1016/j.neuroimage.2015.07.075 Table 2 # number corresponds to AAL2 labels indices CORTIC...
41.923445
78
0.589706
931b4ae7ecceaa9bb93006f58b0a5e3c7b5eec28
7,287
py
Python
IMLearn/learners/gaussian_estimators.py
eviatar-ben/IML.HUJI
0f78ad1ab86a235a55af729aafcf96f1a8ddddf5
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
eviatar-ben/IML.HUJI
0f78ad1ab86a235a55af729aafcf96f1a8ddddf5
[ "MIT" ]
null
null
null
IMLearn/learners/gaussian_estimators.py
eviatar-ben/IML.HUJI
0f78ad1ab86a235a55af729aafcf96f1a8ddddf5
[ "MIT" ]
null
null
null
from __future__ import annotations import numpy as np from numpy.linalg import inv, det, slogdet class UnivariateGaussian: """ Class for univariate Gaussian Distribution Estimator """ def __init__(self, biased_var: bool = False) -> UnivariateGaussian: """ Estimator for univariate Gaus...
32.67713
107
0.56937
58a6d1e42e13455769873ac91fddea0565f31d34
802
py
Python
onnx_jax/handlers/backend/div.py
gglin001/onnx_jax
08e2a1181250db48f4436f6430903fc895a3a1d6
[ "Apache-2.0" ]
9
2021-04-12T02:37:14.000Z
2022-03-28T23:31:40.000Z
onnx_jax/handlers/backend/div.py
gglin001/onnx-jax
08e2a1181250db48f4436f6430903fc895a3a1d6
[ "Apache-2.0" ]
null
null
null
onnx_jax/handlers/backend/div.py
gglin001/onnx-jax
08e2a1181250db48f4436f6430903fc895a3a1d6
[ "Apache-2.0" ]
null
null
null
import jax.numpy as jnp from jax import jit from onnx_jax.handlers.backend_handler import BackendHandler from onnx_jax.handlers.handler import onnx_op from onnx_jax.pb_wrapper import OnnxNode @onnx_op("Div") class Div(BackendHandler): @classmethod def _common(cls, node: OnnxNode, **kwargs): @jit ...
23.588235
60
0.658354
07cea63b5d6eaea122a013a342ed1986eb27d4db
8,859
py
Python
src/models/architectures/transformer.py
GuyTevet/MotionCLIP
c2b9f40b0e721e42981f3e8b58133a1c51fde715
[ "MIT" ]
45
2022-03-16T01:47:16.000Z
2022-03-31T08:49:16.000Z
src/models/architectures/transformer.py
GuyTevet/MotionCLIP
c2b9f40b0e721e42981f3e8b58133a1c51fde715
[ "MIT" ]
null
null
null
src/models/architectures/transformer.py
GuyTevet/MotionCLIP
c2b9f40b0e721e42981f3e8b58133a1c51fde715
[ "MIT" ]
1
2022-03-18T14:02:09.000Z
2022-03-18T14:02:09.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class PositionalEncoding(nn.Module): def __init__(self, d_model, dropout=0.1, max_len=5000): super(PositionalEncoding, self).__init__() self.dropout = nn.Dropout(p=dropout) pe = torch.zeros(max_len, d_mo...
39.199115
114
0.575686
cdb347032818e447f814b086c039cad1ef920496
4,468
py
Python
deepML.py
agui1era/Scrap
3b6426446d991405d81776033d69101dd1a26d98
[ "MIT" ]
null
null
null
deepML.py
agui1era/Scrap
3b6426446d991405d81776033d69101dd1a26d98
[ "MIT" ]
null
null
null
deepML.py
agui1era/Scrap
3b6426446d991405d81776033d69101dd1a26d98
[ "MIT" ]
null
null
null
from pymongo import MongoClient import datetime #cantidad de productos vendidos minimos vendidos por dia a guardar variacion_busqueda=1 #dias hacia atras rango_dias=60 #cantidad de ventas diferentes limite_de_conteo_ventas=15 client = MongoClient() client = MongoClient('localhost', 27017) # connecting or switchin...
35.460317
150
0.641674
f3f2711cb5accf77b96ae587e85ce00bbc4ef71f
11,835
py
Python
tests/basic_tests.py
dhdsjy/Feature_auto_ml
d30aa3f884c51cc060e26d38a8c648f9744f43c1
[ "MIT" ]
null
null
null
tests/basic_tests.py
dhdsjy/Feature_auto_ml
d30aa3f884c51cc060e26d38a8c648f9744f43c1
[ "MIT" ]
null
null
null
tests/basic_tests.py
dhdsjy/Feature_auto_ml
d30aa3f884c51cc060e26d38a8c648f9744f43c1
[ "MIT" ]
null
null
null
""" To get standard out, run nosetests as follows: $ nosetests -s tests """ import datetime import os import random import sys sys.path = [os.path.abspath(os.path.dirname(__file__))] + sys.path from auto_ml import Predictor from nose.tools import assert_equal, assert_not_equal, with_setup from sklearn.metrics impor...
35.64759
135
0.738826
699d97484627544b76d4f7d3a67900756ac17643
4,017
py
Python
Construct Binary Search Tree from preorder traversal.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
Construct Binary Search Tree from preorder traversal.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
Construct Binary Search Tree from preorder traversal.py
frank0215/Leetcode_python
9428ded4f9abd347b12bfef8aa1dd2d177f3afea
[ "MIT" ]
null
null
null
''' Return the root node of a binary search tree that matches the given preorder traversal. (Recall that a binary search tree is a binary tree where for every node, any descendant of node.left has a value < node.val, and any descendant of node.right has a value > node.val. Also recall that a preorder traversal displays...
31.880952
311
0.545681
313fa846258bc4fafd1b39765464104a6959d434
1,391
py
Python
mrpod/examples/damping_wave.py
chuckedfromspace/mrpod
ed831ddb6c1c634767149630effec0e766b54e4a
[ "BSD-3-Clause" ]
4
2020-12-06T17:03:21.000Z
2021-05-26T22:07:59.000Z
mrpod/examples/damping_wave.py
chuckedfromspace/mrpod
ed831ddb6c1c634767149630effec0e766b54e4a
[ "BSD-3-Clause" ]
null
null
null
mrpod/examples/damping_wave.py
chuckedfromspace/mrpod
ed831ddb6c1c634767149630effec0e766b54e4a
[ "BSD-3-Clause" ]
null
null
null
""" Generate a damping wave. """ import numpy as np from scipy import signal def inverse_fft(f=470, bandwidth=(-15, 15), dN=1000, N=8000, fs=10000, add_noise=False): """ Create a time-varying sinusoidal wave """ df = (fs/2)/(N/2) f_c = int(f/df) shift = np.zeros(N) + 1e-2 shift[1000+dN:4000...
33.119048
98
0.589504
66e6d5fb1d787a27c3602230e569ab1213ef38f2
16,244
py
Python
tools/c7n_org/c7n_org/cli.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
tools/c7n_org/c7n_org/cli.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
tools/c7n_org/c7n_org/cli.py
fadiguezel/cloud-custodian
147fffcf9a109ffd4248a746775b55def5a727c5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Capital One Services, 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...
38.131455
136
0.600345
29e406bbbfc190c8dfb18527a4d6e4c3661d814e
1,025
py
Python
senseclust/queries.py
frankier/finn-sense-clust
9b76ee3bdacc9b039432674306650c6edb9da3bb
[ "Apache-2.0" ]
null
null
null
senseclust/queries.py
frankier/finn-sense-clust
9b76ee3bdacc9b039432674306650c6edb9da3bb
[ "Apache-2.0" ]
2
2019-04-27T14:40:10.000Z
2019-08-21T15:43:19.000Z
senseclust/queries.py
frankier/finn-sense-clust
9b76ee3bdacc9b039432674306650c6edb9da3bb
[ "Apache-2.0" ]
null
null
null
from sqlalchemy.sql import select from senseclust.tables import freqs from wikiparse.tables import headword, word_sense from finntk.data.wordnet_pos import POS_MAP joined = ( headword.join( word_sense, word_sense.c.headword_id == headword.c.id ) ) joined_freq = joined.join( freqs, head...
22.777778
49
0.660488
7931a3722bf89c0a6df78883174ad969b8290e26
27,204
py
Python
feasibgs/skymodel.py
changhoonhahn/feasiBGS
b5f535f12cf64babc9e25bcec75edd45d8668f74
[ "MIT" ]
1
2021-02-24T15:02:34.000Z
2021-02-24T15:02:34.000Z
feasibgs/skymodel.py
michaelJwilson/feasiBGS
63975b1e60f6f93f3b5020ee51ca565f325b918d
[ "MIT" ]
7
2020-10-23T16:02:01.000Z
2020-11-04T18:53:20.000Z
feasibgs/skymodel.py
michaelJwilson/feasiBGS
63975b1e60f6f93f3b5020ee51ca565f325b918d
[ "MIT" ]
1
2020-11-12T00:19:41.000Z
2020-11-12T00:19:41.000Z
''' ''' import os import pickle import numpy as np import pandas as pd from scipy.interpolate import interp1d from itertools import chain, combinations_with_replacement # -- astropy -- import astropy.units as u from astropy.time import Time # -- specsim -- import specsim from specsim.atmosphere import Moon # -- fe...
36.12749
129
0.624026
a13d89265bd4f3841dd992ce187cd35989e6ca3b
66,270
py
Python
gpMgmt/bin/gppylib/commands/gp.py
chrishajas/gpdb
564b9235a46e2ead1650b753b2d070796cced6f6
[ "PostgreSQL", "Apache-2.0" ]
1
2020-01-23T04:09:39.000Z
2020-01-23T04:09:39.000Z
gpMgmt/bin/gppylib/commands/gp.py
chrishajas/gpdb
564b9235a46e2ead1650b753b2d070796cced6f6
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/commands/gp.py
chrishajas/gpdb
564b9235a46e2ead1650b753b2d070796cced6f6
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Greenplum Inc 2008. All Rights Reserved. # """ TODO: docs! """ import os, pickle, base64, time from gppylib.gplog import * from gppylib.db import dbconn from gppylib.db import catalog from gppylib import gparray from base import * from unix import * import pg from gppylib impor...
37.955326
183
0.6067
1ddf166840ed01f2e9f01728347b10fa85190d3b
2,148
py
Python
docs/source/conf.py
bhardwajRahul/flask-jwt-router
fcf79a993d953a8a02a53c8d875b0abc2a75ad60
[ "MIT" ]
37
2020-01-11T07:36:31.000Z
2022-03-26T23:20:16.000Z
docs/source/conf.py
bhardwajRahul/flask-jwt-router
fcf79a993d953a8a02a53c8d875b0abc2a75ad60
[ "MIT" ]
61
2020-01-10T08:31:58.000Z
2021-07-22T11:57:19.000Z
docs/source/conf.py
bhardwajRahul/flask-jwt-router
fcf79a993d953a8a02a53c8d875b0abc2a75ad60
[ "MIT" ]
8
2020-02-01T18:01:54.000Z
2021-08-20T06:33:49.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
38.357143
79
0.672719
bf3c95410ce3695e20f2a01c008900ad9f6c8d08
908
py
Python
main.py
stashito/discord-bot
1acc4cc1d962b90ed43434addbf2bfd18e1c5c44
[ "MIT" ]
1
2020-03-16T21:07:53.000Z
2020-03-16T21:07:53.000Z
main.py
stashito/discord-bot
1acc4cc1d962b90ed43434addbf2bfd18e1c5c44
[ "MIT" ]
1
2020-07-08T02:12:13.000Z
2020-07-08T02:12:13.000Z
main.py
stashito/discord-bot
1acc4cc1d962b90ed43434addbf2bfd18e1c5c44
[ "MIT" ]
1
2020-03-10T02:15:24.000Z
2020-03-10T02:15:24.000Z
# Developers: Stashito, Thinkr3, Dondischj # Feature: What happens when it opens # Last Worked On: 08/06/2020 import discord import os from discord.ext import commands client = commands.Bot(command_prefix = "cl ") @commands.Cog.listener() async def on_ready(): #Launch Method print('Logged in as') print(bot.u...
25.222222
54
0.694934
f9d573a74cfbe09376814972cf5ad388df77953e
1,807
py
Python
src/m5_your_turtles.py
zhangz14/IntroductionToPython
959d875162dd1bbbfb082c8dedd4f918ce5b102e
[ "MIT" ]
null
null
null
src/m5_your_turtles.py
zhangz14/IntroductionToPython
959d875162dd1bbbfb082c8dedd4f918ce5b102e
[ "MIT" ]
null
null
null
src/m5_your_turtles.py
zhangz14/IntroductionToPython
959d875162dd1bbbfb082c8dedd4f918ce5b102e
[ "MIT" ]
null
null
null
""" Your chance to explore Loops and Turtles! Authors: David Mutchler, Dave Fisher, Valerie Galluzzi, Amanda Stouder, their colleagues and Zikang Zhang. """ ######################################################################## # DONE: 1. # On Line 5 above, replace PUT_YOUR_NAME_HERE with your own name. #...
26.188406
72
0.574433
5453a498efa069eac4527585b601f2c732b95bb5
8,049
py
Python
users/serviceclasses/mysql.py
aarne-kyppo/bachelorthesis
34ca351fdaa575a73ee7eb4c486a9c317ad53e7f
[ "MIT" ]
1
2017-02-17T22:14:24.000Z
2017-02-17T22:14:24.000Z
users/serviceclasses/mysql.py
aarne-kyppo/bachelorthesis
34ca351fdaa575a73ee7eb4c486a9c317ad53e7f
[ "MIT" ]
null
null
null
users/serviceclasses/mysql.py
aarne-kyppo/bachelorthesis
34ca351fdaa575a73ee7eb4c486a9c317ad53e7f
[ "MIT" ]
null
null
null
from servicebase import ServiceBase from servicefield import ServiceField from django import forms from django.conf import settings from updatefunctions import updateStateField from django.db import connection, IntegrityError, DatabaseError, transaction from django.contrib import messages from users.models import Servi...
40.651515
119
0.557833
b74cfe73584f13fba87aa9ebe013ca096bdecbf1
2,032
py
Python
InvenTree/setup.py
linucks/InvenTree
fa789036e0ae7d56ced3c9e1f2d2ff596983a365
[ "MIT" ]
1
2020-11-03T15:46:58.000Z
2020-11-03T15:46:58.000Z
InvenTree/setup.py
linucks/InvenTree
fa789036e0ae7d56ced3c9e1f2d2ff596983a365
[ "MIT" ]
8
2020-06-06T01:14:46.000Z
2022-03-12T00:14:35.000Z
InvenTree/setup.py
linucks/InvenTree
fa789036e0ae7d56ced3c9e1f2d2ff596983a365
[ "MIT" ]
null
null
null
""" Performs initial setup functions. - Generates a Django SECRET_KEY file to be used by manage.py - Copies config template file (if a config file does not already exist) """ import random import string import os import sys import argparse from shutil import copyfile OUTPUT_DIR = os.path.dirname(os.path.realpath(__f...
29.449275
105
0.686024
abec214dc7e5e1809bedbca57532cb4b34a39c12
75,373
py
Python
python/ray/tests/test_autoscaler.py
Rid039/ray
eb9330df07150adbb9a4e334ace6b1a3ba6602a2
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_autoscaler.py
Rid039/ray
eb9330df07150adbb9a4e334ace6b1a3ba6602a2
[ "Apache-2.0" ]
5
2021-08-25T16:17:15.000Z
2022-03-12T01:00:29.000Z
python/ray/tests/test_autoscaler.py
Rid039/ray
eb9330df07150adbb9a4e334ace6b1a3ba6602a2
[ "Apache-2.0" ]
2
2020-05-22T15:36:27.000Z
2020-05-22T15:52:03.000Z
import json import os import shutil from subprocess import CalledProcessError import tempfile import threading import time import unittest from unittest.mock import Mock import yaml import copy import sys from jsonschema.exceptions import ValidationError import ray from ray.autoscaler._private.util import prepare_conf...
38.105662
79
0.597747
e83edb068284c6b39ee986860ed93b63e17dbeaa
4,736
py
Python
autosklearn/evaluation/test_evaluator.py
psaks/auto-sklearn
e21047aa7b52e762a58992e33ffcebb420586e67
[ "BSD-3-Clause" ]
6,390
2015-07-11T07:59:51.000Z
2022-03-31T16:45:15.000Z
autosklearn/evaluation/test_evaluator.py
psaks/auto-sklearn
e21047aa7b52e762a58992e33ffcebb420586e67
[ "BSD-3-Clause" ]
1,276
2015-07-29T02:11:29.000Z
2022-03-31T17:31:34.000Z
autosklearn/evaluation/test_evaluator.py
psaks/auto-sklearn
e21047aa7b52e762a58992e33ffcebb420586e67
[ "BSD-3-Clause" ]
1,313
2015-07-20T14:11:39.000Z
2022-03-25T18:22:48.000Z
# -*- encoding: utf-8 -*- import multiprocessing from typing import Any, Dict, List, Optional, Tuple, Union from ConfigSpace import Configuration import numpy as np from smac.tae import StatusType from autosklearn.evaluation.abstract_evaluator import ( AbstractEvaluator, _fit_and_suppress_warnings, ) from a...
33.352113
87
0.603885
6dc913af386cfe1a10d2b21565fffd887f325984
4,606
py
Python
data/stream.py
chebee7i/twitter
ec1d772c3ef7d2288ac8051efb8637378f3ec195
[ "Unlicense" ]
2
2018-12-17T02:47:19.000Z
2021-02-02T05:39:45.000Z
data/stream.py
chebee7i/twitter
ec1d772c3ef7d2288ac8051efb8637378f3ec195
[ "Unlicense" ]
null
null
null
data/stream.py
chebee7i/twitter
ec1d772c3ef7d2288ac8051efb8637378f3ec195
[ "Unlicense" ]
null
null
null
""" Script used to store tweets using Twitter's streaming API. A lockfile ensures that the script is not started again if it is already running. During streaming, a separate file `ratelimits.log` holds any received data on ratelimits. """ from __future__ import print_function import errno import fcntl import sys i...
31.333333
100
0.641989
1ecd95cde00747b794d3e976d5fb7fc300f87fa4
2,876
py
Python
evennia/utils/idmapper/tests.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,544
2015-01-01T22:16:31.000Z
2022-03-31T19:17:45.000Z
evennia/utils/idmapper/tests.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,686
2015-01-02T18:26:31.000Z
2022-03-31T20:12:03.000Z
evennia/utils/idmapper/tests.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
867
2015-01-02T21:01:54.000Z
2022-03-29T00:28:27.000Z
from django.test import TestCase from .models import SharedMemoryModel from django.db import models class Category(SharedMemoryModel): name = models.CharField(max_length=32) class RegularCategory(models.Model): name = models.CharField(max_length=32) class Article(SharedMemoryModel): name = models.Cha...
36.405063
82
0.67733
11e04530c726947fc8b4e6ba775f69af5de96bb0
982
py
Python
core/gui/gui.py
itsjaylen/SchoolExploits
af93ce7fa160535da012dde2b7c1d16c6777c5bc
[ "MIT" ]
null
null
null
core/gui/gui.py
itsjaylen/SchoolExploits
af93ce7fa160535da012dde2b7c1d16c6777c5bc
[ "MIT" ]
null
null
null
core/gui/gui.py
itsjaylen/SchoolExploits
af93ce7fa160535da012dde2b7c1d16c6777c5bc
[ "MIT" ]
null
null
null
from core.settings.debug import Debug from core.settings.config import Config, Command from os import system from colorama import Fore def startup(): print(f"{Fore.GREEN}Loaded {Config.appname} Version {Config.version}\n") system(f"title {Config.appname} version {Config.version}") gui() def gui(): w...
30.6875
96
0.607943
e416315125f77bc3bfa53877ef46c594050d4495
888
py
Python
tests/functional/test_cli.py
briantracy/pip
39398cb2812cce5ad62a18f195060477b79f6c59
[ "MIT" ]
2
2021-11-11T10:44:41.000Z
2022-03-29T17:18:30.000Z
tests/functional/test_cli.py
illia-v/pip
76cd70ac42cbbe6a51d83bd100f500ac4c21f26b
[ "MIT" ]
215
2020-03-23T18:59:53.000Z
2021-02-22T20:30:51.000Z
tests/functional/test_cli.py
illia-v/pip
76cd70ac42cbbe6a51d83bd100f500ac4c21f26b
[ "MIT" ]
2
2015-03-20T02:27:07.000Z
2021-07-27T19:44:45.000Z
"""Basic CLI functionality checks. """ from textwrap import dedent import pytest @pytest.mark.parametrize("entrypoint", [ ("fake_pip = pip._internal.main:main",), ("fake_pip = pip._internal:main",), ("fake_pip = pip:main",), ]) def test_entrypoints_work(entrypoint, script): fake_pkg = script.temp_pat...
25.371429
69
0.61036
f6c419b503c47f4426e17f57edfbeb9373841b02
3,852
py
Python
modifyID.py
ioz9/tools
4331742985ee7692dc902518a882eec7d3d3fa6a
[ "Apache-2.0" ]
1
2015-04-12T08:20:34.000Z
2015-04-12T08:20:34.000Z
modifyID.py
ioz9/tools
4331742985ee7692dc902518a882eec7d3d3fa6a
[ "Apache-2.0" ]
null
null
null
modifyID.py
ioz9/tools
4331742985ee7692dc902518a882eec7d3d3fa6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Created on 2012-12-19 @author: jock ''' import sys import re import os class ModifyId(object): ''' classdocs ''' def __init__(self, updateFile, inDir): ''' Constructor ''' self.smaliFileList = self.getInFileList(inDir) self.idMap = s...
34.392857
110
0.538681
b40b34acd24d11c4ccc9aad473852403ae25064b
10,467
py
Python
granola/tests/serial_tests/test_serial_sniffer.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
3
2022-02-13T02:38:28.000Z
2022-03-22T16:59:15.000Z
granola/tests/serial_tests/test_serial_sniffer.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
27
2022-02-13T18:22:48.000Z
2022-03-31T18:18:41.000Z
granola/tests/serial_tests/test_serial_sniffer.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
null
null
null
import os import time from builtins import bytes from datetime import datetime from granola import SerialSniffer from granola.utils import ( IS_PYTHON3, check_min_package_version, decode_bytes, int_to_char, load_serial_df, ) if IS_PYTHON3: from unittest.mock import patch else: from mock im...
35.723549
116
0.717589
daa1cf572ebcab01fd8b3f0ecbe0ab18d593d5bc
113,962
py
Python
lib/googlecloudsdk/third_party/apis/storage/v1/storage_v1_messages.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/storage/v1/storage_v1_messages.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/storage/v1/storage_v1_messages.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
"""Generated message classes for storage version v1. Stores and retrieves potentially large, immutable data objects. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import message_types as _message_types from apitools.base.protorpclite import messages as _messa...
42.223787
98
0.744687
9606f4d97216532f2a55a97388a6417fda864cc9
716
py
Python
utils/token_generator.py
turkishrider/fileria
eff6c30c765867fc39f403de335f1058effe53a0
[ "Apache-2.0" ]
null
null
null
utils/token_generator.py
turkishrider/fileria
eff6c30c765867fc39f403de335f1058effe53a0
[ "Apache-2.0" ]
null
null
null
utils/token_generator.py
turkishrider/fileria
eff6c30c765867fc39f403de335f1058effe53a0
[ "Apache-2.0" ]
null
null
null
import base64 import datetime def activation_key_generator(email): expire_date = datetime.datetime.today() + datetime.timedelta(3) activation_key = base64.b64encode( str(expire_date)) + base64.b64encode( str(email)).split('=')[0] return activation_key def tokens_email(token_id): if ...
24.689655
67
0.649441
775b8da3bd07807842d48d147d16147ab10fb072
8,779
py
Python
csg_fileutil_libs/pydicom/tests/test_fixes.py
lrq3000/csg_datafusion
075279929a1025fc9333a34ffc33873ea7e8f3df
[ "MIT" ]
null
null
null
csg_fileutil_libs/pydicom/tests/test_fixes.py
lrq3000/csg_datafusion
075279929a1025fc9333a34ffc33873ea7e8f3df
[ "MIT" ]
null
null
null
csg_fileutil_libs/pydicom/tests/test_fixes.py
lrq3000/csg_datafusion
075279929a1025fc9333a34ffc33873ea7e8f3df
[ "MIT" ]
2
2018-12-10T15:15:51.000Z
2020-11-14T04:29:10.000Z
# Copyright 2008-2018 pydicom authors. See LICENSE file for details. """Test fixes modules""" import unittest import copy import pickle import datetime as datetime_module from datetime import datetime from datetime import timedelta from datetime import tzinfo import pytest import pydicom as pydicom_module from pydi...
35.686992
77
0.617041
2edfe5f1f33b45a61e927d33b0ed25521efce801
3,379
py
Python
setup.py
catlee/python-zstandard
d4baf1f95b811f40773f5df0d8780fb2111ba6f5
[ "BSD-3-Clause" ]
null
null
null
setup.py
catlee/python-zstandard
d4baf1f95b811f40773f5df0d8780fb2111ba6f5
[ "BSD-3-Clause" ]
null
null
null
setup.py
catlee/python-zstandard
d4baf1f95b811f40773f5df0d8780fb2111ba6f5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016-present, Gregory Szorc # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. from __future__ import print_function from distutils.version import LooseVersion import os import sys from ...
29.640351
76
0.666469
bc3c78976b16d8d9268472e3387032856d20bd8e
1,959
py
Python
wmtmetadata/tests/test_build.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
wmtmetadata/tests/test_build.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
10
2016-09-27T21:13:22.000Z
2018-10-31T19:42:32.000Z
wmtmetadata/tests/test_build.py
csdms/wmt-metadata
39207acc376f1cd21b2ae1d5581a1e2c317a6441
[ "MIT" ]
null
null
null
"""Unit tests for the build module.""" import os import pytest from wmtmetadata.build import BuildMetadata from . import data_dir sample_config_file = os.path.join(data_dir, 'wmt-config-siwenna.yaml') host = 'siwenna.colorado.edu' name = 'Hydrotrend' tmp_dir = '/tmp' def test_build_noargs(): with pytest.raises...
30.138462
75
0.729964
a4b6ba8092d55c6424fdf7f1121f463a006e5b73
16,849
py
Python
ansible/modules/cloud/amazon/redshift.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/cloud/amazon/redshift.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
ansible/modules/cloud/amazon/redshift.py
EnjoyLifeFund/py36pkgs
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright 2014 Jens Carl, Hothead Games Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
35.029106
220
0.631373