hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
6c14e8a26a89b32f9cfbbb6d6a65e16d30e18d50
71,264
py
Python
mmdet/datasets/pipelines/transforms.py
wangstone666/mmdetection
5ce2f219c1cedd6ccd1e531232341497c893d7fe
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/pipelines/transforms.py
wangstone666/mmdetection
5ce2f219c1cedd6ccd1e531232341497c893d7fe
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/pipelines/transforms.py
wangstone666/mmdetection
5ce2f219c1cedd6ccd1e531232341497c893d7fe
[ "Apache-2.0" ]
null
null
null
import inspect import mmcv import numpy as np from numpy import random from mmdet.core import PolygonMasks from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps from ..builder import PIPELINES try: from imagecorruptions import corrupt except ImportError: corrupt = None try: import albumentations ...
39.48144
147
0.565335
43f26354de406a00593001efb363ea0a88537028
16,604
py
Python
train_test_fssd_mobile_pre.py
wangxianrui/pytorch_peleelite
5b854aefe99ea7f8511425dda81be44a39fb844c
[ "MIT" ]
null
null
null
train_test_fssd_mobile_pre.py
wangxianrui/pytorch_peleelite
5b854aefe99ea7f8511425dda81be44a39fb844c
[ "MIT" ]
null
null
null
train_test_fssd_mobile_pre.py
wangxianrui/pytorch_peleelite
5b854aefe99ea7f8511425dda81be44a39fb844c
[ "MIT" ]
1
2021-03-05T08:43:47.000Z
2021-03-05T08:43:47.000Z
from __future__ import print_function import argparse import pickle import time import numpy as np import os import torch import torch.backends.cudnn as cudnn import torch.nn.init as init import torch.optim as optim import torch.utils.data as data from data import VOCroot, COCOroot, VOC_300, VOC_512, COCO_300, COCO_...
39.722488
120
0.579198
5d203ba4e9818eee9d1ba7f947c108a3d9fbc51c
9,601
py
Python
pi3nn/Optimizations/params_optimizer.py
liusiyan/PI3NN
37d527e67107c2cb3722dd7e153a6822a5e32ae0
[ "Apache-2.0" ]
11
2021-11-08T20:38:50.000Z
2022-01-30T02:46:39.000Z
pi3nn/Optimizations/params_optimizer.py
liusiyan/PI3NN
37d527e67107c2cb3722dd7e153a6822a5e32ae0
[ "Apache-2.0" ]
1
2022-01-13T19:46:32.000Z
2022-02-09T16:23:56.000Z
pi3nn/Optimizations/params_optimizer.py
liusiyan/PI3NN
37d527e67107c2cb3722dd7e153a6822a5e32ae0
[ "Apache-2.0" ]
1
2021-12-17T18:38:26.000Z
2021-12-17T18:38:26.000Z
''' Hyper-parameters optimizations ''' ### hyperopt package used for fast hypar-parameters tuning import random import numpy as np import pandas as pd import tensorflow as tf ##### Hyperopt hyperparameter tuning test from hyperopt import fmin, hp, Trials, STATUS_OK, tpe, rand from pi3nn.Networks.networks import U...
42.109649
203
0.701281
4935d6de5ae9c7344371d5fdc1d59b1354522b9a
4,609
py
Python
cloudmersive_convert_api_client/models/rename_xlsx_worksheet_response.py
Cloudmersive/Cloudmersive.APIClient.Python.Convert
dba2fe7257229ebdacd266531b3724552c651009
[ "Apache-2.0" ]
3
2018-07-25T23:04:34.000Z
2021-08-10T16:43:10.000Z
cloudmersive_convert_api_client/models/rename_xlsx_worksheet_response.py
Cloudmersive/Cloudmersive.APIClient.Python.Convert
dba2fe7257229ebdacd266531b3724552c651009
[ "Apache-2.0" ]
3
2020-11-23T10:46:48.000Z
2021-12-30T14:09:34.000Z
cloudmersive_convert_api_client/models/rename_xlsx_worksheet_response.py
Cloudmersive/Cloudmersive.APIClient.Python.Convert
dba2fe7257229ebdacd266531b3724552c651009
[ "Apache-2.0" ]
2
2020-01-07T09:48:01.000Z
2020-11-23T10:47:00.000Z
# coding: utf-8 """ convertapi Convert API lets you effortlessly convert file formats and types. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class RenameXlsxWorksheetResponse(obj...
31.568493
166
0.614884
dfcaf2e8e1bde7dc0dea10bebe25f0a76a4c6c7e
1,710
py
Python
rescape_graphene/django_helpers/test_write_helpers.py
calocan/rescape_graphene
20b35e7f7020470da7958e9beb1d10b82e1e20cd
[ "MIT" ]
1
2021-05-08T12:04:54.000Z
2021-05-08T12:04:54.000Z
rescape_graphene/django_helpers/test_write_helpers.py
calocan/rescape_graphene
20b35e7f7020470da7958e9beb1d10b82e1e20cd
[ "MIT" ]
6
2021-04-08T18:27:30.000Z
2022-02-10T10:30:50.000Z
rescape_graphene/django_helpers/test_write_helpers.py
rescapes/rescape-graphene
90ac2002636aa9700d5ea459d6aa0699487379f7
[ "MIT" ]
null
null
null
from unittest import TestCase import pytest from ..schema_models.user_schema import user_fields from .write_helpers import increment_prop_until_unique, enforce_unique_props from django.contrib.auth import get_user_model from django.contrib.auth.hashers import make_password @pytest.mark.django_db class WriteHelpersT...
50.294118
107
0.64152
acc1d4345d979e8feaedcaca6ad6c0ed65954c81
4,400
py
Python
src/cltk/tag/ner.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
2
2019-08-18T21:10:01.000Z
2020-05-05T09:19:40.000Z
src/cltk/tag/ner.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
62
2019-02-01T18:48:11.000Z
2020-08-19T17:52:53.000Z
src/cltk/tag/ner.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
8
2019-04-07T03:47:31.000Z
2020-07-01T07:02:59.000Z
"""Named entity recognition (NER).""" import importlib.machinery import os from nltk.tokenize.punkt import PunktLanguageVars from cltk.data.fetch import FetchCorpus from cltk.tokenizers.word import WordTokenizer from cltk.utils import CLTK_DATA_DIR __author__ = ["Natasha Voake <natashavoake@gmail.com>"] __license_...
30.985915
92
0.5975
9b1019efb18be15e767d82013da660dced3191e2
2,916
py
Python
kubernetes_manager/models/target_cluster.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
13
2020-04-03T08:33:51.000Z
2022-02-22T07:30:28.000Z
kubernetes_manager/models/target_cluster.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
27
2020-04-03T06:51:38.000Z
2022-01-21T13:12:28.000Z
kubernetes_manager/models/target_cluster.py
breimers/Django-Kubernetes-Manager
cb78b51e6aeabcd4037166fa8e7c565180fb7d93
[ "MIT" ]
6
2020-09-14T18:22:37.000Z
2022-03-04T09:08:25.000Z
import hashlib import json from tempfile import NamedTemporaryFile import yaml from django.contrib.postgres.fields import JSONField from django.db import models from django_extensions.db.models import TitleSlugDescriptionModel from ..utils import log, split_kubeconfig QUERY_TEMPLATE = "{}://{}/api/v1/query?query={}...
37.87013
148
0.61797
6de5d846d828893fd423b163408194bee376298e
2,344
py
Python
Python Programs & Projects/P35_NarySearch.py
EdgarCastillo101/Python
3d47aaaa911def287e3b7a02f8c637e87539ffe7
[ "MIT" ]
2
2021-05-25T16:17:46.000Z
2021-05-25T16:17:47.000Z
Python Programs & Projects/P35_NarySearch.py
EdgarCastillo101/Python
3d47aaaa911def287e3b7a02f8c637e87539ffe7
[ "MIT" ]
null
null
null
Python Programs & Projects/P35_NarySearch.py
EdgarCastillo101/Python
3d47aaaa911def287e3b7a02f8c637e87539ffe7
[ "MIT" ]
null
null
null
# Edgar Barrera / Github: https://github.com/EdgarCastillo101/EdgarCastillo101 # Copyright (c) 2021 Edgar Barrera #This program illustrates an example of N-ary search ARRAY_SIZE = 10000000 # Size of our array DIVISIONS = 10 # N-ary count def Main(): myArray = [] for i in range(0, ARRAY_SIZ...
28.240964
111
0.482082
7c8eed08ed24094b8999f8f0918d7d263d508c3a
5,289
py
Python
noweats/analysis.py
blr246/noweats
04a2b49fb933977a758e8e0f6aad7ffe0cd31421
[ "MIT" ]
1
2019-08-11T09:16:24.000Z
2019-08-11T09:16:24.000Z
noweats/analysis.py
blr246/noweats
04a2b49fb933977a758e8e0f6aad7ffe0cd31421
[ "MIT" ]
null
null
null
noweats/analysis.py
blr246/noweats
04a2b49fb933977a758e8e0f6aad7ffe0cd31421
[ "MIT" ]
null
null
null
""" Analysis of raw counts extracted from tweets. """ from collections import defaultdict from nltk.metrics import edit_distance import itertools as it import math def merge_most_common_counts(counts, num_to_get=None, simiarity_thresh=0.7, len_range=(3, 30), d...
30.929825
78
0.554925
2d6a3a7e70d3fb721c606a68869f4b6740d85a6a
3,195
py
Python
sdk/python/pulumi_azure_native/datafactory/get_exposure_control_feature_value_by_factory.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datafactory/get_exposure_control_feature_value_by_factory.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datafactory/get_exposure_control_feature_value_by_factory.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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 __al...
37.151163
181
0.669171
6b080cb6331f334f15fae1df7d2405cd2bd298f3
3,281
py
Python
mvpa_itab/script/movie/old/script_2017_movie.py
robbisg/mvpa_itab_wu
e3cdb198a21349672f601cd34381e0895fa6484c
[ "MIT" ]
1
2022-01-12T08:59:22.000Z
2022-01-12T08:59:22.000Z
mvpa_itab/script/movie/old/script_2017_movie.py
robbisg/mvpa_itab_wu
e3cdb198a21349672f601cd34381e0895fa6484c
[ "MIT" ]
46
2016-08-04T14:49:37.000Z
2022-03-09T08:47:48.000Z
mvpa_itab/script/movie/old/script_2017_movie.py
robbisg/mvpa_itab_wu
e3cdb198a21349672f601cd34381e0895fa6484c
[ "MIT" ]
null
null
null
import cPickle as pickle import os import numpy as np import itertools from sklearn.manifold.mds import MDS from nitime.timeseries import TimeSeries from mvpa_itab.similarity.analysis import SimilarityAnalyzer from mvpa_itab.conn.states.base import get_subsampling_measure from mvpa_itab.conn.states.pipelines import get...
33.141414
128
0.617799
e7fd4f044a9a9fc268a16eefb2408c59869dcec0
761
py
Python
migrations_bak/versions/1ab709bcb18_.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
null
null
null
migrations_bak/versions/1ab709bcb18_.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
null
null
null
migrations_bak/versions/1ab709bcb18_.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
null
null
null
"""empty message Revision ID: 1ab709bcb18 Revises: 56907d79518 Create Date: 2017-06-11 18:59:22.263122 """ # revision identifiers, used by Alembic. revision = '1ab709bcb18' down_revision = '56907d79518' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - plea...
23.78125
68
0.693824
dae331b977dfbd07e17bfaa6c1c61a0619307acf
23,360
py
Python
skydb/skydb_utils.py
PowerLoom/py-skydb
7fc7d284381bb20bbca2e6b7718fa3fadc153aff
[ "MIT" ]
14
2020-11-23T17:05:27.000Z
2022-03-22T01:52:09.000Z
skydb/skydb_utils.py
PowerLoom/py-skydb
7fc7d284381bb20bbca2e6b7718fa3fadc153aff
[ "MIT" ]
2
2020-11-25T12:00:24.000Z
2020-12-09T18:10:50.000Z
skydb/skydb_utils.py
PowerLoom/py-skydb
7fc7d284381bb20bbca2e6b7718fa3fadc153aff
[ "MIT" ]
5
2020-12-09T15:57:11.000Z
2022-01-30T13:17:14.000Z
from .crypto import hash_data_key, hash_all from .crypto import encode_string, encode_num from .crypto import genKeyPairFromSeed import requests from requests.exceptions import Timeout import json import nacl.bindings import aiohttp import os import threading from tenacity import retry, wait_fixed, retry_if_exception...
39.795571
124
0.599144
3a419762ccc1aa7aaa6c3e92cfaaacc05dfe63df
684
py
Python
src/KubeCapWatch/notify/email_module.py
nghazali/KubeCapWatch
5b99dedcee45e6e53c2361891e399b9247acfcf1
[ "Apache-2.0" ]
null
null
null
src/KubeCapWatch/notify/email_module.py
nghazali/KubeCapWatch
5b99dedcee45e6e53c2361891e399b9247acfcf1
[ "Apache-2.0" ]
1
2021-08-17T23:13:37.000Z
2021-08-18T06:39:04.000Z
src/KubeCapWatch/notify/email_module.py
nghazali/KubeCapWatch
5b99dedcee45e6e53c2361891e399b9247acfcf1
[ "Apache-2.0" ]
null
null
null
#Import smtplib for the actual sending function import smtplib # Import the email modules we'll need from email.message import EmailMessage class email_notifier: def __init__(self, smtp_server, subject, email_address): self.subject = subject self.email_address = email_address self.smtp_serv...
29.73913
60
0.662281
e50457a14ec286daf7d0afa6e96a5c9618737ace
8,074
py
Python
py/kubeflow/testing/create_kf_from_gcp_blueprint.py
ChanYiLin/testing
fab6c2782d18c3439b2699df7d1d7da154393e06
[ "Apache-2.0" ]
null
null
null
py/kubeflow/testing/create_kf_from_gcp_blueprint.py
ChanYiLin/testing
fab6c2782d18c3439b2699df7d1d7da154393e06
[ "Apache-2.0" ]
451
2021-01-22T12:27:17.000Z
2022-03-30T02:08:22.000Z
py/kubeflow/testing/create_kf_from_gcp_blueprint.py
ChanYiLin/testing
fab6c2782d18c3439b2699df7d1d7da154393e06
[ "Apache-2.0" ]
null
null
null
"""Create a Kubeflow instance using a GCP blueprint. The purpose of this script is to automate the creation of Kubeflow Deployments corresponding to different versions of Kubeflow. This script should replace create_kf_instance and potentially create_unique_kf_instance.py. Unlike create_unique_kf_instance.py this scr...
33.92437
83
0.657047
d6c7496317d5b2ac785bc593d0460b0438957755
3,663
py
Python
homeassistant/helpers/sun.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
2
2019-10-19T15:07:32.000Z
2022-01-29T10:33:20.000Z
homeassistant/helpers/sun.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
4
2021-02-08T21:05:14.000Z
2021-09-08T02:57:03.000Z
homeassistant/helpers/sun.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
2
2019-01-21T05:49:23.000Z
2019-02-19T16:30:48.000Z
"""Helpers for sun events.""" import datetime from typing import Optional, Union, TYPE_CHECKING from homeassistant.const import SUN_EVENT_SUNRISE, SUN_EVENT_SUNSET from homeassistant.core import callback from homeassistant.util import dt as dt_util from homeassistant.loader import bind_hass from .typing import HomeAss...
29.540323
85
0.69151
68b08efadef986df32c7144bac0aeb2b407be4d7
56,787
py
Python
tests/python_client/testcases/test_index.py
jaelgu/milvus
809ffbf10ee684c4f7ecba9cb38e5fda6ee40d3f
[ "Apache-2.0" ]
null
null
null
tests/python_client/testcases/test_index.py
jaelgu/milvus
809ffbf10ee684c4f7ecba9cb38e5fda6ee40d3f
[ "Apache-2.0" ]
1
2020-04-20T05:35:48.000Z
2020-04-20T05:35:48.000Z
tests/python_client/testcases/test_index.py
jaelgu/milvus
809ffbf10ee684c4f7ecba9cb38e5fda6ee40d3f
[ "Apache-2.0" ]
null
null
null
import pytest from base.client_base import TestcaseBase from base.index_wrapper import ApiIndexWrapper from utils.util_log import test_log as log from common import common_func as cf from common import common_type as ct from common.common_type import CaseLabel, CheckTasks from common.code_mapping import CollectionErro...
43.548313
126
0.655432
efbc1a42e0995bbe4ad145ad23f7368599466746
885
py
Python
models/nmssm/__init__.py
khurtado/MG5_aMC
9cde676b0a1097058c416983017af257385fa375
[ "NCSA" ]
5
2018-10-23T14:37:18.000Z
2021-11-22T20:59:02.000Z
models/nmssm/__init__.py
khurtado/MG5_aMC
9cde676b0a1097058c416983017af257385fa375
[ "NCSA" ]
26
2018-10-08T15:49:32.000Z
2020-05-15T13:33:36.000Z
models/nmssm/__init__.py
khurtado/MG5_aMC
9cde676b0a1097058c416983017af257385fa375
[ "NCSA" ]
4
2019-02-18T11:42:18.000Z
2021-11-11T20:46:08.000Z
import particles import couplings import lorentz import parameters import vertices import coupling_orders import write_param_card import propagators all_particles = particles.all_particles all_vertices = vertices.all_vertices all_couplings = couplings.all_couplings all_lorentz = lorentz.all_lorentz all_parameters = ...
18.061224
51
0.810169
3f3351bd662ac0802516b79744317c7331dd72fe
1,910
py
Python
services/get-coordinates/lambda_function.py
roki18d/aws-sfnx_geo-search
32f079edde45616b618e0d7c518ac8f1589c65be
[ "Apache-2.0" ]
null
null
null
services/get-coordinates/lambda_function.py
roki18d/aws-sfnx_geo-search
32f079edde45616b618e0d7c518ac8f1589c65be
[ "Apache-2.0" ]
null
null
null
services/get-coordinates/lambda_function.py
roki18d/aws-sfnx_geo-search
32f079edde45616b618e0d7c518ac8f1589c65be
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import os import json import pprint import urllib import requests import traceback client_id = os.environ["CLIENT_ID"] function_name_get_unirand = os.environ["FUNCTION_NAME_GET_UNIRAND"] class IntentionalError(Exception): pass class UnexpectedError(Exception): pass def lambda_handler(event, ...
34.727273
113
0.658639
37367534666ab59c7bdc77fd200c30f6f9038772
11,438
py
Python
test/test_config_structures.py
piotr-rusin/base16-theme-switcher
9e3f6b461486c62ef38ae0a15219e66aff408c83
[ "MIT" ]
null
null
null
test/test_config_structures.py
piotr-rusin/base16-theme-switcher
9e3f6b461486c62ef38ae0a15219e66aff408c83
[ "MIT" ]
null
null
null
test/test_config_structures.py
piotr-rusin/base16-theme-switcher
9e3f6b461486c62ef38ae0a15219e66aff408c83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for classes representing configuration data and sources.""" import unittest from unittest.mock import MagicMock, Mock from parameterized import parameterized from base16_theme_switcher.config_structures import ( ConfigKeyError, ConfigMapping, ConfiguredAbsolutePath, C...
34.143284
76
0.646529
963cb06a0b37bb10ead190dfd1fdce3d07404105
524
py
Python
6 kyu/Keyword Cipher Helper.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
6 kyu/Keyword Cipher Helper.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
6 kyu/Keyword Cipher Helper.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
class keyword_cipher(object): def __init__(self, abc, keyword): self.word=abc self.key="" for i in keyword+abc: if not (i in self.key): self.key+=i def encode(self, plain): res="" for i in plain: res+=self.key[self.word.index(i)] if...
30.823529
70
0.530534
77b58bcc13cd2ca66af8e6b04901083251384ba7
69
py
Python
10.26.20/dsdfg.py
Sultibones/first-git-lesson
565d7986f492c5374570f2049563c2a854382b51
[ "MIT" ]
null
null
null
10.26.20/dsdfg.py
Sultibones/first-git-lesson
565d7986f492c5374570f2049563c2a854382b51
[ "MIT" ]
null
null
null
10.26.20/dsdfg.py
Sultibones/first-git-lesson
565d7986f492c5374570f2049563c2a854382b51
[ "MIT" ]
null
null
null
for number in [1,2,3,-1,-2]: if number > 0: print(number)
23
28
0.521739
54f81a19a8a410ae588e33210494238cac701075
121
py
Python
Blood_Donation_System/newsearch/admin.py
Albert-Jokelin/Blood-Donation-System
dfb3b0188d3c604ebca94915fbda99741b23853c
[ "MIT" ]
1
2020-11-09T17:47:27.000Z
2020-11-09T17:47:27.000Z
Blood_Donation_System/newsearch/admin.py
Albert-Jokelin/Blood-Donation-System
dfb3b0188d3c604ebca94915fbda99741b23853c
[ "MIT" ]
2
2020-11-09T03:52:47.000Z
2020-11-09T03:53:23.000Z
Blood_Donation_System/newsearch/admin.py
Albert-Jokelin/Blood-Donation-System
dfb3b0188d3c604ebca94915fbda99741b23853c
[ "MIT" ]
3
2020-11-09T17:47:31.000Z
2021-12-16T10:02:34.000Z
from django.contrib import admin from.models import Hospital admin.site.register(Hospital) # Register your models here.
20.166667
32
0.818182
18f490959c0caa71e5f94831eadeb07912f7e3b3
1,959
py
Python
aliyun-python-sdk-scdn/aliyunsdkscdn/request/v20171115/DescribeScdnDomainRealTimeReqHitRateDataRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-scdn/aliyunsdkscdn/request/v20171115/DescribeScdnDomainRealTimeReqHitRateDataRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-scdn/aliyunsdkscdn/request/v20171115/DescribeScdnDomainRealTimeReqHitRateDataRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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.982143
94
0.766718
33baf5c50b6140cbf1d5a76a8d2b96d87becf97f
1,676
py
Python
encryption.py
Google-DSC-UAlberta/Discord-Bot
3bf05f44b5154cbc6dde9711f6eb3922a4556d49
[ "MIT" ]
null
null
null
encryption.py
Google-DSC-UAlberta/Discord-Bot
3bf05f44b5154cbc6dde9711f6eb3922a4556d49
[ "MIT" ]
null
null
null
encryption.py
Google-DSC-UAlberta/Discord-Bot
3bf05f44b5154cbc6dde9711f6eb3922a4556d49
[ "MIT" ]
2
2022-03-11T19:49:47.000Z
2022-03-23T05:18:24.000Z
import os from dotenv import load_dotenv # load the envionment variables from .env file load_dotenv() class Singleton(): _instance = None # Making the class Singleton # make sure there is only one instance of the class def __new__(cls, *args, **kwargs): if Singleton._instance is None: ...
23.277778
74
0.52506
240a9e8e0bddc5f15a671318ffb72ce690923d24
4,014
py
Python
src/utils.py
HOTSONHONET/CovidWhatsapp
f06adf092d7bebf33b9d585cce35b85654bd3e55
[ "MIT" ]
null
null
null
src/utils.py
HOTSONHONET/CovidWhatsapp
f06adf092d7bebf33b9d585cce35b85654bd3e55
[ "MIT" ]
null
null
null
src/utils.py
HOTSONHONET/CovidWhatsapp
f06adf092d7bebf33b9d585cce35b85654bd3e55
[ "MIT" ]
null
null
null
import requests import time import json import random # Show all the available region data def showAllSupportedRegions(): time.sleep(2) r = requests.get('https://api.quarantine.country/api/v1/regions') if r.status_code == 200: data = r.json()['data'] msg = "Here is the List of all regions...
36.825688
270
0.542601
d52530103c72c62acb818db0a7b701480dd40749
3,545
py
Python
deploy/scripts/clean-up.py
radiant-maxar/geowave
2d9f39d32e4621c8f5965a4dffff0623c1c03231
[ "Apache-2.0" ]
280
2017-06-14T01:26:19.000Z
2022-03-28T15:45:23.000Z
deploy/scripts/clean-up.py
radiant-maxar/geowave
2d9f39d32e4621c8f5965a4dffff0623c1c03231
[ "Apache-2.0" ]
458
2017-06-12T20:00:59.000Z
2022-03-31T04:41:59.000Z
deploy/scripts/clean-up.py
radiant-maxar/geowave
2d9f39d32e4621c8f5965a4dffff0623c1c03231
[ "Apache-2.0" ]
135
2017-06-12T20:39:34.000Z
2022-03-15T13:42:30.000Z
#!/usr/bin/python # Copyright (c) 2013-2020 Contributors to the Eclipse Foundation # # See the NOTICE file distributed with this work for additional # information regarding copyright ownership. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache Lic...
39.831461
104
0.617207
4a315f759fafff23d6f14acbcb69a348e5b77d89
8,251
py
Python
django-vue/djangoAPI/api/algorithms/content_based.py
BeautifulBeer/Youflix
751dcf257ce36b7ac597eaabcf4e67ab237f1eff
[ "Apache-2.0" ]
3
2021-09-05T14:25:29.000Z
2021-12-13T05:06:24.000Z
django-vue/djangoAPI/api/algorithms/content_based.py
BeautifulBeer/Youflix
751dcf257ce36b7ac597eaabcf4e67ab237f1eff
[ "Apache-2.0" ]
11
2020-06-06T00:51:00.000Z
2022-02-26T20:43:16.000Z
django-vue/djangoAPI/api/algorithms/content_based.py
BeautifulBeer/Youflix
751dcf257ce36b7ac597eaabcf4e67ab237f1eff
[ "Apache-2.0" ]
3
2019-11-28T03:19:42.000Z
2019-12-04T06:22:33.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from scipy import stats from ast import literal_eval from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from sklearn.metrics.pairwise import linear_kernel, cosine_similarity from nltk.stem.snowball imp...
40.64532
176
0.586959
333d4c5aeb07ddd9ce45105e127ae1c519ad512a
905
py
Python
NCMB/NCMBObject.py
goofmint/ncmb_py
7f478c2f562900cd05509d7092bd1fb59f55e18a
[ "MIT" ]
null
null
null
NCMB/NCMBObject.py
goofmint/ncmb_py
7f478c2f562900cd05509d7092bd1fb59f55e18a
[ "MIT" ]
null
null
null
NCMB/NCMBObject.py
goofmint/ncmb_py
7f478c2f562900cd05509d7092bd1fb59f55e18a
[ "MIT" ]
1
2021-02-10T04:13:18.000Z
2021-02-10T04:13:18.000Z
from NCMB.NCMBRequest import NCMBRequest class NCMBObject: NCMB = None def __init__(self, class_name): self.class_name = class_name self.fields = {} def get(self, key): if key in self.fields.keys(): return self.fields[key] else: return None def set(self, key, value): self.fields...
25.138889
72
0.614365
1119d7b951182b1dc2f2da041b61fab6c9dd9a5e
1,170
py
Python
molecule/default/tests/test_default.py
cisagov/ansible-role-venom-nessus-agent
112fc9aa27d4bf37ee56781ba059fc28feead25f
[ "CC0-1.0" ]
2
2021-09-28T19:37:17.000Z
2021-11-08T10:25:11.000Z
molecule/default/tests/test_default.py
cisagov/ansible-role-cdm-nessus-agent
112fc9aa27d4bf37ee56781ba059fc28feead25f
[ "CC0-1.0" ]
8
2021-03-15T07:12:55.000Z
2022-03-28T12:15:18.000Z
molecule/default/tests/test_default.py
cisagov/ansible-role-venom-nessus-agent
112fc9aa27d4bf37ee56781ba059fc28feead25f
[ "CC0-1.0" ]
1
2021-09-28T19:37:18.000Z
2021-09-28T19:37:18.000Z
"""Module containing the tests for the default scenario.""" # Standard Python Libraries import os # Third-Party Libraries import pytest import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ["MOLECULE_INVENTORY_FILE"] ).get_hosts("all") def test_nessus_...
27.857143
82
0.713675
d8488bd0b0617aaa04150a35d83fd75f37b27671
2,079
py
Python
testsuite/runner.py
giraone/S3-Performance-Test
15d921ca4d0d6b2f2c3f12ba3bd2ae4a7fc49d65
[ "MIT" ]
35
2015-06-02T10:59:44.000Z
2022-03-28T15:10:37.000Z
testsuite/runner.py
giraone/S3-Performance-Test
15d921ca4d0d6b2f2c3f12ba3bd2ae4a7fc49d65
[ "MIT" ]
10
2016-02-04T02:42:35.000Z
2022-03-31T09:51:28.000Z
testsuite/runner.py
giraone/S3-Performance-Test
15d921ca4d0d6b2f2c3f12ba3bd2ae4a7fc49d65
[ "MIT" ]
19
2016-03-30T16:58:59.000Z
2022-03-31T15:41:49.000Z
import json import time import os import subprocess import matplotlib.pyplot as plt #'--signerOverride S3Signer ' tpl = 'java -jar target/s3pt.jar ' \ '--bucketName testbucket ' \ '--endpointUrl localhost:8888 ' \ '--operation=UPLOAD ' \ '--size 4k ' \ '--http ' \ '--usePathStyleAcc...
25.353659
81
0.600289
53507af1c62d3e3f8e9dfa503f660ba3097a3c29
4,004
py
Python
geojsonvalidation/geojson_validation.py
om-henners/GeoJSON_Validation
ef3ce38502861bda7b79131fa4a8c9467a897343
[ "Apache-2.0" ]
4
2016-02-08T09:57:33.000Z
2021-04-27T07:05:28.000Z
geojsonvalidation/geojson_validation.py
om-henners/GeoJSON_Validation
ef3ce38502861bda7b79131fa4a8c9467a897343
[ "Apache-2.0" ]
null
null
null
geojsonvalidation/geojson_validation.py
om-henners/GeoJSON_Validation
ef3ce38502861bda7b79131fa4a8c9467a897343
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Base methods for GeoJSON Schema validation. Imported directly to the init of the module. """ #std lib import os.path import logging #3rd party try: import simplejson as json except ImportError: import json import jsonschema #http://python-jsonschema.readthedo...
30.333333
117
0.637612
fabafa5aca0dc5a08fc1312a72bb9c175987b514
239
py
Python
webapi/apps/api/modeling/dataset.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
webapi/apps/api/modeling/dataset.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
webapi/apps/api/modeling/dataset.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
import requests import numpy as np import environment def get_data(): session = requests.Session() session.trust_env = False endpoint = "/history" response = session.get(environment.API_URL + endpoint) return response.json()
17.071429
56
0.740586
f181917bf84155c0f5f40a997a7c5b996d20f7e8
576
py
Python
Part_2_intermediate/mod_3/lesson_2/homework_3/shop/product.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_2_intermediate/mod_3/lesson_2/homework_3/shop/product.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
Part_2_intermediate/mod_3/lesson_2/homework_3/shop/product.py
Mikma03/InfoShareacademy_Python_Courses
3df1008c8c92831bebf1625f960f25b39d6987e6
[ "MIT" ]
null
null
null
class Product: def __init__(self, name, category_name, unit_price): self.name = name self.category_name = category_name self.unit_price = unit_price def __eq__(self, other): if self.__class__ != other.__class__: return NotImplemented return (self.name == oth...
33.882353
104
0.631944
511e453a157a6b7c64420686dca85a93d06ae78f
669
py
Python
knowit2017/09.py
matslindh/codingchallenges
b6792808b03ea07304fda7e74c874c2c4d200dac
[ "MIT" ]
2
2016-12-28T09:40:07.000Z
2020-12-08T13:58:15.000Z
knowit2017/09.py
matslindh/codingchallenges
b6792808b03ea07304fda7e74c874c2c4d200dac
[ "MIT" ]
null
null
null
knowit2017/09.py
matslindh/codingchallenges
b6792808b03ea07304fda7e74c874c2c4d200dac
[ "MIT" ]
null
null
null
def generate_table(n): table = {} h = int(n/2) + 1 for x in range(1, h + 1): s = x for y in range(x + 1, h + 1): s += y if s > n: break if s not in table: table[s] = 0 table[s] += 1 return table def ...
14.866667
37
0.475336
65b037cdedcb249855b563b2f85148b5cb7e7297
8,661
py
Python
test/functional/feature_part_smsgpaidfee.py
molllyn1/particl-core
630c663fd4eeb3574d4cfebe5cd1d1abda311d6b
[ "MIT" ]
null
null
null
test/functional/feature_part_smsgpaidfee.py
molllyn1/particl-core
630c663fd4eeb3574d4cfebe5cd1d1abda311d6b
[ "MIT" ]
null
null
null
test/functional/feature_part_smsgpaidfee.py
molllyn1/particl-core
630c663fd4eeb3574d4cfebe5cd1d1abda311d6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Particl Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import struct import copy from test_framework.test_particl import ParticlTestFramework from test_framewo...
38.493333
201
0.601432
18b5233b257f22e3495d5735e56a6ebe60166e22
240
py
Python
setup.py
Calm-Ryan/TDL_wt_analysis
fc4848bf3b4bb7ff24aab4d329e5f953da7b393f
[ "MIT" ]
null
null
null
setup.py
Calm-Ryan/TDL_wt_analysis
fc4848bf3b4bb7ff24aab4d329e5f953da7b393f
[ "MIT" ]
null
null
null
setup.py
Calm-Ryan/TDL_wt_analysis
fc4848bf3b4bb7ff24aab4d329e5f953da7b393f
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='FE about Tokyo Disney wait time prediction', author='Nagi Sakugawa', license='MIT', )
21.818182
62
0.65
972baa65ac8c90e8d91f3993d8ae0bff3bae3954
4,272
py
Python
tests/test_parse.py
Arcensoth/mecha
6ba3958258adbd59773de6e3395e3a86b522b0f1
[ "MIT" ]
18
2021-09-21T04:18:16.000Z
2022-03-31T21:09:59.000Z
tests/test_parse.py
Arcensoth/mecha
6ba3958258adbd59773de6e3395e3a86b522b0f1
[ "MIT" ]
61
2021-09-21T02:45:54.000Z
2022-03-30T12:26:11.000Z
tests/test_parse.py
Arcensoth/mecha
6ba3958258adbd59773de6e3395e3a86b522b0f1
[ "MIT" ]
1
2022-01-29T07:36:06.000Z
2022-01-29T07:36:06.000Z
import pytest from beet import Function, JsonFile from beet.core.utils import JsonDict from pytest_insta import SnapshotFixture from mecha import DiagnosticError, Mecha COMMAND_EXAMPLES = Function(source_path="tests/resources/command_examples.mcfunction") MULTILINE_COMMAND_EXAMPLES = Function( source_path="tests/...
32.861538
105
0.602762
740ec597efb5f26a2973421d8499c3adc1edce2a
4,747
py
Python
code/trainer/trainer_cdvd_tsp.py
Flemingjp/CDVD-TSP
a2621476deb9386b1bc02570706f490d582930c8
[ "MIT" ]
232
2020-02-25T06:42:19.000Z
2022-03-29T17:29:27.000Z
code/trainer/trainer_cdvd_tsp.py
sosohungry/CDVD-TSP
a9bfcae1c369a0444d5ccb900ff91681a4b82f31
[ "MIT" ]
40
2020-05-11T09:29:58.000Z
2022-03-10T22:51:48.000Z
code/trainer/trainer_cdvd_tsp.py
sosohungry/CDVD-TSP
a9bfcae1c369a0444d5ccb900ff91681a4b82f31
[ "MIT" ]
50
2020-03-10T11:25:02.000Z
2022-01-11T07:13:30.000Z
import decimal import torch import torch.optim as optim from tqdm import tqdm from utils import utils from trainer.trainer import Trainer class Trainer_CDVD_TSP(Trainer): def __init__(self, args, loader, my_model, my_loss, ckp): super(Trainer_CDVD_TSP, self).__init__(args, loader, my_model, my_loss, ckp) ...
44.783019
119
0.542237
29da72186919852fef9603e3f51d36ff2c7f5bc5
43,165
py
Python
torchaudio/transforms.py
cpuhrsch/audio
d678357f06ff45eaf020f31c0147cd4c113347de
[ "BSD-2-Clause" ]
2
2021-03-13T08:24:36.000Z
2021-05-06T15:50:00.000Z
torchaudio/transforms.py
cpuhrsch/audio
d678357f06ff45eaf020f31c0147cd4c113347de
[ "BSD-2-Clause" ]
null
null
null
torchaudio/transforms.py
cpuhrsch/audio
d678357f06ff45eaf020f31c0147cd4c113347de
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import math from typing import Callable, Optional from warnings import warn import torch from torch import Tensor from torchaudio import functional as F from torchaudio.compliance import kaldi __all__ = [ 'Spectrogram', 'GriffinLim', 'AmplitudeToDB', 'MelScale', 'InverseM...
41.9893
118
0.613205
6ff3f3669e0bdf75e4bf2b6d45a9045b9d3f682e
823
py
Python
2020/6/pretty.py
yammesicka/advent
4d251ddc42b59ea5d0dc68157c23f8f1c6bac1d8
[ "MIT" ]
2
2019-12-07T13:25:59.000Z
2019-12-07T16:00:43.000Z
2020/6/pretty.py
yammesicka/advent
4d251ddc42b59ea5d0dc68157c23f8f1c6bac1d8
[ "MIT" ]
null
null
null
2020/6/pretty.py
yammesicka/advent
4d251ddc42b59ea5d0dc68157c23f8f1c6bac1d8
[ "MIT" ]
1
2020-11-19T09:09:22.000Z
2020-11-19T09:09:22.000Z
import os import pathlib from typing import Iterator, TextIO def read_groups(path: pathlib.Path) -> Iterator[list[str]]: def read_next_group(f: TextIO) -> list[str]: lines = [] while (line := f.readline()) and line != os.linesep: lines.append(line.rstrip()) return lines wi...
27.433333
76
0.656136
5245be128b7ef8fe8174a94b8a087f1bc619d137
5,019
py
Python
nn/networks.py
aporo4000/mps-deep
fdb00335c53f57826465a5cea90ce724cf18bf6c
[ "MIT", "Unlicense" ]
null
null
null
nn/networks.py
aporo4000/mps-deep
fdb00335c53f57826465a5cea90ce724cf18bf6c
[ "MIT", "Unlicense" ]
null
null
null
nn/networks.py
aporo4000/mps-deep
fdb00335c53f57826465a5cea90ce724cf18bf6c
[ "MIT", "Unlicense" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2016 Junya Kaneko <jyuneko@hotmail.com> # # 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 ...
35.34507
113
0.652919
15b3548b8b080c17822d3e733143d154a0b7421a
247
py
Python
Iterations/binarygap.py
matt-sm/codility
355eef4a1be67f5758faa884cb97a5c0ff65169e
[ "MIT" ]
null
null
null
Iterations/binarygap.py
matt-sm/codility
355eef4a1be67f5758faa884cb97a5c0ff65169e
[ "MIT" ]
null
null
null
Iterations/binarygap.py
matt-sm/codility
355eef4a1be67f5758faa884cb97a5c0ff65169e
[ "MIT" ]
null
null
null
def solution(N): b = "{0:b}".format(N) gap = 0 result = 0 for n in b: if n == "0": gap += 1 if n == "1": if gap > result: result = gap gap = 0 return result
16.466667
28
0.356275
6d93e2ffa571b181815ca6129189f68a9f8df041
3,225
py
Python
zerver/views/reactions.py
dumpmemory/zulip
496273ddbc567330a0022699d6d6eb5c646e5da5
[ "Apache-2.0" ]
4
2021-09-16T16:46:55.000Z
2022-02-06T13:00:21.000Z
zerver/views/reactions.py
dumpmemory/zulip
496273ddbc567330a0022699d6d6eb5c646e5da5
[ "Apache-2.0" ]
null
null
null
zerver/views/reactions.py
dumpmemory/zulip
496273ddbc567330a0022699d6d6eb5c646e5da5
[ "Apache-2.0" ]
1
2022-01-15T08:36:09.000Z
2022-01-15T08:36:09.000Z
from typing import Optional from django.db import transaction from django.http import HttpRequest, HttpResponse from django.utils.translation import gettext as _ from zerver.actions.reactions import check_add_reaction, do_remove_reaction from zerver.lib.emoji import emoji_name_to_emoji_code from zerver.lib.exceptions...
39.814815
87
0.726202
3f2077306401cf8d9298e886aa00dbd2ac1d3c35
994
py
Python
setup.py
tigillo/linkedin-cli
43bed36a9165a1a55826b03eba8a246740a040fd
[ "Apache-2.0" ]
12
2021-02-13T17:17:04.000Z
2022-02-07T10:53:19.000Z
setup.py
tigillo/linkedin-cli
43bed36a9165a1a55826b03eba8a246740a040fd
[ "Apache-2.0" ]
3
2021-09-18T09:49:02.000Z
2021-11-23T17:01:41.000Z
setup.py
tigillo/linkedin-cli
43bed36a9165a1a55826b03eba8a246740a040fd
[ "Apache-2.0" ]
3
2021-02-13T17:17:37.000Z
2022-03-03T21:52:10.000Z
import setuptools import os import shutil source_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(source_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() with open(os.path.join(source_directory, 'linkedin', 'resources', 'version.py'), encoding='utf-8') as f:...
35.5
104
0.712274
6e565f57d08f3d37f4b3768fec0e5e7b3bd5de80
11,999
py
Python
libspn/tests/test_models_discretedense.py
pronobis/libspn
b98141ea5a609a02706433220758e58f46bd3f5e
[ "MIT" ]
22
2019-03-01T15:58:20.000Z
2022-02-18T10:32:04.000Z
libspn/tests/test_models_discretedense.py
pronobis/libspn
b98141ea5a609a02706433220758e58f46bd3f5e
[ "MIT" ]
10
2019-03-03T18:15:24.000Z
2021-05-04T09:02:55.000Z
libspn/tests/test_models_discretedense.py
pronobis/libspn
b98141ea5a609a02706433220758e58f46bd3f5e
[ "MIT" ]
8
2019-03-22T20:45:20.000Z
2021-05-03T13:22:09.000Z
#!/usr/bin/env python3 from context import libspn as spn from test import TestCase import tensorflow as tf import numpy as np import itertools # spn.config_logger(spn.DEBUG2) class TestModelsDiscreteDense(TestCase): def generic_model_test(self, name, root, sample_latent_indicators, class_latent_indicators): ...
40.265101
105
0.594133
e3ae19c93cb041ccbc41369bf8df1a947f37e3d6
5,858
py
Python
routers/quizzes.py
manukanne/cloudatlas-quiz-api
ccb75305fae23db6f72bd5386d39ae83e798bb62
[ "Apache-2.0" ]
null
null
null
routers/quizzes.py
manukanne/cloudatlas-quiz-api
ccb75305fae23db6f72bd5386d39ae83e798bb62
[ "Apache-2.0" ]
null
null
null
routers/quizzes.py
manukanne/cloudatlas-quiz-api
ccb75305fae23db6f72bd5386d39ae83e798bb62
[ "Apache-2.0" ]
null
null
null
from fastapi import APIRouter, Depends, HTTPException, Query from typing import List, Optional from dependencies import get_repository_container, get_current_active_user, common_filter_parameters from orm.repositories import RepositoryContainerBase import services import schemas router = APIRouter( prefix="/quizz...
37.551282
109
0.706384
779ae9fc9ea33b88bbaecd28aefb63d9105dd616
12,935
py
Python
tests/manage/pv_services/test_ceph_daemon_kill_during_resource_creation.py
Madhu-1/ocs-ci
ebf93adc1b4fa58353b23da8cd9ea32361ee3d37
[ "MIT" ]
null
null
null
tests/manage/pv_services/test_ceph_daemon_kill_during_resource_creation.py
Madhu-1/ocs-ci
ebf93adc1b4fa58353b23da8cd9ea32361ee3d37
[ "MIT" ]
null
null
null
tests/manage/pv_services/test_ceph_daemon_kill_during_resource_creation.py
Madhu-1/ocs-ci
ebf93adc1b4fa58353b23da8cd9ea32361ee3d37
[ "MIT" ]
null
null
null
import logging from concurrent.futures import ThreadPoolExecutor import pytest from functools import partial from ocs_ci.framework.testlib import ManageTest from ocs_ci.framework import config from ocs_ci.ocs import constants, node from ocs_ci.ocs.resources.pvc import get_all_pvcs from ocs_ci.ocs.resources import pod ...
36.957143
87
0.586471
0ec35e415a47aae4ae2d8e88a1ba1532546820ff
2,258
py
Python
panel/tests/io/test_location.py
poplarShift/panel
1df70b5105639869997707d7efd2897082be390e
[ "BSD-3-Clause" ]
2
2021-05-03T15:19:04.000Z
2021-05-13T16:02:25.000Z
panel/tests/io/test_location.py
poplarShift/panel
1df70b5105639869997707d7efd2897082be390e
[ "BSD-3-Clause" ]
null
null
null
panel/tests/io/test_location.py
poplarShift/panel
1df70b5105639869997707d7efd2897082be390e
[ "BSD-3-Clause" ]
1
2020-12-23T16:57:08.000Z
2020-12-23T16:57:08.000Z
import param import pytest from panel.io.location import Location from panel.util import edit_readonly @pytest.fixture def location(): loc = Location() with edit_readonly(loc): loc.href = "http://localhost:5006" loc.hostname = "localhost" loc.pathname = "" loc.protocol = 'http...
27.536585
57
0.680691
f36bffff1f94c3718babeb138a9d99c46cf7c039
17,496
py
Python
haiku/_src/nets/resnet.py
pierricklee/dm-haiku
b0d07402ecc9ab76644d459d716c6f6890c062c0
[ "Apache-2.0" ]
null
null
null
haiku/_src/nets/resnet.py
pierricklee/dm-haiku
b0d07402ecc9ab76644d459d716c6f6890c062c0
[ "Apache-2.0" ]
null
null
null
haiku/_src/nets/resnet.py
pierricklee/dm-haiku
b0d07402ecc9ab76644d459d716c6f6890c062c0
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
33.453155
80
0.606824
72dd4a280f516f2b533a11085628bbd1ed240ad2
149
py
Python
Solar/Workers/__init__.py
Alapont/Solar
873913f6fead85148fa9af8e7f0091e98ac2bff1
[ "MIT" ]
null
null
null
Solar/Workers/__init__.py
Alapont/Solar
873913f6fead85148fa9af8e7f0091e98ac2bff1
[ "MIT" ]
null
null
null
Solar/Workers/__init__.py
Alapont/Solar
873913f6fead85148fa9af8e7f0091e98ac2bff1
[ "MIT" ]
null
null
null
#working to know how dis work #aparently this can be empty (or commented) __all__=["worker","Union","MinMax","Delta","Printer","Decision","CsvMaker"]
49.666667
75
0.731544
791aae23981e32d39f270352d7806521dc10cc83
682
py
Python
iktomi/utils/text.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
14
2015-02-15T05:24:22.000Z
2020-03-19T10:07:28.000Z
iktomi/utils/text.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
10
2015-04-04T10:10:41.000Z
2016-06-01T13:17:58.000Z
iktomi/utils/text.py
boltnev/iktomi
bc92006c026f9b42e56f1af5ced2fe577673a486
[ "MIT" ]
5
2015-02-20T11:18:58.000Z
2016-10-18T15:30:13.000Z
import re whitespace_re = re.compile('\s+') def pare(text, size, etc='...'): '''Pare text to have maximum size and add etc to the end if it's changed''' size = int(size) text = text.strip() if len(text)>size: # strip the last word or not to_be_stripped = not whitespace_re.findall(...
24.357143
71
0.541056
df6ffbe36c1433c0b5a614311ca1db489ed8b59b
9,273
py
Python
clientftpinterface.py
drewsauce/ftp-client
07fb964e6233a015b30932910a1031b8f9633979
[ "MIT" ]
null
null
null
clientftpinterface.py
drewsauce/ftp-client
07fb964e6233a015b30932910a1031b8f9633979
[ "MIT" ]
null
null
null
clientftpinterface.py
drewsauce/ftp-client
07fb964e6233a015b30932910a1031b8f9633979
[ "MIT" ]
1
2018-04-06T08:11:25.000Z
2018-04-06T08:11:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # title :clientftpinterface.py # description :FTP Interface class to handle requests and descriptions of commands # author :Andrew Ruppel # date :11/26/2017 # version :0.1 # usage : # notes :commands must be decl...
34.992453
102
0.563032
25377b1425886032d1f8597832fefc875771c957
3,351
py
Python
entropy_utils.py
blackorbit1/PSTL-Tri-optimise
8f7fec16416a2359706d18fe0053252f6e3a9b31
[ "MIT" ]
null
null
null
entropy_utils.py
blackorbit1/PSTL-Tri-optimise
8f7fec16416a2359706d18fe0053252f6e3a9b31
[ "MIT" ]
null
null
null
entropy_utils.py
blackorbit1/PSTL-Tri-optimise
8f7fec16416a2359706d18fe0053252f6e3a9b31
[ "MIT" ]
1
2020-02-11T14:24:48.000Z
2020-02-11T14:24:48.000Z
import math """ def get_entropy(run_size, list_size): # Calcul de l'entropie entropie_reel = 0 for i in range(int(list_size/run_size) - 1): xi = run_size / list_size if xi : entropie_reel -= xi * math.log2(xi) return entropie_reel """ def get_entropy_from_nb_runs(nb_run): ...
33.178218
164
0.695315
679d6796994736218c80713d13c90d395f6be281
3,657
py
Python
taesko/ekatte/ekatte_site/models.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
taesko/ekatte/ekatte_site/models.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
taesko/ekatte/ekatte_site/models.py
taesko/training-projects
638649b0b5987ba971ae5ce1f171642de3cde739
[ "Apache-2.0" ]
null
null
null
# This is an auto-generated Django model module. # You'll have to do the following manually to clean this up: # * Rearrange models' order # * Make sure each model has one field with primary_key=True # * Make sure each ForeignKey has `on_delete` set to the desired behavior. # * Remove `managed = False` lines if ...
37.316327
131
0.656549
f962a521479b09d65462aab7018c39b261068fe7
805
py
Python
y_2020/day6.py
Stegallo/adventofcode
74cd3725318150a4fee397a9388326d56ca49333
[ "MIT" ]
4
2020-11-28T15:46:43.000Z
2021-12-02T22:37:27.000Z
y_2020/day6.py
Stegallo/adventofcode
74cd3725318150a4fee397a9388326d56ca49333
[ "MIT" ]
80
2020-07-02T19:01:20.000Z
2021-12-06T03:48:46.000Z
y_2020/day6.py
Stegallo/adventofcode
74cd3725318150a4fee397a9388326d56ca49333
[ "MIT" ]
2
2021-04-04T06:22:56.000Z
2021-05-03T20:23:51.000Z
from collections import Counter from typing import NamedTuple from .common import AoCDay from .utils import collapse_strings class UserGroup(NamedTuple): answers: Counter size: int class Day(AoCDay): def __init__(self): super().__init__(6) def _preprocess_input(self): self.__user_g...
23.676471
83
0.616149
093f879ee63eae7f8b0ce442760d0133d4d8922b
1,195
py
Python
sort/insertion_sort.py
Assist96/alogrithms
48cd65730e1ca46b43c2ed7ef54e2da2f75bffe6
[ "MIT" ]
null
null
null
sort/insertion_sort.py
Assist96/alogrithms
48cd65730e1ca46b43c2ed7ef54e2da2f75bffe6
[ "MIT" ]
null
null
null
sort/insertion_sort.py
Assist96/alogrithms
48cd65730e1ca46b43c2ed7ef54e2da2f75bffe6
[ "MIT" ]
null
null
null
def insertion_sort(arr): arr_length=len(arr) if arr_length<2: return arr for i in range(arr_length): pre_index=i-1 cur_val=arr[i] while pre_index>=0 and arr[pre_index]>cur_val: arr[pre_index+1]=arr[pre_index] pre_index-=1 arr[pre_index+1]=cur_...
22.54717
54
0.60251
51be55993dabec30b774b5014cc327aaacbd16cd
45,764
py
Python
dysts/lyap.py
aksholokhov/dysts
d9acb38a25067cd3027978fcef3c8b3a7137a1ac
[ "Apache-2.0" ]
71
2021-09-08T15:38:41.000Z
2022-03-28T16:13:56.000Z
dysts/lyap.py
aksholokhov/dysts
d9acb38a25067cd3027978fcef3c8b3a7137a1ac
[ "Apache-2.0" ]
6
2021-10-05T00:35:02.000Z
2021-12-27T21:39:02.000Z
dysts/lyap.py
aksholokhov/dysts
d9acb38a25067cd3027978fcef3c8b3a7137a1ac
[ "Apache-2.0" ]
7
2021-11-07T03:26:56.000Z
2022-02-09T12:20:11.000Z
""" This file is directly adapted from the nolds Python library: https://github.com/CSchoel/nolds/ The modifications allow certain quantities, like the correlation dimension, to be calculated for multivariate time series. We are not connected to the creators of nolds, and we have included this file here only to ens...
46.413793
129
0.610939
4b440ef0ac04a04ef05cdd51a7c72dd38087eeab
17,297
py
Python
test/test_format_sv.py
GigundoAI/lingua-franca
dc1ed76b063a1aad54e457cf193de9c18145011f
[ "Apache-2.0" ]
null
null
null
test/test_format_sv.py
GigundoAI/lingua-franca
dc1ed76b063a1aad54e457cf193de9c18145011f
[ "Apache-2.0" ]
1
2021-06-17T00:56:25.000Z
2021-06-17T00:56:25.000Z
test/test_format_sv.py
HelloChatterbox/lingua-nostra
83f0690977a1d8cc7f04e11bfded9ee3df7abd4b
[ "Apache-2.0" ]
1
2019-10-25T18:05:32.000Z
2019-10-25T18:05:32.000Z
# # Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
47.259563
79
0.530901
9db6cb2595e0d56195dbbe1eb0bba45283af6af5
16,879
py
Python
allennlp/tests/commands/train_test.py
mhagiwara/allennlp
a05add5293f091e9dbcaa9db0783e782d77714cf
[ "Apache-2.0" ]
1
2020-07-15T05:52:59.000Z
2020-07-15T05:52:59.000Z
allennlp/tests/commands/train_test.py
mhagiwara/allennlp
a05add5293f091e9dbcaa9db0783e782d77714cf
[ "Apache-2.0" ]
null
null
null
allennlp/tests/commands/train_test.py
mhagiwara/allennlp
a05add5293f091e9dbcaa9db0783e782d77714cf
[ "Apache-2.0" ]
1
2020-08-15T00:22:54.000Z
2020-08-15T00:22:54.000Z
import argparse from typing import Iterable from collections import OrderedDict import json import os import shutil import re import pytest import torch from allennlp.models.archival import CONFIG_NAME from allennlp.common import Params from allennlp.common.checks import ConfigurationError from allennlp.common.testin...
44.653439
100
0.582499
081f74b15c211f34446f7a969555a153e43842cf
10,910
py
Python
headset/mindwave-reciver.py
daviddbarrero/pandora
3c28147e9abb1c7e9180f510506f0ae8677b7ed7
[ "MIT" ]
1
2019-08-08T22:54:43.000Z
2019-08-08T22:54:43.000Z
headset/mindwave-reciver.py
neura-8/pandora
3c28147e9abb1c7e9180f510506f0ae8677b7ed7
[ "MIT" ]
null
null
null
headset/mindwave-reciver.py
neura-8/pandora
3c28147e9abb1c7e9180f510506f0ae8677b7ed7
[ "MIT" ]
1
2019-09-06T17:58:39.000Z
2019-09-06T17:58:39.000Z
import serial import select import threading # Byte codes CONNECT = '\xc0' DISCONNECT = '\xc1' AUTOCONNECT = '\xc2' SYNC = '\xaa' EXCODE = '\x55' POOR_SIGNAL = '\x02' ATTENTION = '\x04' MEDITATION = '\x05' BLINK ...
40.258303
78
0.453162
f840fc843c0e98ed77e9d4798ec5f9a10aaa9c1a
15,616
py
Python
abrupt/proxy.py
securusglobal/abrupt
f4e46ca28eabc5c3b61bbc674c792b438621477b
[ "BSD-3-Clause" ]
3
2015-03-07T17:04:46.000Z
2017-08-15T00:26:45.000Z
abrupt/proxy.py
securusglobal/abrupt
f4e46ca28eabc5c3b61bbc674c792b438621477b
[ "BSD-3-Clause" ]
null
null
null
abrupt/proxy.py
securusglobal/abrupt
f4e46ca28eabc5c3b61bbc674c792b438621477b
[ "BSD-3-Clause" ]
null
null
null
import re import sys import traceback import socket import select import SocketServer import ssl import urlparse import threading import time from abrupt import alert, console from abrupt.http import Request, RequestSet, connect from abrupt.exception import BadStatusLine, UnableToConnect, NotConnected, \ ...
35.652968
105
0.589524
6c7db58df3e9a13077ac30ea8448dfe1862a3f35
589
py
Python
options/val_options.py
Linus4world/mrs-gan
64669251584a7421cce3a5173983a2275dcb438a
[ "BSD-2-Clause" ]
1
2022-01-03T16:08:35.000Z
2022-01-03T16:08:35.000Z
options/val_options.py
Linus4world/mrs-gan
64669251584a7421cce3a5173983a2275dcb438a
[ "BSD-2-Clause" ]
null
null
null
options/val_options.py
Linus4world/mrs-gan
64669251584a7421cce3a5173983a2275dcb438a
[ "BSD-2-Clause" ]
null
null
null
# Options that are used specifically to configure testing. # If an options is not set, its default will be used. from .base_options import BaseOptions class ValidationOptions(BaseOptions): def initialize(self): BaseOptions.initialize(self) self.parser.add_argument('--model_path', type=str, help='...
42.071429
109
0.704584
70648e475e470f5e7a4ef55c78c06989bf5c3f51
32,816
py
Python
__init__.py
yumium/privacy-assistant-skill
89cfbb9f3f66c1d5265cbfd6e7da351d265dc772
[ "MIT" ]
null
null
null
__init__.py
yumium/privacy-assistant-skill
89cfbb9f3f66c1d5265cbfd6e7da351d265dc772
[ "MIT" ]
null
null
null
__init__.py
yumium/privacy-assistant-skill
89cfbb9f3f66c1d5265cbfd6e7da351d265dc772
[ "MIT" ]
null
null
null
from mycroft import MycroftSkill, intent_handler from adapt.intent import IntentBuilder from time import sleep from mycroft.util.parse import match_one from . import (gui, graph) from .db import (databaseBursts) from os.path import join as osjoin import string DB_MANAGER = databaseBursts.dbManager() CLIENT_NAME = data...
47.285303
222
0.595746
ce599c0cadbe03dc4a1b191d933456abffe76bac
1,002
py
Python
var/spack/repos/builtin/packages/r-assertthat/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/r-assertthat/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/r-assertthat/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RAssertthat(RPackage): """assertthat is an extension to stopifnot() that makes it easy to ...
45.545455
95
0.766467
f9edf364120bf6b4ec2e83568769536f8e229aeb
60,739
py
Python
tests/utilities/test_auto_restart.py
AJSVB/pytorch-lightning
00211c1de3c5901789417263f14a36c846cc42d1
[ "Apache-2.0" ]
null
null
null
tests/utilities/test_auto_restart.py
AJSVB/pytorch-lightning
00211c1de3c5901789417263f14a36c846cc42d1
[ "Apache-2.0" ]
null
null
null
tests/utilities/test_auto_restart.py
AJSVB/pytorch-lightning
00211c1de3c5901789417263f14a36c846cc42d1
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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...
38.442405
121
0.695599
ff3d9aff5dc49dc53d3de894e9c8eeb71bd6094c
1,136
py
Python
django101/django101/cities/views.py
PetkoAndreev/Python-Web-Basics
76719cd18bd96ac422fe8d8b1a12807a1d015bb5
[ "MIT" ]
1
2021-05-27T07:57:43.000Z
2021-05-27T07:57:43.000Z
django101/django101/cities/views.py
PetkoAndreev/Python-Web-Basics
76719cd18bd96ac422fe8d8b1a12807a1d015bb5
[ "MIT" ]
null
null
null
django101/django101/cities/views.py
PetkoAndreev/Python-Web-Basics
76719cd18bd96ac422fe8d8b1a12807a1d015bb5
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render, redirect from django101.cities.models import Person def show_forms_demo(request): return render(request, 'forms_demo.html') def index(req): context = { 'name': 'Petko', 'people': Person.objects.all() } return ...
20.654545
46
0.520246
a5ec9855a176ddd51c3b4fc6ace70a16f73de0e6
47
py
Python
torchfunc/_dev_utils/__init__.py
itsjoshthedeveloper/torchfunc
684447554b01dfc96a9b0be97824e227e9bbfdbc
[ "MIT" ]
210
2019-09-16T10:54:29.000Z
2022-02-20T06:51:14.000Z
torchfunc/_dev_utils/__init__.py
itsjoshthedeveloper/torchfunc
684447554b01dfc96a9b0be97824e227e9bbfdbc
[ "MIT" ]
8
2019-09-17T15:24:01.000Z
2021-02-02T23:33:21.000Z
torchfunc/_dev_utils/__init__.py
itsjoshthedeveloper/torchfunc
684447554b01dfc96a9b0be97824e227e9bbfdbc
[ "MIT" ]
10
2019-09-29T08:41:39.000Z
2022-01-28T03:01:57.000Z
__all__ = ["_general"] from . import _general
11.75
22
0.702128
686cde2110f87ea95ce9cc9c82a18ed79fe26b68
64
py
Python
recoxplainer/recommender/__init__.py
ludovikcoba/recoxplainer
532f5fed9ea17b4884a23c838f98aa11e074aba8
[ "MIT" ]
22
2021-02-02T22:07:43.000Z
2022-03-01T17:29:26.000Z
recoxplainer/recommender/__init__.py
ludovikcoba/recoxplainer
532f5fed9ea17b4884a23c838f98aa11e074aba8
[ "MIT" ]
null
null
null
recoxplainer/recommender/__init__.py
ludovikcoba/recoxplainer
532f5fed9ea17b4884a23c838f98aa11e074aba8
[ "MIT" ]
2
2021-03-01T19:35:08.000Z
2021-03-23T01:32:30.000Z
from .recommender import Recommender __all__ = ['Recommender']
16
36
0.78125
f20ccb8f87b54a7dd685132db484f7fcbb730e64
113
py
Python
hdp/process/gps/clean.py
Open-Health-Data-Project/ohdp
9b7e339ecf09cb9319ee4d507327701619b70317
[ "BSD-3-Clause" ]
10
2020-05-06T17:59:37.000Z
2021-02-15T23:11:05.000Z
hdp/process/gps/clean.py
Open-Health-Data-Project/ohdp
9b7e339ecf09cb9319ee4d507327701619b70317
[ "BSD-3-Clause" ]
2
2020-07-02T16:36:23.000Z
2020-07-14T21:51:07.000Z
hdp/process/gps/clean.py
Open-Health-Data-Project/ohdp
9b7e339ecf09cb9319ee4d507327701619b70317
[ "BSD-3-Clause" ]
11
2020-05-08T18:49:55.000Z
2020-06-29T17:33:10.000Z
# Team 3 defaults_thresholds = {} default_max_time = {} def clean_gps(datatable: list, max_time=30): pass
12.555556
44
0.699115
b77ec7fa703e2ce992ec65aa114226e548533a30
6,857
py
Python
go/src/infra/cmd/package_index_cros/lib/util.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
go/src/infra/cmd/package_index_cros/lib/util.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
4
2022-03-17T18:58:21.000Z
2022-03-17T18:58:22.000Z
go/src/infra/cmd/package_index_cros/lib/util.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
import os from typing import List from chromite.lib import cros_build_lib from chromite.lib import git from chromite.lib import path_util from chromite.lib import repo_util from .constants import PRINT_DEPS_SCRIPT_PATH from .logger import g_logger class Setup: """ POD to keep all data related to a setup: * ...
32.966346
80
0.660201
3ecacae59f68826c7d7883d0891c9df1d035d191
2,390
py
Python
courses/galaxies/ps3/ps3_1_compute_spectra.py
brianlorenz/code
e24277bbb1deb2f0488f7b6e1f28c7b633c2c12b
[ "MIT" ]
null
null
null
courses/galaxies/ps3/ps3_1_compute_spectra.py
brianlorenz/code
e24277bbb1deb2f0488f7b6e1f28c7b633c2c12b
[ "MIT" ]
null
null
null
courses/galaxies/ps3/ps3_1_compute_spectra.py
brianlorenz/code
e24277bbb1deb2f0488f7b6e1f28c7b633c2c12b
[ "MIT" ]
1
2021-12-08T01:20:12.000Z
2021-12-08T01:20:12.000Z
# Generates ssp models asked for in problem one, then saves the output spectra into a folder in the form of a pandas dataframe import fsps import os import pandas as pd import numpy as np os.environ["SPS_HOME"] = "/Users/galaxies-air/SPS_Conroy/fsps/" loc = '/Users/galaxies-air/Desktop/Galaxies/ps3/' stellar_populat...
36.769231
126
0.684937
96f85e6727282b290017ad63ca2e92a08c9c9437
1,835
py
Python
data/p4VQE/R4/benchmark/startCirq96.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq96.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq96.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=10 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
28.671875
77
0.693733
8ea8b979100734bd1b28ff7b91d918d1e8bee589
672
py
Python
manage.py
KenMwaura1/zoo_neighborhood
46e3d289d7ab55c849bbd8badfe28011de3295f9
[ "MIT" ]
1
2021-11-03T13:09:56.000Z
2021-11-03T13:09:56.000Z
manage.py
KenMwaura1/zoo_neighborhood
46e3d289d7ab55c849bbd8badfe28011de3295f9
[ "MIT" ]
null
null
null
manage.py
KenMwaura1/zoo_neighborhood
46e3d289d7ab55c849bbd8badfe28011de3295f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'zoo_neighborhood.settings') try: from django.core.management import execute_from_command_line ex...
29.217391
80
0.683036
ab61a10c3ae9b9de96b193963cd22197d2271880
1,802
py
Python
tests/test_operations/test_subset.py
cehbrecht/daops
07e37186b67f6f966e1910474b0d8cf9c478742d
[ "BSD-3-Clause" ]
null
null
null
tests/test_operations/test_subset.py
cehbrecht/daops
07e37186b67f6f966e1910474b0d8cf9c478742d
[ "BSD-3-Clause" ]
null
null
null
tests/test_operations/test_subset.py
cehbrecht/daops
07e37186b67f6f966e1910474b0d8cf9c478742d
[ "BSD-3-Clause" ]
null
null
null
import pytest from daops import ops from tests._common import CMIP5_ARCHIVE_BASE, TESTS_OUTPUTS CMIP5_IDS = [ 'cmip5.output1.INM.inmcm4.rcp45.mon.ocean.Omon.r1i1p1.latest.zostoga', 'cmip5.output1.MOHC.HadGEM2-ES.rcp85.mon.atmos.Amon.r1i1p1.latest.tas', 'cmip5.output1.MOHC.HadGEM2-ES.historical.mon.land.L...
34
80
0.619867
3b661588ada15f9e87f8fae2db52eecd96742998
143
py
Python
backend/dryorm/routing.py
omaraboumrad/djanground
f153aabf68f8d500317d357ceaa558da61380b2a
[ "MIT" ]
1
2017-11-25T20:22:14.000Z
2017-11-25T20:22:14.000Z
backend/dryorm/routing.py
omaraboumrad/dryorm
f153aabf68f8d500317d357ceaa558da61380b2a
[ "MIT" ]
8
2017-11-26T21:57:16.000Z
2017-12-26T08:53:17.000Z
backend/dryorm/routing.py
omaraboumrad/djanground
f153aabf68f8d500317d357ceaa558da61380b2a
[ "MIT" ]
null
null
null
from channels.routing import route from dryorm.consumers import ws_message channel_routing = [ route('websocket.receive', ws_message), ]
17.875
43
0.776224
1dcf4a556154219c67653684fb3e32aedad5a166
2,162
py
Python
src/clims/models/substance.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
null
null
null
src/clims/models/substance.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
null
null
null
src/clims/models/substance.py
withrocks/commonlims
d8a925c917aa26e8205fefb3966a9f49f8f2e2f8
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function from django.db import models from sentry.db.models import (FlexibleForeignKey, sane_repr) from clims.models.extensible import ExtensibleModel, ExtensibleVersion from clims.models.work_batch import WorkBatch class Substance(ExtensibleModel): """ A substan...
35.442623
97
0.715541
fdff08d074c32f24d82258c8b51ab5979e4e62f0
498
py
Python
web/app/main/errors.py
Forec/cloud-storage-webserver
f6d364acdc41afcb7c9322c49f646ec6f0660af4
[ "0BSD" ]
8
2017-03-18T09:46:08.000Z
2019-06-05T01:30:34.000Z
web/app/main/errors.py
Forec/cloud-storage-webserver
f6d364acdc41afcb7c9322c49f646ec6f0660af4
[ "0BSD" ]
1
2018-08-23T05:37:43.000Z
2018-08-24T02:46:34.000Z
web/app/main/errors.py
Forec/cloud-storage-webserver
f6d364acdc41afcb7c9322c49f646ec6f0660af4
[ "0BSD" ]
6
2017-03-29T09:04:52.000Z
2022-03-30T00:20:51.000Z
# 作者:Forec # 最后修改时间:2016-12-20 # 邮箱:forec@bupt.edu.cn # 关于此文件:包含了应用处理错误的视图函数 from . import main from flask import render_template # 处理 403 错误入口 @main.app_errorhandler(403) def forbidden(e): return render_template('error/403.html'), 403 # 处理 404 错误入口 @main.app_errorhandler(404) def page_not_found(e): ...
22.636364
50
0.722892
c94aaed36afb32fc1579344166da032d21e1ec61
670
py
Python
scripts/ptb_size.py
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
scripts/ptb_size.py
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
scripts/ptb_size.py
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
#!/bin/python3 import glob, sys, os ptb_path = sys.argv[1] def count_sentence(path): n = 0 with open(path) as f: p = 0 for line in f: for c in line: if c == "(": if p == 0: n += 1 p += 1 ...
22.333333
69
0.402985
4701031ec6194b8e089a1f21e71d20a1c63e528a
427
py
Python
ldclient/flags_state.py
annuupadhyayPS/python-server-sdk-2
782dac861e81c1f5988af93019f5d1d506e8ef00
[ "Apache-2.0" ]
null
null
null
ldclient/flags_state.py
annuupadhyayPS/python-server-sdk-2
782dac861e81c1f5988af93019f5d1d506e8ef00
[ "Apache-2.0" ]
null
null
null
ldclient/flags_state.py
annuupadhyayPS/python-server-sdk-2
782dac861e81c1f5988af93019f5d1d506e8ef00
[ "Apache-2.0" ]
null
null
null
# This module exists only for historical reasons. It only contained the FeatureFlagsState class, # which is now in the ldclient.evaluation module. We are retaining this module as a deprecated # entry point and re-exporting the class from ldclient.evaluation. # # In the future, ldclient.evaluation will be the preferred...
47.444444
96
0.812646
278853484b745238e7ca9d077ba8b2919d6efc18
62,963
py
Python
h2o-py/h2o/grid/metrics.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
2
2020-09-23T14:23:55.000Z
2020-09-23T19:26:30.000Z
h2o-py/h2o/grid/metrics.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
null
null
null
h2o-py/h2o/grid/metrics.py
kernelrich/h2o-3
16bd6be6d0ac22b037cb55b4c647e63e2b112e1e
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals #----------------------------------------------------------------------------------------------------------------------- # AutoEncoder Grid Search #-------------------------------------------------------------...
51.609016
154
0.616997
0d5ab26cd67172bc3ba12d400b58174025d6ef94
1,701
py
Python
zlmdb/flatbuffers/demo/accelstorage/AccelSeriesRejected.py
asodeur/zlmdb
10f81a9d5d11cc363e62809124de85fb3c30a7f4
[ "MIT" ]
null
null
null
zlmdb/flatbuffers/demo/accelstorage/AccelSeriesRejected.py
asodeur/zlmdb
10f81a9d5d11cc363e62809124de85fb3c30a7f4
[ "MIT" ]
null
null
null
zlmdb/flatbuffers/demo/accelstorage/AccelSeriesRejected.py
asodeur/zlmdb
10f81a9d5d11cc363e62809124de85fb3c30a7f4
[ "MIT" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: accelstorage import flatbuffers # /// Error raised when the accelerometer data supplied was invalid. # /// The error provides details about the deviation detected. class AccelSeriesRejected(object): __slots__ = ['_tab'] @class...
38.659091
129
0.725456
bb7359aaefd0c3931221b4ac6e1c6f46189b406e
100
py
Python
ebsample_app/views.py
dragosa83/elastic-beanstalk-nginx-uwsgi-django
46388f25f821c23e5babd1e7086d49c6907be76e
[ "MIT" ]
81
2015-05-15T10:19:12.000Z
2021-04-21T14:20:53.000Z
ebsample_app/views.py
dragosa83/elastic-beanstalk-nginx-uwsgi-django
46388f25f821c23e5babd1e7086d49c6907be76e
[ "MIT" ]
3
2015-01-22T23:29:22.000Z
2020-08-02T05:25:58.000Z
ebsample_app/views.py
dragosa83/elastic-beanstalk-nginx-uwsgi-django
46388f25f821c23e5babd1e7086d49c6907be76e
[ "MIT" ]
28
2015-05-21T08:00:38.000Z
2021-09-27T07:34:10.000Z
from django.shortcuts import render def home(request): return render(request, 'welcome.html')
16.666667
42
0.75
fb7578435c63bd15e8b6939d5db07b31a0c133c6
969
py
Python
sis_timetable.py
datdev98/school_cheat
8e691a0abb1a21f28fa74d1b724dccf71ca7f903
[ "MIT" ]
null
null
null
sis_timetable.py
datdev98/school_cheat
8e691a0abb1a21f28fa74d1b724dccf71ca7f903
[ "MIT" ]
null
null
null
sis_timetable.py
datdev98/school_cheat
8e691a0abb1a21f28fa74d1b724dccf71ca7f903
[ "MIT" ]
null
null
null
from splinter import Browser browser = Browser() def setup(): browser.visit('http://sis.hust.edu.vn') def login(username, password): username_input = browser.find_by_xpath( '//*[@id="cLogIn1_tb_cLogIn_User_I"]')[0] password_input = browser.find_by_xpath( '//*[@id="cLogIn1_tb_cLogIn_Pass...
25.5
74
0.682147
283b9a48c16e4a641c21384c9dd84f5b4605e81f
60,429
py
Python
cms/models/pagemodel.py
MacLake/django-cms
53fcf610145d2f05a5a99f54fe8b4ec44d336206
[ "BSD-3-Clause" ]
1,110
2020-10-08T15:12:08.000Z
2022-03-31T23:08:37.000Z
cms/models/pagemodel.py
4wrk/django-cms
a412870ce780c383379eb33776a0017b658b6991
[ "BSD-3-Clause" ]
410
2020-10-08T13:24:53.000Z
2022-03-31T23:18:04.000Z
cms/models/pagemodel.py
4wrk/django-cms
a412870ce780c383379eb33776a0017b658b6991
[ "BSD-3-Clause" ]
405
2020-10-08T21:22:30.000Z
2022-03-30T20:58:14.000Z
import copy from collections import OrderedDict from logging import getLogger from os.path import join from django.contrib.sites.models import Site from django.urls import reverse, NoReverseMatch from django.db import models from django.db.models.base import ModelState from django.db.models.functions import Concat fro...
36.712637
132
0.636201
6ee53ab40a0b71972729919e99925cf04677c1a2
4,195
py
Python
pso.py
zhangjhboy/Nature-inspiredAlgorithm
101f0df86cb5f29bcafe088e3ca42391e166115f
[ "Apache-2.0" ]
1
2021-11-02T01:06:58.000Z
2021-11-02T01:06:58.000Z
pso.py
zhangjhboy/Nature-inspiredAlgorithm
101f0df86cb5f29bcafe088e3ca42391e166115f
[ "Apache-2.0" ]
null
null
null
pso.py
zhangjhboy/Nature-inspiredAlgorithm
101f0df86cb5f29bcafe088e3ca42391e166115f
[ "Apache-2.0" ]
null
null
null
""" 原始粒子群算法 Date: 2021.10.20 Author: Jiahao Zhang """ import random import numpy as np import matplotlib.pyplot as plt import benchmark_function class Particle: """ 粒子 """ def __init__(self, lower_bound, upper_bound, v_min, v_max, dim): self.position = [random.uniform(lower_bound, upper_bou...
34.105691
98
0.573778
a87abced752c80a51988212a143a7506b0a7f16e
14,415
py
Python
networking_sfc/services/sfc/drivers/ovs/db.py
dpaks/networking-sfc
e01048cc521c2c16f36cea23eef8331c6bae0904
[ "Apache-2.0" ]
63
2015-06-23T08:06:19.000Z
2021-04-28T15:18:40.000Z
networking_sfc/services/sfc/drivers/ovs/db.py
dpaks/networking-sfc
e01048cc521c2c16f36cea23eef8331c6bae0904
[ "Apache-2.0" ]
1
2020-03-12T03:43:03.000Z
2020-03-12T03:43:03.000Z
networking_sfc/services/sfc/drivers/ovs/db.py
dpaks/networking-sfc
e01048cc521c2c16f36cea23eef8331c6bae0904
[ "Apache-2.0" ]
34
2015-07-27T11:18:09.000Z
2021-07-15T08:45:53.000Z
# Copyright 2017 Futurewei. 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 appl...
39.930748
79
0.582241
d40e436126ef97681b126b8e22f0a8e73460f033
664
py
Python
build-aux/meson/postinstall.py
tinaxd/MidiMan-Gtk
418f447cbceae38f5d04431271f7d665019b8428
[ "X11" ]
null
null
null
build-aux/meson/postinstall.py
tinaxd/MidiMan-Gtk
418f447cbceae38f5d04431271f7d665019b8428
[ "X11" ]
null
null
null
build-aux/meson/postinstall.py
tinaxd/MidiMan-Gtk
418f447cbceae38f5d04431271f7d665019b8428
[ "X11" ]
null
null
null
#!/usr/bin/env python3 from os import environ, path from subprocess import call import shutil prefix = environ.get('MESON_INSTALL_PREFIX', '/usr/local') datadir = path.join(prefix, 'share') destdir = environ.get('DESTDIR', '') # Package managers set this so we don't need to run if not destdir: print('Updating ic...
31.619048
83
0.685241
64ecae26e184b9f636ee5ec4d36c968d12f7ac0b
2,126
py
Python
catalog-configs/isa.schema.py
informatics-isi-edu/betacell-consortium
41e27ff2690e5cc192a2ba3cf95c5b6973eb6550
[ "Apache-2.0" ]
1
2018-06-20T17:54:59.000Z
2018-06-20T17:54:59.000Z
catalog-configs/isa.schema.py
informatics-isi-edu/betacell-consortium
41e27ff2690e5cc192a2ba3cf95c5b6973eb6550
[ "Apache-2.0" ]
null
null
null
catalog-configs/isa.schema.py
informatics-isi-edu/betacell-consortium
41e27ff2690e5cc192a2ba3cf95c5b6973eb6550
[ "Apache-2.0" ]
null
null
null
import argparse from attrdict import AttrDict from deriva.core import ErmrestCatalog, get_credential, DerivaPathError import deriva.core.ermrest_model as em from deriva.core.ermrest_config import tag as chaise_tags from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args groups = { 'pbccon...
37.298246
99
0.724835
473b2e35903cc1afa2edf34a9642567f38920278
1,818
py
Python
square-sum-problem.py
tobbi/square-sum-problem
da4866d20eef3a236678b2896e0c78ec8094ae80
[ "MIT" ]
1
2021-06-13T05:31:18.000Z
2021-06-13T05:31:18.000Z
square-sum-problem.py
tobbi/square-sum-problem
da4866d20eef3a236678b2896e0c78ec8094ae80
[ "MIT" ]
null
null
null
square-sum-problem.py
tobbi/square-sum-problem
da4866d20eef3a236678b2896e0c78ec8094ae80
[ "MIT" ]
null
null
null
import argparse import math parser = argparse.ArgumentParser(description='Find the hamiltonian path through a list of numbers from 1 to n, two adjacent numbers adding up to a square number') parser.add_argument('n', help="Max number", type=int) args = parser.parse_args() num_nodes = args.n # Find hamiltonian path: # ...
31.344828
162
0.667767
ba9645973606e1f7f48975fe9a796c1c53c2a4ba
375
py
Python
aula08a.py
cassiakaren/Usando-modulos-do-Python
9628527f91066a77955aad2158e4742f2f39306c
[ "MIT" ]
null
null
null
aula08a.py
cassiakaren/Usando-modulos-do-Python
9628527f91066a77955aad2158e4742f2f39306c
[ "MIT" ]
null
null
null
aula08a.py
cassiakaren/Usando-modulos-do-Python
9628527f91066a77955aad2158e4742f2f39306c
[ "MIT" ]
null
null
null
'''from math import sqrt, ceil num = int(input('digite um numero: ')) raiz = sqrt(num) print('a raiz de {} é igual a {:.2f} '.format(num,ceil (raiz)))''' '''import random #gera um numero aleatorio de 0 a 1 num = random.randint(1, 100) #randint gera numeros inteiros infinitos print(num)''' import emoji print (emoji.emo...
31.25
69
0.698667
a83b33925d6097a1608d3a5eed05a745b29c93fc
3,174
py
Python
Gathered CTF writeups/2018-04-11-hitb-quals/crypto_pub/easypub.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/2018-04-11-hitb-quals/crypto_pub/easypub.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/2018-04-11-hitb-quals/crypto_pub/easypub.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
from Crypto.PublicKey import RSA, ElGamal from Crypto.Util.number import bytes_to_long, long_to_bytes, GCD, inverse, size from Crypto import Random from hashlib import sha256 from time import time from random import randint, seed from signal import alarm from os import urandom class cipher(object): def __init__(s...
29.943396
79
0.501575
cdab9d9d7811d4a3adb38da115d449d75a983524
517
py
Python
feedstorage/tests/utils/http.py
YAmikep/django-feedstorage
69e6c2bb8ffa6dca357091ae2b97f50bf6234799
[ "BSD-3-Clause" ]
1
2016-10-12T12:30:17.000Z
2016-10-12T12:30:17.000Z
feedstorage/tests/utils/http.py
YAmikep/django-feedstorage
69e6c2bb8ffa6dca357091ae2b97f50bf6234799
[ "BSD-3-Clause" ]
null
null
null
feedstorage/tests/utils/http.py
YAmikep/django-feedstorage
69e6c2bb8ffa6dca357091ae2b97f50bf6234799
[ "BSD-3-Clause" ]
null
null
null
# Django from django.test import TestCase # Internal from ...utils.http import _return class ReturnUtilKnownValues(TestCase): def test_several_values(self): known = ('val1', 4) result = _return((True, 'val1'), (False, 'val2'), (False, 'val3'), (True, 4)) self.assertEqual(kn...
24.619048
87
0.591876
b1efa55a3c4616fe956373df06d3c04cdd9d2fb2
28,320
py
Python
google/cloud/retail/v2beta/retail-v2beta-py/google/cloud/retail_v2beta/types/product.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/retail/v2beta/retail-v2beta-py/google/cloud/retail_v2beta/types/product.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/retail/v2beta/retail-v2beta-py/google/cloud/retail_v2beta/types/product.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.464129
144
0.628072
edf2e9e0cf5144eb6c687e498282fa605a277705
1,428
py
Python
tests/test_annotype.py
cbourget/annotype
95e2c53e0b7872c6652cd84da6dfd2dd6a80b624
[ "MIT" ]
null
null
null
tests/test_annotype.py
cbourget/annotype
95e2c53e0b7872c6652cd84da6dfd2dd6a80b624
[ "MIT" ]
null
null
null
tests/test_annotype.py
cbourget/annotype
95e2c53e0b7872c6652cd84da6dfd2dd6a80b624
[ "MIT" ]
null
null
null
import pytest from annotype import annotyped from marshmallow import ( Schema, fields ) class SchemaForB(Schema): ba = fields.Str() bb = fields.Int(required=True) @annotyped(load=True) def foo(a: fields.Str(), b: SchemaForB, c: fields.Str() = None): return (a, b, c) @annotyped() def bar(a): ...
22.666667
77
0.560924
02370fb04386cc59dcfe704c29da74258c692c31
18,536
py
Python
tensornetwork/block_sparse/blocksparsetensor_test.py
jensenjhwang/TensorNetwork
35d1247cc3fb80768965f7429ac9b8b914a144a8
[ "Apache-2.0" ]
null
null
null
tensornetwork/block_sparse/blocksparsetensor_test.py
jensenjhwang/TensorNetwork
35d1247cc3fb80768965f7429ac9b8b914a144a8
[ "Apache-2.0" ]
null
null
null
tensornetwork/block_sparse/blocksparsetensor_test.py
jensenjhwang/TensorNetwork
35d1247cc3fb80768965f7429ac9b8b914a144a8
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest # pylint: disable=line-too-long from tensornetwork.block_sparse.charge import U1Charge, fuse_charges, charge_equal, fuse_ndarrays, fuse_ndarray_charges, BaseCharge from tensornetwork.block_sparse.index import Index from tensornetwork.block_sparse.blocksparsetensor import ChargeArray, Bl...
34.13628
131
0.661524
1b3b9bc733c126ad644b7d17ef67800ccc762ff2
1,078
py
Python
isi_sdk_8_0_1/test/test_cluster_firmware_status_node_package_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/test/test_cluster_firmware_status_node_package_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/test/test_cluster_firmware_status_node_package_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_0_1 from i...
26.292683
133
0.753247
e46ec792fca8e77b5a4bfc26d83f2a9b32507960
413
py
Python
saleor/order/migrations/0060_auto_20180919_0731.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/order/migrations/0060_auto_20180919_0731.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/order/migrations/0060_auto_20180919_0731.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 2.0.8 on 2018-09-19 12:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("order", "0059_auto_20180913_0841")] operations = [ migrations.AlterField( model_name="orderline", name="translated_product_name",...
24.294118
75
0.644068
bcc7c21999aa8746c653ed06284e700938849ca9
7,703
py
Python
pkr/driver/k8s.py
altairengineering/pkr
4b7a66f5883adb580bce13f17df3f307798045fd
[ "Apache-2.0" ]
16
2018-10-05T16:16:48.000Z
2021-11-16T17:12:39.000Z
pkr/driver/k8s.py
altairengineering/pkr
4b7a66f5883adb580bce13f17df3f307798045fd
[ "Apache-2.0" ]
24
2018-11-19T15:55:12.000Z
2021-09-16T16:56:25.000Z
pkr/driver/k8s.py
altairengineering/pkr
4b7a66f5883adb580bce13f17df3f307798045fd
[ "Apache-2.0" ]
12
2019-01-08T13:14:33.000Z
2021-09-07T23:28:21.000Z
# -*- coding: utf-8 -*- # Copyright© 1986-2018 Altair Engineering Inc. """Pkr functions for handling the life cycle with k8s""" import base64 import os import shlex import subprocess import sys import yaml import zlib from tempfile import NamedTemporaryFile from time import sleep from kubernetes import client, config...
31.699588
99
0.544982
d7d228d8e033b6e66e50a3417e125a677924c99f
5,335
py
Python
docs/conf.py
Steve-Tod/robosuite
88a50895e3e44b1e783b3b64b0ea5f347949e777
[ "MIT" ]
1
2021-09-09T03:50:49.000Z
2021-09-09T03:50:49.000Z
docs/conf.py
liaojh1998/robosuite
2ea2280060033e11f1c1c5fb7c9c127324756005
[ "MIT" ]
null
null
null
docs/conf.py
liaojh1998/robosuite
2ea2280060033e11f1c1c5fb7c9c127324756005
[ "MIT" ]
1
2021-11-20T00:40:06.000Z
2021-11-20T00:40:06.000Z
# -*- coding: utf-8 -*- # # robosuite documentation build configuration file, created by # sphinx-quickstart on Sun Aug 16 10:05:44 2020. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # #...
30.141243
83
0.68641