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
fffd6446aab10f34554a5fac4ad8fe64875ee5e4
286
py
Python
website/dev/mod/__init__.py
ongzhixian/hci-admin
25564d0b906df466390ff7124ac75b765be87429
[ "MIT" ]
null
null
null
website/dev/mod/__init__.py
ongzhixian/hci-admin
25564d0b906df466390ff7124ac75b765be87429
[ "MIT" ]
null
null
null
website/dev/mod/__init__.py
ongzhixian/hci-admin
25564d0b906df466390ff7124ac75b765be87429
[ "MIT" ]
null
null
null
################################################################################ # Define package composition ################################################################################ __all__ = ["sec"] # ZX: There's a better way to do this; see other source code from elsewhere
40.857143
80
0.318182
fffd8b5ca8afd903a7f9b23e745b4d2134ffbcc2
8,532
py
Python
train.py
wizdom13/DenseNets-Pytorch
071a448364a2c8165fcbeae5caa41dd69f22ad91
[ "MIT" ]
null
null
null
train.py
wizdom13/DenseNets-Pytorch
071a448364a2c8165fcbeae5caa41dd69f22ad91
[ "MIT" ]
null
null
null
train.py
wizdom13/DenseNets-Pytorch
071a448364a2c8165fcbeae5caa41dd69f22ad91
[ "MIT" ]
null
null
null
import argparse import os import shutil import time import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torchvision.transforms as transforms import torchvision.datasets as datasets from densenet import DenseNet from argumen...
33.328125
131
0.601383
fffd8d5382b6e5ca4d4cfb9b7297ce2e8b1361ae
2,893
py
Python
mkndaq/tests/test_tei49c.py
joergklausen/gaw-mkn-daq
ee6ea3e1bd3d5cd559482248050f15183f13f96a
[ "MIT" ]
1
2022-03-21T19:19:32.000Z
2022-03-21T19:19:32.000Z
mkndaq/tests/test_tei49c.py
joergklausen/mkndaq
0d14db874bc7826d6d28aaad3fe4ad80cf6e9b64
[ "MIT" ]
4
2021-09-10T12:51:00.000Z
2021-10-07T06:23:35.000Z
mkndaq/tests/test_tei49c.py
joergklausen/gaw-mkn
ee6ea3e1bd3d5cd559482248050f15183f13f96a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tests for serial communication with TEI49C """ from mkndaq.inst.tei49c import TEI49C if __name__ == '__main__': cfg = {'file': 'mkndaq.cfg', 'version': '1.0.0-20210802', 'home': 'c:/users/mkn', 'reporting_interval': 10, 'sftp': {'host': 'sftp.meteoswiss.ch', 'usr': 'gaw_mkn'...
57.86
120
0.508469
fffd921427abe601359da149701800271b72e718
80,050
py
Python
collections/ansible_collections/community/general/plugins/modules/net_tools/nmcli.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
collections/ansible_collections/community/general/plugins/modules/net_tools/nmcli.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
collections/ansible_collections/community/general/plugins/modules/net_tools/nmcli.py
escalate/my-smart-home
a9579c845761b980515ff34d2a95568c6e7c2b6c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Chris Long <alcamie@gmail.com> <chlong@redhat.com> # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __met...
41.34814
160
0.565384
fffdc5f63acd03d4849bba906bf9f1a3edc633a9
5,378
py
Python
src/quaternion.py
BootCampOSV/bcosv
eb0adcbdfe851582f1a861a15ddfc6cd8bc583d9
[ "MIT" ]
5
2016-08-05T10:55:50.000Z
2019-08-24T13:08:03.000Z
src/quaternion.py
BootCampOSV/bcosv
eb0adcbdfe851582f1a861a15ddfc6cd8bc583d9
[ "MIT" ]
8
2016-04-27T19:10:10.000Z
2018-07-11T11:36:01.000Z
src/quaternion.py
BootCampOSV/bcosv
eb0adcbdfe851582f1a861a15ddfc6cd8bc583d9
[ "MIT" ]
10
2016-04-27T10:19:29.000Z
2021-06-01T10:23:26.000Z
import networkx as nx import numpy as np import numpy.linalg as la import matplotlib.pyplot as plt import imusim.maths.quaternions as q import scipy.spatial.distance as di from itertools import takewhile,permutations from mpl_toolkits.mplot3d import Axes3D import matplotlib.cm as cm import pdb plt.close('all') #np....
29.712707
104
0.55225
fffdd410bc2984bfe6dd3696f6c8e7e8ce8d61e5
11,188
py
Python
cumulusci/tasks/salesforce/Deploy.py
hamedizadpanah-ibm/CumulusCI
eb93723e2da1ca66a7639b3197e6fab02d1bd24a
[ "BSD-3-Clause" ]
1
2020-08-08T03:55:21.000Z
2020-08-08T03:55:21.000Z
cumulusci/tasks/salesforce/Deploy.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
cumulusci/tasks/salesforce/Deploy.py
Julian88Tex/CumulusCI
82d5fab71b61fbab53c1b5fc6001452fa3f97da8
[ "BSD-3-Clause" ]
null
null
null
import base64 import functools import io import os import zipfile from cumulusci.core.exceptions import TaskOptionsError from cumulusci.core.utils import process_bool_arg, process_list_arg from cumulusci.salesforce_api.metadata import ApiDeploy from cumulusci.tasks.salesforce import BaseSalesforceMetadataApiTask from ...
41.437037
295
0.599035
fffe08fa31e4385d3011ef1b5f11db6d192c68c2
3,270
py
Python
api/tests/ver2/test_results.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-22T19:34:32.000Z
2019-02-22T19:34:32.000Z
api/tests/ver2/test_results.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
null
null
null
api/tests/ver2/test_results.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-07T22:12:25.000Z
2019-02-07T22:12:25.000Z
from api.tests.ver2.test_base import TestBase from api.ver2.utils.strings import v2_url_prefix, token_key, authorization_key from api.strings import status_key, data_key, error_key, status_404, status_200 from api.ver1.offices.strings import office_key from api.tests.ver2.test_data.office_test_data import correct_offic...
37.159091
79
0.659633
fffe29a168dc41e347bef193616b50442d81257c
6,087
py
Python
python_modules/dagster/dagster/core/definitions/decorators/sensor.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/decorators/sensor.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/decorators/sensor.py
jacob-consulting/dagster
da3ee30cfb50c7e7c8ae67dd1c3f9c8170770e28
[ "Apache-2.0" ]
null
null
null
import inspect from functools import update_wrapper from typing import TYPE_CHECKING, Callable, List, Optional, Union from dagster import check from dagster.core.definitions.sensor import RunRequest, SensorDefinition, SkipReason from dagster.core.errors import DagsterInvariantViolationError from ....seven import func...
35.184971
99
0.630524
fffe5be1694597e48d9703faa7bd825ab80daaab
215
py
Python
artellapipe/core/consts.py
ArtellaPipe/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
7
2019-10-28T05:18:30.000Z
2020-08-21T05:36:52.000Z
artellapipe/core/consts.py
tpoveda/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
4
2020-01-22T02:41:54.000Z
2020-03-17T10:49:12.000Z
artellapipe/core/consts.py
tpoveda/artellapipe
3400f6a55f124f639143fe01c559059eaba23b22
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains constanta definitions used by artellapipe-core """ from __future__ import print_function, division, absolute_import PACKAGE = 'artellapipe'
19.545455
67
0.739535
fffe5c2e710ef0c2561ce8407dead35c2661adc7
196,171
py
Python
src/aks-preview/azext_aks_preview/tests/latest/test_decorator.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/tests/latest/test_decorator.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/tests/latest/test_decorator.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
37.566258
2,471
0.597137
fffe7846f387094f34f0be7e50e40cb331ab43b2
86,519
py
Python
swift/proxy/controllers/base.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
swift/proxy/controllers/base.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
swift/proxy/controllers/base.py
xiaoguaishou/swift
166b85e468cfeed15171568329013e031acf586b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2016 OpenStack Foundation # # 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 agree...
41.396651
79
0.584935
fffe8ef1ff1523aeeae897f28cd3824b4f116140
27,153
py
Python
landlab/components/bedrock_landslider/bedrock_landslider.py
Joseph-A-Mason/landlab
ae32c159859376d4b48b9219c091921bbbb8cefa
[ "MIT" ]
2
2021-10-05T18:48:40.000Z
2021-10-05T18:49:04.000Z
landlab/components/bedrock_landslider/bedrock_landslider.py
keckje/landlab
a5dd80b8ebfd03d1ba87ef6c4368c409485f222c
[ "MIT" ]
null
null
null
landlab/components/bedrock_landslider/bedrock_landslider.py
keckje/landlab
a5dd80b8ebfd03d1ba87ef6c4368c409485f222c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Grid-based simulation of bedrock landslides. Benjamin Campforts """ import numpy as np from landlab import Component from landlab.grid.nodestatus import NodeStatus from ..depression_finder.lake_mapper import _FLOODED from .cfuncs import _landslide_runout MAX_HEIGHT_SLOPE = 100 # in m ...
37.976224
178
0.561264
fffea36e88180d771024e512935097ddf3373343
2,175
py
Python
Code_V1/RecStereo.py
Easonyesheng/StereoCameraToolk
660e43019d0687e96e6da3aca48c1c423ae5abff
[ "MIT" ]
27
2020-10-16T07:21:35.000Z
2022-03-11T02:56:13.000Z
Code_V1/RecStereo.py
Easonyesheng/StereoCamera
9319b7f4e5ce36833de722a15e1074e82b8b4f84
[ "MIT" ]
null
null
null
Code_V1/RecStereo.py
Easonyesheng/StereoCamera
9319b7f4e5ce36833de722a15e1074e82b8b4f84
[ "MIT" ]
6
2021-02-01T09:54:40.000Z
2022-03-11T03:16:39.000Z
"""Rectify""" # [9.768250931346025e-09,-2.500754865249672e-07,-9.548449895853595e-04;-6.860072261347790e-07,-2.777662381107611e-07,0.106495821734710;0.001526302816024,-0.106009349648440,-1.225012201964717] from Main import SelfCalibration import cv2 import numpy as np import time ImgPath = '' ParaPath = '' SavePath = ...
39.545455
202
0.771954
fffeb0d13c6f33b511ff0cd50034d9b6eda916d6
18,891
py
Python
Scripts/DatasetHandler/DatasetProvider.py
ReleasedBrainiac/GraphToSequenceNN
70861637088bc38054beeab44a5c478254b5da25
[ "MIT" ]
3
2019-04-26T06:40:38.000Z
2021-02-18T08:44:40.000Z
Scripts/DatasetHandler/DatasetProvider.py
ReleasedBrainiac/GraphToSequenceNN
70861637088bc38054beeab44a5c478254b5da25
[ "MIT" ]
4
2018-08-28T13:26:14.000Z
2019-12-16T18:29:11.000Z
Scripts/DatasetHandler/DatasetProvider.py
ReleasedBrainiac/GraphToSequenceNN
70861637088bc38054beeab44a5c478254b5da25
[ "MIT" ]
null
null
null
import re from multiprocessing import Pool from DatasetHandler.ContentSupport import isStr, isInt, isNotNone, setOrDefault, CalculateMeanValue, isNone from DatasetHandler.FileReader import Reader from DatasetHandler.FileWriter import Writer from DatasetHandler.DatasetExtractor import Extractor from Configurable.Project...
49.582677
182
0.610449
fffecdcca561f742db50a5aa46c86b59fc67eebf
2,049
py
Python
WP3/Task3.2/spark/main.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
2
2019-12-10T13:10:58.000Z
2019-12-13T10:11:41.000Z
WP3/Task3.2/spark/main.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
4
2020-03-31T12:13:45.000Z
2020-04-15T15:59:17.000Z
WP3/Task3.2/spark/main.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
1
2020-02-26T08:52:39.000Z
2020-02-26T08:52:39.000Z
import os import sys import time import json import logging import argparse import importlib from pyspark.sql.session import SparkSession if os.path.exists('jobs.zip'): sys.path.insert(0, 'jobs.zip') else: sys.path.insert(0, './jobs') def setup_logging(): """ Set parameters for logging into stdout...
26.61039
106
0.658858
fffedc725a5f1bd4e76d0b2f8e99e340eb95eb3c
24,411
py
Python
ambari-server/src/test/python/stacks/1.3.2/OOZIE/test_oozie_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/test/python/stacks/1.3.2/OOZIE/test_oozie_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/1.3.2/OOZIE/test_oozie_server.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
48.530815
259
0.500389
ffff2f26785eac70c403d6e88ad325e25b264b47
554
py
Python
tests/core/models.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
1
2016-05-09T12:26:20.000Z
2016-05-09T12:26:20.000Z
tests/core/models.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
null
null
null
tests/core/models.py
mcroydon/django-haystack
bdb0151cb85dc3a1b2bafcf9f5f410c9653a4ac5
[ "BSD-3-Clause" ]
null
null
null
# A couple models for Haystack to test with. import datetime from django.db import models class MockModel(models.Model): user = models.CharField(max_length=255) foo = models.CharField(max_length=255, blank=True) pub_date = models.DateTimeField(default=datetime.datetime.now) def __unicode__(self):...
26.380952
66
0.727437
ffff3478c87f5a00c7370d1cc9e49fb87e42e75c
19,578
py
Python
lib/python2.7/site-packages/pelican/tests/test_readers.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pelican/tests/test_readers.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pelican/tests/test_readers.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import os from pelican import readers from pelican.utils import SafeDatetime from pelican.tests.support import unittest, get_settings CUR_DIR = os.path.dirname(__file__) CONTENT_PATH = os.path.join(CUR_DIR, 'content') def _path(*args):...
42.103226
88
0.562008
ffff4d0fed57c36d511db17587cba728a11fd9f5
3,461
py
Python
bestfitting/src/data_process/s6_test_match_test.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
bestfitting/src/data_process/s6_test_match_test.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
bestfitting/src/data_process/s6_test_match_test.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import numpy as np import pandas as pd import cv2 from PIL import Image import imagehash from tqdm import tqdm import pickle import mlcrate as mlc from config.config import * from utils.common_util import * def test_imread(img_dir, img_id, color): img = Image.open(opj(img_dir, ...
31.752294
97
0.637388
ffff588ba363ba2bcf82ceb8908da2b271f0edfe
11,513
py
Python
jina/serve/runtimes/gateway/http/app.py
gauribhutani/jina
e1e23643f8260e6917d9704b63edc54bcebbc7e9
[ "Apache-2.0" ]
null
null
null
jina/serve/runtimes/gateway/http/app.py
gauribhutani/jina
e1e23643f8260e6917d9704b63edc54bcebbc7e9
[ "Apache-2.0" ]
null
null
null
jina/serve/runtimes/gateway/http/app.py
gauribhutani/jina
e1e23643f8260e6917d9704b63edc54bcebbc7e9
[ "Apache-2.0" ]
null
null
null
import argparse import json import warnings from typing import TYPE_CHECKING, Dict, List, Optional from jina import __version__ from jina.clients.request import request_generator from jina.enums import DataInputType from jina.helper import ( GRAPHQL_MIN_DOCARRAY_VERSION, docarray_graphql_compatible, get_fu...
35.643963
117
0.582211
ffff85308b8d9c20dc5909ff588c7dca0fe64b7c
22,992
py
Python
src/utils/utils.py
EMBEDDIA/jiant_slovene
2f4d79470143af51603dc7257f0c5aeba2e91ac9
[ "MIT" ]
null
null
null
src/utils/utils.py
EMBEDDIA/jiant_slovene
2f4d79470143af51603dc7257f0c5aeba2e91ac9
[ "MIT" ]
null
null
null
src/utils/utils.py
EMBEDDIA/jiant_slovene
2f4d79470143af51603dc7257f0c5aeba2e91ac9
[ "MIT" ]
null
null
null
""" Assorted utilities for working with neural networks in AllenNLP. """ from typing import Dict, List, Sequence, Optional, Union, Iterable import copy import os import json import random import logging import codecs import time from nltk.tokenize.moses import MosesTokenizer, MosesDetokenizer from pytorch_pretrained_...
39.709845
130
0.628697
ffffafd459edac0f39fddfe94e7b421011c86a49
6,664
py
Python
murmur/web/utils.py
tat3/murmur
5acff409b3be70cf699613ad4de0594adde04879
[ "MIT" ]
null
null
null
murmur/web/utils.py
tat3/murmur
5acff409b3be70cf699613ad4de0594adde04879
[ "MIT" ]
null
null
null
murmur/web/utils.py
tat3/murmur
5acff409b3be70cf699613ad4de0594adde04879
[ "MIT" ]
null
null
null
"""Utility functions.""" import json import os import threading import datetime from pytz import timezone from queue import Queue from requests_oauthlib import OAuth1Session def merge_two_dicts(a, b): """Merge 2 dictionaries.""" c = a.copy() c.update(b) return c class TwitterClient: """Client ...
30.568807
79
0.57503
ffffb364f2c3b1ca8df715108fc0a382f74ebcaa
10,257
py
Python
config/settings/base.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
7
2019-03-29T06:05:08.000Z
2021-07-29T07:49:49.000Z
config/settings/base.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
18
2019-02-19T05:59:34.000Z
2021-05-18T03:05:30.000Z
config/settings/base.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
3
2019-01-31T02:07:38.000Z
2019-08-04T14:52:02.000Z
""" Base settings to build other settings files upon. """ import environ import os import re ROOT_DIR = ( environ.Path(__file__) - 3 ) # (missioncontrol/config/settings/base.py - 3 = missioncontrol/) APPS_DIR = ROOT_DIR.path("missioncontrol") env = environ.Env() READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_EN...
39.755814
93
0.627864
ffffbb861eb2f5263edd8656f6933cd4aea3e9fa
4,439
py
Python
garage/tf/distributions/diagonal_gaussian.py
mark-koren/garage
a5feda84d8a226225ff6148542b4e53ff4bd0fb5
[ "MIT" ]
null
null
null
garage/tf/distributions/diagonal_gaussian.py
mark-koren/garage
a5feda84d8a226225ff6148542b4e53ff4bd0fb5
[ "MIT" ]
null
null
null
garage/tf/distributions/diagonal_gaussian.py
mark-koren/garage
a5feda84d8a226225ff6148542b4e53ff4bd0fb5
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from garage.tf.distributions.base import Distribution class DiagonalGaussian(Distribution): def __init__(self, dim, name="DiagonalGaussian"): self._dim = dim self._name = name @property def dim(self): return self._dim def kl(self, o...
39.990991
79
0.568822
ffffeab4c928325e72d801f9365ba1ebb35c6ba9
17,142
py
Python
atari.py
pyrex8/block_the_knight_pygame
940c3ef453227913a75c4d49b995ff53a4a7b2ed
[ "CNRI-Python" ]
1
2017-09-08T14:20:03.000Z
2017-09-08T14:20:03.000Z
atari.py
pyrex8/block_the_knight_pygame
940c3ef453227913a75c4d49b995ff53a4a7b2ed
[ "CNRI-Python" ]
null
null
null
atari.py
pyrex8/block_the_knight_pygame
940c3ef453227913a75c4d49b995ff53a4a7b2ed
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/env python ''' atari is a very simple module for replicating the atari VCS/2600 graphics and sound in pygame. It does not strickly enforce all the hardware limitations of the 2600. This is an attempt to make it easy to make 2600ish games in python.''' __author__ = "Rex Allison" __copyright__ = "Co...
31.569061
80
0.513826
080001f0e8a95b9a38cc4bd73c8b59a985116c00
16,679
py
Python
owtf/http/requester.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/http/requester.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
owtf/http/requester.py
alienus/owtf
b6d81fac83c324c2b8c6fe2a974c036881c1fcd0
[ "BSD-3-Clause" ]
null
null
null
""" owtf.http.requester ~~~~~~~~~~~~~~~~~~~ The Requester module is in charge of simplifying HTTP requests and automatically log HTTP transactions by calling the DB module. """ import logging import sys from owtf import get_scoped_session try: import http.client as client except ImportError: import httplib...
33.291417
121
0.607111
080023b00cba422090f8bdf1c76fb153acb89701
1,460
py
Python
channel.py
sammdot/circa
2cd16a727460c3aa002e65cc91834ee7a27a91c3
[ "BSD-3-Clause" ]
1
2016-10-21T06:22:01.000Z
2016-10-21T06:22:01.000Z
channel.py
sammdot/circa
2cd16a727460c3aa002e65cc91834ee7a27a91c3
[ "BSD-3-Clause" ]
7
2015-12-22T19:37:00.000Z
2016-01-11T05:24:25.000Z
channel.py
sammdot/circa
2cd16a727460c3aa002e65cc91834ee7a27a91c3
[ "BSD-3-Clause" ]
null
null
null
from collections import deque from util.nick import nickeq, nicklower class User: def __init__(self, nick, mode=None): self.nick = nicklower(nick) self.mode = set(mode) if mode else set() self.messages = deque(maxlen=256) def __repr__(self): return "User('{0}')".format(self.nick) class NickDict(dict): def...
21.791045
49
0.70411
08002e546ed01805469dd2886a61cc7d426c1ef6
41,391
py
Python
tests/tensor/utils.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
tests/tensor/utils.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
tests/tensor/utils.py
anirudhacharya/Theano-PyMC
55f54243cf88397b032ebc7121d1090ee91aea7d
[ "BSD-3-Clause" ]
null
null
null
import os from copy import copy from itertools import combinations from tempfile import mkstemp import numpy as np import pytest import aesara from aesara import function, shared from aesara.compile.mode import get_default_mode from aesara.configdefaults import config from aesara.graph.utils import MethodNotDefined f...
36.824733
103
0.590829
08007f9f8347387e692eb3adad24120a2b8330d9
3,152
py
Python
basil/industry/__init__.py
eve-basil/calculib
217e15809c89e77bf22d30ad5a19490085094acb
[ "Apache-2.0" ]
null
null
null
basil/industry/__init__.py
eve-basil/calculib
217e15809c89e77bf22d30ad5a19490085094acb
[ "Apache-2.0" ]
null
null
null
basil/industry/__init__.py
eve-basil/calculib
217e15809c89e77bf22d30ad5a19490085094acb
[ "Apache-2.0" ]
null
null
null
class IndustryException(Exception): pass decryptors = [{id: 123456, 'name': 'Accelerant', 'runs': 1, 'me': 2, 'te': 10, 'chance': 20}, {id: 123456, 'name': 'Attainment', 'runs': 4, 'me': -1, 'te': 4, 'chance': 80}, {id: 123456, 'name': 'Augmentation', 'runs...
50.83871
78
0.448921
0800c11216c1c03ef5c5479430d7bfdea5b1800d
1,912
py
Python
superset/views/database/validators.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
16
2017-01-22T19:24:02.000Z
2021-04-29T05:34:33.000Z
superset/views/database/validators.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
339
2017-03-09T00:02:21.000Z
2022-03-29T22:28:50.000Z
superset/views/database/validators.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
5
2017-06-27T03:42:10.000Z
2020-02-14T18:38:22.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.142857
87
0.719665
0800d1f424ead2f31e48fa3b2198e6e6e6acd657
743
py
Python
tests/test_crispr.py
MirkoLedda/polyoligo
c9fc952fbc7315f426a137313fb36cd16a5e5957
[ "BSD-2-Clause" ]
3
2019-07-26T20:09:50.000Z
2022-01-11T00:56:45.000Z
tests/test_crispr.py
MirkoLedda/polyoligo
c9fc952fbc7315f426a137313fb36cd16a5e5957
[ "BSD-2-Clause" ]
1
2021-04-21T13:27:45.000Z
2021-04-21T13:27:45.000Z
tests/test_crispr.py
MirkoLedda/polyoligo
c9fc952fbc7315f426a137313fb36cd16a5e5957
[ "BSD-2-Clause" ]
2
2020-02-10T22:34:15.000Z
2022-03-01T21:29:01.000Z
import sys import os import yaml sys.path.insert(0, os.path.abspath(".")) from src.polyoligo import cli_crispr with open("tests/KWARGS.yaml", "r") as f: KWARGS = yaml.safe_load(f) cli_crispr.main(strcmd=" ".join([ "polyoligo-crispr", KWARGS["roi"], KWARGS["out"], KWARGS["reference"], "--debu...
17.690476
41
0.596231
0800d5440f603ddda68ec0b1ad50c1af2cb285fd
521
py
Python
bfgame/queries/restrictions.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bfgame/queries/restrictions.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bfgame/queries/restrictions.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib.restrictions.set import RestrictionSet from core.queries import listing from core.queries.base import CumulativeQuery @listing.register_query class Restrictions(CumulativeQuery): """ This Query retrieves restrictions from all components """ name = "restrictions" @property def resul...
26.05
80
0.731286
0800e17023a794e284ea65b5e220e3fd8625161f
6,235
py
Python
timm/utils/custom_transform.py
m-bain/pytorch-image-models
b85951c237e42ed50c3193b77edf4c58e686e3bb
[ "Apache-2.0" ]
1
2021-06-24T14:45:48.000Z
2021-06-24T14:45:48.000Z
timm/utils/custom_transform.py
m-bain/pytorch-image-models
b85951c237e42ed50c3193b77edf4c58e686e3bb
[ "Apache-2.0" ]
null
null
null
timm/utils/custom_transform.py
m-bain/pytorch-image-models
b85951c237e42ed50c3193b77edf4c58e686e3bb
[ "Apache-2.0" ]
null
null
null
import numbers import torch from torch import Tensor from typing import List, Tuple, Any, Optional from torchvision.transforms import functional_pil as F_pil from torchvision.transforms import functional_tensor as F_t from torchvision.transforms.functional import center_crop, crop def _get_image_size(img: Tensor) -> L...
38.251534
109
0.659022
0800ed1030b7b6a69399f36a5be56b6b7ccf052f
1,062
py
Python
run_time/src/gae_server/browser_redirector.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
run_time/src/gae_server/browser_redirector.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
run_time/src/gae_server/browser_redirector.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
""" Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
29.5
85
0.728814
0801254f5c55428fa0985814c1576c2c8481b12f
167,192
py
Python
src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py
saisankargochhayat/azure-cli-extensions
f89443a766961f984977a2cf1b682973fcb61edd
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.531671
2,472
0.64914
08012f91e451cb6eb7e72f219184a49b583f6c51
936
py
Python
src/python/grapl-template-generator/grapl_template_generator/main.py
grapl-security/grapl
24caa7fb4424645495d99fb338e2231fc4f66712
[ "Apache-2.0" ]
291
2020-04-24T03:40:06.000Z
2022-03-29T02:47:16.000Z
src/python/grapl-template-generator/grapl_template_generator/main.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
848
2020-04-26T19:23:37.000Z
2022-03-31T16:57:39.000Z
src/python/grapl-template-generator/grapl_template_generator/main.py
silocityit/grapl
3ec918cc4c0ce18fafff0a2917c726fa0fd0f1d0
[ "Apache-2.0" ]
43
2020-04-27T20:59:18.000Z
2022-03-29T21:56:09.000Z
from __future__ import annotations import typer from grapl_template_generator.rust_grpc_service.create_rust_grpc_service import ( create_rust_grpc_service, ) from grapl_template_generator.rust_grpc_service.create_rust_grpc_service_args import ( CreateRustGrpcServiceArgs, ) """ Generators for: * Asynchronous/S...
26
110
0.746795
080164202f5b4009fc6363db0eea34524820e3f9
24,026
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extensions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extensions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extensions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.382239
216
0.682344
08018d89105751e7ebab8e44aec27d2942beaca5
1,949
py
Python
profiles_api/serializers.py
grreenkk/outlines_rest_api
a8e8411e6e620de9eaf62da23ae5ae7f53c8ebac
[ "MIT" ]
null
null
null
profiles_api/serializers.py
grreenkk/outlines_rest_api
a8e8411e6e620de9eaf62da23ae5ae7f53c8ebac
[ "MIT" ]
null
null
null
profiles_api/serializers.py
grreenkk/outlines_rest_api
a8e8411e6e620de9eaf62da23ae5ae7f53c8ebac
[ "MIT" ]
null
null
null
from rest_framework import serializers from . import models class HelloSerializer(serializers.Serializer): """Serialzes a name field for testing our APIView""" name = serializers.CharField(max_length=10) class UserProfileSerializer(serializers.ModelSerializer): #The ModelSerializer uses a meta to configure...
42.369565
164
0.69215
08019652e2f169f63b3e439a18da3183e288039f
402
py
Python
catkin_ws/build/slam_and_navigation/catkin_generated/pkg.develspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
1
2021-09-19T07:51:23.000Z
2021-09-19T07:51:23.000Z
catkin_ws/build/slam_and_navigation/catkin_generated/pkg.develspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
catkin_ws/build/slam_and_navigation/catkin_generated/pkg.develspace.context.pc.py
a-yildiz/ROS-Simple-Sample-Packages
eb6b18adcd1fe26e2b5e644c42922e8102867cd9
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "slam_and_navigation" PROJECT_SPACE_DI...
44.666667
71
0.721393
0801f149cf31a2e37a1a894f7c1b867e0d8a0fed
8,121
py
Python
mi/dataset/parser/fdchp_a_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/fdchp_a_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/fdchp_a_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
""" @package mi.dataset.parser @file mi/dataset/parser/fdchp_a_dcl.py @author Emily Hahn @brief A parser for the fdchp series a instrument through a DCL """ __author__ = 'Emily Hahn' __license__ = 'Apache 2.0' import re from mi.core.log import get_logger log = get_logger() from mi.core.common import BaseEnum from m...
35.155844
117
0.619382
0801f17f41615ce7949aa9f2570afe2fdd6386e1
11,937
py
Python
expfactory_deploy/experiments/views.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
expfactory_deploy/experiments/views.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
expfactory_deploy/experiments/views.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
import json import sys from pathlib import Path from django.conf import settings from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.db.models import F from django.forms import formset_factory from django.http import HttpResponse, HttpResponseRedirect from django.short...
37.775316
143
0.700846
08022427787ed1dfd187a482b2cdda0fb3f26e16
2,622
py
Python
.leetcode/95.unique-binary-search-trees-ii.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/95.unique-binary-search-trees-ii.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/95.unique-binary-search-trees-ii.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=95 lang=python3 # # [95] Unique Binary Search Trees II # # https://leetcode.com/problems/unique-binary-search-trees-ii/description/ # # algorithms # Medium (43.19%) # Likes: 3011 # Dislikes: 207 # Total Accepted: 228.1K # Total Submissions: 528K # Testcase Example: '3' # # Given an integer ...
21.317073
104
0.519069
0802282e0333226c9f6e907b68303c52e0d55a65
248
py
Python
researcher/globals.py
Lewington-pitsos/researcher
b52d13bed0bd2681763e0e9c08d08a591ca23aaa
[ "MIT" ]
null
null
null
researcher/globals.py
Lewington-pitsos/researcher
b52d13bed0bd2681763e0e9c08d08a591ca23aaa
[ "MIT" ]
null
null
null
researcher/globals.py
Lewington-pitsos/researcher
b52d13bed0bd2681763e0e9c08d08a591ca23aaa
[ "MIT" ]
null
null
null
OBSERVATIONS_NAME = "observations" DATE_FORMAT = "%Y-%m-%d_%H:%M:%S" HASH_KEY = "hash" TIMESTAMP_KEY = "timestamp" DURATION_KEY = "duration" TITLE_KEY = "title" METADATA_KEYS = [ HASH_KEY, TIMESTAMP_KEY, DURATION_KEY, TITLE_KEY ]
16.533333
34
0.685484
08026e64c4f60bed789ee85ef5e23f9b7a68ab20
844
py
Python
test/test_model_loading.py
Anderssorby/odin
844dd2ec32a7c3e15959c86ad93659e7de131064
[ "MIT" ]
null
null
null
test/test_model_loading.py
Anderssorby/odin
844dd2ec32a7c3e15959c86ad93659e7de131064
[ "MIT" ]
null
null
null
test/test_model_loading.py
Anderssorby/odin
844dd2ec32a7c3e15959c86ad93659e7de131064
[ "MIT" ]
null
null
null
import unittest import odin import odin.models.base class TestModelLoading(unittest.TestCase): def test_model(self): model_wrapper = odin.models.base.load_model(model_name="mnist_vgg2") self.assertIsNotNone(model_wrapper.model) model_wrapper = odin.models.base.load_model(model_name="cifar...
27.225806
77
0.677725
08027d7adb8d426850821d29f2bb50d50d9247fd
1,177
py
Python
datacube_zarr/utils/uris.py
opendatacube/datacube-zarr
1c05a0c92d81b4235d75bbb01adcb2da9ae8013b
[ "Apache-2.0" ]
null
null
null
datacube_zarr/utils/uris.py
opendatacube/datacube-zarr
1c05a0c92d81b4235d75bbb01adcb2da9ae8013b
[ "Apache-2.0" ]
null
null
null
datacube_zarr/utils/uris.py
opendatacube/datacube-zarr
1c05a0c92d81b4235d75bbb01adcb2da9ae8013b
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Tuple from urllib.parse import urlparse def uri_split(uri: str) -> Tuple[str, str, str]: """ Splits uri into protocol, root, and group Example: uri_split('file:///path/to/my_dataset.zarr#group/subgroup/etc') returns ('file', '/path/to/my_dataset.zarr', 'group/...
31.810811
75
0.643161
08027e19b45c76eb93849b3f9fd9ae007d241344
7,280
py
Python
nodemonitor/master_ui.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
3
2018-01-09T05:58:21.000Z
2021-07-15T13:18:10.000Z
nodemonitor/master_ui.py
foxty/node_monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
14
2018-01-17T06:19:48.000Z
2022-02-12T02:29:14.000Z
nodemonitor/master_ui.py
foxty/node-monitor
2d3b8870a20cf2fe4d7ae3f4c95f2fd74da6c8e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on 2017-12-22 @author: foxty UI for master node """ import sys, os import logging import socket from datetime import datetime, timedelta from flask import Flask, request, render_template from common import YAMLConfig, dump_json, set_logging from model import TSDAg...
33.548387
111
0.684753
0802b321fd0f731421b57826f796cafd95ae2638
7,505
py
Python
tests/test_lock.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
tests/test_lock.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
tests/test_lock.py
eggplants/pybsddb-mirror
692635036ffa70e2562da94ea0a447d15ae57025
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2008-2022, Jesus Cea Avion <jcea@jcea.es> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of...
36.256039
78
0.608128
0802b9f9b8322b922fe2f07ef04b79aabdfc4299
1,774
py
Python
setup.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
null
null
null
setup.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
12
2016-11-07T23:46:01.000Z
2018-08-24T19:00:12.000Z
setup.py
joshgabriel/MPInterfaces
2799ae161fa94c78842092fb24ef468607afa465
[ "MIT" ]
null
null
null
import glob import os from setuptools import setup, find_packages MPINT_DIR = os.path.dirname(os.path.abspath(__file__)) setup( name="MPInterfaces", version="2018.3.21", install_requires=["FireWorks>=1.4.0", "custodian>=1.0.1", "pymatgen-db>=0.5.1", "ase>=3.11....
39.422222
89
0.595265
0802ba9eea1d13441c09ed5d3ce6631d5bdf418f
1,999
py
Python
deployment/mbm_inference.py
darenas/Azure-MLOps-tutorial
ea9bea8c8a83066177839429635d41c5f48030bd
[ "MIT" ]
1
2022-01-15T08:14:15.000Z
2022-01-15T08:14:15.000Z
deployment/mbm_inference.py
darenas/Azure-MLOps-tutorial
ea9bea8c8a83066177839429635d41c5f48030bd
[ "MIT" ]
null
null
null
deployment/mbm_inference.py
darenas/Azure-MLOps-tutorial
ea9bea8c8a83066177839429635d41c5f48030bd
[ "MIT" ]
1
2022-01-22T04:36:02.000Z
2022-01-22T04:36:02.000Z
import os import sys import numpy as np import joblib #from sklearn.externals import joblib import math from azureml.core.model import Model from azureml.monitoring import ModelDataCollector import json import re import traceback import logging from sklearn.tree import DecisionTreeClassifier def init(): ''' ...
30.287879
177
0.711356
0802c5018c5b213a16782000285ffd415545d973
2,789
py
Python
filterdesigner/IO/_loadmat.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:22:35.000Z
2021-10-17T08:50:17.000Z
filterdesigner/IO/_loadmat.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
null
null
null
filterdesigner/IO/_loadmat.py
Yuki-F-HCU/filterdesigner
bb735d507da0338b2925f84e54df091ce1c32f95
[ "BSD-3-Clause" ]
2
2020-09-15T07:23:24.000Z
2021-05-03T10:03:32.000Z
import scipy.io as io import numpy as np from typing import List, Tuple def loadmat(filename:str, mdict:dict, byte_order:str=None, matlab_compatible:bool=False, verify_compressed_data_integrity:bool=True, variable_names=None)->dict: """ Load MATLAB file. Param...
40.42029
94
0.574399
0802dd1554232e6b7c212a69a5690f9786319539
4,522
py
Python
IDAstar/controller1.py
surru/Treasure-Hunt
9be133ed463ad0b42dcb10c9aa255dc626fe15d4
[ "MIT" ]
1
2016-08-22T12:08:11.000Z
2016-08-22T12:08:11.000Z
IDAstar/controller1.py
surru/Treasure-Hunt
9be133ed463ad0b42dcb10c9aa255dc626fe15d4
[ "MIT" ]
1
2021-03-30T01:30:50.000Z
2021-03-30T01:30:50.000Z
IDAstar/controller1.py
surru/Treasure-Hunt
9be133ed463ad0b42dcb10c9aa255dc626fe15d4
[ "MIT" ]
1
2016-08-22T12:08:13.000Z
2016-08-22T12:08:13.000Z
#,Saurabh Khoria # 2013CSB1029 # singleAgentSearch function takes board as an input # returns three lists as described in README file # In board, following convention is followed # 1 -> musketeer # 2 -> soldier # 0 -> empty location # 3 -> Soldier With Diamond (Goal State) #...
21.533333
146
0.580053
0802f0f2110b3cc640cb4ff90bbc198b6ea7d377
10,665
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_12_01/aio/operations/_deleted_web_apps_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_12_01/aio/operations/_deleted_web_apps_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_12_01/aio/operations/_deleted_web_apps_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.888889
179
0.664323
0802fc9b5e620f8eff7f33d62421a8f2e4ea6460
31,834
py
Python
ee/clickhouse/queries/funnels/test/test_funnel_unordered.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
ee/clickhouse/queries/funnels/test/test_funnel_unordered.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
ee/clickhouse/queries/funnels/test/test_funnel_unordered.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
1
2021-09-08T19:45:03.000Z
2021-09-08T19:45:03.000Z
from uuid import uuid4 from rest_framework.exceptions import ValidationError from ee.clickhouse.models.event import create_event from ee.clickhouse.queries.funnels.funnel_unordered import ClickhouseFunnelUnordered from ee.clickhouse.queries.funnels.funnel_unordered_persons import ClickhouseFunnelUnorderedPersons from...
46.883652
216
0.623579
08030eac67e9de4c10fc00137213005a1ca4058e
5,313
py
Python
leo/plugins/importers/typescript.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/importers/typescript.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/importers/typescript.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20140723122936.18152: * @file importers/typescript.py '''The @auto importer for TypeScript.''' import leo.core.leoGlobals as g assert g import leo.plugins.importers.linescanner as linescanner import re Importer = linescanner.Importer #@+others #@+node:ekr.20161118093751.1: ** class TS_Impo...
33.415094
82
0.522116
080316de36d79fca7a2638f5fce70e875811c4b5
1,684
py
Python
alipay/aop/api/domain/SitePlanItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/SitePlanItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/SitePlanItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class SitePlanItem(object): def __init__(self): self._plan_id = None self._status = None self._type = None @property def plan_id(self): return self._plan_id ...
23.71831
65
0.538005
08031c7b603b2c2025329555625f95d0e552d4be
5,387
py
Python
python/ray/import_thread.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/import_thread.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/import_thread.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import threading import traceback import redis import ray from ray import ray_constants from ray import cloudpickle as pickle from ray import profiling from ray import utils class ImportThread(object): ...
39.610294
78
0.609616
080379eca345cc2f2c70f660945f4e486006177c
2,135
py
Python
nnlib/l_layer/forward.py
felix990302/nnlib
618c9f860ff2298ed2e0bbcb249ae74eeb8a408b
[ "Apache-2.0" ]
1
2019-03-27T17:02:50.000Z
2019-03-27T17:02:50.000Z
nnlib/l_layer/forward.py
felix990302/nnlib
618c9f860ff2298ed2e0bbcb249ae74eeb8a408b
[ "Apache-2.0" ]
null
null
null
nnlib/l_layer/forward.py
felix990302/nnlib
618c9f860ff2298ed2e0bbcb249ae74eeb8a408b
[ "Apache-2.0" ]
null
null
null
import numpy as np from nnlib.utils.activation import relu, sigmoid def linear_forward(A_prev, W, b): """ Implement linear part of forward propagation Arguments: A_prev -- activations from previous layer or input data W -- weight matrix b -- bias vector Returns: Z -- input for a...
20.528846
106
0.614988
080389c11e6863b2cc58d032886a75542e99fb28
22,486
py
Python
labkey/domain.py
LabKey/labkey-api-python
c0954785759ac3153a1d1c6a685b085f36fa9288
[ "Apache-2.0" ]
16
2016-04-06T00:15:55.000Z
2022-02-16T16:20:10.000Z
labkey/domain.py
LabKey/labkey-api-python
c0954785759ac3153a1d1c6a685b085f36fa9288
[ "Apache-2.0" ]
21
2016-03-15T20:10:31.000Z
2021-02-26T22:37:59.000Z
labkey/domain.py
LabKey/labkey-api-python
c0954785759ac3153a1d1c6a685b085f36fa9288
[ "Apache-2.0" ]
16
2015-11-07T03:05:50.000Z
2021-10-09T15:36:26.000Z
# # Copyright (c) 2018 LabKey Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.437607
109
0.655163
0803b1bc5f79a9f72bf0d88b6161185f60b0c8d2
54
py
Python
source/dl/models/__init__.py
FrancescoSaverioZuppichini/Smash-Bros-Melee
4ca6f67240bfe60e86a82409c4056aaa25a5a860
[ "MIT" ]
null
null
null
source/dl/models/__init__.py
FrancescoSaverioZuppichini/Smash-Bros-Melee
4ca6f67240bfe60e86a82409c4056aaa25a5a860
[ "MIT" ]
null
null
null
source/dl/models/__init__.py
FrancescoSaverioZuppichini/Smash-Bros-Melee
4ca6f67240bfe60e86a82409c4056aaa25a5a860
[ "MIT" ]
null
null
null
from .MyCNN import MyCNN from .resnet import resnet18
18
28
0.814815
0803eb37bcfec9ad917c8ba4f1bd18c59716a701
2,697
py
Python
data_science_tidepool_api_python/visualization/visualize_user_data.py
tidepool-org/data-science-tidepool-api-python
48f4cfa1f6c4d4bc1f8dab27d0aecbe82ffc3ddc
[ "BSD-2-Clause" ]
3
2021-05-13T22:31:18.000Z
2022-03-30T20:18:11.000Z
data_science_tidepool_api_python/visualization/visualize_user_data.py
tidepool-org/data-science-tidepool-api-python
48f4cfa1f6c4d4bc1f8dab27d0aecbe82ffc3ddc
[ "BSD-2-Clause" ]
null
null
null
data_science_tidepool_api_python/visualization/visualize_user_data.py
tidepool-org/data-science-tidepool-api-python
48f4cfa1f6c4d4bc1f8dab27d0aecbe82ffc3ddc
[ "BSD-2-Clause" ]
1
2022-03-30T20:16:53.000Z
2022-03-30T20:16:53.000Z
import datetime as dt import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set_style("darkgrid") def plot_raw_data(user, start_date, end_date): """ Args: user: Tidepool_User start_date (dt.DateTime): start date to plot end_date (dt.DateTime): end date to plot ...
28.691489
126
0.642937
080413b27c938c146c65254612fa3b300dcdf4dd
5,579
py
Python
launchpad/nodes/python/xm_docker.py
deepmind/launchpad
4e82e6c458aa2e7550261551a3c8355ad332dc80
[ "Apache-2.0" ]
264
2021-04-22T12:55:07.000Z
2022-03-26T05:55:13.000Z
launchpad/nodes/python/xm_docker.py
deepmind/launchpad
4e82e6c458aa2e7550261551a3c8355ad332dc80
[ "Apache-2.0" ]
22
2021-04-22T18:00:13.000Z
2022-03-30T01:45:08.000Z
launchpad/nodes/python/xm_docker.py
deepmind/launchpad
4e82e6c458aa2e7550261551a3c8355ad332dc80
[ "Apache-2.0" ]
21
2021-04-22T19:20:28.000Z
2022-03-16T05:36:27.000Z
# Lint as: python3 # Copyright 2020 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 # # ...
37.193333
87
0.726474
080425497debab9278b22a783032ccf91c593aa4
45,216
py
Python
src/sardana/spock/ipython_01_00/genutils.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/spock/ipython_01_00/genutils.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/spock/ipython_01_00/genutils.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and...
32.7178
145
0.602243
08043ed146ea8af52443520936260c32410bb0dc
5,356
py
Python
transformation/functions/pitchfunctions/pitch_fit_function.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
transformation/functions/pitchfunctions/pitch_fit_function.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
transformation/functions/pitchfunctions/pitch_fit_function.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
from structure.note import Note from structure.time_signature import BeatType from timemodel.duration import Duration from timemodel.position import Position from timemodel.time_conversion import TimeConversion class PitchFitFunction(object): SCALAR_BIAS_WEIGHT = 0.60 def __init__(self, pitch_function, tempo...
41.84375
123
0.634242
08045b105ddd101f08df447f728ab6501fe2c383
14,867
py
Python
training.py
TaroNakasendo/MaskEraser
373af686194aff716f53785e40252beae7b26cff
[ "MIT" ]
3
2021-06-09T01:06:56.000Z
2022-02-22T02:54:59.000Z
training.py
TaroNakasendo/MaskEraser
373af686194aff716f53785e40252beae7b26cff
[ "MIT" ]
null
null
null
training.py
TaroNakasendo/MaskEraser
373af686194aff716f53785e40252beae7b26cff
[ "MIT" ]
1
2021-08-28T01:53:07.000Z
2021-08-28T01:53:07.000Z
############################################################################### # MIT License # # Copyright (c) 2021, Jun So Intec Inc. All rights reserved. # # Author & Contact: Jun So (so_jun@intec.co.jp) ############################################################################### import argparse import os from PI...
36.799505
141
0.59326
08046783d34a1d991372dd71174e12e4f6491d8e
5,608
py
Python
salt/modules/glance.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/modules/glance.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/modules/glance.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Module for handling openstack glance calls. :optdepends: - glanceclient Python adapter :configuration: This module is not usable until the following are specified either in a pillar or in the minion's config file:: keystone.user: admin keystone.password: verybadpass keystone.tenant:...
27.900498
108
0.584522
08048175015c08069cea3bd41058058dd082bd10
3,133
py
Python
halftone/__init__.py
bzamecnik/halftone
acd2af0afaa68d516b1c72ecbe07b67769be74e6
[ "MIT" ]
null
null
null
halftone/__init__.py
bzamecnik/halftone
acd2af0afaa68d516b1c72ecbe07b67769be74e6
[ "MIT" ]
1
2021-12-21T14:56:43.000Z
2022-01-01T14:28:54.000Z
halftone/__init__.py
bzamecnik/halftone
acd2af0afaa68d516b1c72ecbe07b67769be74e6
[ "MIT" ]
null
null
null
from typing import Tuple, Union, Callable import numpy as np import PIL.Image ImgType = Union[PIL.Image.Image, np.ndarray] def halftone(img: ImgType, spot_fn: Callable[[int, int], float]) -> ImgType: is_pil = isinstance(img, PIL.Image.Image) if is_pil: img = array_from_pil(img) halftoned = img >...
24.476563
76
0.574848
08048309df24b3d9e45c9ffda8853ff7370658fb
2,277
py
Python
kronos/training/train.py
iuga/kronos
a8c93bda094c90286199e3a08386f4cdb2b0c317
[ "MIT" ]
null
null
null
kronos/training/train.py
iuga/kronos
a8c93bda094c90286199e3a08386f4cdb2b0c317
[ "MIT" ]
null
null
null
kronos/training/train.py
iuga/kronos
a8c93bda094c90286199e3a08386f4cdb2b0c317
[ "MIT" ]
null
null
null
import numpy as np def training_non_prepare(X, y): """ Dummy function for the prepare option in the generator. It wont do anything with the data. It only prints the X,y values. """ return X, y class Generators(object): """ Training Generators Utilities and Helpers """ @staticmeth...
31.191781
110
0.492314
08049dfd9f0fb70d0a57afdb8cb3c25ea039a44d
415
py
Python
users/migrations/0002_auto_20210509_1937.py
Irshak10/FinalProject
dee85ee55cec0f9d75b22ae13b94aa4f8f591908
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20210509_1937.py
Irshak10/FinalProject
dee85ee55cec0f9d75b22ae13b94aa4f8f591908
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20210509_1937.py
Irshak10/FinalProject
dee85ee55cec0f9d75b22ae13b94aa4f8f591908
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-09 19:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='accept_email', ...
21.842105
85
0.609639
0804a0c6eee3f5d1985bb9bc3279d5d46dd19950
1,193
py
Python
marqeta/response_models/card_life_cycle.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/card_life_cycle.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/card_life_cycle.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.expiration_offset import ExpirationOffset from marqeta.response_models import datetime_object import json import re class CardLifeCycle(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): ...
30.589744
90
0.729254
0804f4bc43e4928aa8db6d8b89202068e5c49040
8,358
py
Python
bbavectors/train.py
esgario/BBAVectors-Oriented-Object-Detection
3d0e5bb5c12fb52558bd5daf61d9a9528d94bd39
[ "MIT" ]
null
null
null
bbavectors/train.py
esgario/BBAVectors-Oriented-Object-Detection
3d0e5bb5c12fb52558bd5daf61d9a9528d94bd39
[ "MIT" ]
null
null
null
bbavectors/train.py
esgario/BBAVectors-Oriented-Object-Detection
3d0e5bb5c12fb52558bd5daf61d9a9528d94bd39
[ "MIT" ]
1
2021-07-16T17:14:20.000Z
2021-07-16T17:14:20.000Z
import os import cv2 import numpy as np import torch import torch.nn as nn import loss from . import func_utils from bbavectors import WORK_DIR def collater(data): out_data_dict = {} for name in data[0]: out_data_dict[name] = [] for sample in data: for name in sample: out_data...
40.572816
106
0.495214
08050441d72e4e96f96844c154fe5f22b8031703
750
py
Python
setup.py
VirkSaab/Medical-VQA
6d77963cc81940fc680a18d931e0d88a3264f5fa
[ "MIT" ]
null
null
null
setup.py
VirkSaab/Medical-VQA
6d77963cc81940fc680a18d931e0d88a3264f5fa
[ "MIT" ]
null
null
null
setup.py
VirkSaab/Medical-VQA
6d77963cc81940fc680a18d931e0d88a3264f5fa
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages VERSION = '0.0.1' f = open('README.md', 'r') LONG_DESCRIPTION = f.read() f.close() setup( name=f"mvqag", version=VERSION, description='Medical Visual Question-Answering and Generation research project in collaboration with IIT Ropar, Punjab, India and IIAI,...
30
156
0.7
08050d69bdbc7504a326f2b8a3eeaacb2d3d95e6
817
py
Python
venv/Scripts/rst2odt.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
venv/Scripts/rst2odt.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
venv/Scripts/rst2odt.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
#!C:\Users\Steve\PycharmProjects\Mahjong_Server\venv\Scripts\python.exe # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ # Author: Dave Kuhlman <dkuhlman@rexx.com> # Copyright: This module has been placed in the public domain. """ A front end to the Docutils Publisher, producing OpenOffice documents. """ impor...
26.354839
78
0.758874
080516279eeeb1b85c9c40ae7525e475eb469fc0
120
py
Python
strings_bytes_interop.py
Jongy/micropython-kernel-snippets
1c9495426335872d22d25d2963e3af1371813278
[ "MIT" ]
2
2021-09-16T19:17:30.000Z
2021-11-14T18:25:09.000Z
strings_bytes_interop.py
Jongy/micropython-kernel-snippets
1c9495426335872d22d25d2963e3af1371813278
[ "MIT" ]
null
null
null
strings_bytes_interop.py
Jongy/micropython-kernel-snippets
1c9495426335872d22d25d2963e3af1371813278
[ "MIT" ]
null
null
null
from kernel_ffi import bytes as b from kernel_ffi import str as s s(init_task) s(linux_proc_banner) b(init_task, 100)
15
33
0.791667
08051a6877c07d6d935ed0338559212d624c4202
7,906
py
Python
tests/handling/conftest.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
null
null
null
tests/handling/conftest.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
null
null
null
tests/handling/conftest.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
null
null
null
""" Testing the handling of events on the top level. As input: * Mocked cause detection, with the cause artificially simulated for each test. The proper cause detection is tested elsewhere (see ``test_detection.py``). * Registered handlers in a global registry. Each handler is a normal function, which calls a moc...
35.294643
93
0.685808
080554bd35e346179e7b38454b9184afaec6f76c
6,345
py
Python
test/functional/wallet_txn_clone.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
null
null
null
test/functional/wallet_txn_clone.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
2
2022-02-27T21:05:11.000Z
2022-02-27T21:05:47.000Z
test/functional/wallet_txn_clone.py
raipay/bitcoin-abc
5e0b712845f9649762aa0fc1e0de8665787207b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet accounts properly when there are cloned transactions with malleated scriptsigs.""" imp...
42.019868
103
0.635303
0805665ff6fca66350a84d0c92fec2d96dd98e44
10,711
py
Python
src/onevision/nn/layer/act.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/nn/layer/act.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/nn/layer/act.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Common Activation Layers. """ from __future__ import annotations import types from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor from onevision.factory import ACT_LAYERS from onevision.type import ...
27.393862
100
0.633928
08058e2d425939cfe82aa5f1eb0006f239d1d274
2,003
py
Python
cutmix/utils.py
bottlenome/cutmix
d18c2bda47e7d1786819420edbb2c8e5ad43385f
[ "MIT" ]
141
2019-07-23T12:56:59.000Z
2022-03-31T02:42:34.000Z
cutmix/utils.py
ildoonet/pytorch-cutmix
1bc006b5f40c284a6bf4ef881906e2109a27ef6c
[ "MIT" ]
6
2019-10-16T11:49:36.000Z
2021-01-11T08:33:07.000Z
cutmix/utils.py
ildoonet/pytorch-cutmix
1bc006b5f40c284a6bf4ef881906e2109a27ef6c
[ "MIT" ]
25
2019-09-15T08:48:41.000Z
2022-01-22T23:20:25.000Z
import numpy as np import torch from torch.nn.modules.module import Module class CutMixCrossEntropyLoss(Module): def __init__(self, size_average=True): super().__init__() self.size_average = size_average def forward(self, input, target): if len(target.size()) == 1: target ...
27.819444
84
0.600599
08059650c7c2aba7502997ffd970a4258fa60022
697
py
Python
python-midonetclient/src/midonetclient/port_type.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
221
2015-01-04T17:49:57.000Z
2021-12-23T16:15:35.000Z
python-midonetclient/src/midonetclient/port_type.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
8
2018-05-24T13:36:03.000Z
2021-02-19T16:01:43.000Z
python-midonetclient/src/midonetclient/port_type.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
95
2015-01-07T02:06:23.000Z
2022-02-23T22:23:55.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Midokura PTE LTD. # 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/LICENS...
33.190476
75
0.757532
0805a0009e42deab472afd6f77767b06307350cb
1,087
py
Python
sunpy/net/dataretriever/__init__.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
2
2020-01-03T16:39:28.000Z
2020-04-24T15:12:08.000Z
sunpy/net/dataretriever/__init__.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
1
2020-05-11T13:38:56.000Z
2020-05-11T13:38:56.000Z
sunpy/net/dataretriever/__init__.py
johan12345/sunpy
56e1ab0c2c992f99e0fe3e6bff468b731a51228c
[ "BSD-2-Clause" ]
null
null
null
""" The `sunpy.net.dataretriever` submodule is a framework for downloading data from "simple" web sources such as HTTP or FTP servers. Although it could be used for more complex services as well. Following the example of `sunpy.map` and `sunpy.timeseries` this module provides a base class `~sunpy.net.dataretriever.Gene...
47.26087
84
0.781969
0805a2ee95fd46e30f7631f10b4fd17fbdc35837
981
py
Python
examples/PlainPython/StartHere/example2.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/PlainPython/StartHere/example2.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/PlainPython/StartHere/example2.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
from trame import change, update_state, get_state from trame.layouts import SinglePage from trame.html.vuetify import VBtn, VTextField from trame.html import Div # Mode initial_number = 5 # Updates def increment(): (number,) = get_state("myNumber") update_state("myNumber", number + 1) def decrement(): ...
19.235294
53
0.673802
08061045f26cc1cd7511b3c3b1864b9ed6ca6b1c
1,426
py
Python
talkpython/100-days-of-code-in-python/my_progress/day_025_027_error_handling/day_027_gold_mining_boe_error_handling.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
talkpython/100-days-of-code-in-python/my_progress/day_025_027_error_handling/day_027_gold_mining_boe_error_handling.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
talkpython/100-days-of-code-in-python/my_progress/day_025_027_error_handling/day_027_gold_mining_boe_error_handling.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Back of envelope calculations for a precious metals mining company try: oz_per_yr = int(input("How many ounces will be produced annually?: ")) price_per_oz = int(input("What is the estimated USD price per ounce for the year?: ")) aisc = int(input("What is t...
29.708333
92
0.598878
08061f719dac3cb853c4e9beba07a4ff0656f576
744
py
Python
ginga/util/videosink.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
null
null
null
ginga/util/videosink.py
Cadair/ginga
5afdd8824f27c7ae7d8d82b5013b0ff0068bd8b8
[ "BSD-3-Clause" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/ginga/util/videosink.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# Uses Voki Codder's solution # http://vokicodder.blogspot.in/2011/02/numpy-arrays-to-video.html import subprocess class VideoSink(object): def __init__(self, size, filename="output", rate=2, byteorder="Y8"): self.size = size self.cmdstring = ('mencoder', '/dev/stdin', '-demuxer', 'rawvideo', ...
32.347826
101
0.594086
080622969c18937cbc0c0e2a0acd405fd51c5086
8,008
py
Python
tests/test_parser_function.py
mvisat/kopyt
48e59ed4196cb80c5498cca62ecffbcb27e6599b
[ "MIT" ]
2
2021-07-21T10:24:30.000Z
2022-01-11T11:25:25.000Z
tests/test_parser_function.py
mvisat/kopyt
48e59ed4196cb80c5498cca62ecffbcb27e6599b
[ "MIT" ]
null
null
null
tests/test_parser_function.py
mvisat/kopyt
48e59ed4196cb80c5498cca62ecffbcb27e6599b
[ "MIT" ]
1
2021-07-28T05:47:28.000Z
2021-07-28T05:47:28.000Z
import unittest from kopyt import node from . import TestParserBase class TestParserFunction(TestParserBase): def do_test(self, code: str, test_str: bool = True) -> node.FunctionDeclaration: return super().do_test("parse_declaration", code, ...
41.926702
81
0.648601
0806244b4042ffaa5730ae721df45e91d15b88f3
1,705
py
Python
apps/tsunami/chile2010/maketopo.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
apps/tsunami/chile2010/maketopo.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
apps/tsunami/chile2010/maketopo.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Create topo files needed for this example: etopo10min120W60W60S0S.asc download from GeoClaw topo repository usgs100227.tt1 create using Okada model and .cfg file """ from pyclaw.geotools import topotools import os,sys def gettopo(): """ Retrieve the topo file from th...
25.447761
86
0.652786
0806414133e131b1a7ef99925921df649db7cddb
8,312
py
Python
src/clusto/services/dhcp.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
src/clusto/services/dhcp.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
src/clusto/services/dhcp.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from collections import defaultdict from traceback import format_exc from struct import unpack from errno import EINTR import socket from clusto.services.config import conf, get_logger log = get_logger('clusto.dhcp', 'INFO') import logging runtime = logging.getLogger('scapy.runtime') runtime.setLevel(logging.ERROR) l...
33.516129
123
0.554981
08064d491e0659c057f25333a773c4fc0cc35310
4,023
py
Python
thursday/experiments.py
josh-marsh/thursday
0acb0511b8007091a409e674bb42c2c0fe8f8a82
[ "BSD-3-Clause" ]
null
null
null
thursday/experiments.py
josh-marsh/thursday
0acb0511b8007091a409e674bb42c2c0fe8f8a82
[ "BSD-3-Clause" ]
34
2018-01-31T05:22:42.000Z
2018-04-26T02:14:43.000Z
thursday/experiments.py
josh-marsh/thursday
0acb0511b8007091a409e674bb42c2c0fe8f8a82
[ "BSD-3-Clause" ]
1
2018-04-03T00:26:32.000Z
2018-04-03T00:26:32.000Z
import h5py import numpy as np from pathlib import Path from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import LogisticRegressionCV from sklearn.naive_bayes import GaussianNB from format_data import add_random from format_data import append_random from format_data import augment from form...
32.184
82
0.730798
080664067a7ec3a902c5212afb093c370ed4066c
2,115
py
Python
models/official/detection/modeling/model_builder.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
65
2017-07-28T03:47:42.000Z
2018-02-04T20:54:18.000Z
models/official/detection/modeling/model_builder.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
10
2017-08-11T22:55:40.000Z
2018-02-07T01:11:28.000Z
models/official/detection/modeling/model_builder.py
tensorflow/tpu-demos
8aac591077e5781785aa6c22bc400472ba14dada
[ "Apache-2.0" ]
28
2017-07-28T08:20:06.000Z
2018-01-28T16:28:12.000Z
# Copyright 2019 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...
38.454545
80
0.695981
0806755a28c7586b0660ed61f0be12383af96343
1,049
py
Python
NetworkHandler/BaselineAutoencoder.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
null
null
null
NetworkHandler/BaselineAutoencoder.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
null
null
null
NetworkHandler/BaselineAutoencoder.py
GitiHubi/deepContinualAuditing
858830cb72b4c772120a623da753c0c5d535ee4e
[ "MIT" ]
1
2022-02-24T11:10:50.000Z
2022-02-24T11:10:50.000Z
# import pytorch libraries import torch.nn as nn # import project libraries import NetworkHandler.Encoder as Encoder import NetworkHandler.Decoder as Decoder # define the baseline autoencoder class class BaselineAutoencoder(nn.Module): # define class constructor def __init__(self, encoder_layers, encoder_bo...
27.605263
97
0.690181
0806963c191966ce302868e816d57263cc65ac89
776
py
Python
vulture-whitelist.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
null
null
null
vulture-whitelist.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
null
null
null
vulture-whitelist.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
2
2021-07-09T10:11:28.000Z
2021-07-15T06:40:49.000Z
import x690.exc import x690.types import x690.util x690.exc.X690Error x690.types.BitString x690.types.BmpString x690.types.CharacterString x690.types.EOC x690.types.EmbeddedPdv x690.types.Enumerated x690.types.External x690.types.GeneralString x690.types.GeneralizedTime x690.types.GraphicString x690.types.IA5String x...
21.555556
40
0.865979
0806c39408eb6174a98de4ed2098936508b425b1
4,010
py
Python
alipay/aop/api/request/AlipayCommerceEducateTrainTagsQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayCommerceEducateTrainTagsQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayCommerceEducateTrainTagsQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceEducateTrainTagsQueryModel import AlipayCommerceEducateTrainTagsQueryModel class AlipayCommerceEducateTrainTagsQueryRe...
27.655172
148
0.64788
080709d12f69f543935117d768baf054247777b4
4,963
py
Python
adoctor-cli/adoctor_cli/commands/check_rule_cmd.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-cli/adoctor_cli/commands/check_rule_cmd.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-cli/adoctor_cli/commands/check_rule_cmd.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
33.086667
98
0.605078
080713d07be267ead5cc09503b16127c9c8d0fb9
876
py
Python
examples/run_trainer.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2022-03-12T04:49:19.000Z
2022-03-12T04:49:19.000Z
examples/run_trainer.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
examples/run_trainer.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- import colossalai from colossalai.core import global_context as gpc from colossalai.logging import get_global_dist_logger from colossalai.trainer import Trainer def run_trainer(): engine, train_dataloader, test_dataloader = colossalai.initialize() logger = get_...
25.764706
71
0.689498
0807267e2531eccd4a2ce81e5ffd405e6bd660b7
3,629
py
Python
tests/api/test_supervisor.py
janiversen/supervisor
890313701c37eb4a14b870b361729491c1ed20aa
[ "Apache-2.0" ]
597
2017-04-27T15:10:08.000Z
2019-12-18T16:02:57.000Z
tests/api/test_supervisor.py
janiversen/supervisor
890313701c37eb4a14b870b361729491c1ed20aa
[ "Apache-2.0" ]
799
2017-05-02T00:26:07.000Z
2019-12-18T21:40:18.000Z
tests/api/test_supervisor.py
janiversen/supervisor
890313701c37eb4a14b870b361729491c1ed20aa
[ "Apache-2.0" ]
173
2017-04-26T17:03:42.000Z
2019-12-15T10:41:57.000Z
"""Test Supervisor API.""" # pylint: disable=protected-access from unittest.mock import patch from aiohttp.test_utils import TestClient import pytest from supervisor.coresys import CoreSys from supervisor.exceptions import StoreGitError, StoreNotFound from supervisor.store.repository import Repository REPO_URL = "ht...
36.29
93
0.743731
08079520de3d86df28cacaa5a92d3d961511912c
404
py
Python
app/app/tests.py
StanPeter/recipeApi
23ae19b6eecef6ba02fb2262b833f50013fac035
[ "MIT" ]
null
null
null
app/app/tests.py
StanPeter/recipeApi
23ae19b6eecef6ba02fb2262b833f50013fac035
[ "MIT" ]
null
null
null
app/app/tests.py
StanPeter/recipeApi
23ae19b6eecef6ba02fb2262b833f50013fac035
[ "MIT" ]
null
null
null
from django.test import TestCase from app.calc import add, subtract class CalcTest(TestCase): def test_add_numbers(self): # has to start with 'test' as well """Test that two numbers are added together""" self.assertEqual(add(3, 8), 11) def test_subtract_numbers(self): """Test that ...
26.933333
67
0.678218
080815520b79e2edac84729d1cfc8e9233f175cb
21,368
py
Python
azure/multiapi/storagev2/filedatalake/v2020_02_10/_shared_access_signature.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storagev2/filedatalake/v2020_02_10/_shared_access_signature.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storagev2/filedatalake/v2020_02_10/_shared_access_signature.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from typin...
54.510204
118
0.712327
08081a6d68e8858f272c00667f26caeb6fae4891
242
py
Python
Seeder/contracts/management/commands/expire_contracts.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/contracts/management/commands/expire_contracts.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/contracts/management/commands/expire_contracts.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
from django.core.management.base import BaseCommand from contracts.cron import expire_contracts class Command(BaseCommand): help = 'Expires contracts that are overdue.' def handle(self, *args, **options): expire_contracts()
26.888889
51
0.747934
08081b3ae076bf8182a545e38dcc53357ceab04b
1,553
py
Python
Bots/InstaBot/getarrobas.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
Bots/InstaBot/getarrobas.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
Bots/InstaBot/getarrobas.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By class getinstas(): def __init__(self, email, password): self.browser = webdriver.Chrome('chromedriver.exe') self.email = email self.password = pass...
39.820513
100
0.662589
080824d447cf73b91feb1969b9f8f06a52ff1795
556
py
Python
unique_in_order/test_unique_in_order.py
guilhermegouw/codewars
8ad98bb661c9b47b9d9683df07cd9672ff80731c
[ "MIT" ]
null
null
null
unique_in_order/test_unique_in_order.py
guilhermegouw/codewars
8ad98bb661c9b47b9d9683df07cd9672ff80731c
[ "MIT" ]
null
null
null
unique_in_order/test_unique_in_order.py
guilhermegouw/codewars
8ad98bb661c9b47b9d9683df07cd9672ff80731c
[ "MIT" ]
null
null
null
from unique_in_order import unique_in_order def test_unique_in_order_string_all_caps(): output = unique_in_order("AAAABBBCCDAABBB") assert output == ["A", "B", "C", "D", "A", "B"] def test_unique_in_order_string_capitaland_tiny(): output = unique_in_order("ABBCcAD") assert output == ["A", "B", "C", ...
25.272727
51
0.669065
08086199d30f1dfbbd28b0e0f0f6bf4dfb0bdd9e
1,523
py
Python
test/unit/gen_libs/get_secs.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/unit/gen_libs/get_secs.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
test/unit/gen_libs/get_secs.py
deepcoder42/python-lib
249f456fdd41a6883206fea8e19c9e098cc969e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: get_secs.py Description: Unit testing of get_secs in gen_libs.py. Usage: test/unit/gen_libs/get_secs.py Arguments: """ # Libraries and Global Variables # Standard from __future__ import print_function import sys import os if sys.version_in...
14.931373
70
0.623769
08086ad10d127cf2fc29cbfa79450d91684b22ba
2,807
py
Python
infra/src/stacks/ci_pipeline_stack.py
elangovana/large-scale-ptm-ppi
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
1
2022-02-25T22:06:39.000Z
2022-02-25T22:06:39.000Z
infra/src/stacks/ci_pipeline_stack.py
elangovana/ppi-aimed
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
null
null
null
infra/src/stacks/ci_pipeline_stack.py
elangovana/ppi-aimed
cc835df915d12dd20c35f9cea5e40365200a6d3d
[ "MIT" ]
null
null
null
from aws_cdk import core from aws_cdk.core import CfnParameter from custom_constructs.ci_pipeline_dockerise_construct import CIPipelineDockeriseConstruct class CIPipelineStack(core.Stack): """ This sets up the CI pipeline that builds and tests python and cdk. """ def __init__(self, scope: core.Const...
57.285714
240
0.615248