hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0d9cf53c1d3b28d802fa0f4342100a5bae8636
14,493
py
Python
models/train_resnet_main.py
Lalit-garg/Gesture-Detection
fa405c57fa8497fbeb7b462968dd2534c32412cf
[ "MIT" ]
null
null
null
models/train_resnet_main.py
Lalit-garg/Gesture-Detection
fa405c57fa8497fbeb7b462968dd2534c32412cf
[ "MIT" ]
null
null
null
models/train_resnet_main.py
Lalit-garg/Gesture-Detection
fa405c57fa8497fbeb7b462968dd2534c32412cf
[ "MIT" ]
null
null
null
import tensorflow as tf import sys import os import numpy as np import resnet_10 as resnet import time import pickle import random import argparse from tensorflow.python.client import device_lib from AdamWOptimizer import create_optimizer def append_frames(cut_frame_array, required_num_frames): appended_list_of_f...
40.035912
115
0.567929
4a0d9ea110cbb3e2b1226784b889eadec72e9c5c
9,300
py
Python
ussd/tests/test_quiz_admin.py
dirkcuys/save4life
0dbc8feb0292e24177b8fcb4bd274dfc27f8264e
[ "BSD-3-Clause" ]
null
null
null
ussd/tests/test_quiz_admin.py
dirkcuys/save4life
0dbc8feb0292e24177b8fcb4bd274dfc27f8264e
[ "BSD-3-Clause" ]
null
null
null
ussd/tests/test_quiz_admin.py
dirkcuys/save4life
0dbc8feb0292e24177b8fcb4bd274dfc27f8264e
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.test import Client from django.utils import timezone from django.utils.timezone import utc from django.contrib.auth.models import User from ussd.models import Transaction from ussd.models import Quiz from ussd.models import Question from ussd.models import Answer from ussd....
41.150442
124
0.581828
4a0d9eaa76af0da376497b33ec69acb427847af0
17,903
py
Python
database/migrations/0005_auto_20210531_0929.py
bpprc/database
6e8302729793ddf840630840bd08c96ddd35a52e
[ "BSD-3-Clause" ]
1
2021-04-14T16:54:57.000Z
2021-04-14T16:54:57.000Z
database/migrations/0005_auto_20210531_0929.py
bpprc/database
6e8302729793ddf840630840bd08c96ddd35a52e
[ "BSD-3-Clause" ]
null
null
null
database/migrations/0005_auto_20210531_0929.py
bpprc/database
6e8302729793ddf840630840bd08c96ddd35a52e
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-31 14:29 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(se...
42.524941
193
0.614869
4a0da1ce02ab61a0622466a5af7a32de80fa2b50
5,596
py
Python
iceberg/simulate.py
wcwatson/iceberg
d73995ff6b364fe03f5f3d147c32698e67888674
[ "MIT" ]
1
2020-06-28T17:59:37.000Z
2020-06-28T17:59:37.000Z
iceberg/simulate.py
wcwatson/iceberg
d73995ff6b364fe03f5f3d147c32698e67888674
[ "MIT" ]
null
null
null
iceberg/simulate.py
wcwatson/iceberg
d73995ff6b364fe03f5f3d147c32698e67888674
[ "MIT" ]
null
null
null
"""Exposes several functions that simulate situations illustrating the capabilities of the estimators defined elsewhere in iceberg.""" import numpy as np import iceberg.estimate as est def identical_samples_save_one(n_samples=10, sample_size=10): """Simulates a collection of n_samples identical samples of size ...
31.088889
80
0.641708
4a0da249d4564371f693605bea1c6cf2f9a75fb5
39,450
py
Python
megacli/mega.py
BigSmokeCuba/3
c76711f5daa648ad858a246ddc401f36c49f836b
[ "Apache-2.0" ]
null
null
null
megacli/mega.py
BigSmokeCuba/3
c76711f5daa648ad858a246ddc401f36c49f836b
[ "Apache-2.0" ]
null
null
null
megacli/mega.py
BigSmokeCuba/3
c76711f5daa648ad858a246ddc401f36c49f836b
[ "Apache-2.0" ]
null
null
null
import math import re import json import logging import secrets from pathlib import Path import hashlib from Crypto.Cipher import AES from Crypto.PublicKey import RSA from Crypto.Util import Counter import os import random import binascii import tempfile import shutil import requests from tenacity import retry, wait_e...
35.961714
94
0.500684
4a0da30849706682cd628384a408a112fd8e8baa
32,100
py
Python
yolact.py
kaylode/Clothes-Segmentation
3b46d23e33753474878a0898c7cded0755396767
[ "MIT" ]
4
2020-10-21T14:20:11.000Z
2021-12-13T01:33:17.000Z
yolact.py
kaylode/Trash-Segmentation
3b46d23e33753474878a0898c7cded0755396767
[ "MIT" ]
1
2020-10-16T12:55:18.000Z
2020-10-21T14:21:01.000Z
yolact.py
kaylode/Trash-Segmentation
3b46d23e33753474878a0898c7cded0755396767
[ "MIT" ]
1
2022-01-27T13:19:28.000Z
2022-01-27T13:19:28.000Z
import torch, torchvision import torch.nn as nn import torch.nn.functional as F from torchvision.models.resnet import Bottleneck import numpy as np from itertools import product from math import sqrt from typing import List from collections import defaultdict from data.config import cfg, mask_type from layers import D...
42.8
137
0.569688
4a0da3ef8bc7919cf403c6118a2831480bd389bb
6,190
py
Python
samples/client/petstore/python-experimental/petstore_api/models/additional_properties_array.py
thalescpl-io/openapi-generator
586386fd69e978380c39cdcd919365cd175be988
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python-experimental/petstore_api/models/additional_properties_array.py
thalescpl-io/openapi-generator
586386fd69e978380c39cdcd919365cd175be988
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python-experimental/petstore_api/models/additional_properties_array.py
thalescpl-io/openapi-generator
586386fd69e978380c39cdcd919365cd175be988
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
39.935484
174
0.595315
4a0da4532100ef691e1dff75991e168bc07d7253
888
py
Python
cifar10/edition1/__init__.py
nowgood/ComputeVersion
f2475570bfb33779b2a71bb9da03f12ffe5609c5
[ "Apache-2.0" ]
null
null
null
cifar10/edition1/__init__.py
nowgood/ComputeVersion
f2475570bfb33779b2a71bb9da03f12ffe5609c5
[ "Apache-2.0" ]
null
null
null
cifar10/edition1/__init__.py
nowgood/ComputeVersion
f2475570bfb33779b2a71bb9da03f12ffe5609c5
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37
80
0.703829
4a0da5dbc9f425362b481d4b71513561cd5a7c9f
1,523
py
Python
order/models.py
devsingh-code/Django-ecommerce
35d93ca0c81f0bf2bafda1e8285c2a0a32a441eb
[ "MIT" ]
1
2020-06-13T11:23:40.000Z
2020-06-13T11:23:40.000Z
order/models.py
devsingh-code/Django-ecommerce
35d93ca0c81f0bf2bafda1e8285c2a0a32a441eb
[ "MIT" ]
null
null
null
order/models.py
devsingh-code/Django-ecommerce
35d93ca0c81f0bf2bafda1e8285c2a0a32a441eb
[ "MIT" ]
null
null
null
from django.db import models class Order(models.Model): token = models.CharField(max_length=250, blank=True) total = models.DecimalField(max_digits=10, decimal_places=2, verbose_name='GBP Order Total') emailAddress = models.EmailField(max_length=250, blank=True, verbose_name='Email Address') created = models.DateT...
37.146341
93
0.779383
4a0da5f39b973c29780b79c2e334652bac2c44d7
1,125
py
Python
src/food.py
wmontgomery4/cells
4193ef8556d9a0e6e4fdc23f802ae218909cabd5
[ "MIT" ]
null
null
null
src/food.py
wmontgomery4/cells
4193ef8556d9a0e6e4fdc23f802ae218909cabd5
[ "MIT" ]
null
null
null
src/food.py
wmontgomery4/cells
4193ef8556d9a0e6e4fdc23f802ae218909cabd5
[ "MIT" ]
null
null
null
""" Basic food class, just provides energy for cells. """ import pymunk as pm import math import random import collision # Physics constants. RADIUS = 3 ENERGY = 15 DENSITY = 1e-4 FRICTION = 0.3 class Food(): """ Container class for food bodies. """ def __init__(self): """ Initialize food particle....
24.456522
69
0.616889
4a0da710a42c3cbdb2242f2eaeb88b5579c5f30a
18,211
py
Python
ml-agents-envs/mlagents_envs/tests/test_rpc_utils.py
rabienrose/ml-agents
6de68f2247498f9accc05b59353faa3c7f09d370
[ "Apache-2.0" ]
1
2021-01-04T09:13:59.000Z
2021-01-04T09:13:59.000Z
ml-agents-envs/mlagents_envs/tests/test_rpc_utils.py
guplem/ml-agents
87c9a0b170fe805138ca69abffac8d4a59cd731d
[ "Apache-2.0" ]
null
null
null
ml-agents-envs/mlagents_envs/tests/test_rpc_utils.py
guplem/ml-agents
87c9a0b170fe805138ca69abffac8d4a59cd731d
[ "Apache-2.0" ]
null
null
null
import io import numpy as np import pytest from typing import List, Tuple from mlagents_envs.communicator_objects.agent_info_pb2 import AgentInfoProto from mlagents_envs.communicator_objects.observation_pb2 import ( ObservationProto, NONE, PNG, ) from mlagents_envs.communicator_objects.brain_parameters_pb2...
38.419831
113
0.687497
4a0da71c3d298aa521f9b75b52428c1987ac6bc5
1,266
py
Python
replace_n2space.py
y-kbys/Python_utility
fa3c106a5c3ccfd5fb66f2cf854fe6752426b6e8
[ "Unlicense" ]
null
null
null
replace_n2space.py
y-kbys/Python_utility
fa3c106a5c3ccfd5fb66f2cf854fe6752426b6e8
[ "Unlicense" ]
null
null
null
replace_n2space.py
y-kbys/Python_utility
fa3c106a5c3ccfd5fb66f2cf854fe6752426b6e8
[ "Unlicense" ]
null
null
null
#! /Users/ykobayashi/.pyenv/shims/python import argparse import os import sys import pyperclip def replace_n2space(input_file_name: str = None): if input_file_name is None: print('input text here.') input_text = sys.stdin.read() else: try: input_file_name = os.path.expandu...
28.133333
86
0.597946
4a0da8c64e403bc147fb22b488a0db35f19ffbca
4,620
py
Python
main.py
ytyaru/Hatena.PhotLife.API.GetAllLink.201703040849
237dae75dfa9f391d5da4c05347dbd3cf6601ba5
[ "CC0-1.0" ]
null
null
null
main.py
ytyaru/Hatena.PhotLife.API.GetAllLink.201703040849
237dae75dfa9f391d5da4c05347dbd3cf6601ba5
[ "CC0-1.0" ]
null
null
null
main.py
ytyaru/Hatena.PhotLife.API.GetAllLink.201703040849
237dae75dfa9f391d5da4c05347dbd3cf6601ba5
[ "CC0-1.0" ]
null
null
null
#!python3 #encoding:utf-8 import urllib from urllib.request import build_opener, HTTPCookieProcessor from urllib.parse import urlencode from http.cookiejar import CookieJar import pprint import dataset import sys from bs4 import BeautifulSoup import datetime import time import os.path import math class HatenaSite(obje...
36.377953
113
0.644156
4a0da90ce18f10a1811de76029b02b3e0dfe17de
504
bzl
Python
tools/workspace/styleguide/repository.bzl
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
2
2021-02-25T02:01:02.000Z
2021-03-17T04:52:04.000Z
tools/workspace/styleguide/repository.bzl
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
null
null
null
tools/workspace/styleguide/repository.bzl
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
1
2021-06-13T12:05:39.000Z
2021-06-13T12:05:39.000Z
# -*- python -*- load("@drake//tools/workspace:github.bzl", "github_archive") def styleguide_repository( name, mirrors = None): github_archive( name = name, repository = "RobotLocomotion/styleguide", commit = "748ed4dd4e543001421c6618646a60e2a2dca8ea", sha256 = "94b...
31.5
92
0.670635
4a0da9585069ec729576d517afe2913876716013
849
py
Python
armulator/armv6/opcodes/abstract_opcodes/add_immediate_thumb.py
matan1008/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
16
2018-01-22T14:36:49.000Z
2021-12-17T15:39:52.000Z
armulator/armv6/opcodes/abstract_opcodes/add_immediate_thumb.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
3
2019-02-19T17:51:47.000Z
2022-03-31T20:45:21.000Z
armulator/armv6/opcodes/abstract_opcodes/add_immediate_thumb.py
AhmedMounir/armulator
04d24dcec6ab42326018f5e09331e5b4738d6b52
[ "MIT" ]
4
2020-06-18T23:51:03.000Z
2022-02-09T17:43:13.000Z
from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode from armulator.armv6.bits_ops import add_with_carry class AddImmediateThumb(AbstractOpcode): def __init__(self, setflags, d, n, imm32): super(AddImmediateThumb, self).__init__() self.setflags = setflags self.d = d s...
38.590909
102
0.65371
4a0da9c172018e9c7b08fc12d00a2ce8ec0ad3f4
1,658
py
Python
uecp/commands/base.py
chrko/uecp
8f82ac3311c82939688b095c5c546e6337f7075a
[ "MIT" ]
3
2021-11-26T10:32:17.000Z
2022-01-12T19:25:40.000Z
uecp/commands/base.py
chrko/python-uecp
8f82ac3311c82939688b095c5c546e6337f7075a
[ "MIT" ]
null
null
null
uecp/commands/base.py
chrko/python-uecp
8f82ac3311c82939688b095c5c546e6337f7075a
[ "MIT" ]
null
null
null
import abc import typing T_UECPCommand = typing.TypeVar("T_UECPCommand", bound="UECPCommand") class UECPCommand(abc.ABC): ELEMENT_CODE: typing.ClassVar[int] ELEMENT_CODE_MAP: typing.ClassVar[dict[int, type["UECPCommand"]]] = {} @abc.abstractmethod def encode(self) -> list[int]: ... @cla...
26.741935
85
0.641737
4a0daa59c087c7597e58af781a66606222174333
286
py
Python
neodroidvision/detection/single_stage/ssd/architecture/__init__.py
aivclab/vision
6c644dd72f68bca608a2900e5d9461e90fe841eb
[ "Apache-2.0" ]
1
2019-07-03T04:33:51.000Z
2019-07-03T04:33:51.000Z
neodroidvision/detection/single_stage/ssd/architecture/__init__.py
aivclab/vision
6c644dd72f68bca608a2900e5d9461e90fe841eb
[ "Apache-2.0" ]
5
2019-07-03T04:38:07.000Z
2021-09-10T15:40:44.000Z
neodroidvision/detection/single_stage/ssd/architecture/__init__.py
aivclab/vision
6c644dd72f68bca608a2900e5d9461e90fe841eb
[ "Apache-2.0" ]
3
2019-10-03T06:14:40.000Z
2021-01-31T14:31:39.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 04/03/2020 """ from .backbones import * from .nms_box_heads import * from .single_shot_dectection import * from .single_shot_detection_nms import *
20.428571
40
0.671329
4a0dab9bf3c0cc168e15fcb1e6beca679ed2e5d1
1,975
py
Python
tests/integration/test_status_issue.py
covx/graypy_v6
b4cf60d7d22ee4e6877b31ab31f0b0d073f5bf43
[ "BSD-3-Clause" ]
181
2015-01-23T21:01:38.000Z
2022-03-25T13:01:06.000Z
tests/integration/test_status_issue.py
covx/graypy_v6
b4cf60d7d22ee4e6877b31ab31f0b0d073f5bf43
[ "BSD-3-Clause" ]
82
2015-02-27T09:20:18.000Z
2021-12-02T08:37:17.000Z
tests/integration/test_status_issue.py
covx/graypy_v6
b4cf60d7d22ee4e6877b31ab31f0b0d073f5bf43
[ "BSD-3-Clause" ]
75
2015-01-23T21:01:40.000Z
2022-03-15T19:00:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """pytests for addressing potential issues with adding an ``status`` extra field withing a given log and having the log failing to appear within graylog. Related issue: - Fails to log silently with specific extra field #85 URL: - https://github.com/severb/graypy/issues/8...
37.264151
81
0.746835
4a0dabb689873edeabd138f9f25d48d841897e4b
1,601
py
Python
Initial version/echowithredir.py
mgtburid/Ubuntu-CLI
27b4cd139a8d71bd728ba9c06508d4fbaf664a84
[ "MIT" ]
null
null
null
Initial version/echowithredir.py
mgtburid/Ubuntu-CLI
27b4cd139a8d71bd728ba9c06508d4fbaf664a84
[ "MIT" ]
null
null
null
Initial version/echowithredir.py
mgtburid/Ubuntu-CLI
27b4cd139a8d71bd728ba9c06508d4fbaf664a84
[ "MIT" ]
null
null
null
# echo with redirection functionality class echo: echow = "echo" append = ">>" overwrite = ">" class User: name = str(input("Enter the username: ")) #accepts input from a keyboard host = "@" #delimiter between usrnm and hstnm hostname = str(in...
50.03125
97
0.472829
4a0dad2b54f2f11ed1fb817aec71e857eb63acb1
10,465
py
Python
src/modeling/self_supervised/cycle_energy_direct_add_all_noise.py
deeplearning-wisc/stud
b667a369e368181ef6e913c32f26e574bead9b56
[ "Apache-2.0" ]
22
2022-03-09T03:13:10.000Z
2022-03-31T02:45:50.000Z
src/modeling/self_supervised/cycle_energy_direct_add_all_noise.py
deeplearning-wisc/stud
b667a369e368181ef6e913c32f26e574bead9b56
[ "Apache-2.0" ]
1
2022-03-22T12:27:38.000Z
2022-03-22T22:45:46.000Z
src/modeling/self_supervised/cycle_energy_direct_add_all_noise.py
deeplearning-wisc/stud
b667a369e368181ef6e913c32f26e574bead9b56
[ "Apache-2.0" ]
2
2022-03-21T02:32:53.000Z
2022-03-22T18:43:52.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from detectron2.structures import ImageList from .build import SSHEAD_REGISTRY from .ss_layers import Flatten class CycleEnergyDirectAddAllNoiseHead(nn.Module): def __init__(self, cfg, cin): super(CycleEnergyDirectAddA...
43.604167
139
0.527281
4a0dad73cab45880a7282e28562ef7e6ed5b7a6d
267
py
Python
setup.py
saksholm/hhc_n8i8op_mqtt
ffe97248673ffb12308f20b7410719c0c30962f5
[ "BSD-2-Clause" ]
null
null
null
setup.py
saksholm/hhc_n8i8op_mqtt
ffe97248673ffb12308f20b7410719c0c30962f5
[ "BSD-2-Clause" ]
null
null
null
setup.py
saksholm/hhc_n8i8op_mqtt
ffe97248673ffb12308f20b7410719c0c30962f5
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 import shutil shutil.copy2('./default_config.yaml', './config.yaml') print("Copied 'default_config.yaml' to 'config.yaml'"); shutil.copy2('./default_inventory.yaml', './inventory.yaml') print("Copied 'default_inventory.yaml' to 'inventory.yaml'");
38.142857
61
0.737828
4a0dad7fc262edf3de126469ffac026b1a01a84c
7,272
py
Python
src/tweetynet/graphs.py
marcbadger/tweetynet
048cc26ae3fe74c00a1d8f5a891eca21428c668c
[ "BSD-3-Clause" ]
null
null
null
src/tweetynet/graphs.py
marcbadger/tweetynet
048cc26ae3fe74c00a1d8f5a891eca21428c668c
[ "BSD-3-Clause" ]
null
null
null
src/tweetynet/graphs.py
marcbadger/tweetynet
048cc26ae3fe74c00a1d8f5a891eca21428c668c
[ "BSD-3-Clause" ]
null
null
null
from math import ceil import tensorflow as tf def out_width(in_width, filter_width, stride): return ceil(float(in_width - filter_width + 1) / float(stride)) def inference(spectrogram, seq_length, n_syllables, batch_size=11, input_vec_size=513, ...
38.680851
104
0.544967
4a0dae1592859049ce22dd96380a6100dd9dc68d
2,444
py
Python
datasetsnx/readers/ccpd.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
datasetsnx/readers/ccpd.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
datasetsnx/readers/ccpd.py
ckxy/part-of-hitogata
76402d48a336fcd964d0e64bb01d959e8f07f296
[ "MIT" ]
null
null
null
import os import numpy as np from addict import Dict from PIL import Image from .reader import Reader __all__ = ['CCPD2019FolderReader'] class CCPD2019FolderReader(Reader): def __init__(self, root, **kwargs): super(CCPD2019FolderReader, self).__init__(**kwargs) self.root = root self.cha...
36.477612
134
0.49509
4a0dae8008e31fe76a1459696b88ca393893cae8
6,049
py
Python
pybind/slxos/v17r_2_00/brocade_mpls_rpc/clear_mpls_lsp/input/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/brocade_mpls_rpc/clear_mpls_lsp/input/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17r_2_00/brocade_mpls_rpc/clear_mpls_lsp/input/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
47.629921
430
0.725905
4a0dae951f67e932b026a414f6c1f58ef331c6f1
83
py
Python
statictypes/__init__.py
eriksholmlund/statictypes
0e9171b40959a61f0dc4c976615613959d9db9a2
[ "Apache-2.0" ]
2
2020-05-22T16:36:39.000Z
2020-06-01T08:16:36.000Z
statictypes/__init__.py
eriksholmlund/statictypes
0e9171b40959a61f0dc4c976615613959d9db9a2
[ "Apache-2.0" ]
2
2020-09-12T15:19:05.000Z
2020-10-15T07:53:08.000Z
statictypes/__init__.py
eriksholmlund/statictypes
0e9171b40959a61f0dc4c976615613959d9db9a2
[ "Apache-2.0" ]
null
null
null
from .type_check import enforce, warn, convert, StaticTypeError, StaticTypeWarning
41.5
82
0.843373
4a0db111b7d51f7d025b237330491a7a5ed28800
4,019
py
Python
homeassistant/components/point/alarm_control_panel.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
2
2019-10-19T15:07:32.000Z
2022-01-29T10:33:20.000Z
homeassistant/components/point/alarm_control_panel.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
4
2021-02-08T21:05:14.000Z
2021-09-08T02:57:03.000Z
homeassistant/components/point/alarm_control_panel.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
1
2019-10-04T13:26:54.000Z
2019-10-04T13:26:54.000Z
"""Support for Minut Point.""" import logging from homeassistant.components.alarm_control_panel import DOMAIN, AlarmControlPanel from homeassistant.const import ( STATE_ALARM_ARMED_AWAY, STATE_ALARM_DISARMED, STATE_ALARM_TRIGGERED, ) from homeassistant.core import callback from homeassistant.helpers.dispat...
33.214876
83
0.667081
4a0db138b6f74c9695437ca785ff108f5e28e88e
992
py
Python
atom/proton/python/setup.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/proton/python/setup.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/proton/python/setup.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.7.18 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from setuptools import setup, find_packages # noqa: H301 NAM...
21.106383
68
0.674395
4a0db1f8972cbf97d2d3bb147955091cb9140d5b
3,344
py
Python
ch14/apic/apic/settings.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
19
2021-11-05T22:54:09.000Z
2022-03-29T15:03:47.000Z
ch14/apic/apic/settings.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
null
null
null
ch14/apic/apic/settings.py
kxen42/Learn-Python-Programming-Third-Edition
851ddc5e6094fadd44f31a9ad1d3876456b04372
[ "MIT" ]
26
2021-11-12T17:04:50.000Z
2022-03-29T01:10:35.000Z
# apic/apic/settings.py """ Django settings for apic project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settin...
25.142857
91
0.701256
4a0db2b269e2b3323c39129bce961f498b11027c
1,000
py
Python
setup.py
IntelAI/forking-tuner
8c6c4f8b0d33bdeffbf7fddb1864a5be8ba8dd73
[ "Apache-2.0" ]
1
2021-03-03T02:30:19.000Z
2021-03-03T02:30:19.000Z
setup.py
IntelAI/forking-tuner
8c6c4f8b0d33bdeffbf7fddb1864a5be8ba8dd73
[ "Apache-2.0" ]
null
null
null
setup.py
IntelAI/forking-tuner
8c6c4f8b0d33bdeffbf7fddb1864a5be8ba8dd73
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 Intel 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 # # Un...
27.777778
74
0.705
4a0db6abc8083cb6314e7dc5d91c41bcc02e4cfc
1,555
py
Python
provisioner/__main__.py
srlehn/opennms-provisioner
aec001a24ed71ff54a9ff6d05c178c84d4d2c71d
[ "MIT" ]
1
2019-04-23T11:57:11.000Z
2019-04-23T11:57:11.000Z
provisioner/__main__.py
srlehn/opennms-provisioner
aec001a24ed71ff54a9ff6d05c178c84d4d2c71d
[ "MIT" ]
1
2019-04-23T14:01:39.000Z
2019-04-23T14:01:39.000Z
provisioner/__main__.py
srlehn/opennms-provisioner
aec001a24ed71ff54a9ff6d05c178c84d4d2c71d
[ "MIT" ]
2
2018-11-17T16:10:59.000Z
2019-04-23T11:57:49.000Z
""" opennms-provisioner main module This is the main module of opennms-provisioner :license: MIT, see LICENSE for more details :copyright: (c) 2018 by Michael Batz, see AUTHORS for more details """ import argparse import os import sys import logging import logging.config import pkg_resources import provisioner.config...
29.339623
114
0.713826
4a0db6c814f212fc409fadc1b56d2d8874a082f9
27,346
py
Python
tests/cli/test_run.py
theoplatt/prefect
7aecbe366831a0e9fbed71fe6b8f8fe22bf40d87
[ "Apache-2.0" ]
1
2021-08-14T17:05:48.000Z
2021-08-14T17:05:48.000Z
tests/cli/test_run.py
theoplatt/prefect
7aecbe366831a0e9fbed71fe6b8f8fe22bf40d87
[ "Apache-2.0" ]
6
2021-12-18T09:07:37.000Z
2022-03-26T08:06:09.000Z
tests/cli/test_run.py
ngriffiths13/prefect
7f5613abcb182494b7dc12159277c3bc5f3c9898
[ "Apache-2.0" ]
null
null
null
import textwrap import sys import os import json import pytest import pendulum from click.testing import CliRunner from unittest.mock import MagicMock from prefect import Flow from prefect.engine.state import Scheduled, Success, Failed, Submitted from prefect.run_configs import UniversalRun from prefect.storage import...
33.760494
88
0.677028
4a0db90457d4f9525b58efecf37df52d6fa0493b
11,659
py
Python
tools/gen_struct_info.py
yishengjiang99/emscripten
add7cf2f0b76abb20460f0742c5402ca9b46f8d8
[ "MIT" ]
null
null
null
tools/gen_struct_info.py
yishengjiang99/emscripten
add7cf2f0b76abb20460f0742c5402ca9b46f8d8
[ "MIT" ]
null
null
null
tools/gen_struct_info.py
yishengjiang99/emscripten
add7cf2f0b76abb20460f0742c5402ca9b46f8d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # Copyright 2013 The Emscripten Authors. All rights reserved. # Emscripten is available under two separate licenses, the MIT license and the # University of Illinois/NCSA Open Source License. Both these licenses can be # found in the LICENSE file. """This tool extracts informati...
28.161836
131
0.579381
4a0dbb298d0439d329080a5b81b3b6db17354993
53,390
py
Python
google/cloud/speech/v1p1beta1/speech-v1p1beta1-py/google/cloud/speech_v1p1beta1/services/adaptation/client.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/speech/v1p1beta1/speech-v1p1beta1-py/google/cloud/speech_v1p1beta1/services/adaptation/client.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/speech/v1p1beta1/speech-v1p1beta1-py/google/cloud/speech_v1p1beta1/services/adaptation/client.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...
43.548124
157
0.613149
4a0dbbdbcf3220deb2156b84974a8c6059b1bb5a
3,752
py
Python
CQPixiv/pixiv/get.py
bbbboom/nonebot-plugin
e41c1d64baf39c7ec04dd37be6ca490369ccdadd
[ "MIT" ]
null
null
null
CQPixiv/pixiv/get.py
bbbboom/nonebot-plugin
e41c1d64baf39c7ec04dd37be6ca490369ccdadd
[ "MIT" ]
null
null
null
CQPixiv/pixiv/get.py
bbbboom/nonebot-plugin
e41c1d64baf39c7ec04dd37be6ca490369ccdadd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from pixivpy3 import * from . import utils from .constant import * import random import json class GetPictures(): def __init__(self, path, content): self.api = ByPassSniApi() self.api.require_appapi_hosts() self.api.set_accept_language('zh-cn') refresh_toke...
35.396226
93
0.53758
4a0dbc35e64f998c17c289ae282192bdc20bb682
12,935
py
Python
setup.py
pmreyes2/pyglow
4a4d51a210e788e50e3fca645d6af1ea0be4c8c5
[ "MIT" ]
1
2020-12-22T08:51:18.000Z
2020-12-22T08:51:18.000Z
setup.py
pmreyes2/pyglow
4a4d51a210e788e50e3fca645d6af1ea0be4c8c5
[ "MIT" ]
2
2017-04-07T22:10:01.000Z
2017-04-10T23:26:15.000Z
setup.py
pmreyes2/pyglow
4a4d51a210e788e50e3fca645d6af1ea0be4c8c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import glob import os from io import open # For Python 2 compatibility from numpy.distutils.core import setup, Extension DL_MODELS = 'src/pyglow/models/dl_models' KPAP_FILES = sorted(glob.glob('src/pyglow/kpap/*')) DST_FILES = sorted(glob.glob('src/pyglow/dst/*')) AE_FILES = sorted(glob.glob(...
39.677914
79
0.588094
4a0dbd4148d0c6bbf0897eab8653f272d4fdb2f6
954
py
Python
backend/workspaces/Log/permissions.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
null
null
null
backend/workspaces/Log/permissions.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
50
2021-03-28T03:06:19.000Z
2021-10-18T12:36:16.000Z
backend/workspaces/Log/permissions.py
makakken/roseguarden
9a867f3d5e979b990bf474dcba81e5e9d0814c6a
[ "MIT" ]
1
2021-07-30T07:12:46.000Z
2021-07-30T07:12:46.000Z
""" The roseguarden project Copyright (C) 2018-2020 Marcus Drobisch, This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pr...
31.8
78
0.778826
4a0dbdee01712f78718ddc814c2048e91e0240f7
102
py
Python
01 - Fundamentos/ex025.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
01 - Fundamentos/ex025.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
01 - Fundamentos/ex025.py
epedropaulo/MyPython
cdb3602a01aedac26047f5b11a36a2262d4cc2ea
[ "MIT" ]
null
null
null
nome = input('Digite seu nome: ') print(f'Seu nome tem Silva : {"silva" in nome.lower().split()}.')
34
66
0.627451
4a0dc03d6eee0a7ac2be7dc512f8b3a8544c3267
3,696
py
Python
NLPEngine/utils/markdown.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
NLPEngine/utils/markdown.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
NLPEngine/utils/markdown.py
hmi-digital/bot_platform
91a26e566b07fa309774d0333a6bccf3d64cccc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import os import codecs import json from typing import Text, Optional, Tuple, Match from warnings import simplefilter from utils import log_util # ignore all warnings simplefilter(action='ignore') ##Global parameters scriptDir = os.path.dirname(__file__) datapath = os.path.join(scri...
31.862069
129
0.624459
4a0dc0d730996da43d5653f4750b201789d79232
11,763
py
Python
moto/config/exceptions.py
moseb/moto
d596560971ae289f102b9aecb9939b3c49a56ac5
[ "Apache-2.0" ]
3
2020-08-04T20:29:41.000Z
2020-11-09T09:28:19.000Z
moto/config/exceptions.py
moseb/moto
d596560971ae289f102b9aecb9939b3c49a56ac5
[ "Apache-2.0" ]
1
2016-02-11T14:54:01.000Z
2016-02-12T14:11:05.000Z
moto/config/exceptions.py
moseb/moto
d596560971ae289f102b9aecb9939b3c49a56ac5
[ "Apache-2.0" ]
2
2017-03-02T05:59:52.000Z
2020-09-03T13:25:44.000Z
from __future__ import unicode_literals from moto.core.exceptions import JsonRESTError class NameTooLongException(JsonRESTError): code = 400 def __init__(self, name, location): message = ( "1 validation error detected: Value '{name}' at '{location}' failed to satisfy" " constr...
31.878049
123
0.649239
4a0dc24b006f534a42a92acd54490f09032fdf1e
2,305
py
Python
magenta/models/gansynth/gansynth_pad_audio.py
SopiMlab/magenta
bab297194cbf5e033cab06a74b576befcc7b4601
[ "Apache-2.0" ]
null
null
null
magenta/models/gansynth/gansynth_pad_audio.py
SopiMlab/magenta
bab297194cbf5e033cab06a74b576befcc7b4601
[ "Apache-2.0" ]
null
null
null
magenta/models/gansynth/gansynth_pad_audio.py
SopiMlab/magenta
bab297194cbf5e033cab06a74b576befcc7b4601
[ "Apache-2.0" ]
1
2020-04-27T12:57:08.000Z
2020-04-27T12:57:08.000Z
import argparse import os import re import sys parser = argparse.ArgumentParser() parser.add_argument( "in_dir" ) parser.add_argument( "out_dir" ) parser.add_argument( "--length", type=int, default=64000 ) parser.add_argument( "--sample_rate", type=int, default=16000 ) parser.add_argument( "--pitch"...
23.762887
95
0.661605
4a0dc343a90b14dd1d0a8922ef89fdbb3e6769f4
32,690
py
Python
tests/mobly/controllers/android_device_lib/adb_test.py
northwhisper/mobly
2af367e486d8aa0e0a587d87367ea101df3030ab
[ "Apache-2.0" ]
null
null
null
tests/mobly/controllers/android_device_lib/adb_test.py
northwhisper/mobly
2af367e486d8aa0e0a587d87367ea101df3030ab
[ "Apache-2.0" ]
null
null
null
tests/mobly/controllers/android_device_lib/adb_test.py
northwhisper/mobly
2af367e486d8aa0e0a587d87367ea101df3030ab
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google 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 writing, ...
46.303116
80
0.631416
4a0dc4936d2df4fb989fe9f24a8345833a0d9389
677
py
Python
setup.py
okawo80085/rubypass
3cc69045c1bf401bb9cc38522eaea19cdd2e5034
[ "MIT" ]
null
null
null
setup.py
okawo80085/rubypass
3cc69045c1bf401bb9cc38522eaea19cdd2e5034
[ "MIT" ]
null
null
null
setup.py
okawo80085/rubypass
3cc69045c1bf401bb9cc38522eaea19cdd2e5034
[ "MIT" ]
1
2020-05-03T17:42:55.000Z
2020-05-03T17:42:55.000Z
import setuptools with open('README.md') as f: ld = f.read() setuptools.setup( name="rubypass", version="0.2.5.1", description="A package made to extract video urls from 2 russian websites", long_description=ld, long_description_content_type="text/markdown", author="okawo", author_email="okawo.198@gmail.com",...
26.038462
76
0.713442
4a0dc4eb49b422eb9c6582dbd83ee11a74c218ab
5,413
py
Python
do_like_javac/tools/infer.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
do_like_javac/tools/infer.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
do_like_javac/tools/infer.py
zcai1/do-like-javac
3eb4a43521ae181a9b777a589e477b0c6ab7cb6e
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
null
null
null
import os,sys import argparse import subprocess from . import common argparser = argparse.ArgumentParser(add_help=False) infer_group = argparser.add_argument_group('inference tool arguments') infer_group.add_argument('-s', '--solver', metavar='<solver>', action='store',default='checkers.infer...
48.765766
127
0.609089
4a0dc5ed32e2181a454c167193008346af6f6fee
1,704
py
Python
test_efficientnet_v2/test_preprocessing_layer.py
sebastian-sz/efficientnet-v2-keras
b1d76b90a2a066ac5608aacb271af8ba67a09bca
[ "Apache-2.0" ]
4
2021-08-21T14:10:31.000Z
2022-03-09T03:27:18.000Z
test_efficientnet_v2/test_preprocessing_layer.py
sebastian-sz/efficientnet-v2-keras
b1d76b90a2a066ac5608aacb271af8ba67a09bca
[ "Apache-2.0" ]
5
2021-08-01T12:33:33.000Z
2022-02-03T11:15:37.000Z
test_efficientnet_v2/test_preprocessing_layer.py
sebastian-sz/efficientnet-v2-keras
b1d76b90a2a066ac5608aacb271af8ba67a09bca
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from absl.testing import absltest from efficientnet_v2 import get_preprocessing_layer class TestPreprocessingLayer(absltest.TestCase): rng = tf.random.Generator.from_non_deterministic_state() def test_bx_variants_preprocessing_layer(self): def original_preprocess(image): ...
35.5
80
0.674883
4a0dc5f575d54efe0fcb26733b0e16ff71774321
9,325
py
Python
orquesta/tests/unit/conducting/test_workflow_conductor_context.py
trstruth/orquesta
e6ebbbeb2c661486067e659dc7552f0a986603a6
[ "Apache-2.0" ]
3
2020-11-17T21:29:26.000Z
2021-03-17T13:56:16.000Z
orquesta/tests/unit/conducting/test_workflow_conductor_context.py
trstruth/orquesta
e6ebbbeb2c661486067e659dc7552f0a986603a6
[ "Apache-2.0" ]
5
2021-03-02T01:41:36.000Z
2022-03-08T23:31:31.000Z
orquesta/tests/unit/conducting/test_workflow_conductor_context.py
trstruth/orquesta
e6ebbbeb2c661486067e659dc7552f0a986603a6
[ "Apache-2.0" ]
15
2020-08-08T16:21:40.000Z
2022-03-17T04:45:51.000Z
# Copyright 2019 Extreme Networks, 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 i...
31.717687
94
0.518284
4a0dc68ab3ec4cb58bf501710bf94eb349bfe1a5
5,719
py
Python
networks.py
kamildar/cyclegan
e3ab1d7987aff9080ef9063d0005bfc97f80c32c
[ "MIT" ]
1
2019-01-02T07:43:28.000Z
2019-01-02T07:43:28.000Z
networks.py
kamildar/cyclegan
e3ab1d7987aff9080ef9063d0005bfc97f80c32c
[ "MIT" ]
null
null
null
networks.py
kamildar/cyclegan
e3ab1d7987aff9080ef9063d0005bfc97f80c32c
[ "MIT" ]
null
null
null
import torch.nn as nn import numpy as np import torch.nn.functional as F # dim = None # dropout = None # norm_lay = None activation = nn.LeakyReLU(0.1) bias = False # for square images def conv_size(input_size, kernel_size, stride, padding): out = int((input_size + 2 * padding - kernel_size) / stride) + 1 ...
27.233333
69
0.483651
4a0dc6eff055b40e472ef4ebcd68ca873228d8bb
5,510
py
Python
setup.py
imaginary-unit/opendr
c9d7ed9f2352850b5570cacf452196224d9b2f7d
[ "MIT" ]
null
null
null
setup.py
imaginary-unit/opendr
c9d7ed9f2352850b5570cacf452196224d9b2f7d
[ "MIT" ]
null
null
null
setup.py
imaginary-unit/opendr
c9d7ed9f2352850b5570cacf452196224d9b2f7d
[ "MIT" ]
null
null
null
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ from setuptools import setup from distutils.extension import Extension import numpy import platform import os from version import version try: from Cython.Build import cythonize have_cython = True except: cythonize = ...
36.013072
171
0.601452
4a0dc792848919a9377d7217857e5048aade4481
13,509
py
Python
experimental/python/gui/object_polyline.py
x2nie/Embroidermodder
9db132d43c820b55056eb2b40bd3c86372c3dbd3
[ "Zlib" ]
null
null
null
experimental/python/gui/object_polyline.py
x2nie/Embroidermodder
9db132d43c820b55056eb2b40bd3c86372c3dbd3
[ "Zlib" ]
null
null
null
experimental/python/gui/object_polyline.py
x2nie/Embroidermodder
9db132d43c820b55056eb2b40bd3c86372c3dbd3
[ "Zlib" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ =================================== |module_summary| object_polyline.py =================================== TOWRITE Classes summary: ================ ============================ ============================ :class:`~PolylineObject` TOWRITE ====================...
30.77221
180
0.563698
4a0dc87f79ebbbb98c21b70eb9a3a6008a89e138
313
py
Python
xoeuf/tests/test_timespan/tests/__init__.py
merchise-autrement/xoeuf
583a0faa345480e73110d467203eefd142b0a710
[ "BSD-3-Clause" ]
3
2015-05-16T04:40:14.000Z
2016-01-26T05:36:20.000Z
xoeuf/tests/test_timespan/tests/__init__.py
merchise-autrement/xoeuf
583a0faa345480e73110d467203eefd142b0a710
[ "BSD-3-Clause" ]
null
null
null
xoeuf/tests/test_timespan/tests/__init__.py
merchise-autrement/xoeuf
583a0faa345480e73110d467203eefd142b0a710
[ "BSD-3-Clause" ]
1
2017-03-23T23:08:50.000Z
2017-03-23T23:08:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) Merchise Autrement [~º/~] and Contributors # All rights reserved. # # This is free software; you can do what the LICENCE file allows you to. # from . import test_timespan # noqa
31.3
72
0.533546
4a0dc92c173b72057b2c9faa36d80f4568eb6fdf
274
py
Python
Outros/distancia-euclidiana-dois-pontos.py
da-ferreira/algorithms_and_data_structures
fc79008cee5b3b65e3d9ae2ed542c79f061c77d1
[ "MIT" ]
null
null
null
Outros/distancia-euclidiana-dois-pontos.py
da-ferreira/algorithms_and_data_structures
fc79008cee5b3b65e3d9ae2ed542c79f061c77d1
[ "MIT" ]
null
null
null
Outros/distancia-euclidiana-dois-pontos.py
da-ferreira/algorithms_and_data_structures
fc79008cee5b3b65e3d9ae2ed542c79f061c77d1
[ "MIT" ]
null
null
null
""" Implementacao da distancia euclidiana de dois pontos em um plano. """ def euclidian_distance(x1, y1, x2, y2): from math import sqrt distancia = (abs(x2 - x1) ** 2) + (abs(y2 - y1) ** 2) distancia = sqrt(distancia) return distancia
18.266667
66
0.59854
4a0dc949ca233d31d0c6762f2cb67c3fdfb797ef
6,064
py
Python
sdk/python/pulumi_azure_native/cdn/v20150601/get_origin.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cdn/v20150601/get_origin.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/cdn/v20150601/get_origin.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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, overload from ... import _utilities __...
37.202454
226
0.652704
4a0dca985887d508c4ca21014e7e7514a9f51ce8
383
py
Python
tests/test_recursive_def.py
satgi/pygraphy
014883ea35dcd6d0288730140d80681cf251a783
[ "MIT" ]
98
2019-07-11T09:08:12.000Z
2022-02-12T04:32:55.000Z
tests/test_recursive_def.py
satgi/pygraphy
014883ea35dcd6d0288730140d80681cf251a783
[ "MIT" ]
27
2019-07-17T09:25:59.000Z
2020-07-20T07:50:15.000Z
tests/test_recursive_def.py
satgi/pygraphy
014883ea35dcd6d0288730140d80681cf251a783
[ "MIT" ]
11
2019-07-16T12:01:15.000Z
2022-03-04T08:08:10.000Z
from __future__ import annotations import pygraphy from typing import Optional class WhereInput(pygraphy.Input): _and: Optional[WhereInput] = None class Query(pygraphy.Query): @pygraphy.field def foo(self, arg: WhereInput) -> int: return 0 class Schema(pygraphy.Schema): query: Optional[Qu...
16.652174
42
0.723238
4a0dcb18155d5fb35ff25af026c103c7bd909c4a
1,057
py
Python
conftest.py
jonathonmellor/mimesis-stats
c5e82600da32d6e32bb21925aef15ec429c940bb
[ "MIT" ]
4
2021-09-23T11:11:55.000Z
2021-12-29T17:33:19.000Z
conftest.py
jonathonmellor/mimesis-stats
c5e82600da32d6e32bb21925aef15ec429c940bb
[ "MIT" ]
27
2021-09-05T18:35:01.000Z
2022-02-26T23:57:04.000Z
conftest.py
jonathonmellor/mimesis-stats
c5e82600da32d6e32bb21925aef15ec429c940bb
[ "MIT" ]
null
null
null
from typing import Any import pytest from mimesis_stats.providers.base_stats import BaseStatsDataProvider from mimesis_stats.stats_schema import StatsField @pytest.fixture def common_seed(): return 42 @pytest.fixture def dummy_field(dummy_provider): return StatsField(seed=42, providers=[dummy_provider]) ...
19.574074
68
0.59035
4a0dcb653dbdff7e77ef666aab86dfca8edb789e
6,837
py
Python
auditmiddleware/__init__.py
Pagolin/openstack-audit-middleware
f7917408684f82da6e64b77fc906514accae04ea
[ "Apache-2.0" ]
9
2018-01-05T18:57:09.000Z
2022-02-09T17:19:14.000Z
auditmiddleware/__init__.py
Pagolin/openstack-audit-middleware
f7917408684f82da6e64b77fc906514accae04ea
[ "Apache-2.0" ]
26
2017-10-12T13:04:09.000Z
2022-03-11T02:03:57.000Z
auditmiddleware/__init__.py
Pagolin/openstack-audit-middleware
f7917408684f82da6e64b77fc906514accae04ea
[ "Apache-2.0" ]
4
2018-01-17T15:50:42.000Z
2021-06-01T06:21:39.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
35.609375
79
0.65321
4a0dcd8e3ead0769eb7708ba66a11a6050050bfa
283
py
Python
Exercises3/R-3.13.py
opnsesame/Data-Structures-and-Algorithms-Exercises
62f4066c6370225a41295ecb08e05258b08f6d7e
[ "Apache-2.0" ]
null
null
null
Exercises3/R-3.13.py
opnsesame/Data-Structures-and-Algorithms-Exercises
62f4066c6370225a41295ecb08e05258b08f6d7e
[ "Apache-2.0" ]
null
null
null
Exercises3/R-3.13.py
opnsesame/Data-Structures-and-Algorithms-Exercises
62f4066c6370225a41295ecb08e05258b08f6d7e
[ "Apache-2.0" ]
null
null
null
''' Show that if d(n) is O( f (n)) and f (n) is O(g(n)), then d(n) is O(g(n)). ''' d(n) is O(f(n)) so there is a c and n0 when d(n) <= cf(n) for all n>n0 f(n) is O(g(n)) so there is a k and m0 when f(n) <= kg(n) for all n>n0 d(n) <= cf(n) <= c(k(g(n)))= c*k(g(n)) so d(n) is O(g(n))
35.375
74
0.501767
4a0dce65c6958c432c1a77468667606ca70694c9
1,130
py
Python
gran/utils/logger.py
longland-m/wikigen
459ba7bf9d3ca9584de65388cc9b9a15fa16a69f
[ "MIT" ]
null
null
null
gran/utils/logger.py
longland-m/wikigen
459ba7bf9d3ca9584de65388cc9b9a15fa16a69f
[ "MIT" ]
2
2021-08-25T16:04:29.000Z
2022-02-10T01:50:44.000Z
gran/utils/logger.py
longland-m/wikigen
459ba7bf9d3ca9584de65388cc9b9a15fa16a69f
[ "MIT" ]
null
null
null
# From GRAN repo, with no changes import logging def setup_logging(log_level, log_file, logger_name="exp_logger"): """ Setup logging """ numeric_level = getattr(logging, log_level.upper(), None) if not isinstance(numeric_level, int): raise ValueError("Invalid log level: %s" % log_level) logging.basicCon...
31.388889
102
0.700885
4a0dce7958a3ca1523d3fd2c8e32325fe308a02a
5,030
py
Python
examples/protoss/warpgate_push.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
examples/protoss/warpgate_push.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
examples/protoss/warpgate_push.py
james-m-tubbs/python-sc2
6753cbbf745bc5b64f6882d4d0cbd31998e584ea
[ "MIT" ]
null
null
null
import sc2 from sc2 import Race, Difficulty from sc2.player import Bot, Computer class WarpGateBot(sc2.BotAI): def __init__(self): self.warpgate_started = False self.proxy_built = False def select_target(self, state): return self.enemy_start_locations[0] async def warp_new_units(...
42.627119
121
0.631412
4a0dcebfd0acc6bf59772b9d4964ca70eb50550e
2,065
py
Python
sdk/python/pulumi_alicloud/cr/_inputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/cr/_inputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/cr/_inputs.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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, overload from .. import...
29.5
93
0.610654
4a0dcfd0c132c85ae12147192a2f62fc3dec551b
67,603
py
Python
tests/alerts_test.py
ziedkaaniche/elastalert
3856f329ceeefc94d41e84d1a311822b963ad2fb
[ "Apache-2.0" ]
null
null
null
tests/alerts_test.py
ziedkaaniche/elastalert
3856f329ceeefc94d41e84d1a311822b963ad2fb
[ "Apache-2.0" ]
null
null
null
tests/alerts_test.py
ziedkaaniche/elastalert
3856f329ceeefc94d41e84d1a311822b963ad2fb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import base64 import datetime import json import subprocess import mock import pytest from elastalert.alerts import AlertaAlerter from elastalert.alerts import Alerter from elastalert.alerts import BasicMatchString from elastalert.alerts import CommandAlerter from elastalert.alerts import Emai...
36.700869
131
0.585299
4a0dd03af234bfe74680ebf2db6eb9bd802ac142
5,878
py
Python
chemmltoolkit/proteins/protein.py
Andy-Wilkinson/ChemMLToolk
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
1
2019-10-30T03:43:24.000Z
2019-10-30T03:43:24.000Z
chemmltoolkit/proteins/protein.py
Andy-Wilkinson/ChemMLToolk
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
2
2021-11-28T21:09:30.000Z
2021-11-28T21:09:39.000Z
chemmltoolkit/proteins/protein.py
Andy-Wilkinson/ChemMLToolkit
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Generator, List, Optional, TextIO, Tuple, Union import gzip from enum import Flag from pathlib import Path import Bio.PDB as biopdb from Bio.PDB.Structure import Structure as bpStructure from Bio.PDB.Chain import Chain as bpChain from Bio.PDB.Residue import Residue ...
30.774869
78
0.604287
4a0dd1552f0674c42d95c7916bf7cd3dd6363c6e
992
py
Python
non-tts-utilities/ttslua-file-generator/lib/files.py
larikk/TTS-YGO
8c1718a01e97e9e972ba0c16c47d14c56354b5d5
[ "MIT" ]
1
2022-03-31T01:18:01.000Z
2022-03-31T01:18:01.000Z
non-tts-utilities/ttslua-file-generator/lib/files.py
larikk/TTS-YGO
8c1718a01e97e9e972ba0c16c47d14c56354b5d5
[ "MIT" ]
null
null
null
non-tts-utilities/ttslua-file-generator/lib/files.py
larikk/TTS-YGO
8c1718a01e97e9e972ba0c16c47d14c56354b5d5
[ "MIT" ]
null
null
null
import os import re import inspect imageMappingsFolder = "../../../ygo-assets/product-textures/mappings/" def write(folder, name, content): if folder[-1] != "/": folder += "/" path = folder + name with open(path, "w") as f: f.write(content) def compileDeckList(folder, prefix): files = sorted(os.listd...
24.8
74
0.577621
4a0dd15594686cab7be6bbbe0c70c7935944cdc0
2,287
py
Python
test/ryu/vsw-602_mp_group_stats.py
iMasaruOki/lagopus
69c303b65acbc2d4661691c190c42946654de1b3
[ "Apache-2.0" ]
281
2015-01-06T13:36:14.000Z
2022-03-14T03:29:46.000Z
test/ryu/vsw-602_mp_group_stats.py
iMasaruOki/lagopus
69c303b65acbc2d4661691c190c42946654de1b3
[ "Apache-2.0" ]
115
2015-01-06T11:09:21.000Z
2020-11-26T11:44:23.000Z
test/ryu/vsw-602_mp_group_stats.py
lagopus/lagopus
69c303b65acbc2d4661691c190c42946654de1b3
[ "Apache-2.0" ]
108
2015-01-06T05:12:01.000Z
2022-01-02T03:28:50.000Z
from ryu.base.app_manager import RyuApp from ryu.controller.ofp_event import EventOFPSwitchFeatures from ryu.controller.ofp_event import EventOFPGroupStatsReply from ryu.controller.handler import set_ev_cls from ryu.controller.handler import CONFIG_DISPATCHER from ryu.controller.handler import MAIN_DISPATCHER from ryu....
38.116667
77
0.615654
4a0dd21db451f9b3205175ed56207d6253dd1adf
422
py
Python
test/commands/TSID_ColoradoWaterHBGuest/ironpython/test.py
OpenCDSS/cdss-app-tstool-test
38f03731b4c76cf0ff2a354752a8cf4da4a2815b
[ "CC-BY-4.0" ]
null
null
null
test/commands/TSID_ColoradoWaterHBGuest/ironpython/test.py
OpenCDSS/cdss-app-tstool-test
38f03731b4c76cf0ff2a354752a8cf4da4a2815b
[ "CC-BY-4.0" ]
74
2019-02-08T08:37:59.000Z
2022-03-24T22:17:22.000Z
test/commands/TSID_ColoradoWaterHBGuest/ironpython/test.py
OpenCDSS/cdss-app-tstool-test
38f03731b4c76cf0ff2a354752a8cf4da4a2815b
[ "CC-BY-4.0" ]
null
null
null
# Test web services import wsdlprovider as wsdl url = "http://www.dwr.state.co.us/HBGuest/HBGuestWebService.asmx?WSDL" service = wsdl.GetWebservice(url) def getAuthentication(): header = service.HBAuthenticationHeader() header.Token = "WirQg1zN" return header # Main code status = service.HbStatusHeader...
23.444444
97
0.777251
4a0dd3d06610015a5a57dd6277aeaceb753bc5b5
12,828
py
Python
training/train_cancer_cnn_Resnet_pretrained.py
ramon349/quip_cancer_segmentation
e5299a4fa572d5b420670f4960a7f7bf3b51af3f
[ "BSD-3-Clause" ]
11
2019-06-14T16:51:05.000Z
2022-03-02T14:14:43.000Z
training/train_cancer_cnn_Resnet_pretrained.py
ramon349/quip_cancer_segmentation
e5299a4fa572d5b420670f4960a7f7bf3b51af3f
[ "BSD-3-Clause" ]
4
2019-06-14T21:15:22.000Z
2019-07-09T06:49:22.000Z
training/train_cancer_cnn_Resnet_pretrained.py
ramon349/quip_cancer_segmentation
e5299a4fa572d5b420670f4960a7f7bf3b51af3f
[ "BSD-3-Clause" ]
8
2019-06-14T19:44:45.000Z
2021-06-16T08:01:58.000Z
import argparse from torchvision import transforms import time import os, sys from time import strftime from sklearn.metrics import mean_squared_error, accuracy_score, hamming_loss, roc_curve, auc, f1_score from tumor_utils import * import copy from torch.utils.data import DataLoader, Dataset import random parser = ar...
38.872727
166
0.58154
4a0dd4c4a84298d7f668ae37b3c52299fc6ac5cc
10,672
py
Python
template_email_manager/tasks.py
mbacicc/django-template-email-manager
85a5b11a0b9c4d166bd8dec569db573ca317ea61
[ "MIT" ]
null
null
null
template_email_manager/tasks.py
mbacicc/django-template-email-manager
85a5b11a0b9c4d166bd8dec569db573ca317ea61
[ "MIT" ]
19
2021-05-06T08:09:23.000Z
2022-03-21T02:09:06.000Z
template_email_manager/tasks.py
mbacicc/django-template-email-manager
85a5b11a0b9c4d166bd8dec569db573ca317ea61
[ "MIT" ]
null
null
null
from background_task import background from django.contrib.auth.models import User from .models import * import logging from django.db.models import Q from .manager import * from django.utils.timezone import now from datetime import datetime from django.utils import timezone from datetime import timedelta from django....
41.204633
222
0.564936
4a0dd5d323120c12373c701920bae38e763eeace
990
py
Python
server/FirebaseClient.py
owo/jitalk
2db2782282a2302b4cf6049030822734a6856982
[ "MIT" ]
1
2020-06-22T14:28:41.000Z
2020-06-22T14:28:41.000Z
server/FirebaseClient.py
owo/jitalk
2db2782282a2302b4cf6049030822734a6856982
[ "MIT" ]
null
null
null
server/FirebaseClient.py
owo/jitalk
2db2782282a2302b4cf6049030822734a6856982
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from firebase import firebase class FirebaseClient(object): """docstring for FirebaseClient""" _instance = None def __init__(self): if not FirebaseClient._instance: FirebaseClient._instance = firebase.FirebaseApplication('https://ji-talk.firebaseio.com', None...
26.756757
98
0.717172
4a0dd6c2b8695427ae86b4bc2b2e351e1368453f
17
py
Python
python-game/images__init__.py
rcook/ptool-templates
44ccc78594c2b5f277d29ade13f303447aafd36f
[ "MIT" ]
null
null
null
python-game/images__init__.py
rcook/ptool-templates
44ccc78594c2b5f277d29ade13f303447aafd36f
[ "MIT" ]
null
null
null
python-game/images__init__.py
rcook/ptool-templates
44ccc78594c2b5f277d29ade13f303447aafd36f
[ "MIT" ]
null
null
null
{{py_copyright}}
8.5
16
0.705882
4a0dd7e63125e68626ae7d2164ebdeaa7177cb6f
2,576
py
Python
donkeycar/parts/cv.py
yaser-eftekhari/donkey
cd2216e906787097a67a11cb7825b6b3ae151ad7
[ "MIT" ]
1
2018-07-12T17:38:57.000Z
2018-07-12T17:38:57.000Z
donkeycar/parts/cv.py
yaser-eftekhari/donkey
cd2216e906787097a67a11cb7825b6b3ae151ad7
[ "MIT" ]
13
2018-04-26T08:13:36.000Z
2018-05-13T13:31:44.000Z
donkeycar/parts/cv.py
yaser-eftekhari/donkey
cd2216e906787097a67a11cb7825b6b3ae151ad7
[ "MIT" ]
6
2017-11-22T06:11:16.000Z
2018-07-11T18:04:13.000Z
import cv2 import numpy as np class ImgGreyscale(): def run(self, img_arr): img_arr = cv2.cvtColor(img_arr, cv2.COLOR_RGB2GRAY) return img_arr class ImgCanny(): def __init__(self, low_threshold=60, high_threshold=110): self.low_threshold = low_threshold self.high_threshold ...
26.285714
94
0.561335
4a0dd8b9e8c326e5464a1cba4fedacd07f7fc96e
1,548
py
Python
conductor/conductor/tests/unit/solver/optimizer/test_random_pick.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
conductor/conductor/tests/unit/solver/optimizer/test_random_pick.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
conductor/conductor/tests/unit/solver/optimizer/test_random_pick.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
# # ------------------------------------------------------------------------- # Copyright (C) 2019 IBM. # # 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...
34.4
95
0.654393
4a0dd96c964aba0c30aa22e5fbd0380966b4ed9b
7,058
py
Python
onza/Modules/input.py
ladsantos/onza
a0afcdedef49bc883d37d2e015beb1a786d9e857
[ "MIT" ]
null
null
null
onza/Modules/input.py
ladsantos/onza
a0afcdedef49bc883d37d2e015beb1a786d9e857
[ "MIT" ]
null
null
null
onza/Modules/input.py
ladsantos/onza
a0afcdedef49bc883d37d2e015beb1a786d9e857
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ This module computes input data for the lyman_alpha module. """ from __future__ import (division, print_function, absolute_import, unicode_literals) import numpy as np from itertools import product __all__ = ["ParticleEnsemble", "DensityMap"...
41.034884
80
0.594361
4a0dd9f04adb59ce0ff909c059a4bcbb0a1a1c2f
31,741
py
Python
mmcls/datasets/pipelines/transforms3D.py
18152189583/mmclassification-3D
61bff05e893f123eae4497f7f1904f7447c65899
[ "Apache-2.0" ]
null
null
null
mmcls/datasets/pipelines/transforms3D.py
18152189583/mmclassification-3D
61bff05e893f123eae4497f7f1904f7447c65899
[ "Apache-2.0" ]
null
null
null
mmcls/datasets/pipelines/transforms3D.py
18152189583/mmclassification-3D
61bff05e893f123eae4497f7f1904f7447c65899
[ "Apache-2.0" ]
null
null
null
import torch.nn.functional from ..builder import PIPELINES import numpy as np import mmcv from scipy.ndimage import binary_fill_holes import nibabel as nib from mmcv.utils import deprecated_api_warning import skimage #TODO to be eval @PIPELINES.register_module() class ResampleMedicalImage(object): def ...
43.720386
123
0.562648
4a0ddb58b28222a195fe513df64d2f2046f12427
1,418
py
Python
job_monitor/exhausted.py
plinecom/Exhausted
4f2c1371daf3a0583a248eeaa66157ff4bcbb90e
[ "MIT" ]
2
2020-05-13T09:21:03.000Z
2021-01-10T22:38:39.000Z
job_monitor/exhausted.py
plinecom/Exhausted
4f2c1371daf3a0583a248eeaa66157ff4bcbb90e
[ "MIT" ]
null
null
null
job_monitor/exhausted.py
plinecom/Exhausted
4f2c1371daf3a0583a248eeaa66157ff4bcbb90e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import psutil import pymongo import pymongo.errors import os from datetime import datetime import time import sys # print psutil.cpu_percent(percpu=True) # print psutil.virtual_memory() # 必要な物、ソケット通信、標準入力ハンドラ。実行状態調査。ファイルロック。 def data_collect(): # mongodb へのアクセスを確立 client = pymongo....
20.852941
141
0.555712
4a0ddd5138c5a9f6759124a3794d490b6aab31ed
9,305
py
Python
pyschieber/player/challenge_player/strategy/card_counter.py
Murthy10/pyschieber
f9db28c9553b8f321f6ed71cff04eff7879af5f6
[ "MIT" ]
5
2018-01-17T08:11:14.000Z
2018-11-27T11:37:15.000Z
pyschieber/player/challenge_player/strategy/card_counter.py
Murthy10/pyschieber
f9db28c9553b8f321f6ed71cff04eff7879af5f6
[ "MIT" ]
4
2018-05-09T08:41:05.000Z
2018-11-16T08:07:39.000Z
pyschieber/player/challenge_player/strategy/card_counter.py
Murthy10/pyschieber
f9db28c9553b8f321f6ed71cff04eff7879af5f6
[ "MIT" ]
3
2018-04-20T07:39:30.000Z
2018-11-10T12:44:08.000Z
from pyschieber.player.challenge_player.strategy.mode.trumpf_color_mode import * from pyschieber.player.challenge_player.strategy.mode.top_down_mode import * from pyschieber.player.challenge_player.strategy.mode.bottom_up_mode import * from pyschieber.player.challenge_player.strategy.flags.doesnt_habe_card_flag import ...
42.488584
169
0.616443
4a0ddd8d6c3f0e065269844373826e5bb6d884a7
2,247
py
Python
api-gateway/fcgi/super_resolution/python/post_local_super_resolution_py.py
intel/cloud-client-ai-service-framework
01676b08878f7a58201854aedb181134eafef7a2
[ "Apache-2.0" ]
3
2022-03-25T17:28:53.000Z
2022-03-29T03:30:25.000Z
api-gateway/fcgi/super_resolution/python/post_local_super_resolution_py.py
intel/cloud-client-ai-service-framework
01676b08878f7a58201854aedb181134eafef7a2
[ "Apache-2.0" ]
null
null
null
api-gateway/fcgi/super_resolution/python/post_local_super_resolution_py.py
intel/cloud-client-ai-service-framework
01676b08878f7a58201854aedb181134eafef7a2
[ "Apache-2.0" ]
1
2022-03-27T12:44:19.000Z
2022-03-27T12:44:19.000Z
#Copyright (C) 2020 Intel Corporation import requests import json import base64 import urllib.parse import hashlib ## python3 import time import random import cv2 from collections import OrderedDict import numpy as np import argparse import sys def main(args): #start_time = time.time() appkey = 'di6ik9b9Ji...
31.647887
131
0.667112
4a0dde45d4685720ae67810bf55293683b3973c3
2,038
py
Python
examples/dfp/v201805/custom_field_service/create_custom_fields.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:22.000Z
2019-10-21T04:10:22.000Z
examples/dfp/v201805/custom_field_service/create_custom_fields.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201805/custom_field_service/create_custom_fields.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:51.000Z
2019-10-21T04:10:51.000Z
#!/usr/bin/env python # # Copyright 2015 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 requir...
30.41791
77
0.700687
4a0ddf2921c20be602ddc38825112bcdd56bea32
65
py
Python
user_login.py
Hegen52/football
15572b9913af4eb399b74203a9a27dd65d3ecaf4
[ "Apache-2.0" ]
null
null
null
user_login.py
Hegen52/football
15572b9913af4eb399b74203a9a27dd65d3ecaf4
[ "Apache-2.0" ]
null
null
null
user_login.py
Hegen52/football
15572b9913af4eb399b74203a9a27dd65d3ecaf4
[ "Apache-2.0" ]
null
null
null
Neuer Code... Codezeile Arbeitsplatz Codezeile LaptopCode Code 2
13
22
0.830769
4a0de01ec15daa0f02af220d701ae218a8e4867a
1,409
py
Python
tests/api/test_quote.py
manstiilin/zvt
5a37c19f4837c0250b04d9f41ead910f42b72ce4
[ "MIT" ]
1
2019-12-09T12:13:09.000Z
2019-12-09T12:13:09.000Z
tests/api/test_quote.py
manstiilin/zvt
5a37c19f4837c0250b04d9f41ead910f42b72ce4
[ "MIT" ]
2
2019-12-05T00:46:06.000Z
2019-12-15T12:22:07.000Z
tests/api/test_quote.py
manstiilin/zvt
5a37c19f4837c0250b04d9f41ead910f42b72ce4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from zvdata import IntervalLevel from zvt.api.quote import get_indices, get_kdata from zvt.domain import StockCategory def test_get_indices(): df = get_indices(provider='sina', block_category=StockCategory.industry) print(df) df = get_indices(provider='eastmoney', block_category=S...
32.767442
102
0.657204
4a0de10732607700dd9a683757111e5a03a623b0
4,198
py
Python
backend/src/baserow/contrib/database/config.py
calvinchengx/baserow
0340d5abf0a3b48154d41fd05cd2e1e05814cd66
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/config.py
calvinchengx/baserow
0340d5abf0a3b48154d41fd05cd2e1e05814cd66
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/config.py
calvinchengx/baserow
0340d5abf0a3b48154d41fd05cd2e1e05814cd66
[ "MIT" ]
null
null
null
from django.apps import AppConfig from baserow.core.registries import plugin_registry, application_type_registry from .views.registries import view_type_registry, view_filter_type_registry from .fields.registries import field_type_registry, field_converter_registry class DatabaseConfig(AppConfig): name = 'baser...
47.704545
88
0.738209
4a0de437899a4b8987f89c11cd7926641a667ef0
3,267
py
Python
test/Alias/srcdir.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2017-01-28T15:39:07.000Z
2017-01-28T15:39:07.000Z
test/Alias/srcdir.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
4
2019-04-11T16:27:45.000Z
2019-04-11T23:56:30.000Z
test/Alias/srcdir.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
2
2018-01-16T11:29:16.000Z
2020-05-13T16:48:26.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
30.53271
80
0.698806
4a0de4d1c8f586e3679502bba568a478ad163240
1,578
py
Python
Chapter08/dashboard-full/runnerly/dashboard/views/proxy.py
mtianyan/PythonMicroservicesDevelopment_Code
a99c6c18dfb40e790aa4a5e24ff5eba495e64743
[ "Apache-2.0" ]
7
2019-01-14T01:11:32.000Z
2022-01-17T16:28:56.000Z
runnerly/dashboard/views/proxy.py
Runnerly/dashboard
60e036226f7ca880d60f704317556a26bdfd105b
[ "Apache-2.0" ]
null
null
null
runnerly/dashboard/views/proxy.py
Runnerly/dashboard
60e036226f7ca880d60f704317556a26bdfd105b
[ "Apache-2.0" ]
2
2019-01-14T00:51:49.000Z
2020-08-13T03:18:27.000Z
import requests from flakon import JsonBlueprint from flask import Blueprint, abort, session, jsonify from flask import current_app as app proxy = JsonBlueprint('proxy', __name__) def email_to_uid(email): return 1 def get_token(): data = [('client_id', app.config['TOKENDEALER_CLIENT_ID']), ('...
27.206897
71
0.641952
4a0de5b154a96135e40d919cb7a28b25d9526168
461
py
Python
examples/all_pico_leds.py
unPi-ro/sonar.glass
4349383c2551689618fc9165026ca6947d96c3d6
[ "BSD-3-Clause" ]
null
null
null
examples/all_pico_leds.py
unPi-ro/sonar.glass
4349383c2551689618fc9165026ca6947d96c3d6
[ "BSD-3-Clause" ]
null
null
null
examples/all_pico_leds.py
unPi-ro/sonar.glass
4349383c2551689618fc9165026ca6947d96c3d6
[ "BSD-3-Clause" ]
null
null
null
from machine import Pin, Timer # Red on the tiny Pico rgbRed = Pin(18, Pin.OUT) # Green on the tiny Pico rgbGreen = Pin(19, Pin.OUT) # Blue on the tiny Pico rgbBlue = Pin(20, Pin.OUT) # from https://github.com/raspberrypi/pico-micropython-examples/blob/master/blink/blink.py # always Green on the (standard) Pico led ...
21.952381
90
0.713666
4a0de69e6cbe7454f6fafaf0e0f020230819a583
1,477
py
Python
sphinxcontrib/svgbob/directive.py
althonos/sphinxcontrib.svgbob
42af9079059a29b747329c0012b823fe51f69f4e
[ "MIT" ]
3
2021-07-23T03:37:51.000Z
2021-12-13T13:26:16.000Z
sphinxcontrib/svgbob/directive.py
sphinx-contrib/svgbob
42af9079059a29b747329c0012b823fe51f69f4e
[ "MIT" ]
null
null
null
sphinxcontrib/svgbob/directive.py
sphinx-contrib/svgbob
42af9079059a29b747329c0012b823fe51f69f4e
[ "MIT" ]
null
null
null
import typing import sphinx.errors from docutils.nodes import Node from docutils.parsers.rst import directives from sphinx.ext.graphviz import align_spec from sphinx.util.docutils import SphinxDirective from .node import svgbob class SvgbobError(sphinx.errors.SphinxError): category = "Svgbob error" class Svgb...
26.375
66
0.633717
4a0de85a139428a9efba1aadbea38226b8ef02ea
267
py
Python
examples/Supervised_simul_MT/models/__init__.py
ashkanalinejad/Supervised-Simultaneous-MT
d09397ed86bbf4133d5d9b906030a8881ee4c13f
[ "MIT" ]
2
2022-01-11T19:27:11.000Z
2022-01-12T11:06:53.000Z
examples/Supervised_simul_MT/models/__init__.py
sfu-natlang/Supervised-Simultaneous-MT
12c3a53887c985ae24199ecef2f7b2335fe214c6
[ "MIT" ]
1
2022-02-12T03:02:52.000Z
2022-02-12T04:27:10.000Z
examples/Supervised_simul_MT/models/__init__.py
sfu-natlang/Supervised-Simultaneous-MT
12c3a53887c985ae24199ecef2f7b2335fe214c6
[ "MIT" ]
1
2022-02-27T14:22:36.000Z
2022-02-27T14:22:36.000Z
import importlib import os for file in os.listdir(os.path.dirname(__file__)): if file.endswith('.py') and not file.startswith('_'): model_name = file[:file.find('.py')] importlib.import_module('examples.Supervised_simul_MT.models.' + model_name)
33.375
84
0.70412
4a0de896eece20ca91bfbbc50822cd3d4fb95819
4,443
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/vkpass.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/vkpass.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/vkpass.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ VKPass urlresolver XBMC Addon based on VKResolver Copyright (C) 2015 Seberoth Version 0.0.1 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License...
35.544
150
0.571461
4a0de984bdf2716ab1f1e4c4ebf9053954bbb177
4,184
py
Python
ltr/data/transforms.py
CASIA-IVA-Lab/DCFST
ca881ba3aae1ce00e4a7a6db01d99e5f6efff68b
[ "Apache-2.0" ]
22
2020-07-22T13:58:36.000Z
2021-12-01T01:48:44.000Z
ltr/data/transforms.py
CASIA-IVA-Lab/DCFST
ca881ba3aae1ce00e4a7a6db01d99e5f6efff68b
[ "Apache-2.0" ]
3
2020-08-03T02:23:47.000Z
2021-04-09T01:21:58.000Z
ltr/data/transforms.py
CASIA-IVA-Lab/DCFST
ca881ba3aae1ce00e4a7a6db01d99e5f6efff68b
[ "Apache-2.0" ]
4
2020-09-26T00:01:51.000Z
2021-08-05T09:58:30.000Z
import random import numpy as np import math import cv2 as cv import torch import torch.nn.functional as F class Transform: """ Class for applying various image transformations.""" def __call__(self, *args): rand_params = self.roll() if rand_params is None: rand_params = () ...
33.206349
115
0.613528
4a0de9bb1031c3779a6469804ba54f0a3690fdb1
766
py
Python
LearnPython3/funcArgs.py
balajithangamani/LearnPy
87aac13314687f06e54db00c656386db8249a1a0
[ "MIT" ]
null
null
null
LearnPython3/funcArgs.py
balajithangamani/LearnPy
87aac13314687f06e54db00c656386db8249a1a0
[ "MIT" ]
null
null
null
LearnPython3/funcArgs.py
balajithangamani/LearnPy
87aac13314687f06e54db00c656386db8249a1a0
[ "MIT" ]
null
null
null
def showname(name, age=60): 'Function simply displays the inputs' print("Name", name) print("Age", age) def showname2(name, *vartuple, **vardict): 'Advanced version of showname function' print("Name", ':', name) for tup_arg in vartuple: print(tup_arg, sep=':') for key in vardict: ...
28.37037
90
0.667102
4a0dea8ab15058256ad6e2f697d82fec912c7a9f
3,648
py
Python
erplicense/migrations/0001_initial.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
erplicense/migrations/0001_initial.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
3
2020-02-12T02:52:01.000Z
2021-06-10T22:18:25.000Z
erplicense/migrations/0001_initial.py
GolamMullick/HR_PROJECT
fc4c76cfc835ad014a62a3da9d32b8fc8d474397
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2019-11-14 10:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core...
45.037037
147
0.593202
4a0dead962e9c00fbbcda764712e8aeda0119c5e
6,252
py
Python
project/rrt_planner/robot.py
czeng6/6881-f19-brian-catherine
6b84d5b82986e66702a01968d6d288ca62e51c2e
[ "MIT" ]
null
null
null
project/rrt_planner/robot.py
czeng6/6881-f19-brian-catherine
6b84d5b82986e66702a01968d6d288ca62e51c2e
[ "MIT" ]
null
null
null
project/rrt_planner/robot.py
czeng6/6881-f19-brian-catherine
6b84d5b82986e66702a01968d6d288ca62e51c2e
[ "MIT" ]
null
null
null
from .geometry import Point, Pose, Polygon, Object import random from math import ceil, sqrt class Robot: """ A Robot is a set of convex polygons. """ def __init__(self, polys): self.polys = polys self.radius = None # Creates an Object with reference point at the specified conf. ...
36.561404
102
0.574536
4a0debafff7a7339e78e85a9c72073e420a8c2f5
1,261
py
Python
ritual/__main__.py
kerighan/ritual
87bacfc68adb6e84a312c44e54bbef058f0bd4e8
[ "MIT" ]
4
2019-11-20T12:21:31.000Z
2021-02-09T11:06:37.000Z
ritual/__main__.py
kerighan/ritual
87bacfc68adb6e84a312c44e54bbef058f0bd4e8
[ "MIT" ]
null
null
null
ritual/__main__.py
kerighan/ritual
87bacfc68adb6e84a312c44e54bbef058f0bd4e8
[ "MIT" ]
1
2021-08-20T07:37:33.000Z
2021-08-20T07:37:33.000Z
from .editor import start_server, list_saved_files import argparse import sys import os def main(): # Parse arguments parser = argparse.ArgumentParser() parser.add_argument("--editor", help="starts Anubis editor", action="store_true") parser.add_argument...
30.02381
68
0.546392
4a0dec2468e73695c9fe2cbd89a767688fea3001
165
py
Python
landsat_cogeo_mosaic/__init__.py
kylebarron/landsat-cogeo-mosaic
ca029d18b8decad3dd5445dd0b62dd5df1e5abda
[ "MIT" ]
3
2020-04-01T16:01:46.000Z
2021-01-12T23:18:02.000Z
landsat_cogeo_mosaic/__init__.py
kylebarron/landsat-cogeo-mosaic
ca029d18b8decad3dd5445dd0b62dd5df1e5abda
[ "MIT" ]
17
2020-03-20T06:12:29.000Z
2020-09-25T04:30:35.000Z
landsat_cogeo_mosaic/__init__.py
kylebarron/landsat-cogeo-mosaic
ca029d18b8decad3dd5445dd0b62dd5df1e5abda
[ "MIT" ]
null
null
null
__author__ = """Kyle Barron""" __email__ = 'kylebarron2@gmail.com' __version__ = '0.2.1' from .mosaic import features_to_mosaicJSON from .stac import fetch_sat_api
23.571429
42
0.769697
4a0deca8691e326d16c49dd4461e5d33b890bff9
2,410
py
Python
examples/use_cases/use_case_38_1L2S_qflux.py
ketozhang/MulensModel
cad22055b4c18f2ddc5a20de64240d2286cc23be
[ "MIT" ]
30
2016-08-30T23:32:43.000Z
2022-03-07T20:06:25.000Z
examples/use_cases/use_case_38_1L2S_qflux.py
ketozhang/MulensModel
cad22055b4c18f2ddc5a20de64240d2286cc23be
[ "MIT" ]
25
2018-08-22T19:14:22.000Z
2022-03-28T17:22:56.000Z
examples/use_cases/use_case_38_1L2S_qflux.py
ketozhang/MulensModel
cad22055b4c18f2ddc5a20de64240d2286cc23be
[ "MIT" ]
11
2016-10-03T16:00:50.000Z
2022-03-23T16:53:54.000Z
""" Fit a binary source event. Allow the flux ratio to be freely fit for KMTC data, but then constrained for other datasets in the same band. For example, suppose there is a short-term anomaly that is only covered by KMTC data. Then, for a binary source fit, the KMTC data constrain q_flux but the other datasets do not...
38.253968
79
0.666805
4a0ded2fda4d8768a46ded2576d32407b8294882
1,916
py
Python
stacks/XIAOMATECH/1.0/services/AMBARI_METRICS/package/scripts/hbase_service.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
3
2019-08-13T01:44:16.000Z
2019-12-10T04:05:56.000Z
stacks/XIAOMATECH/1.0/services/AMBARI_METRICS/package/scripts/hbase_service.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
null
null
null
stacks/XIAOMATECH/1.0/services/AMBARI_METRICS/package/scripts/hbase_service.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
7
2019-05-29T17:35:25.000Z
2021-12-04T07:55:10.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");...
34.836364
79
0.683194
4a0dee1c977c7786d255e760f61e6c34a12fb3d0
635
py
Python
wagtail/migrations/0046_site_name_remove_null.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
1
2022-02-09T05:25:30.000Z
2022-02-09T05:25:30.000Z
wagtail/migrations/0046_site_name_remove_null.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
wagtail/migrations/0046_site_name_remove_null.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-27 15:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("wagtailcore", "0045_assign_unlock_grouppagepermission"), ] operations = [ migrations.AlterField( model_name="site", ...
24.423077
66
0.543307
4a0dee36a923c95f0f508dbb3041573d8a63b11c
5,376
py
Python
livereload/watcher.py
andreycizov/python-livereload
2a51a77028911a2b69db1d4f72323966c34b3c1e
[ "BSD-3-Clause" ]
null
null
null
livereload/watcher.py
andreycizov/python-livereload
2a51a77028911a2b69db1d4f72323966c34b3c1e
[ "BSD-3-Clause" ]
null
null
null
livereload/watcher.py
andreycizov/python-livereload
2a51a77028911a2b69db1d4f72323966c34b3c1e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ livereload.watcher ~~~~~~~~~~~~~~~~~~ A file watch management for LiveReload Server. :copyright: (c) 2013 - 2015 by Hsiaoming Yang :license: BSD, see LICENSE for more details. """ import glob import logging import os import time try: import pyinotify except Import...
29.217391
90
0.567708
4a0def386852b29266d324d542be21f3743f9ab2
799
py
Python
src/azure-cli/azure/cli/command_modules/storage/operations/cors.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
3,287
2016-07-26T17:34:33.000Z
2022-03-31T09:52:13.000Z
src/azure-cli/azure/cli/command_modules/storage/operations/cors.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
19,206
2016-07-26T07:04:42.000Z
2022-03-31T23:57:09.000Z
src/azure-cli/azure/cli/command_modules/storage/operations/cors.py
YuanyuanNi/azure-cli
63844964374858bfacd209bfe1b69eb456bd64ca
[ "MIT" ]
2,575
2016-07-26T06:44:40.000Z
2022-03-31T22:56:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
36.318182
108
0.549437
4a0def62b4d92b035af7c192dbf84e633fe8ba2e
4,941
py
Python
homeassistant/components/hassio/http.py
nickna/core
c682d5d5e430de52e3da7e06026cd8b4087e864f
[ "Apache-2.0" ]
5
2019-02-24T11:46:18.000Z
2019-05-28T17:37:21.000Z
homeassistant/components/hassio/http.py
nickna/core
c682d5d5e430de52e3da7e06026cd8b4087e864f
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
homeassistant/components/hassio/http.py
nickna/core
c682d5d5e430de52e3da7e06026cd8b4087e864f
[ "Apache-2.0" ]
7
2021-03-20T12:34:01.000Z
2021-12-02T10:13:52.000Z
"""HTTP Support for Hass.io.""" from __future__ import annotations import asyncio import logging import os import re import aiohttp from aiohttp import web from aiohttp.client import ClientTimeout from aiohttp.hdrs import ( CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, TRANSFER_ENCODING, ) from aioh...
28.560694
81
0.627201
4a0df1fd4fb0eb4e627203d19085aed0ca7831b8
2,028
py
Python
isi_mip/climatemodels/migrations/0027_auto_20160602_1210.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
4
2017-07-05T08:06:18.000Z
2021-03-01T17:23:18.000Z
isi_mip/climatemodels/migrations/0027_auto_20160602_1210.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
4
2020-01-31T09:02:57.000Z
2021-04-20T14:04:35.000Z
isi_mip/climatemodels/migrations/0027_auto_20160602_1210.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
4
2017-10-12T01:48:55.000Z
2020-04-29T13:50:03.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-02 10:10 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('climatemodels', '0026_impactmodel_spatial_aggregation'), ...
43.148936
316
0.663708
4a0df3f0577390d0f6569e18967ef73e91da8be2
2,429
py
Python
tests/unit/test_base64.py
weslambert/unfurl
b9a65db6842ac9f2c2e8165fc5eebfee4f2918b3
[ "Apache-2.0" ]
1
2020-07-23T18:42:44.000Z
2020-07-23T18:42:44.000Z
tests/unit/test_base64.py
weslambert/unfurl
b9a65db6842ac9f2c2e8165fc5eebfee4f2918b3
[ "Apache-2.0" ]
null
null
null
tests/unit/test_base64.py
weslambert/unfurl
b9a65db6842ac9f2c2e8165fc5eebfee4f2918b3
[ "Apache-2.0" ]
2
2020-07-06T20:27:07.000Z
2020-07-23T18:42:49.000Z
from unfurl import Unfurl import unittest class TestBase64(unittest.TestCase): def test_padded_b64_ascii(self): """ Test a simple ASCII string that is base64-encoded.""" test = Unfurl() test.add_to_queue( data_type='url', key=None, value='dGVzdHl0ZXN0dGVzdA==') ...
30.3625
88
0.629889
4a0df4e73fe978f79c0962c07ab64a686a8270b2
1,001
py
Python
tests/confdb/engine/test_compile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
tests/confdb/engine/test_compile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
tests/confdb/engine/test_compile.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # Test engine's query compilations # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------...
23.833333
72
0.471528
4a0df505548f95a23dcef3a7af9f90d190adbba0
20,902
py
Python
MDPModel.py
klolos/mdpdt
28699d67e9a9e8cad53af9671eb3489e5d8b448b
[ "MIT" ]
4
2018-12-19T16:50:29.000Z
2022-02-09T12:12:01.000Z
MDPModel.py
klolos/mdpdt
28699d67e9a9e8cad53af9671eb3489e5d8b448b
[ "MIT" ]
null
null
null
MDPModel.py
klolos/mdpdt
28699d67e9a9e8cad53af9671eb3489e5d8b448b
[ "MIT" ]
3
2018-10-17T07:41:54.000Z
2020-05-09T10:18:59.000Z
from __future__ import division from DecisionMaking.Configuration import ConfigurationError from DecisionMaking.Constants import * from DecisionMaking.Exceptions import * """ Represents a Q-state in the MDP model """ class QState(object): def __init__(self, action, num_states, qvalue = 0.0): self....
27.358639
102
0.585733