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
795bcf8de903b746352efa85f5d1c578c613d02f
2,209
py
Python
samples/cli/accelbyte_py_sdk_cli/iam/_admin_reset_input_validations.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
samples/cli/accelbyte_py_sdk_cli/iam/_admin_reset_input_validations.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
samples/cli/accelbyte_py_sdk_cli/iam/_admin_reset_input_validations.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-iam-service (5.10.1) # pylint: disable=duplicate-code # ...
32.014493
108
0.751471
795bd02d4f9c57d6697c7f3adc0447d0f2d75a75
2,541
py
Python
main/sentry_commands/project_registration.py
farhannysf/sentry-bot
df8ebe362592ee24793a9665c43c7f0cfc86a031
[ "MIT" ]
1
2021-03-08T21:40:37.000Z
2021-03-08T21:40:37.000Z
main/sentry_commands/project_registration.py
farhannysf/sentry-bot
df8ebe362592ee24793a9665c43c7f0cfc86a031
[ "MIT" ]
null
null
null
main/sentry_commands/project_registration.py
farhannysf/sentry-bot
df8ebe362592ee24793a9665c43c7f0cfc86a031
[ "MIT" ]
null
null
null
from utility import checkChannel, retrieveDB_data, checkUser from settings import unauthorized_channelMessage, glyph_URL async def project_registrationLogic( ctx, discordEmbed, firestore, db, operation, project_name ): channelId = str(ctx.message.channel.id) guildId = str(ctx.message.guild.id) userId ...
38.5
112
0.61708
795bd031eee0779dd719e1cc079bcd8bb53f6372
10,743
py
Python
dso/dso/task/regression/dataset.py
ryok/deep-symbolic-optimization
9dc2086f5d219fdfab5aaae2485e11b693da4d4a
[ "BSD-3-Clause" ]
65
2020-03-27T06:20:04.000Z
2021-05-28T11:30:18.000Z
dso/dso/task/regression/dataset.py
ryok/deep-symbolic-optimization
9dc2086f5d219fdfab5aaae2485e11b693da4d4a
[ "BSD-3-Clause" ]
9
2020-02-20T04:00:50.000Z
2021-06-04T18:16:29.000Z
dso/dso/task/regression/dataset.py
ryok/deep-symbolic-optimization
9dc2086f5d219fdfab5aaae2485e11b693da4d4a
[ "BSD-3-Clause" ]
18
2020-05-01T11:45:38.000Z
2021-06-10T13:27:51.000Z
"""Class for deterministically generating a benchmark dataset from benchmark specifications.""" import os import ast import itertools from pkg_resources import resource_filename import zlib import click import pandas as pd import numpy as np from dso.functions import function_map class BenchmarkDataset(object): ...
39.065455
163
0.578609
795bd063e45d16ef36efa0c19a79aa5fca148473
1,356
py
Python
tests/tools/cisco_san_fabric_lib.py
akshatha-s13/mdsLib-1
339a5fb9606d4cac85055c97a229c690b4438d42
[ "Apache-2.0" ]
null
null
null
tests/tools/cisco_san_fabric_lib.py
akshatha-s13/mdsLib-1
339a5fb9606d4cac85055c97a229c690b4438d42
[ "Apache-2.0" ]
null
null
null
tests/tools/cisco_san_fabric_lib.py
akshatha-s13/mdsLib-1
339a5fb9606d4cac85055c97a229c690b4438d42
[ "Apache-2.0" ]
1
2020-05-05T06:56:22.000Z
2020-05-05T06:56:22.000Z
import logging import pprint from mdslib._fabric import Fabric logFormatter = logging.Formatter("[%(asctime)s] [%(module)-14.14s] [%(levelname)-5.5s] %(message)s") log = logging.getLogger() fileHandler = logging.FileHandler("cisco_san_fabric_lib.log") fileHandler.setFormatter(logFormatter) fileHandler.setLevel(loggi...
30.818182
100
0.619469
795bd106a95bd0876255a2584d2cb8ed3c20874e
374
py
Python
factory_boss/errors.py
mariushelf/factory_boss
b9f9c99ea731e2af1c6951f734e20ffe05ba1693
[ "MIT" ]
1
2021-06-03T12:47:17.000Z
2021-06-03T12:47:17.000Z
factory_boss/errors.py
mariushelf/factory_boss
b9f9c99ea731e2af1c6951f734e20ffe05ba1693
[ "MIT" ]
5
2021-05-25T12:46:00.000Z
2021-05-27T18:32:37.000Z
factory_boss/errors.py
mariushelf/factory_boss
b9f9c99ea731e2af1c6951f734e20ffe05ba1693
[ "MIT" ]
null
null
null
class FactoryBossError(Exception): pass class UndefinedValueError(FactoryBossError): pass class ConfigurationError(FactoryBossError): pass class InvalidReferenceError(FactoryBossError): pass class UnresolvedReferenceError(FactoryBossError): """ A reference has not been resolved yet """ ...
14.96
49
0.759358
795bd141430035407a763d5610a6745ba0a19097
10,205
py
Python
ilqr_utils.py
tungnd1705/PC3-pytorch
e1ed5f475da387cb92dd1e3830e7d195562b4b64
[ "MIT" ]
19
2020-02-18T04:02:09.000Z
2022-02-27T19:40:14.000Z
ilqr_utils.py
tungnd1705/PC3-pytorch
e1ed5f475da387cb92dd1e3830e7d195562b4b64
[ "MIT" ]
null
null
null
ilqr_utils.py
tungnd1705/PC3-pytorch
e1ed5f475da387cb92dd1e3830e7d195562b4b64
[ "MIT" ]
2
2021-07-15T15:04:15.000Z
2021-11-27T15:24:23.000Z
import matplotlib.pyplot as plt import numpy as np import torch from matplotlib.animation import FuncAnimation, writers np.random.seed(0) def cost_dz(R_z, z, z_goal): # compute the first-order deravative of latent cost w.r.t z z_diff = np.expand_dims(z - z_goal, axis=-1) return np.squeeze(2 * np.matmul(...
35.933099
119
0.64243
795bd16fb8d48a598a9cf03a5e48ba8122975729
118,133
py
Python
AtomPos/tifffile.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
2
2020-10-05T06:12:43.000Z
2022-03-15T04:15:16.000Z
AtomPos/tifffile.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
null
null
null
AtomPos/tifffile.py
rhambach/TEMimage
436c9d8912db481185d09d9d70c4827c87cbd8a5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # tifffile.py # # Slightly modified version of original tifffile from Chritoph Gohlke. # # Copyright (c) 2013, rhambach. # This file is part of the FitAtomPos package and released # under the MIT-Licence. See LICENCE file for details. # # Copyright (c) 2008-2012, C...
35.00237
83
0.555636
795bd2ab23e5e08a0b9b3895ae3f9762aade6ef7
4,365
py
Python
cifar100.py
TheSimoms/hovden-2022-demo
051d98b4fb1b3a6d5a9325d472894183711d4532
[ "MIT" ]
1
2022-03-24T16:56:43.000Z
2022-03-24T16:56:43.000Z
cifar100.py
TheSimoms/hovden-2022-demo
051d98b4fb1b3a6d5a9325d472894183711d4532
[ "MIT" ]
null
null
null
cifar100.py
TheSimoms/hovden-2022-demo
051d98b4fb1b3a6d5a9325d472894183711d4532
[ "MIT" ]
1
2022-03-23T11:20:15.000Z
2022-03-23T11:20:15.000Z
import argparse import numpy as np from PIL import Image import matplotlib.pyplot as plt from tensorflow.keras.datasets import cifar100 from tensorflow.keras.models import Sequential, load_model from tensorflow.keras.layers import Dense, Flatten, Dropout, Conv2D, MaxPooling2D, Activation from tensorflow.keras.utils imp...
24.522472
93
0.627721
795bd2d9179430998a4d1ed6249289bbc394c32a
92,497
py
Python
autotest/ogr/ogr_mitab.py
sharkAndshark/gdal
0cf797ecaa5d1d3312f3a9f51a266cd3f9d02fb5
[ "Apache-2.0" ]
3
2017-05-06T11:43:08.000Z
2017-07-19T15:27:06.000Z
autotest/ogr/ogr_mitab.py
sharkAndshark/gdal
0cf797ecaa5d1d3312f3a9f51a266cd3f9d02fb5
[ "Apache-2.0" ]
29
2017-03-17T23:55:49.000Z
2018-03-13T09:27:01.000Z
autotest/ogr/ogr_mitab.py
sharkAndshark/gdal
0cf797ecaa5d1d3312f3a9f51a266cd3f9d02fb5
[ "Apache-2.0" ]
1
2017-10-12T05:49:01.000Z
2017-10-12T05:49:01.000Z
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: MapInfo driver testing. # Author: Frank Warmerdam <warmerdam@pobox.com> # #################################################################...
37.707705
676
0.580181
795bd309f21e3fe706437e2c83af3a2ee6a10bba
1,104
py
Python
kubernetes_asyncio/test/test_v1beta1_rolling_update_daemon_set.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
1
2020-03-25T01:24:27.000Z
2020-03-25T01:24:27.000Z
kubernetes_asyncio/test/test_v1beta1_rolling_update_daemon_set.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v1beta1_rolling_update_daemon_set.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
26.926829
130
0.750906
795bd3adbf171b37bf6898011a13977f7c8c5425
1,979
py
Python
own_data.py
dzionek/pl-pres-elections-2020
7acc4b755f9f490f74c1fd9b55e6a12324ab35c5
[ "MIT" ]
1
2020-07-08T13:53:46.000Z
2020-07-08T13:53:46.000Z
own_data.py
dzionek/pl-pres-elections-2020
7acc4b755f9f490f74c1fd9b55e6a12324ab35c5
[ "MIT" ]
null
null
null
own_data.py
dzionek/pl-pres-elections-2020
7acc4b755f9f490f74c1fd9b55e6a12324ab35c5
[ "MIT" ]
null
null
null
""" Module with constants used in the analysis. """ from plotly.express import colors candidates = [ 'Robert BIEDROŃ', 'Krzysztof BOSAK', 'Andrzej Sebastian DUDA', 'Szymon Franciszek HOŁOWNIA', 'Marek JAKUBIAK', 'Władysław Marcin KOSINIAK-KAMYSZ', 'Mirosław Mariusz PIOTROWSKI', 'Paweł Jan TANAJNO', 'Rafał Ka...
29.537313
136
0.73623
795bd42d2631d817b2855db714dd6c0e5e22804e
4,811
py
Python
Data/Preprocess_Scripts/preprocess_ner_en_es.py
AshishMittal/GLUECoS
3bade2cae46424cd859a5cffcf973c7791588825
[ "MIT" ]
null
null
null
Data/Preprocess_Scripts/preprocess_ner_en_es.py
AshishMittal/GLUECoS
3bade2cae46424cd859a5cffcf973c7791588825
[ "MIT" ]
null
null
null
Data/Preprocess_Scripts/preprocess_ner_en_es.py
AshishMittal/GLUECoS
3bade2cae46424cd859a5cffcf973c7791588825
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. Licensed under the MIT license. import os import subprocess import shlex import shutil import argparse # download tweets def download_tweets(original_path): # copy twitter credentials in required file shutil.copy('twitter_authentication.txt',original_path+'/Release/twitter_au...
31.24026
139
0.656412
795bd48bc7737504b56fff80d7d6dddc57147c85
5,413
py
Python
Final Exam/Q2/mdp.py
billgoo/Rutgers-CS520-Intro-to-AI
e3c67af8a1d0efdec763b4415962150563c9431c
[ "MIT" ]
null
null
null
Final Exam/Q2/mdp.py
billgoo/Rutgers-CS520-Intro-to-AI
e3c67af8a1d0efdec763b4415962150563c9431c
[ "MIT" ]
null
null
null
Final Exam/Q2/mdp.py
billgoo/Rutgers-CS520-Intro-to-AI
e3c67af8a1d0efdec763b4415962150563c9431c
[ "MIT" ]
1
2021-05-03T05:24:57.000Z
2021-05-03T05:24:57.000Z
from utils import * import numpy as np class MDP: """A Markov Decision Process, defined by an initial state, transition model, and reward function. We also keep track of a beta value, for use by algorithms. The transition model is represented somewhat differently from the text. Instead of T(s, a, s')...
32.220238
83
0.546277
795bd4b2cea1f0ef2084b9e9752835c6fc743af2
712
py
Python
setup.py
codes1gn/gemini
4b173ea583f2578244d1d0fb482ccb77818f7558
[ "MIT" ]
null
null
null
setup.py
codes1gn/gemini
4b173ea583f2578244d1d0fb482ccb77818f7558
[ "MIT" ]
null
null
null
setup.py
codes1gn/gemini
4b173ea583f2578244d1d0fb482ccb77818f7558
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md") as f: long_description = f.read() with open('LICENSE') as f: license = f.read() setup( name="gemini", # Replace with your own username version="0.0.1", author="Enflame Tech", author_email="heng.shi@enflame-tech.com", descr...
22.967742
58
0.633427
795bd51b62cb6f3086183fa1461f2b5cf5debbe9
21,472
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_virtual_network_peerings_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_virtual_network_peerings_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_virtual_network_peerings_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.403756
250
0.676556
795bd5b67523a5391e4f9825ac9eb11c42790086
2,498
py
Python
MD/process_keywords.py
vitroid/vitroid.github.io
cb4f06a4a4925a0e06a4001d3680be7998552b83
[ "MIT" ]
null
null
null
MD/process_keywords.py
vitroid/vitroid.github.io
cb4f06a4a4925a0e06a4001d3680be7998552b83
[ "MIT" ]
1
2020-02-12T02:46:21.000Z
2020-02-12T02:46:21.000Z
MD/process_keywords.py
vitroid/vitroid.github.io
cb4f06a4a4925a0e06a4001d3680be7998552b83
[ "MIT" ]
null
null
null
#!/usr/bin/env python # scan all md files and make the link lists import glob import re from logging import getLogger, basicConfig, INFO, DEBUG import sys import pickle import os import smartfind as sf basicConfig(level=INFO) logger = getLogger() def hashtag_proc(x, words): words.add(x) return "" # ret...
30.096386
94
0.460769
795bd5f97ac3ee8abe70708ad7f745efca8336f4
7,009
py
Python
aries_cloudagent/messaging/valid.py
DibbsZA/aries-cloudagent-python
a094dd7697023721ac2a2fd4e58b04d4b37d1f44
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/messaging/valid.py
DibbsZA/aries-cloudagent-python
a094dd7697023721ac2a2fd4e58b04d4b37d1f44
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/messaging/valid.py
DibbsZA/aries-cloudagent-python
a094dd7697023721ac2a2fd4e58b04d4b37d1f44
[ "Apache-2.0" ]
null
null
null
"""Validators for schema fields.""" from datetime import datetime from base58 import alphabet from marshmallow.exceptions import ValidationError from marshmallow.validate import OneOf, Range, Regexp from .util import epoch_to_str B58 = alphabet if isinstance(alphabet, str) else alphabet.decode("ascii") class IntE...
24.85461
88
0.570124
795bd63e02fee89dfefc76ba95b83fc3b2c72200
979
py
Python
modelscript/metamodels/classes/checkers.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/metamodels/classes/checkers.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2015-12-18T10:30:02.000Z
2015-12-18T10:36:28.000Z
modelscript/metamodels/classes/checkers.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
# coding=utf-8 from modelscript.megamodels.checkers import NamingChecker from modelscript.base.issues import ( Levels ) from modelscript.base .symbols import Symbol from modelscript.metamodels.classes.classes import ( Class) from modelscript.metamodels.classes.types import EnumerationLiteral class ClassNome...
26.459459
67
0.705822
795bd6971a8e0090099099c4130c854f1d975a44
346
py
Python
jeu_educatif/python/c_change_notes.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
jeu_educatif/python/c_change_notes.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
jeu_educatif/python/c_change_notes.py
Charles-Svg/Projet_L3_jeu_educatif
841f70f1368117288128342258f5832ca9028161
[ "MIT" ]
null
null
null
# Afin de modifier votre note, vous devrez importer le module "notes" à votre programme et modifier votre note. # Les notes sont comprises dans une variable "notes" dans le module "notes". Cette variable contient les notes de tous # les élèves sous forme de tableau d'indice, on accède donc aux notes d'un élève comme ce...
86.5
118
0.771676
795bd7fd9d77a6e1a37303eaa16c80f3f551aa46
1,889
py
Python
spydrnet/ir/innerpin.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
34
2020-03-12T15:40:49.000Z
2022-02-28T07:13:47.000Z
spydrnet/ir/innerpin.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
104
2020-01-06T20:32:19.000Z
2022-01-02T00:20:14.000Z
spydrnet/ir/innerpin.py
chgentso/spydrnet
2cfc33ae367771cd2f3a15f240ebd0ec76841b5f
[ "BSD-3-Clause" ]
10
2020-09-02T20:24:00.000Z
2022-02-24T16:10:07.000Z
from spydrnet.ir.pin import Pin from copy import deepcopy, copy, error class InnerPin(Pin): """Pins that correspond to definitions. These pins can be thought of as on the inside of a definition. There can be many outer pins for each inner pin """ __slots__ = ['_port'] def __init__(self): ...
32.016949
138
0.634198
795bd8aefe3c03bddf9d1981c71ad23a71913b59
6,106
py
Python
test/nni_test/nnitest/utils.py
CuriousCat-7/nni
66057ba74c5252e38a576712b59a8bf867e2d514
[ "MIT" ]
3
2021-01-05T07:41:58.000Z
2021-01-11T02:08:01.000Z
test/nni_test/nnitest/utils.py
CuriousCat-7/nni
66057ba74c5252e38a576712b59a8bf867e2d514
[ "MIT" ]
21
2020-11-13T19:01:01.000Z
2022-02-27T09:12:51.000Z
test/nni_test/nnitest/utils.py
CuriousCat-7/nni
66057ba74c5252e38a576712b59a8bf867e2d514
[ "MIT" ]
3
2020-10-23T02:53:47.000Z
2020-11-15T22:05:09.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import contextlib import collections import os import socket import sys import subprocess import requests import time import ruamel.yaml as yaml import shlex EXPERIMENT_DONE_SIGNAL = 'Experiment done' GREEN = '\33[32m' RED = '\33[31m' CLEAR = '...
33.734807
109
0.685883
795bdb7fca6960bd8f5b9a23d483518cfcc29d15
363
py
Python
sdk/python/pulumi_azure_native/healthbot/v20201208preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/healthbot/v20201208preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/healthbot/v20201208preview/__init__.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! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .bot import * from .get_bot import * fr...
27.923077
80
0.719008
795bdb8c91ea8c9e618d1a1b1ef0391fc2c74f95
1,697
py
Python
devtools/gha/coverage_report_xml.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
25
2015-04-29T13:10:22.000Z
2019-03-18T09:45:29.000Z
devtools/gha/coverage_report_xml.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
330
2015-03-04T09:06:38.000Z
2019-06-11T10:31:54.000Z
devtools/gha/coverage_report_xml.py
wijnandhoitinga/nutils
7ad6793ca5e3a43f45dcc0a4a795b381d2a0b9d4
[ "MIT" ]
16
2015-03-23T08:00:46.000Z
2019-02-21T11:14:47.000Z
import sys import re import os.path from typing import Sequence from xml.etree import ElementTree from pathlib import Path from coverage import Coverage paths = [] for path in sys.path: try: paths.append(str(Path(path).resolve()).lower()+os.path.sep) except FileNotFoundError: pass paths = list(...
30.303571
78
0.67472
795bdbb89009a5848a9b4c9d71045eb1e9460b49
6,232
py
Python
src/hog_svm/hog.py
duytq99/traffic-signs-detection
99bae2fb76dee4f783d9bd2e8cfd9f11084a2c3c
[ "MIT" ]
null
null
null
src/hog_svm/hog.py
duytq99/traffic-signs-detection
99bae2fb76dee4f783d9bd2e8cfd9f11084a2c3c
[ "MIT" ]
null
null
null
src/hog_svm/hog.py
duytq99/traffic-signs-detection
99bae2fb76dee4f783d9bd2e8cfd9f11084a2c3c
[ "MIT" ]
null
null
null
import cv2 import time import argparse import numpy as np import matplotlib.pyplot as plt import PIL.Image as Image from skimage.feature import hog from skimage.draw import draw def _hog_normalize_block(block, method, eps=1e-5): if method == 'L1': out = block / (np.sum(np.abs(block)) + eps) elif method == 'L1-sqrt...
37.769697
148
0.701701
795bdc1f8af305f536e3cd3d83967e9f307c5cf5
6,306
py
Python
rbacProject/apps/adm/models.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
rbacProject/apps/adm/models.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
54
2020-06-24T07:12:19.000Z
2022-03-12T00:43:57.000Z
rbacProject/apps/adm/models.py
xeroCBW/testmodel
6000d79f91d11bcf6ba76befb3a94a007231ecdc
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model User = get_user_model() class Supplier(models.Model): """ 分销商管理 """ company = models.CharField(max_length=30, verbose_name="公司名称") address = models.CharField(max_length=100, verbose_name="地址") linkname = models.CharFi...
36.877193
123
0.697431
795bdc6946e8fff1dd70edaf232686c187e18504
2,036
py
Python
kubernetes-puppet-creator/cluster_build.py
opentokix/yolo-dangerzone
7ea5ab54e3369997c9715fb762cc5604023b3aee
[ "Unlicense" ]
2
2020-02-13T02:38:25.000Z
2022-01-24T15:02:29.000Z
kubernetes-puppet-creator/cluster_build.py
opentokix/yolo-dangerzone
7ea5ab54e3369997c9715fb762cc5604023b3aee
[ "Unlicense" ]
null
null
null
kubernetes-puppet-creator/cluster_build.py
opentokix/yolo-dangerzone
7ea5ab54e3369997c9715fb762cc5604023b3aee
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os import ConfigParser from subprocess import call def run_docker(): config = ConfigParser.ConfigParser() config.readfp(open('cluster_setup.ini')) fdqn_base = config.get('main', 'domain') controller_string = "" for item in config.items('controllers'): controller_string += ite...
34.508475
81
0.617387
795bdcad5febe5d2cad5470e9a1ca3f1f5badf01
950
py
Python
django_show/placeholder/placeholder/urls.py
JiaLei123/PythonCamp
3ff2cee00bc4d8e65f3cc5c7d687da7ecbf9a79e
[ "MIT" ]
null
null
null
django_show/placeholder/placeholder/urls.py
JiaLei123/PythonCamp
3ff2cee00bc4d8e65f3cc5c7d687da7ecbf9a79e
[ "MIT" ]
null
null
null
django_show/placeholder/placeholder/urls.py
JiaLei123/PythonCamp
3ff2cee00bc4d8e65f3cc5c7d687da7ecbf9a79e
[ "MIT" ]
null
null
null
"""placeholder URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
35.185185
102
0.694737
795bdcd2ba5bfdd4619be300255852b154b59c49
1,403
py
Python
tests/settings.py
domibydzovsky/wagtail-rest-pack
821d5d4111a4a7665e50272035e90f836a2c60c2
[ "MIT" ]
null
null
null
tests/settings.py
domibydzovsky/wagtail-rest-pack
821d5d4111a4a7665e50272035e90f836a2c60c2
[ "MIT" ]
null
null
null
tests/settings.py
domibydzovsky/wagtail-rest-pack
821d5d4111a4a7665e50272035e90f836a2c60c2
[ "MIT" ]
null
null
null
from django.conf.global_settings import * import os DEBUG = True SECRET_KEY='xx' PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(PROJECT_DIR) REST_FRAMEWORK = { 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema', 'DEFAULT_PAGINATION_CLASS':...
25.509091
82
0.686386
795bdd0ac0437674668da9ed8fdafa3a0d4b79f8
3,696
py
Python
qdarkstyle/__init__.py
sommerc/QDarkStyleSheet
a81b3f62ea0b867bd83950a21db932c12dbef232
[ "MIT" ]
5
2016-10-19T21:18:49.000Z
2021-06-13T00:20:33.000Z
qdarkstyle/__init__.py
Willib/QDarkStyleSheet
a81b3f62ea0b867bd83950a21db932c12dbef232
[ "MIT" ]
1
2016-02-15T17:33:11.000Z
2016-02-15T17:33:46.000Z
qdarkstyle/__init__.py
Willib/QDarkStyleSheet
a81b3f62ea0b867bd83950a21db932c12dbef232
[ "MIT" ]
2
2016-02-06T18:12:53.000Z
2020-10-22T12:23:40.000Z
# -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) <2013-2014> <Colin Duquesnoy> # # 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 limi...
31.322034
82
0.643939
795bde105c5964dec293f400b7bcd53c1277cbf0
275
py
Python
examples/example.py
flavray/pyo3avro-rs
00528858f04a21162a5b186a53ca95e8876db469
[ "MIT" ]
3
2020-07-09T14:39:39.000Z
2021-03-19T18:11:06.000Z
examples/example.py
gaborbernat/pyo3avro-rs
30824e8c703a43df79c3eb7908c29e5673a2844e
[ "MIT" ]
20
2019-04-17T14:19:45.000Z
2019-06-10T09:50:40.000Z
examples/example.py
gaborbernat/pyo3avro-rs
30824e8c703a43df79c3eb7908c29e5673a2844e
[ "MIT" ]
4
2019-04-19T13:49:46.000Z
2021-03-19T17:05:08.000Z
from pyo3avro_rs import Schema def run(): # type: () -> None schema = Schema('{"type": "string"}') payload = schema.write("some-text") initial = schema.read(payload) print(initial) assert initial == "some-text" if __name__ == "__main__": run()
17.1875
41
0.607273
795bde77b7688bedc520c1ffbac25b1a4d345295
10,723
py
Python
platformio/commands/home/rpc/handlers/project.py
adlerweb/platformio-core
cd8dc24454176d05ab1360cb51a32b40f1fa7e7f
[ "Apache-2.0" ]
null
null
null
platformio/commands/home/rpc/handlers/project.py
adlerweb/platformio-core
cd8dc24454176d05ab1360cb51a32b40f1fa7e7f
[ "Apache-2.0" ]
null
null
null
platformio/commands/home/rpc/handlers/project.py
adlerweb/platformio-core
cd8dc24454176d05ab1360cb51a32b40f1fa7e7f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
38.571942
79
0.542852
795bdf5ad5035e8187aa2245eb08d4b8357af8a2
10,387
py
Python
genver/pybin/logs.py
vhnatyk/vlsistuff
0981097bd19a0c482728dcc5048a3615ac9a9a90
[ "MIT" ]
26
2018-03-17T18:14:22.000Z
2022-03-14T07:23:13.000Z
genver/pybin/logs.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2019-10-16T10:31:11.000Z
2019-10-17T04:14:53.000Z
genver/pybin/logs.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
7
2018-07-16T07:51:25.000Z
2022-02-15T14:22:54.000Z
import sys,types,string Errors = 0 Corrects = 0 Wrongs = 0 Warnings = 0 print_debug_messages=0 MAXWRONGS = 2000 MAXERRORS = 2000 PYMONLOG = 'pymon.log' import time printed_already={} Flog = False Flog2 = False Flog3 = False Flog4 = False try: import veri except: import fakeVeri as veri finishCy...
22.980088
138
0.541831
795bdfb63f14512bd16ea32151978d6c45270125
589
py
Python
apps/assets/models_new/host.py
l3l3l/vulnman
f9d520dbf9f6838c459741bb1173a0382d5ecfd6
[ "MIT" ]
null
null
null
apps/assets/models_new/host.py
l3l3l/vulnman
f9d520dbf9f6838c459741bb1173a0382d5ecfd6
[ "MIT" ]
null
null
null
apps/assets/models_new/host.py
l3l3l/vulnman
f9d520dbf9f6838c459741bb1173a0382d5ecfd6
[ "MIT" ]
null
null
null
from django.db import models from apps.assets.models.base import BaseAsset class Host(BaseAsset): ip = models.GenericIPAddressField() operating_system = models.CharField(max_length=256, blank=True) is_online = models.BooleanField(default=True) class Meta: ordering = ['ip'] unique_toge...
24.541667
67
0.643463
795bdfec92b8b23dc92b553c43c537bb18a373e1
951
py
Python
14B-088/new_vs_archival_mom0.py
e-koch/VLA_Lband
8fca7b2de0b88ce5c5011b34bf3936c69338d0b0
[ "MIT" ]
1
2021-03-08T23:19:12.000Z
2021-03-08T23:19:12.000Z
14B-088/new_vs_archival_mom0.py
e-koch/VLA_Lband
8fca7b2de0b88ce5c5011b34bf3936c69338d0b0
[ "MIT" ]
null
null
null
14B-088/new_vs_archival_mom0.py
e-koch/VLA_Lband
8fca7b2de0b88ce5c5011b34bf3936c69338d0b0
[ "MIT" ]
null
null
null
from aplpy import FITSFigure import os import matplotlib.pyplot as mpl ''' Show the moment 0 of the archival against the moment 0 from 14B-088 ''' fig = mpl.figure(figsize=(15, 7)) mom0_file = "/media/eric/MyRAID/M33/14B-088/HI/full_imaging/M33_14B-088_HI.clean.image.pbcov_gt_0.3_masked.mom0.fits" f1 = FITSFigure(...
24.384615
117
0.768665
795be018752e2302745c4643e7dbe222ffb9310a
893
py
Python
pytdx/parser/get_security_count.py
AtlantixJJ/vnpy
28992c7d5391f6dd42a14b481d01ceafde048b5f
[ "MIT" ]
13
2019-06-07T04:34:09.000Z
2022-03-21T07:46:01.000Z
pytdx/parser/get_security_count.py
AtlantixJJ/vnpy
28992c7d5391f6dd42a14b481d01ceafde048b5f
[ "MIT" ]
1
2020-04-21T02:42:32.000Z
2020-04-21T02:42:32.000Z
venv/lib/python3.7/site-packages/pytdx/parser/get_security_count.py
CatTiger/vnpy
7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b
[ "MIT" ]
2
2021-07-08T03:44:41.000Z
2021-09-15T00:41:19.000Z
# coding=utf-8 from pytdx.parser.base import BaseParser from pytdx.helper import get_datetime, get_volume, get_price from collections import OrderedDict import struct """ 获取股票数量 深市 发送 0c 0c 18 6c 00 01 08 00 08 00 4e 04 00 00 75 c7 33 01 接收 Bc cb 74 00 0c 0c 18 6c 00 00 4e 04 02 00 02 00 e7 19 In [61]: 0x19e7 Ou...
18.604167
71
0.657335
795be05e74856294f020e215408b104d1871f2d7
525
py
Python
atest/testdata/keywords/named_args/KwargsLibrary.py
rdagum/robotframework
b7069d505374e9f09a140ed5a9727d2a40716446
[ "ECL-2.0", "Apache-2.0" ]
7,073
2015-01-01T17:19:16.000Z
2022-03-31T22:01:29.000Z
atest/testdata/keywords/named_args/KwargsLibrary.py
imust6226/robotframework
08c56fef2ebc64d682c7f99acd77c480d8d0e028
[ "ECL-2.0", "Apache-2.0" ]
2,412
2015-01-02T09:29:05.000Z
2022-03-31T13:10:46.000Z
atest/testdata/keywords/named_args/KwargsLibrary.py
3mdeb/robotframework
6006ce0b3d5fc6b45c5eb040dc859acd64bfa846
[ "ECL-2.0", "Apache-2.0" ]
2,298
2015-01-03T02:47:15.000Z
2022-03-31T02:00:16.000Z
class KwargsLibrary: def one_named(self, named=None): return named def two_named(self, fst=None, snd=None): return '%s, %s' % (fst, snd) def four_named(self, a=None, b=None, c=None, d=None): return '%s, %s, %s, %s' % (a, b, c, d) def mandatory_and_named(self, a, b, c=None): ...
30.882353
82
0.554286
795be1d7071517d0097bcefe091a5c131e9b7d04
11,619
py
Python
pyzoo/zoo/examples/ray/rl_pong/rl_pong.py
SteNicholas/analytics-zoo
2967e74427855cb0f3d60b5c298343976bb0d23e
[ "Apache-2.0" ]
1
2020-08-10T03:08:41.000Z
2020-08-10T03:08:41.000Z
pyzoo/zoo/examples/ray/rl_pong/rl_pong.py
SteNicholas/analytics-zoo
2967e74427855cb0f3d60b5c298343976bb0d23e
[ "Apache-2.0" ]
null
null
null
pyzoo/zoo/examples/ray/rl_pong/rl_pong.py
SteNicholas/analytics-zoo
2967e74427855cb0f3d60b5c298343976bb0d23e
[ "Apache-2.0" ]
2
2020-05-14T09:56:35.000Z
2020-05-17T13:38:33.000Z
# This file is adapted from https://github.com/ray-project/ray/blob/master # /examples/rl_pong/driver.py # # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
41.056537
88
0.615113
795be1fcf93f91eb5ba056c4e7dcb2fce581dd5e
7,297
py
Python
microcosm_logging/factories.py
globality-corp/microcosm-logging
516a28b6aa1a5662c44357c1295ef6cf42693401
[ "Apache-2.0" ]
2
2018-09-20T01:38:55.000Z
2020-06-24T16:57:36.000Z
microcosm_logging/factories.py
globality-corp/microcosm-logging
516a28b6aa1a5662c44357c1295ef6cf42693401
[ "Apache-2.0" ]
26
2016-03-16T20:27:24.000Z
2018-11-08T22:59:58.000Z
microcosm_logging/factories.py
globality-corp/microcosm-logging
516a28b6aa1a5662c44357c1295ef6cf42693401
[ "Apache-2.0" ]
3
2016-12-19T22:40:29.000Z
2019-03-17T03:46:23.000Z
""" Factory that configures logging. """ from logging import ( CRITICAL, getLogger, getLogRecordFactory, setLogRecordFactory, ) from logging.config import dictConfig from os import environ from typing import Dict from microcosm.api import defaults, typed @defaults( default_format="{asctime} - {n...
24.904437
109
0.617788
795be23aaf9394699ad3c4b2ce5f2ae9f1e8de26
116
py
Python
databaseInfo.py
GodXuxilie/DatabaseSystem
81a9aaaef3c1d9fc66c8189d6fda08879b2142ae
[ "Apache-2.0" ]
3
2020-06-14T13:35:00.000Z
2021-12-14T07:28:18.000Z
databaseInfo.py
GodXuxilie/DatabaseSystem
81a9aaaef3c1d9fc66c8189d6fda08879b2142ae
[ "Apache-2.0" ]
null
null
null
databaseInfo.py
GodXuxilie/DatabaseSystem
81a9aaaef3c1d9fc66c8189d6fda08879b2142ae
[ "Apache-2.0" ]
2
2020-06-10T02:25:56.000Z
2020-06-14T13:35:08.000Z
databaseAddress = '127.0.0.1' databaseLoginName = 'root' databasePasswd = 'root' databaseName = 'movie_recommend'
29
32
0.75
795be255b3b4f8d74b0c03428f973ad91b3cf3fa
4,632
py
Python
edges.py
yobeatz/mosaic
21488d78c2239f0a1ee51c2b4f660066ece213f6
[ "MIT" ]
35
2021-04-12T16:53:28.000Z
2022-02-06T17:27:54.000Z
edges.py
yobeatz/mosaic
21488d78c2239f0a1ee51c2b4f660066ece213f6
[ "MIT" ]
1
2022-02-06T15:05:55.000Z
2022-02-08T07:00:23.000Z
edges.py
yobeatz/mosaic
21488d78c2239f0a1ee51c2b4f660066ece213f6
[ "MIT" ]
14
2021-04-13T06:52:01.000Z
2022-02-06T15:10:33.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import skimage as sk from skimage.io import imread from skimage import filters from skimage import transform import plotting from pathlib import Path def load_image(fname, width=900, plot=[]): if fname: img0 = imread(fname) else: ...
31.944828
114
0.631908
795be3a15c4dc9be75f60592bbb6dd1d010ada3b
1,367
py
Python
examples/linear_model/plot_sgd_penalties.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
2
2020-11-07T02:13:22.000Z
2022-01-18T14:42:59.000Z
examples/linear_model/plot_sgd_penalties.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2022-01-12T13:11:21.000Z
2022-01-12T13:11:21.000Z
examples/linear_model/plot_sgd_penalties.py
MarcinKonowalczyk/scikit-learn
8b18d4cbfc3a10ce85decec292d30470c69f40d7
[ "BSD-3-Clause" ]
1
2021-11-03T09:49:02.000Z
2021-11-03T09:49:02.000Z
""" ============== SGD: Penalties ============== Contours of where the penalty is equal to 1 for the three penalties L1, L2 and elastic-net. All of the above are supported by :class:`~sklearn.linear_model.SGDClassifier` and :class:`~sklearn.linear_model.SGDRegressor`. """ print(__doc__) import numpy as np import ma...
24.410714
81
0.663497
795be4f6bf6670a897ed8136490506b141df0920
4,848
py
Python
nova/tests/unit/objects/test_cell_mapping.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_cell_mapping.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
1
2016-04-04T18:41:59.000Z
2016-04-04T18:41:59.000Z
nova/tests/unit/objects/test_cell_mapping.py
cloud-zuiwanyuan/nova
0b59a2d9dc22e4fb172810019dba5ece09bb4526
[ "Apache-2.0" ]
2
2015-12-04T23:51:46.000Z
2016-06-07T20:01:59.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 # d...
37.292308
78
0.667285
795be56bd00ee86d9f2547f9b31c915a009a317b
777
py
Python
happy_dogs/dogs/migrations/0002_auto_20211004_1316.py
shuryhin-oleksandr/happy_dogs
daaa45a716ae3580482058d2c3ea9615e62f35e9
[ "MIT" ]
null
null
null
happy_dogs/dogs/migrations/0002_auto_20211004_1316.py
shuryhin-oleksandr/happy_dogs
daaa45a716ae3580482058d2c3ea9615e62f35e9
[ "MIT" ]
null
null
null
happy_dogs/dogs/migrations/0002_auto_20211004_1316.py
shuryhin-oleksandr/happy_dogs
daaa45a716ae3580482058d2c3ea9615e62f35e9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-10-04 13:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dogs', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Visit', new_name='BoardingVisit', ...
24.28125
74
0.544402
795be67732b657c9607103b752e21d8a6a3ef349
663
py
Python
lang/shell.py
marc-dantas/lyon
abbd5a78acf020601e06bee5fc19c6301391275c
[ "MIT" ]
2
2022-01-30T22:10:41.000Z
2022-01-30T22:32:34.000Z
lang/shell.py
marc-dantas/lyon
abbd5a78acf020601e06bee5fc19c6301391275c
[ "MIT" ]
null
null
null
lang/shell.py
marc-dantas/lyon
abbd5a78acf020601e06bee5fc19c6301391275c
[ "MIT" ]
1
2022-01-10T16:55:26.000Z
2022-01-10T16:55:26.000Z
from cmath import exp from rich.console import Console CONSOLE = Console() def print_header(title, subtitle=None) -> None: CONSOLE.print(f"[blue italic]{title}[/]", style='green') if subtitle: CONSOLE.print(f"[blue bold]{subtitle}[/]", style='green') def print_info(message): CONSOLE.print(f'[ye...
22.1
65
0.628959
795be7d36530641eddbe5d516dbeb7debb9026c9
13,406
py
Python
python/GafferSceneUI/HierarchyView.py
fbhradec/gaffer
eda6eaf44a5506af781488e914e9c6f6318c081c
[ "BSD-3-Clause" ]
49
2018-08-27T07:52:25.000Z
2022-02-08T13:54:05.000Z
python/GafferSceneUI/HierarchyView.py
fbhradec/gaffer
eda6eaf44a5506af781488e914e9c6f6318c081c
[ "BSD-3-Clause" ]
21
2018-11-27T16:00:32.000Z
2022-03-23T20:01:55.000Z
python/GafferSceneUI/HierarchyView.py
fbhradec/gaffer
eda6eaf44a5506af781488e914e9c6f6318c081c
[ "BSD-3-Clause" ]
4
2018-12-23T16:16:41.000Z
2021-06-16T09:04:01.000Z
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
35.559682
138
0.701925
795be8b462ec28099556f56bd44b7fe100857d1e
8,333
py
Python
venv/lib/python2.7/site-packages/pylint/pyreverse/diadefslib.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/pylint/pyreverse/diadefslib.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
venv/lib/python2.7/site-packages/pylint/pyreverse/diadefslib.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
null
null
null
# Copyright (c) 2000-2013 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # 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 2 of the License, o...
35.611111
84
0.638186
795be8ca7888b119a408ba9b679cf24b7fdbb559
9,753
py
Python
src/dynamodb_encryption_sdk/internal/formatting/deserialize/attribute.py
johnwalker/aws-dynamodb-encryption-python
6081d42bda2eb25da81f63c58666143fe6711189
[ "Apache-2.0" ]
null
null
null
src/dynamodb_encryption_sdk/internal/formatting/deserialize/attribute.py
johnwalker/aws-dynamodb-encryption-python
6081d42bda2eb25da81f63c58666143fe6711189
[ "Apache-2.0" ]
null
null
null
src/dynamodb_encryption_sdk/internal/formatting/deserialize/attribute.py
johnwalker/aws-dynamodb-encryption-python
6081d42bda2eb25da81f63c58666143fe6711189
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
36.52809
120
0.666667
795be969424d710779281c10939493919ffa94fb
1,405
py
Python
composer/models/gpt2/gpt2_hparams.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/models/gpt2/gpt2_hparams.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
composer/models/gpt2/gpt2_hparams.py
ajaysaini725/composer
00fbf95823cd50354b2410fbd88f06eaf0481662
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. import dataclasses from typing import TYPE_CHECKING from composer.models.transformer_hparams import TransformerHparams if TYPE_CHECKING: from composer.models.transformer_shared import MosaicTransformer @dataclasses.dataclass class GPT2Hparams(TransformerHparams):...
33.452381
101
0.714591
795be9aa7db0dc0eca9d1a19df8347ff47e36c4a
2,433
py
Python
log_casp_act/run_model_712.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/run_model_712.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_casp_act/run_model_712.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
import numpy as np from math import * import pymultinest import sys sys.path.insert(0, '/home/kochenma/pysb') from pysb.integrate import Solver import csv import datetime import time as tm from model_712 import model from pysb.pathfinder import set_path set_path('bng', '/home/kochenma/BioNetGen') data_object = [] wi...
25.610526
237
0.671599
795bea63608fcefd62962de94f09b893ce43d745
2,273
py
Python
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.262295
123
0.594369
795bea813cb4af4d522b74c4b0dd825c4eff2f8e
5,407
py
Python
setup.py
ekhtiar/airflow
9410715c81a2a16dcd04e7cce56d75747bb19ff6
[ "Apache-2.0" ]
null
null
null
setup.py
ekhtiar/airflow
9410715c81a2a16dcd04e7cce56d75747bb19ff6
[ "Apache-2.0" ]
null
null
null
setup.py
ekhtiar/airflow
9410715c81a2a16dcd04e7cce56d75747bb19ff6
[ "Apache-2.0" ]
1
2019-12-12T06:44:14.000Z
2019-12-12T06:44:14.000Z
from setuptools import setup, find_packages, Command from setuptools.command.test import test as TestCommand import os import sys # Kept manually in sync with airflow.__version__ version = '1.7.0' class Tox(TestCommand): user_options = [('tox-args=', None, "Arguments to pass to tox")] def initialize_options...
28.161458
81
0.557795
795beb1c61b028efd3051bcd2d00b768e8d30ee0
5,069
py
Python
mediagoblin/plugins/piwigo/tools.py
gnu-mirror-unofficial/mediagoblin
522a61b24a1b7767682eaf7b29c59e40a0a9b73f
[ "CC0-1.0" ]
null
null
null
mediagoblin/plugins/piwigo/tools.py
gnu-mirror-unofficial/mediagoblin
522a61b24a1b7767682eaf7b29c59e40a0a9b73f
[ "CC0-1.0" ]
null
null
null
mediagoblin/plugins/piwigo/tools.py
gnu-mirror-unofficial/mediagoblin
522a61b24a1b7767682eaf7b29c59e40a0a9b73f
[ "CC0-1.0" ]
null
null
null
# GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2013 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of...
30.721212
77
0.630894
795beb461792db289d6d9f8970198f7469d82026
3,059
py
Python
data/p2DJ/New/R2/benchmark/startQiskit_Class80.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startQiskit_Class80.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startQiskit_Class80.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=8 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as...
28.06422
80
0.619157
795beb6cc6da66afc04ed399bbf3876d9e895c1d
299
py
Python
mlrun/frameworks/lgbm/mlrun_interface.py
george0st/mlrun
6467d3a5ceadf6cd35512b84b3ddc3da611cf39a
[ "Apache-2.0" ]
null
null
null
mlrun/frameworks/lgbm/mlrun_interface.py
george0st/mlrun
6467d3a5ceadf6cd35512b84b3ddc3da611cf39a
[ "Apache-2.0" ]
null
null
null
mlrun/frameworks/lgbm/mlrun_interface.py
george0st/mlrun
6467d3a5ceadf6cd35512b84b3ddc3da611cf39a
[ "Apache-2.0" ]
null
null
null
from abc import ABC from .._ml_common import MLMLRunInterface class LGBMModelMLRunInterface(MLMLRunInterface, ABC): """ Interface for adding MLRun features for LightGBM models (SciKit-Learn API models). """ # MLRun's context default name: DEFAULT_CONTEXT_NAME = "mlrun-lgbm"
23
86
0.735786
795beb713d42d56b5a534eb51466b0d0c563c48b
30,033
py
Python
Tests/test_SeqIO_index.py
gurumystictest/BillingTest2
6db0937db993cb31626d1863fa511e4e4f424324
[ "BSD-3-Clause" ]
1
2020-12-21T05:03:12.000Z
2020-12-21T05:03:12.000Z
Tests/test_SeqIO_index.py
SONNYROBOT/biopython
629e27d30436d74d345b89cb9c338ff3759f034d
[ "BSD-3-Clause" ]
null
null
null
Tests/test_SeqIO_index.py
SONNYROBOT/biopython
629e27d30436d74d345b89cb9c338ff3759f034d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2009-2017 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Unit tests for Bio.SeqIO.index(...) and index_db() functions.""" try: import sqlite3...
38.70232
113
0.551493
795beb72352e21ff12112a1940426ee6bad4a6be
46,094
py
Python
mdgo/core.py
HT-MD/mdgo
bd06b226c6015fb083c099508bc81f521a4329c4
[ "MIT" ]
1
2021-12-15T01:18:13.000Z
2021-12-15T01:18:13.000Z
mdgo/core.py
HT-MD/mdgo
bd06b226c6015fb083c099508bc81f521a4329c4
[ "MIT" ]
4
2021-11-12T20:48:34.000Z
2021-12-14T23:41:47.000Z
mdgo/core.py
HT-MD/mdgo
bd06b226c6015fb083c099508bc81f521a4329c4
[ "MIT" ]
4
2021-11-12T21:10:53.000Z
2022-02-07T19:30:57.000Z
# coding: utf-8 # Copyright (c) Tingzheng Hou. # Distributed under the terms of the MIT License. """ This module implements two core class MdRun and MdJob for molecular dynamics simulation analysis and job setup. """ from __future__ import annotations from typing import Union, Dict, Tuple, List, Optional import MDAnal...
38.865093
119
0.592658
795bebdcbb0539b9f2d49e35377e57a608ee9561
25,651
py
Python
pylxd/tests/models/test_container.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
null
null
null
pylxd/tests/models/test_container.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
null
null
null
pylxd/tests/models/test_container.py
AdamIsrael/pylxd
d5d47a4d1185b4956e997d70e09d649ea73ba26b
[ "Apache-2.0" ]
null
null
null
import contextlib import json import os import shutil import tempfile import mock from six.moves.urllib.parse import quote as url_quote from pylxd import exceptions, models from pylxd.tests import testing class TestContainer(testing.PyLXDTestCase): """Tests for pylxd.models.Container.""" def test_all(self...
34.570081
79
0.580484
795bec10b4d5a5724670e31496ed492bfb2054cd
3,799
py
Python
skyfield/tests/test_vectors.py
brunobord/python-skyfield
bd8cfdc151e05d6bd47f9808c497f0a4318d7444
[ "MIT" ]
null
null
null
skyfield/tests/test_vectors.py
brunobord/python-skyfield
bd8cfdc151e05d6bd47f9808c497f0a4318d7444
[ "MIT" ]
null
null
null
skyfield/tests/test_vectors.py
brunobord/python-skyfield
bd8cfdc151e05d6bd47f9808c497f0a4318d7444
[ "MIT" ]
null
null
null
# Test the behavior of all combinations of vector. from assay import assert_raises from skyfield.api import Topos, load from skyfield.positionlib import Geocentric def test_bad_addition(): planets = load('de421.bsp') earth = planets['earth'] mars = planets['mars'] with assert_raises(ValueError, 'the c...
34.536364
149
0.674388
795bec59162e7a0e86335a5f36249c87c16d6e1a
734
py
Python
backend/admin.py
Esmidth/blog
59b432fe779770dd44dcac717536e914690f0944
[ "MIT" ]
null
null
null
backend/admin.py
Esmidth/blog
59b432fe779770dd44dcac717536e914690f0944
[ "MIT" ]
null
null
null
backend/admin.py
Esmidth/blog
59b432fe779770dd44dcac717536e914690f0944
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Author, Image, Article, Tag # admin.site.register(Author) # admin.site.register(Image) # admin.site.register(Article) # admin.site.register(Tag) @admin.register(Tag) class TagAdmin(admin.ModelAdmin): list_display = ['tag_name'] ...
22.9375
98
0.708447
795bec9dab858cf6a975825d777a40f41329b5b6
2,634
py
Python
setup.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2018-10-31T03:49:39.000Z
2018-10-31T03:49:39.000Z
setup.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
5
2017-11-18T01:45:50.000Z
2020-05-30T12:26:50.000Z
setup.py
nithyanandan/AstroUtils
97473f52d4247bb9c8507598899215d0662e8d6f
[ "MIT" ]
1
2019-10-14T08:44:40.000Z
2019-10-14T08:44:40.000Z
import setuptools, re, glob, os from setuptools import setup, find_packages from subprocess import Popen, PIPE githash = 'unknown' if os.path.isdir(os.path.dirname(os.path.abspath(__file__))+'/.git'): try: gitproc = Popen(['git', 'rev-parse', 'HEAD'], stdout = PIPE) githash = gitproc.communicate()[...
44.644068
102
0.572893
795beccb15fea4452770f711d6475d163054fa69
9,696
py
Python
ryu/app/my_arp_v2_r1.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
null
null
null
ryu/app/my_arp_v2_r1.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
null
null
null
ryu/app/my_arp_v2_r1.py
umkcdcrg01/ryu_openflow
37ed5b88f7d119344e07c95314a7450235c037a8
[ "Apache-2.0" ]
null
null
null
# Simple Arp Handler v2 # Jack Zhao # s.zhao.j@gmail.com from operator import attrgetter from ryu.base import app_manager from ryu.controller import ofp_event from ryu.controller.handler import CONFIG_DISPATCHER from ryu.controller.handler import MAIN_DISPATCHER from ryu.controller.handler import set_ev_cls from ry...
43.285714
133
0.60231
795becdecf4a0ae159771026317b4b5bd619ff5f
21,876
py
Python
object-detection/train_yolov3.py
auto-bwcx-me/aws-autonomous-driving-data-lake-image-extraction-pipeline-from-ros-bagfiles
3abcade5e111c06a232560bcc6fa02cefe64a0bf
[ "MIT" ]
5
2021-07-30T17:46:33.000Z
2022-03-01T12:50:54.000Z
object-detection/train_yolov3.py
auto-bwcx-me/aws-autonomous-driving-data-lake-image-extraction-pipeline-from-ros-bagfiles
3abcade5e111c06a232560bcc6fa02cefe64a0bf
[ "MIT" ]
2
2022-03-01T07:09:15.000Z
2022-03-10T03:03:52.000Z
object-detection/train_yolov3.py
aws-samples/aws-autonomous-driving-data-lake-image-extraction-pipeline-from-ros-bagfiles
053e684c6a0b30cf095861c102dfc427f964d9b4
[ "Apache-2.0", "MIT" ]
3
2022-03-10T09:01:09.000Z
2022-03-10T14:50:35.000Z
"""Train YOLOv3 with random shapes.""" import argparse import os import logging import time import warnings import numpy as np import mxnet as mx print("mxnet_version: ",mx.__version__) from mxnet import nd, gluon, autograd import gluoncv as gcv gcv.utils.check_version('0.8.0') from gluoncv import data as gdata from gl...
50.059497
147
0.624566
795becdf6ee42da0866ca3f00bfd660b5d655d79
6,453
py
Python
dataset.py
RobinSmits/Dutch-NLP-Experiments
e7d48cc77650a7600341095ee236ac3760074cfc
[ "MIT" ]
null
null
null
dataset.py
RobinSmits/Dutch-NLP-Experiments
e7d48cc77650a7600341095ee236ac3760074cfc
[ "MIT" ]
null
null
null
dataset.py
RobinSmits/Dutch-NLP-Experiments
e7d48cc77650a7600341095ee236ac3760074cfc
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import tensorflow as tf from tqdm import tqdm from transformers import AutoTokenizer from typing import Tuple from urllib.request import urlopen def download_articles_by_publisher(cache_dir: str)->None: # URLs taken from: https://github.com/dpgmedia/partisan-news201...
44.8125
172
0.703394
795bedae1fe45cee289ae996c2536730b4107ef4
556
py
Python
src/icotools/icosoc/mod_gpio/mod_gpio.py
dm7h/fpga-event-recorder
4e53babbbb514ee375f4b5585b1d24e5b40f8df7
[ "0BSD" ]
null
null
null
src/icotools/icosoc/mod_gpio/mod_gpio.py
dm7h/fpga-event-recorder
4e53babbbb514ee375f4b5585b1d24e5b40f8df7
[ "0BSD" ]
null
null
null
src/icotools/icosoc/mod_gpio/mod_gpio.py
dm7h/fpga-event-recorder
4e53babbbb514ee375f4b5585b1d24e5b40f8df7
[ "0BSD" ]
null
null
null
def generate_c_code(icosoc_h, icosoc_c, mod): code = """ static inline void icosoc_@name@_set(uint32_t bitmask) { *(volatile uint32_t*)(0x20000000 + @addr@ * 0x10000) = bitmask; } static inline uint32_t icosoc_@name@_get() { return *(volatile uint32_t*)(0x20000000 + @addr@ * 0x10000); } static inline voi...
26.47619
67
0.663669
795bedb448a265216e0d8babeee40046b167767a
386
py
Python
node/no_op.py
muddyfish/PYKE
f1bb0f5d7af5663129bd37ca58a0246e5a3699c7
[ "MIT" ]
24
2016-02-21T07:41:45.000Z
2021-08-12T04:34:00.000Z
node/no_op.py
muddyfish/PYKE
f1bb0f5d7af5663129bd37ca58a0246e5a3699c7
[ "MIT" ]
1
2017-08-18T08:14:57.000Z
2017-08-19T14:59:08.000Z
node/no_op.py
muddyfish/PYKE
f1bb0f5d7af5663129bd37ca58a0246e5a3699c7
[ "MIT" ]
4
2016-08-06T18:07:13.000Z
2017-08-12T13:51:52.000Z
#!/usr/bin/env python import lang_ast from nodes import Node class NoOp(Node): char = " " contents = " " args = 1 results = 1 def func(self, arg): """Does nothing""" return [arg] @classmethod def accepts(cls, code): if code[:1] in cls.char+lang_ast.AST.END_CH...
17.545455
55
0.549223
795bf012e571e695aa3fa5f17ab69e7a20d12242
429
py
Python
0/2/2839/2839.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
3
2017-07-08T16:29:06.000Z
2020-07-20T00:17:45.000Z
0/2/2839/2839.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
null
null
null
0/2/2839/2839.py
chr0m3/boj-codes
d71d0a22d0a3ae62c225f382442461275f56fe8f
[ "MIT" ]
2
2017-11-20T14:06:06.000Z
2020-07-20T00:17:47.000Z
target = int(input()) now = 0 for i in range(0, target // 5 + 1): count_5k = target // 5 - i count_3k = 0 if count_5k * 5 == target: print(count_5k + count_3k) break else: if (target - count_5k * 5) % 3 == 0: count_3k = (target - count_5k * 5) // 3 print(...
23.833333
51
0.4662
795bf0b584a30b985d595629f3ac491ae344235c
22,340
py
Python
tests/mobly/controllers/android_device_lib/services/logcat_test.py
booneng/mobly
539788309c7631c20fa5381937e10f9cd997e2d0
[ "Apache-2.0" ]
532
2016-11-07T22:01:00.000Z
2022-03-30T17:11:40.000Z
tests/mobly/controllers/android_device_lib/services/logcat_test.py
booneng/mobly
539788309c7631c20fa5381937e10f9cd997e2d0
[ "Apache-2.0" ]
528
2016-11-22T01:42:19.000Z
2022-03-24T02:27:15.000Z
tests/mobly/controllers/android_device_lib/services/logcat_test.py
booneng/mobly
539788309c7631c20fa5381937e10f9cd997e2d0
[ "Apache-2.0" ]
169
2016-11-18T15:12:26.000Z
2022-03-24T01:22:08.000Z
# Copyright 2018 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, ...
44.590818
82
0.696643
795bf0ef250c611dab4dc311ae629fbeb3bfc042
371
py
Python
src/auxiliary/simplifiers.py
yesanton/Comprehensive-Process-Drift-Detection-with-Visual-Analytics
dd6e3cd2f285dabc15a967a161d895f3f44a4250
[ "MIT" ]
6
2019-07-09T09:12:13.000Z
2021-03-01T15:48:52.000Z
src/auxiliary/simplifiers.py
yesanton/Comprehensive-Process-Drift-Detection-with-Visual-Analytics
dd6e3cd2f285dabc15a967a161d895f3f44a4250
[ "MIT" ]
1
2019-12-13T09:37:57.000Z
2019-12-19T15:16:00.000Z
src/auxiliary/simplifiers.py
yesanton/Process-Drift-Visualization-With-Declare
dd6e3cd2f285dabc15a967a161d895f3f44a4250
[ "MIT" ]
null
null
null
from src.auxiliary.constant_definitions import NAME_FILE_SEPARATOR def compose_name(*argv): name = '' # correctly identify the extension of the file end = len(argv) - 1 if argv[-1][0] == '.': end -= 1 for arg in argv[:end]: name += str(arg) + NAME_FILE_SEPARATOR for arg in ar...
23.1875
66
0.603774
795bf2213c08710782589089a691c79ae53e067b
5,481
py
Python
ldif/datasets/process_element.py
trisct/ldif
f166c13e0cdfdbbf98e8c785b093455834d93be2
[ "Apache-2.0" ]
242
2020-06-17T06:16:23.000Z
2022-03-30T17:25:17.000Z
ldif/datasets/process_element.py
Sumith1896/ldif
3dfa33c88b15178eebac3c7d93e5de1ca2682d23
[ "Apache-2.0" ]
20
2020-06-16T00:43:42.000Z
2022-03-12T00:35:22.000Z
ldif/datasets/process_element.py
Sumith1896/ldif
3dfa33c88b15178eebac3c7d93e5de1ca2682d23
[ "Apache-2.0" ]
28
2020-06-17T08:11:40.000Z
2022-02-13T09:51:35.000Z
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.059211
82
0.717935
795bf2ed829c1f22f26bb65c35577e021976b8a7
10,802
py
Python
core/datautils.py
sap9433/sound-classification-with-tf-keras
fcc83db86ae46e4b6204f5a55663540d17a67ab9
[ "MIT" ]
null
null
null
core/datautils.py
sap9433/sound-classification-with-tf-keras
fcc83db86ae46e4b6204f5a55663540d17a67ab9
[ "MIT" ]
null
null
null
core/datautils.py
sap9433/sound-classification-with-tf-keras
fcc83db86ae46e4b6204f5a55663540d17a67ab9
[ "MIT" ]
null
null
null
''' datautils.py: Just some routines that we use for moving data around ''' from __future__ import print_function import numpy as np import librosa import os from os.path import isfile, splitext from imageio import imread, imwrite import glob def listdir_nohidden(path,subdirs_only=False, skip_csv=True): ''' i...
42.695652
167
0.63803
795bf3bf174cbd3f7dd66dc5c2f681716a4e7276
7,006
py
Python
Agents/AFDDAgent/afdd/Archive/afdd2.py
kruthikarshankar/bemoss_os
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
3
2018-11-25T01:09:55.000Z
2021-08-24T01:56:36.000Z
Agents/AFDDAgent/afdd/Archive/afdd2.py
kwarodom/bemoss_os_1.2
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
null
null
null
Agents/AFDDAgent/afdd/Archive/afdd2.py
kwarodom/bemoss_os_1.2
460a5a41b38240bb9f6dacc23d373ae1942259a8
[ "Unlicense" ]
3
2018-11-09T03:38:09.000Z
2020-02-24T06:26:10.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # Copyright (c) 2013, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistri...
41.211765
139
0.69883
795bf40ad9957238ab5bb87f4f62ea393cb14723
7,447
py
Python
pySUMMA/simulate/binary.py
ahsen1402/pySUMMA
3412e1282bc2cc9b9076f38bf64ef1674d69d770
[ "Apache-2.0" ]
1
2020-01-11T19:56:05.000Z
2020-01-11T19:56:05.000Z
pySUMMA/simulate/binary.py
learn-ensemble/PY-SUMMA
1b82237be5dc33af57b5c2e2c16aee4d568ddb77
[ "Apache-2.0" ]
null
null
null
pySUMMA/simulate/binary.py
learn-ensemble/PY-SUMMA
1b82237be5dc33af57b5c2e2c16aee4d568ddb77
[ "Apache-2.0" ]
null
null
null
"""Generate synthetic binary data [-1, 1]. Generate random samples of synthetic base classifier predictions. User can provide either: 1) both the the true positive (tpr) and true negative rates (tnr), the corresponding balanced accuracy (ba) is then computed by ba = 0.5 * (tpr + tnr) 2) the boundary for...
32.378261
140
0.573385
795bf5b3a183c6908807d95c7fca88b8de2146d4
4,435
py
Python
napari/_qt/qt_chunk_receiver.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_chunk_receiver.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
napari/_qt/qt_chunk_receiver.py
mkitti/napari
4e954d30b5a1b70c5e495db1b8f48a3bdda1ff86
[ "BSD-3-Clause" ]
null
null
null
"""QtChunkReceiver and QtGuiEvent classes. """ import logging from qtpy.QtCore import QObject, Signal from ..components.chunk import chunk_loader from ..utils.events import EmitterGroup, Event, EventEmitter LOGGER = logging.getLogger('napari.async') class QtGuiEvent(QObject): """Fires an event in the GUI threa...
32.137681
80
0.67283
795bf738f299ba7144659afc76bdcfead65d03b4
1,300
py
Python
output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_enumeration_5_xsd/nistschema_sv_iv_atomic_duration_enumeration_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_enumeration_5_xsd/nistschema_sv_iv_atomic_duration_enumeration_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_enumeration_5_xsd/nistschema_sv_iv_atomic_duration_enumeration_5.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from enum import Enum from typing import Optional from xsdata.models.datatype import XmlDuration __NAMESPACE__ = "NISTSchema-SV-IV-atomic-duration-enumeration-5-NS" class NistschemaSvIvAtomicDurationEnumeration5Type(Enum): P2004_Y09_M11_DT17_H07_M38_S = XmlDuration("P2004...
39.393939
74
0.789231
795bf7f5314728725244f2987e14789202362018
63
py
Python
hello-world1.py
go2m/s_ilib
7e90b4504fbb6bb02fedf145728987e2fd4eb3d9
[ "MIT" ]
null
null
null
hello-world1.py
go2m/s_ilib
7e90b4504fbb6bb02fedf145728987e2fd4eb3d9
[ "MIT" ]
null
null
null
hello-world1.py
go2m/s_ilib
7e90b4504fbb6bb02fedf145728987e2fd4eb3d9
[ "MIT" ]
null
null
null
#C:\Users\Uwe\Documents\GitHub\ilib print('Hello World 1 !!!')
21
35
0.698413
795bf8186ad37324429e78dcb268293772e679a1
926
py
Python
setup.py
UniStuttgart-VISUS/LilyPads
a61d4cc9fd1230749cb2d035ad23afe59c9b5f44
[ "Apache-2.0" ]
1
2021-10-04T12:25:45.000Z
2021-10-04T12:25:45.000Z
setup.py
UniStuttgart-VISUS/LilyPads
a61d4cc9fd1230749cb2d035ad23afe59c9b5f44
[ "Apache-2.0" ]
null
null
null
setup.py
UniStuttgart-VISUS/LilyPads
a61d4cc9fd1230749cb2d035ad23afe59c9b5f44
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup import subprocess import re def get_version(): version = subprocess.check_output(['git', 'describe', '--tags', '--match', 'v[[:digit:]]*.[[:digit:]]*.[[:digit:]]*'], encoding='utf-8') version = version.strip() # if version string contains '-', it is not a tag. t...
25.722222
140
0.600432
795bfa4550f82c915e74ee088b8aae359dcc6267
16,562
py
Python
baselines/common/distributions.py
Mihir-Mavalankar/DeepRL_SymmetricAntGait
6f1e14f53b2b1369dbc218ac888dfbd2ecbe9ffa
[ "MIT" ]
null
null
null
baselines/common/distributions.py
Mihir-Mavalankar/DeepRL_SymmetricAntGait
6f1e14f53b2b1369dbc218ac888dfbd2ecbe9ffa
[ "MIT" ]
null
null
null
baselines/common/distributions.py
Mihir-Mavalankar/DeepRL_SymmetricAntGait
6f1e14f53b2b1369dbc218ac888dfbd2ecbe9ffa
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import baselines.common.tf_util as U from baselines.a2c.utils import fc, fc_wshare,fc_double, quad_mirror_action_layer from tensorflow.python.ops import math_ops class Pd(object): """ A particular probability distribution """ def flatparam(self): raise...
39.908434
217
0.643159
795bfac3b609b01545bc4cb8f1775336593c921f
9,532
py
Python
kubernetes_asyncio/client/models/v1beta1_resource_attributes.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1beta1_resource_attributes.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1beta1_resource_attributes.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.15.11 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
32.756014
374
0.609421
795bfce338925a783f19e9fcc4d77aa3e9c91a4c
823
py
Python
app/core/tests/test_commands.py
bezalel001/recipes-api
59d2ae6d1925df21e6f0b13a9bad909f4435591f
[ "MIT" ]
null
null
null
app/core/tests/test_commands.py
bezalel001/recipes-api
59d2ae6d1925df21e6f0b13a9bad909f4435591f
[ "MIT" ]
null
null
null
app/core/tests/test_commands.py
bezalel001/recipes-api
59d2ae6d1925df21e6f0b13a9bad909f4435591f
[ "MIT" ]
null
null
null
from unittest.mock import patch from django.core.management import call_command from django.db.utils import OperationalError from django.test import TestCase class CommandTests(TestCase): def test_wait_for_db_ready(self): """Test waiting for db when db is available.""" with patch('django.db.util...
34.291667
74
0.675577
795bfe7a73541d0812df4cf6ab6d0993f076ec1d
112,092
py
Python
pandas/core/indexes/multi.py
maxim-lian/pandas
17a6bc56e5ab6ad3dab12d3a8b20ed69a5830b6f
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/multi.py
maxim-lian/pandas
17a6bc56e5ab6ad3dab12d3a8b20ed69a5830b6f
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/indexes/multi.py
maxim-lian/pandas
17a6bc56e5ab6ad3dab12d3a8b20ed69a5830b6f
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# pylint: disable=E1101,E1103,W0232 from collections import OrderedDict import datetime from sys import getsizeof import warnings import numpy as np from pandas._libs import ( Timestamp, algos as libalgos, index as libindex, lib, tslibs) import pandas.compat as compat from pandas.compat import lrange, lzip, map, ...
35.880922
79
0.542635
795bfe868ed25e81d6ed87127acc685549736e52
841
py
Python
captive_portal/ijson.py
84KaliPleXon3/esp32-uPyPortal
7e5130b94b372a975fd38777db8779b548f86231
[ "Apache-2.0" ]
38
2017-11-13T20:44:21.000Z
2022-03-31T17:23:33.000Z
captive_portal/ijson.py
84KaliPleXon3/esp32-uPyPortal
7e5130b94b372a975fd38777db8779b548f86231
[ "Apache-2.0" ]
1
2020-05-15T17:15:48.000Z
2020-05-15T17:15:48.000Z
captive_portal/ijson.py
84KaliPleXon3/esp32-uPyPortal
7e5130b94b372a975fd38777db8779b548f86231
[ "Apache-2.0" ]
8
2017-12-28T02:57:39.000Z
2021-10-03T10:26:50.000Z
type_gen = type((lambda: (yield))()) def conv(it): yield '"' #yield from it for i in it: yield i.replace('"', "'").replace("\n", "\\n") yield '"' def idumps(obj): if isinstance(obj, str): yield '"' yield obj yield '"' elif isinstance(obj, int): yield s...
21.025
54
0.472057
795bff7b03c692d0e1921b6a7f5c8058bf41de28
16,476
py
Python
cirq/testing/circuit_compare.py
kunalq/Cirq
e73c9bef672e83143ab04e7f169988149055d630
[ "Apache-2.0" ]
null
null
null
cirq/testing/circuit_compare.py
kunalq/Cirq
e73c9bef672e83143ab04e7f169988149055d630
[ "Apache-2.0" ]
null
null
null
cirq/testing/circuit_compare.py
kunalq/Cirq
e73c9bef672e83143ab04e7f169988149055d630
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
40.283619
80
0.648762
795bffe3054510f4c4f128afafb8674a3073f45d
3,083
py
Python
TorNodesMap/TorNodesMap/settings/base.py
spantons/tor-nodes-map
0bdd6cb2e747c3a6a5aa311214fa8683d0453bd3
[ "MIT" ]
null
null
null
TorNodesMap/TorNodesMap/settings/base.py
spantons/tor-nodes-map
0bdd6cb2e747c3a6a5aa311214fa8683d0453bd3
[ "MIT" ]
null
null
null
TorNodesMap/TorNodesMap/settings/base.py
spantons/tor-nodes-map
0bdd6cb2e747c3a6a5aa311214fa8683d0453bd3
[ "MIT" ]
null
null
null
""" Django settings for TorNodesMap project. Generated by 'django-admin startproject' using Django 1.9.6. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import o...
26.808696
91
0.705806
795c00c1d6ee5bc34b7bf9a5d547e19d69aa857a
1,494
py
Python
identidock/app/identidock.py
moskalenk/docker_practice
10a8a742b86530e45df851cf30cce97e16054ee0
[ "Apache-2.0" ]
null
null
null
identidock/app/identidock.py
moskalenk/docker_practice
10a8a742b86530e45df851cf30cce97e16054ee0
[ "Apache-2.0" ]
null
null
null
identidock/app/identidock.py
moskalenk/docker_practice
10a8a742b86530e45df851cf30cce97e16054ee0
[ "Apache-2.0" ]
null
null
null
from flask import Flask, Response, request import requests import hashlib import redis import html app = Flask(__name__) cache = redis.StrictRedis(host='redis', port=6379, db=0) default_name = 'Konstantin Moskalenko' salt = "UNIQUE_SALT" @app.route('/', methods=['GET', 'POST']) def mainpage(): name = default_nam...
25.322034
78
0.579652
795c0228f27f2d105eeb1d6de06874e70c193e44
5,565
py
Python
graphsage0/supervised_models.py
sapphireh/HOPE
72d697f8d96a7aa0e29898c66f5654e79cff410d
[ "MIT" ]
null
null
null
graphsage0/supervised_models.py
sapphireh/HOPE
72d697f8d96a7aa0e29898c66f5654e79cff410d
[ "MIT" ]
null
null
null
graphsage0/supervised_models.py
sapphireh/HOPE
72d697f8d96a7aa0e29898c66f5654e79cff410d
[ "MIT" ]
null
null
null
import tensorflow as tf import graphsage0.models as models import graphsage0.layers as layers from graphsage0.aggregators import MeanAggregator, MaxPoolingAggregator, MeanPoolingAggregator, SeqAggregator, GCNAggregator, MLPAggregator flags = tf.app.flags FLAGS = flags.FLAGS class SupervisedGraphsage(models.SampleAnd...
43.139535
139
0.638455
795c02680c57dd9f14795bbab7a91b9f72ffb8c0
48,612
py
Python
src/python/grpcio/grpc_core_dependencies.py
LaudateCorpus1/grpc-SwiftPM
4049fc878c23a3dab401ceedce3fd34148feb0b0
[ "Apache-2.0" ]
3
2020-10-07T14:20:21.000Z
2021-10-08T14:49:17.000Z
src/python/grpcio/grpc_core_dependencies.py
LaudateCorpus1/grpc-SwiftPM
4049fc878c23a3dab401ceedce3fd34148feb0b0
[ "Apache-2.0" ]
1
2021-03-04T02:33:56.000Z
2021-03-04T02:33:56.000Z
src/python/grpcio/grpc_core_dependencies.py
LaudateCorpus1/grpc-SwiftPM
4049fc878c23a3dab401ceedce3fd34148feb0b0
[ "Apache-2.0" ]
5
2021-02-19T09:46:00.000Z
2022-03-13T17:33:34.000Z
# Copyright 2015 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
58.568675
118
0.751893
795c02851651b577c4fffe9c35e6c48459bc79bb
1,375
py
Python
demos/face_recognition_demo/python/utils.py
mzegla/open_model_zoo
092576b4c598c1e301ebc38ad74b323972e54f3e
[ "Apache-2.0" ]
null
null
null
demos/face_recognition_demo/python/utils.py
mzegla/open_model_zoo
092576b4c598c1e301ebc38ad74b323972e54f3e
[ "Apache-2.0" ]
null
null
null
demos/face_recognition_demo/python/utils.py
mzegla/open_model_zoo
092576b4c598c1e301ebc38ad74b323972e54f3e
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2018-2021 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 Unless required by applicable law or agreed to i...
31.25
73
0.697455
795c02e2074c79f69dd5d8cdaf47c1d53a6e271f
124
py
Python
environment/lib/python3.8/site-packages/numba/dataflow.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
null
null
null
environment/lib/python3.8/site-packages/numba/dataflow.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
2
2021-05-11T16:00:55.000Z
2021-08-23T20:45:22.000Z
environment/lib/python3.8/site-packages/numba/dataflow.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
null
null
null
import sys from numba.core.errors import _MovedModule sys.modules[__name__] = _MovedModule(locals(), "numba.core.dataflow")
31
69
0.798387
795c03c06c7af682405e750d521994a211a1a5e3
1,912
py
Python
verpy/pybin3/statistics.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
1
2021-04-23T04:08:58.000Z
2021-04-23T04:08:58.000Z
verpy/pybin3/statistics.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
null
null
null
verpy/pybin3/statistics.py
psumesh/vlsistuff
1fe64b093d0581d99c7d826b74c31b8655fa0b31
[ "MIT" ]
null
null
null
import logs from module_class import support_set def help_main(Env): Types = {} for Module in Env.Modules: Mod = Env.Modules[Module] logs.log_info('scan %s' % Module) gatherInstances(Mod,Types) reportInstances(Types) # connectivity(Mod) def connectivity(Mod): buildConns(Mod)...
26.191781
80
0.556485
795c05e5afe0fc6b291eb748bd54f011a91bbf5a
70
py
Python
indecisive/game/client/scenes/util/__init__.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
15
2020-04-17T12:02:14.000Z
2022-03-16T03:01:34.000Z
indecisive/game/client/scenes/util/__init__.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
9
2020-04-25T01:57:16.000Z
2020-04-29T11:42:34.000Z
indecisive/game/client/scenes/util/__init__.py
markjoshua12/game-jam-2020
846dd052d649a609ab7a52ac0f4dcbeb71781c3b
[ "MIT" ]
55
2020-04-17T12:01:11.000Z
2021-12-28T10:14:02.000Z
from . colours import * from . keys import * from . elements import *
17.5
24
0.7
795c06bbe010dded93a723cc9bdd657d56a6dd61
9,518
py
Python
whoosh/query/positional.py
rokartnaz/WhooshSearch
084b6b7bf3a2b44d57eaf045f07f094a1048646f
[ "BSD-2-Clause" ]
3
2017-03-04T14:19:51.000Z
2017-03-28T08:39:44.000Z
whoosh/query/positional.py
rokartnaz/WhooshSearch
084b6b7bf3a2b44d57eaf045f07f094a1048646f
[ "BSD-2-Clause" ]
null
null
null
whoosh/query/positional.py
rokartnaz/WhooshSearch
084b6b7bf3a2b44d57eaf045f07f094a1048646f
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2007 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the...
38.072
79
0.624186
795c06bd9fee5706fb27bff1b92b8f53381659a1
359
py
Python
conftest.py
RonnyPfannschmidt/apipkg
277cfb45798870034d695f9761488cfd136e4cbd
[ "MIT" ]
null
null
null
conftest.py
RonnyPfannschmidt/apipkg
277cfb45798870034d695f9761488cfd136e4cbd
[ "MIT" ]
null
null
null
conftest.py
RonnyPfannschmidt/apipkg
277cfb45798870034d695f9761488cfd136e4cbd
[ "MIT" ]
null
null
null
import pathlib import apipkg LOCAL_APIPKG = pathlib.Path(__file__).parent.joinpath("src/apipkg/__init__.py") INSTALL_TYPE = "editable" if apipkg.__file__ == LOCAL_APIPKG else "full" def pytest_report_header(startdir): return "apipkg {install_type} install version={version}".format( install_type=INSTALL_...
27.615385
79
0.766017
795c081e68659400b3505e0bdac4c4e686c546b4
1,278
py
Python
crowdevaluation/evaluation-results/Arabic/Editor/ar-editor-preprocessing.py
www2018-550/Submission550
d707d0e6eed98097569e4d5e3ffc4aea27d17c1f
[ "Apache-2.0" ]
1
2018-05-23T07:41:53.000Z
2018-05-23T07:41:53.000Z
crowdevaluation/evaluation-results/Arabic/Editor/ar-editor-preprocessing.py
www2018-550/Submission550
d707d0e6eed98097569e4d5e3ffc4aea27d17c1f
[ "Apache-2.0" ]
null
null
null
crowdevaluation/evaluation-results/Arabic/Editor/ar-editor-preprocessing.py
www2018-550/Submission550
d707d0e6eed98097569e4d5e3ffc4aea27d17c1f
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import pandas from math import isnan import editdistance import numpy key_file = open('./processed/ar-editor-keys.csv', 'w') df = pandas.read_csv('ar-editor.csv') df = df.dropna(axis=1, how='all') print 'Participants started: ' + str(len(df.index)) df = df[['Participant ID']+[i for i in df.c...
36.514286
187
0.643192
795c082501d6d40077fd1e033a88349521b68f1b
8,716
py
Python
Python Basics.py
Supertatortots/Python-Practice
a08db0ddbd90a4184c89dbbdc232d55e1d151a32
[ "MIT" ]
null
null
null
Python Basics.py
Supertatortots/Python-Practice
a08db0ddbd90a4184c89dbbdc232d55e1d151a32
[ "MIT" ]
null
null
null
Python Basics.py
Supertatortots/Python-Practice
a08db0ddbd90a4184c89dbbdc232d55e1d151a32
[ "MIT" ]
null
null
null
# Comments in Python use the '#' symbol ''' Multi-line comments are denoted via three single or three double quotes And are ended with the matching set of three single or double quotes ''' ''' Let's start off by defining some variables In Python, there's no `let`, `const`, or `var` keyword to declare variables Python...
38.061135
101
0.717646
795c08dd1c98f2247b61a508e5869227624d3e7d
16,762
py
Python
homeassistant/helpers/config_entry_oauth2_flow.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
1
2021-04-28T09:51:08.000Z
2021-04-28T09:51:08.000Z
homeassistant/helpers/config_entry_oauth2_flow.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
homeassistant/helpers/config_entry_oauth2_flow.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Config Flow using OAuth2. This module exists of the following parts: - OAuth2 config flow which supports multiple OAuth2 implementations - OAuth2 implementation that works with local provided client ID/secret """ from __future__ import annotations from abc import ABC, ABCMeta, abstractmethod import asyncio impo...
32.547573
93
0.641332
795c0a7fb21fda5147b73781d9be4aeb80144354
1,723
py
Python
web/doc/_themes/odoodoc/odoo_pygments.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/doc/_themes/odoodoc/odoo_pygments.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
web/doc/_themes/odoodoc/odoo_pygments.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import imp import sys from pygments.style import Style from pygments.token import * # extracted from getbootstrap.com class OdooStyle(Style): background_color = '#ffffcc' highlight_color = '#fcf8e3' styles = { Whitespace: '#BBB', Error: 'bg:#FAA #A00', Key...
24.267606
48
0.531631
795c0abae720727f0d96187c95051c5302c87e65
2,700
py
Python
PyCreator/UI/settings.py
Zachacious/PyCreator
7c52be80ee3fef9ec00ad2fad52ab06b64d84029
[ "MIT" ]
3
2015-04-27T18:46:21.000Z
2021-11-08T10:46:05.000Z
PyCreator/UI/settings.py
Zachacious/PyCreator
7c52be80ee3fef9ec00ad2fad52ab06b64d84029
[ "MIT" ]
null
null
null
PyCreator/UI/settings.py
Zachacious/PyCreator
7c52be80ee3fef9ec00ad2fad52ab06b64d84029
[ "MIT" ]
null
null
null
""" This module provides an easy access to the application settings """ import json from pyqode.qt.QtCore import QSettings, QByteArray, QSize, QPoint class Settings(object): IConfigOption = 0 IConfigPath = 1 IConfigOptAuto = 0 IConfigOptManual = 1 MWState = 0 MWSize = 1 MWPosition = 2 ...
32.926829
79
0.60037
795c0b4166facae93fffa76834c63fe601fa29f6
1,227
py
Python
py/leetcode/MaxSumRectangle.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/leetcode/MaxSumRectangle.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/leetcode/MaxSumRectangle.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
''' Leetcode problem No 363 Max Sum of Rectangle No Larger Than K Solution written by Xuqiang Fang on 12 July, 2018 ''' from bisect import bisect_left, insort class Solution(object): def maxSumSubmatrix(self, matrix, k): """ :type matrix: List[List[int]] :type k: int :rtype: int ...
29.926829
79
0.475143
795c0c8ed786614c335a5015ba53299201970619
52,257
py
Python
sdk/python/pulumi_azure/datafactory/linked_service_azure_sql_database.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/datafactory/linked_service_azure_sql_database.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/datafactory/linked_service_azure_sql_database.py
roderik/pulumi-azure
f6d0c058d6f9111a709bc5f1515d1638f9d615f0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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...
60.412717
429
0.713493
795c0caddfdfd2ebe6ac64abc3fcca5c6e3f7725
553
py
Python
setup.py
Renedyn/Fun_package
c6269c4a86d4d1b8014e5589bebbc84a9a02a478
[ "MIT" ]
1
2020-05-05T16:47:14.000Z
2020-05-05T16:47:14.000Z
setup.py
Renedyn/Fun_package
c6269c4a86d4d1b8014e5589bebbc84a9a02a478
[ "MIT" ]
1
2021-12-24T18:02:56.000Z
2021-12-24T18:02:56.000Z
setup.py
Renedyn/Fun_package
c6269c4a86d4d1b8014e5589bebbc84a9a02a478
[ "MIT" ]
2
2020-09-08T17:34:47.000Z
2021-12-24T18:07:46.000Z
import setuptools setuptools.setup( name="Huy", version="1.2", author="Petr Srakovorodnikov", author_email="petya.obosralsya@mail.ru", description="A package to draw dicks", url="https://github.com/Torrentov/Fun_package", packages=setuptools.find_packages(), classifiers=[ "Progr...
27.65
51
0.640145