hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
86efd15d4d669ae1a3e358e3671f3e7c6c145ca0
436
py
Python
tests/processtest.py
NAnnamalai/gramex
6a0845aed2f7423da09eaa84678d3a0519fe1ff1
[ "MIT" ]
130
2019-02-05T06:09:16.000Z
2022-03-31T03:09:00.000Z
tests/processtest.py
NAnnamalai/gramex
6a0845aed2f7423da09eaa84678d3a0519fe1ff1
[ "MIT" ]
457
2019-02-05T05:08:34.000Z
2022-03-30T03:47:45.000Z
tests/processtest.py
NAnnamalai/gramex
6a0845aed2f7423da09eaa84678d3a0519fe1ff1
[ "MIT" ]
50
2019-02-12T12:20:02.000Z
2022-03-15T02:50:02.000Z
import os import sys def main(): 'Print cwd and sys.argv' sys.stderr.write('stderr starts\n') sys.stdout.write('stdout starts\n') sys.stdout.write('os.getcwd: %s\n' % os.path.abspath(os.getcwd())) for index, arg in enumerate(sys.argv): sys.stdout.write('sys.argv[%d]: %s\n' % (index, arg)) ...
24.222222
70
0.62844
5b049ae30bc30da965c8048f8d28601e1b98d863
42,995
py
Python
great_international/migrations/0020_auto_20190417_1024.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
great_international/migrations/0020_auto_20190417_1024.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
great_international/migrations/0020_auto_20190417_1024.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-17 10:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('great_international', '0019_auto_20190417_0825'), ] operations = [ migrations.Remo...
34.898539
62
0.601814
1595fc67cdabd5b7aef3d8efef5b7e8c77f70915
1,526
py
Python
saas/backend/apps/system/serializers.py
Chace-wang/bk-iam-saas
b06b3c8dae4a86546f58228db70809be4166fac4
[ "MIT" ]
null
null
null
saas/backend/apps/system/serializers.py
Chace-wang/bk-iam-saas
b06b3c8dae4a86546f58228db70809be4166fac4
[ "MIT" ]
null
null
null
saas/backend/apps/system/serializers.py
Chace-wang/bk-iam-saas
b06b3c8dae4a86546f58228db70809be4166fac4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
40.157895
115
0.769987
f1cca1a704c1e58008704bf2dbe076971017e1db
126
py
Python
match-single-sublist.py
called2voyage/just-so-snippets
4ef4f31eda91781d5a730e997be0a3320576d4a8
[ "CC0-1.0" ]
null
null
null
match-single-sublist.py
called2voyage/just-so-snippets
4ef4f31eda91781d5a730e997be0a3320576d4a8
[ "CC0-1.0" ]
null
null
null
match-single-sublist.py
called2voyage/just-so-snippets
4ef4f31eda91781d5a730e997be0a3320576d4a8
[ "CC0-1.0" ]
null
null
null
match_string = "Apple" get_matching_indices = [i for i, x in enumerate(list(mylist)) if len(x) == 1 and x[0] == match_string]
42
102
0.698413
747904efdd9f1ce7e4568f67aa61e74e2291d27b
1,757
py
Python
src/zope/site/tests/test_folder.py
zopefoundation/zope.site
a523fdaab2801d6c2b15d10bd93115c9d53f4fd7
[ "ZPL-2.1" ]
3
2018-10-09T14:20:30.000Z
2021-03-09T22:23:50.000Z
src/zope/site/tests/test_folder.py
zopefoundation/zope.site
a523fdaab2801d6c2b15d10bd93115c9d53f4fd7
[ "ZPL-2.1" ]
15
2015-03-20T09:14:08.000Z
2021-03-05T16:39:27.000Z
src/zope/site/tests/test_folder.py
zopefoundation/zope.site
a523fdaab2801d6c2b15d10bd93115c9d53f4fd7
[ "ZPL-2.1" ]
1
2015-04-03T09:43:40.000Z
2015-04-03T09:43:40.000Z
import doctest import unittest from zope.site.folder import Folder from zope.site.testing import siteSetUp, siteTearDown, checker from zope.site.tests.test_site import TestSiteManagerContainer def setUp(test=None): siteSetUp() def tearDown(test=None): siteTearDown() class FolderTest(TestSiteManagerCont...
27.453125
65
0.690381
9a6130570719430341801384878f1536eb2cee57
2,342
py
Python
pv_tk.py
chetan201/PVMismatch
060b76ccf7352d14bd45636d08bd835367e02af0
[ "BSD-3-Clause" ]
54
2017-05-17T17:48:32.000Z
2022-02-24T18:52:08.000Z
pv_tk.py
chetan201/PVMismatch
060b76ccf7352d14bd45636d08bd835367e02af0
[ "BSD-3-Clause" ]
98
2017-01-12T04:56:01.000Z
2021-03-02T13:49:30.000Z
pv_tk.py
chetan201/PVMismatch
060b76ccf7352d14bd45636d08bd835367e02af0
[ "BSD-3-Clause" ]
24
2017-01-11T23:30:53.000Z
2022-02-04T16:24:29.000Z
#! python # -*- coding: utf-8 -*- """ Created on Jul 29, 2012 @author: marko """ from pvmismatch.pvmismatch_tk.pvapplication_tk import PVapplicaton from Tkinter import Tk import sys import re def showHelpError(argvs_): help(Tk.geometry) errMsg = 'Invalid geometry format.\n' errMsg = errMsg + '"{}"\n'.fo...
34.441176
75
0.525192
81f5cf08275cb90c11214a7a7875d10c365c7bc1
17,387
py
Python
caffe2/python/data_workers.py
timyy/caffe2
e3937e7cefe1fd75496720583d75aa6263b8cc8e
[ "MIT" ]
null
null
null
caffe2/python/data_workers.py
timyy/caffe2
e3937e7cefe1fd75496720583d75aa6263b8cc8e
[ "MIT" ]
null
null
null
caffe2/python/data_workers.py
timyy/caffe2
e3937e7cefe1fd75496720583d75aa6263b8cc8e
[ "MIT" ]
null
null
null
## @package data_workers # Module caffe2.python.data_workers from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals ''' This module provides a python-land multithreaded data input mechanism for Caffe2 nets. Basic usage is a...
33.565637
122
0.6062
a550f2b046b1ed0f2f38f6f72eed056e8d04643b
1,468
py
Python
CursoEmVideo/Mundo_2/Aula #14 - While/aula14_exe#59.py
heloisaldanha/PythonExercises
877c11fcd37911e85d2ed5f008e72ef5b8f6b0f7
[ "MIT" ]
null
null
null
CursoEmVideo/Mundo_2/Aula #14 - While/aula14_exe#59.py
heloisaldanha/PythonExercises
877c11fcd37911e85d2ed5f008e72ef5b8f6b0f7
[ "MIT" ]
null
null
null
CursoEmVideo/Mundo_2/Aula #14 - While/aula14_exe#59.py
heloisaldanha/PythonExercises
877c11fcd37911e85d2ed5f008e72ef5b8f6b0f7
[ "MIT" ]
null
null
null
''' Crie um programa que leia dois valores e mostre um menu na tela: [1] somar [2] multiplicar [3] maior [4] novos números [5] sair do programa Seu programa deverá realizar a operação solicitada em cada caso. ''' from time import sleep n1 = int(input('Digite um número: ')) n2 = int(input('Digite outro número: ')) respo...
31.234043
87
0.584469
e4573d9f1cc7ead076beb26ba784562f5168656a
27,713
py
Python
ZFundPredictor.py
ZxZ7/ZFundPredictor
0f0350efcfd57eb8cef20f6711911fd7582d775c
[ "MIT" ]
37
2020-03-30T05:28:24.000Z
2022-03-12T16:21:29.000Z
ZFundPredictor.py
ZxZ7/ZFundPredictor
0f0350efcfd57eb8cef20f6711911fd7582d775c
[ "MIT" ]
1
2020-07-08T07:54:55.000Z
2020-07-25T02:05:46.000Z
ZFundPredictor.py
ZxZ7/ZFundPredictor
0f0350efcfd57eb8cef20f6711911fd7582d775c
[ "MIT" ]
11
2020-03-30T05:29:53.000Z
2022-01-06T07:41:13.000Z
import math from datetime import datetime, timedelta, date import re import pandas as pd import numpy as np from matplotlib import pyplot as plt import seaborn as sns from sklearn import preprocessing from sklearn.metrics import r2_score, mean_squared_error import tensorflow as tf from tensorflow import k...
48.364747
121
0.519792
cca9e38fd20154511144c1df8f686e3bf5472b8e
9,134
py
Python
scripts/fluxcal.py
TRASAL/ALERT_R3
8ff32ab2ebadcfb1d4dff050bacb15e7c5b31f65
[ "Apache-2.0" ]
null
null
null
scripts/fluxcal.py
TRASAL/ALERT_R3
8ff32ab2ebadcfb1d4dff050bacb15e7c5b31f65
[ "Apache-2.0" ]
null
null
null
scripts/fluxcal.py
TRASAL/ALERT_R3
8ff32ab2ebadcfb1d4dff050bacb15e7c5b31f65
[ "Apache-2.0" ]
1
2021-11-05T09:58:39.000Z
2021-11-05T09:58:39.000Z
from __future__ import print_function from __future__ import division import numpy as np import pandas as pd import glob import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.ticker import (AutoMinorLocator, MultipleLocator) import astropy.units as u from astropy.time import Time from p...
35.819608
103
0.612875
aa4efab28a9b6e240573449af18bd69d7260b151
1,177
py
Python
posthog/tasks/calculate_action.py
asherf/posthog
1e50704d76cba484e80b83f1e1f658bd6e98743a
[ "MIT" ]
null
null
null
posthog/tasks/calculate_action.py
asherf/posthog
1e50704d76cba484e80b83f1e1f658bd6e98743a
[ "MIT" ]
null
null
null
posthog/tasks/calculate_action.py
asherf/posthog
1e50704d76cba484e80b83f1e1f658bd6e98743a
[ "MIT" ]
1
2021-09-16T18:18:07.000Z
2021-09-16T18:18:07.000Z
import logging import time from typing import Sequence, cast from celery import shared_task from posthog.models import Action from posthog.utils import is_clickhouse_enabled logger = logging.getLogger(__name__) @shared_task(ignore_result=True) def calculate_action(action_id: int) -> None: start_time = time.tim...
35.666667
101
0.744265
d309c4511eed9eee45193c84962ea72259d024a9
3,581
py
Python
examples/multiprocessing_example.py
AIPYX/h5py
ae6aa856d3921b294d1f5f69654975f724fedc23
[ "BSD-3-Clause" ]
1
2018-07-13T06:29:17.000Z
2018-07-13T06:29:17.000Z
examples/multiprocessing_example.py
tustslf/h5py
cba34d2b1fbd2fffdd081c251bc11c6f1af32541
[ "BSD-3-Clause" ]
null
null
null
examples/multiprocessing_example.py
tustslf/h5py
cba34d2b1fbd2fffdd081c251bc11c6f1af32541
[ "BSD-3-Clause" ]
null
null
null
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. """ Demonstrates how to use h5py with the multip...
27.75969
87
0.63446
442b760de3f44676f225454a3518fa0cc85f4749
24,877
py
Python
lib/pair_matching/batch_updater_py_multi.py
THU-DA-6D-Pose-Group/mx-DeepIM
f1c850e5f8f75f1051a89c40daff9185870020f5
[ "Apache-2.0" ]
229
2018-09-08T08:38:59.000Z
2022-03-29T07:09:22.000Z
lib/pair_matching/batch_updater_py_multi.py
greatwallet/mx-DeepIM
74b6df2e3f6be7d6fed23ba2f553dab5ae950700
[ "Apache-2.0" ]
59
2018-09-13T20:10:36.000Z
2021-01-08T12:22:27.000Z
lib/pair_matching/batch_updater_py_multi.py
greatwallet/mx-DeepIM
74b6df2e3f6be7d6fed23ba2f553dab5ae950700
[ "Apache-2.0" ]
59
2018-09-08T07:56:33.000Z
2022-03-25T22:01:42.000Z
# -------------------------------------------------------- # Deep Iterative Matching Network # Licensed under The Apache-2.0 License [see LICENSE for details] # Written by Yi Li, Gu Wang # -------------------------------------------------------- from __future__ import division, print_function import os import cv2 impor...
43.264348
119
0.55284
d1edce27b5d31b319408f7edb72b4fc564879d6c
13,739
py
Python
envs/anaconda-project-dev/Lib/site-packages/yapf/yapflib/comment_splicer.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
envs/anaconda-project-dev/Lib/site-packages/yapf/yapflib/comment_splicer.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
envs/anaconda-project-dev/Lib/site-packages/yapf/yapflib/comment_splicer.py
vertingo/Anaconda_Videos_Tutos
f30f2a0549a7b81c17f4d5d249edc59eb3c05458
[ "BSD-3-Clause" ]
null
null
null
# 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 required by applicable law or a...
42.934375
80
0.630978
4b37577c0982fd501c61aa8e065aa9e8db6dbe30
3,235
py
Python
numba/core/types/__init__.py
svrakitin/numba
830a2c7ccc410f270677b0b241f9b8acc2598101
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-10-09T18:11:44.000Z
2020-10-09T18:11:44.000Z
numba/core/types/__init__.py
svrakitin/numba
830a2c7ccc410f270677b0b241f9b8acc2598101
[ "BSD-2-Clause", "Apache-2.0" ]
1
2019-08-29T21:03:09.000Z
2019-08-29T21:04:26.000Z
numba/core/types/__init__.py
svrakitin/numba
830a2c7ccc410f270677b0b241f9b8acc2598101
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-10-09T18:11:50.000Z
2020-10-09T18:11:50.000Z
import struct import numpy as np from numba.core import utils from .abstract import * from .containers import * from .functions import * from .iterators import * from .misc import * from .npytypes import * from .scalars import * # Short names pyobject = PyObject('pyobject') ffi_forced_object = Opaque('ffi_forced_o...
18.918129
75
0.750232
c2652bbe0ee0b70c2431bf673f5df1c9afecc21d
5,143
py
Python
alipay/aop/api/domain/KbdishCookDetailInfo.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbdishCookDetailInfo.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbdishCookDetailInfo.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KbdishCookPriceInfo import KbdishCookPriceInfo class KbdishCookDetailInfo(object): def __init__(self): self._catetory_big_id = None self._cateto...
32.550633
96
0.592067
8c5d0ca6bebf13b7fbef6f1155a73146093a9c7c
6,387
py
Python
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/aio/operations/_percentile_target_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/aio/operations/_percentile_target_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
null
null
null
src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/aio/operations/_percentile_target_operations.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-03-10T22:13:02.000Z
2022-03-10T22:13:02.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.620438
230
0.670424
74d39814d41dea624109c3ca711dbc30d8bdf300
6,805
py
Python
sdk/python/pulumi_azure_native/blockchain/v20180601preview/get_transaction_node.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/blockchain/v20180601preview/get_transaction_node.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/blockchain/v20180601preview/get_transaction_node.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 fro...
36.390374
177
0.647612
2d66ba466583fbd51db23d7de61877eecd4fca30
529
py
Python
brigade/plugins/tasks/data/load_json.py
ktbyers/brigade
a6199c239ed760ca24586e9264c257ded4764bd6
[ "Apache-2.0" ]
8
2019-08-16T08:28:32.000Z
2022-03-28T01:56:57.000Z
brigade/plugins/tasks/data/load_json.py
ktbyers/brigade
a6199c239ed760ca24586e9264c257ded4764bd6
[ "Apache-2.0" ]
null
null
null
brigade/plugins/tasks/data/load_json.py
ktbyers/brigade
a6199c239ed760ca24586e9264c257ded4764bd6
[ "Apache-2.0" ]
7
2018-10-05T21:38:50.000Z
2021-02-24T21:17:34.000Z
import json from brigade.core.helpers import format_string from brigade.core.task import Result def load_json(task, file): """ Loads a json file. Arguments: file (str): path to the file containing the json file to load Returns: :obj:`brigade.core.task.Result`: * result (``...
24.045455
71
0.642722
8be5b9eb3d6aa70939d2ba11e4ff43f95e4bd254
4,906
py
Python
core/ffmpeg.py
TeamShizu/Watermark-Bot
7a7a2f677aa624cc52f581b3c754d78cf97965c1
[ "MIT" ]
null
null
null
core/ffmpeg.py
TeamShizu/Watermark-Bot
7a7a2f677aa624cc52f581b3c754d78cf97965c1
[ "MIT" ]
null
null
null
core/ffmpeg.py
TeamShizu/Watermark-Bot
7a7a2f677aa624cc52f581b3c754d78cf97965c1
[ "MIT" ]
1
2021-11-13T17:26:19.000Z
2021-11-13T17:26:19.000Z
# (c) @TeamShizu # This is Telegram Video Watermark Adder Bot's Source Code. # I Hardly Made This. So Don't Forget to Give Me Credits. # Done this Huge Task for Free. If you guys not support me, # I will stop making such things! # Edit anything at your own risk! # Don't forget to help me if I done any mistake in the...
32.706667
156
0.561965
197e27967f0f11a01f5031d7908a3050ecb167fb
3,733
py
Python
entropylab/flame/outputs.py
qguyk/entropy
e43077026c83fe84de022cf8636b2c9d42f1d330
[ "BSD-3-Clause" ]
null
null
null
entropylab/flame/outputs.py
qguyk/entropy
e43077026c83fe84de022cf8636b2c9d42f1d330
[ "BSD-3-Clause" ]
null
null
null
entropylab/flame/outputs.py
qguyk/entropy
e43077026c83fe84de022cf8636b2c9d42f1d330
[ "BSD-3-Clause" ]
null
null
null
import zmq import msgpack from . import nodeio_context import psycopg2 __all__ = ["Outputs"] class Outputs: __local_instances = [] __db_write = None __bucket = None @classmethod def _register(cls, instance): cls.__local_instances.append(instance) return len(cls.__local_instances...
33.936364
86
0.54112
b066d243c742a29a47a9e7bda5e7d293109f7a7a
176
py
Python
tests/tensorflow-gpu-test/tensorflow-gpu-test.py
Skinok/AI_Framework
3889d69e4aa68067f29285b6cb6a07f4f3886636
[ "MIT" ]
null
null
null
tests/tensorflow-gpu-test/tensorflow-gpu-test.py
Skinok/AI_Framework
3889d69e4aa68067f29285b6cb6a07f4f3886636
[ "MIT" ]
null
null
null
tests/tensorflow-gpu-test/tensorflow-gpu-test.py
Skinok/AI_Framework
3889d69e4aa68067f29285b6cb6a07f4f3886636
[ "MIT" ]
1
2021-11-21T14:30:18.000Z
2021-11-21T14:30:18.000Z
import tensorflow as tf if tf.test.gpu_device_name(): print('Default GPU Device:{}'.format(tf.test.gpu_device_name())) else: print("Please install GPU version of TF")
29.333333
68
0.721591
c136700a6c2980fcba9b3700726e68a587bb3b9e
778
py
Python
src/tests/docs/t_conduit_docs_tutorial_python_numeric.py
adrienbernede/conduit
38379643d570941164b4fad76e269d2862f0e47b
[ "BSD-3-Clause" ]
120
2015-12-09T00:58:22.000Z
2022-03-25T00:14:39.000Z
src/tests/docs/t_conduit_docs_tutorial_python_numeric.py
adrienbernede/conduit
38379643d570941164b4fad76e269d2862f0e47b
[ "BSD-3-Clause" ]
808
2016-02-27T22:25:15.000Z
2022-03-30T23:42:12.000Z
src/tests/docs/t_conduit_docs_tutorial_python_numeric.py
adrienbernede/conduit
38379643d570941164b4fad76e269d2862f0e47b
[ "BSD-3-Clause" ]
49
2016-02-12T17:19:16.000Z
2022-02-01T14:36:21.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other Conduit # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and # other details. No copyright assignment is required to contribute to Conduit. """ file: t_conduit_docs_tutorial_python_examples.py """ import sys import unittest i...
27.785714
78
0.715938
0f897ad54e2c2f3644090ae6d045cf785442956b
13,796
py
Python
backend/models.py
ADE-Scheduler/ADE-Scheduler
2906aac746a9ebb094c06562c8657b96b474e77b
[ "MIT" ]
6
2021-12-13T15:27:52.000Z
2022-02-06T22:38:30.000Z
backend/models.py
ADE-Scheduler/ADE-Scheduler
2906aac746a9ebb094c06562c8657b96b474e77b
[ "MIT" ]
105
2021-11-11T13:06:05.000Z
2022-03-31T04:25:53.000Z
backend/models.py
ADE-Scheduler/ADE-Scheduler
2906aac746a9ebb094c06562c8657b96b474e77b
[ "MIT" ]
5
2021-11-14T12:51:15.000Z
2022-03-06T20:35:03.000Z
import datetime import json import secrets import time import uuid from copy import copy from typing import Any, Union import pandas as pd import sqlalchemy as sa from flask_sqlalchemy import BaseQuery, SQLAlchemy from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.orm import validates from sqlalchemy.type...
31.002247
120
0.634459
58ff7a8de2f90520f31a8c6f8a253454140da0fc
29,179
py
Python
src/config_db/ska_sdp_config/backend.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
null
null
null
src/config_db/ska_sdp_config/backend.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
null
null
null
src/config_db/ska_sdp_config/backend.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
null
null
null
""" Backend database modules for SKA SDP configuration information. At the moment we only support etcd3. """ import time import queue as queue_m import etcd3 # Some utilities for handling tagging paths. # # The idea here is that etcd3 only supports straight-up prefix # searches, but we do not want to get "/a/b/c" ...
35.540804
79
0.593029
5648a68922be4d81f5b854e8e2ee82bd52624e0a
3,768
py
Python
WorldItems/WorldItemsRemove.py
LaDane/Gamehelper
55357046471ca8eb560a787b52fd5cbf450d6697
[ "MIT" ]
null
null
null
WorldItems/WorldItemsRemove.py
LaDane/Gamehelper
55357046471ca8eb560a787b52fd5cbf450d6697
[ "MIT" ]
null
null
null
WorldItems/WorldItemsRemove.py
LaDane/Gamehelper
55357046471ca8eb560a787b52fd5cbf450d6697
[ "MIT" ]
null
null
null
import discord import json import asyncio from discord.ext import commands from filehandler import FileHandler fh = FileHandler() class WorldItemsRemove(commands.Cog): def __init__(self, bot): self.bot = bot self.load_data() def load_data(self): self.users = fh.load_file('worlditems'...
38.845361
147
0.532909
3b402e92d775ccf7f2523d01d23819b4d7befe1b
2,339
py
Python
src/programy/utils/services/service.py
ajit2688/program-y-chatbot
f0a7eb33be2ec8de630644a6393296ddd2576eee
[ "MIT" ]
null
null
null
src/programy/utils/services/service.py
ajit2688/program-y-chatbot
f0a7eb33be2ec8de630644a6393296ddd2576eee
[ "MIT" ]
null
null
null
src/programy/utils/services/service.py
ajit2688/program-y-chatbot
f0a7eb33be2ec8de630644a6393296ddd2576eee
[ "MIT" ]
null
null
null
""" Copyright (c) 2016 Keith Sterling 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, distribute,...
40.327586
126
0.730227
1d5c5f691a75229346ada54d9e7cb379758379a7
16,283
py
Python
tapi2/tapi.py
pavelmaksimov/tapi-wrapper
262468e039db83e8e13564966ad96be39a3d2dab
[ "MIT" ]
6
2019-12-17T21:04:27.000Z
2022-03-23T15:35:58.000Z
tapi2/tapi.py
pavelmaksimov/tapi-wrapper
262468e039db83e8e13564966ad96be39a3d2dab
[ "MIT" ]
null
null
null
tapi2/tapi.py
pavelmaksimov/tapi-wrapper
262468e039db83e8e13564966ad96be39a3d2dab
[ "MIT" ]
3
2020-10-07T16:08:39.000Z
2022-03-08T20:04:29.000Z
from __future__ import unicode_literals import copy import json import webbrowser from collections import OrderedDict from pprint import pprint import requests from .exceptions import ResponseProcessException class TapiInstantiator(object): def __init__(self, adapter_class): self.adapter_class = adapte...
32.500998
122
0.608057
2a8ef29f9740a44fca08d06db41ea59a73df22cb
1,628
py
Python
python/python-sql/sqlite.py
OGLinuk/ptp
bf498759d9958e4fbf4bda30e2b069efa6b7ff5c
[ "Apache-2.0" ]
1
2022-01-31T04:55:59.000Z
2022-01-31T04:55:59.000Z
python/sql/sqlite.py
oglinuk/labs
619f25238cd1631ee3446cb91e46e2376bea6dba
[ "Apache-2.0" ]
null
null
null
python/sql/sqlite.py
oglinuk/labs
619f25238cd1631ee3446cb91e46e2376bea6dba
[ "Apache-2.0" ]
1
2018-10-05T01:54:12.000Z
2018-10-05T01:54:12.000Z
import sqlite3 from datetime import datetime import os def insertStatement(prDB, prCursor): _name = input('Name: ') prCursor.execute(''' INSERT INTO tblPractice(datetimestamp, name) VALUES(?, ?) ''', (datetime.now(), _name)) prDB.commit() print('Statement inserted...') def selectAllStateme...
30.716981
96
0.608722
978c726f03e3840c9be9fda0ca8401fb5cc533a9
5,070
py
Python
lux/action/univariate.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
lux/action/univariate.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
lux/action/univariate.py
thyneb19/lux
07a282d6a5f60c05942d866fa6f33636c3428abc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2020 The Lux 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...
42.966102
187
0.647929
4731eb65c0ba661d17fb004e8c40e80d09566ad6
48
py
Python
backend/pathfinding/core/__init__.py
PCiunkiewicz/localized-epidemiological-abs
51a3f058268307c6a2c8c07f910e6acc47234f2f
[ "MIT" ]
1
2022-03-15T04:02:25.000Z
2022-03-15T04:02:25.000Z
backend/pathfinding/core/__init__.py
PCiunkiewicz/localized-epidemiological-abs
51a3f058268307c6a2c8c07f910e6acc47234f2f
[ "MIT" ]
null
null
null
backend/pathfinding/core/__init__.py
PCiunkiewicz/localized-epidemiological-abs
51a3f058268307c6a2c8c07f910e6acc47234f2f
[ "MIT" ]
null
null
null
__all__ = ['grid', 'heuristic', 'node', 'util']
24
47
0.583333
41dd522f539648f07c58ffc740c8db8656a91439
13,557
py
Python
tests/test_modeling_tf_mobilebert.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
1
2020-08-12T23:29:30.000Z
2020-08-12T23:29:30.000Z
tests/test_modeling_tf_mobilebert.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
6
2019-12-16T05:27:23.000Z
2020-10-05T04:48:53.000Z
tests/test_modeling_tf_mobilebert.py
dmlap/transformers
79588e6fdb5af8add092fc27dd695ea1ebc68b18
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
45.800676
114
0.679944
a6d7016c97e7215ef39b820876e9efaa71f3944a
10,744
py
Python
pippingeasyinstall/Installer.py
matthewhampton/pipping-easy-install
42bcdbabff788f11276a694b132b00bc2f3fd422
[ "Apache-2.0" ]
null
null
null
pippingeasyinstall/Installer.py
matthewhampton/pipping-easy-install
42bcdbabff788f11276a694b132b00bc2f3fd422
[ "Apache-2.0" ]
null
null
null
pippingeasyinstall/Installer.py
matthewhampton/pipping-easy-install
42bcdbabff788f11276a694b132b00bc2f3fd422
[ "Apache-2.0" ]
null
null
null
import argparse import shutil import tempfile import time from zipfile import ZipFile from pippingeasyinstall.Downloader import Downloader, PyPiDownloader from pippingeasyinstall.RegisterPy import RegisterPy from pippingeasyinstall import PackageStore try: from pywinauto import application except: application =...
42.976
198
0.592331
e20708327a99410cc8fcd52c95090d056afe4bcc
85
py
Python
news/googlenews/__init__.py
SmashKs/BarBarian
b308dcb9e24ec621abbbc121847923e14e5b6a4b
[ "MIT" ]
null
null
null
news/googlenews/__init__.py
SmashKs/BarBarian
b308dcb9e24ec621abbbc121847923e14e5b6a4b
[ "MIT" ]
2
2020-06-05T19:25:24.000Z
2021-06-10T20:56:57.000Z
news/googlenews/__init__.py
SmashKs/BarBarian
b308dcb9e24ec621abbbc121847923e14e5b6a4b
[ "MIT" ]
null
null
null
from news.googlenews.background_job import BackgroundJob news_job = BackgroundJob()
21.25
56
0.847059
5bf41bfe25bb380be1f5cbf1572da7384245a67d
291
py
Python
photo/admin.py
SaintieMonte10/Gallery
2520ea8f1e5c0ea3fcb5eba3f4f78bc41dbc1460
[ "MIT" ]
null
null
null
photo/admin.py
SaintieMonte10/Gallery
2520ea8f1e5c0ea3fcb5eba3f4f78bc41dbc1460
[ "MIT" ]
5
2020-05-31T22:28:25.000Z
2020-05-31T22:28:26.000Z
photo/admin.py
SaintieMonte10/Gallery
2520ea8f1e5c0ea3fcb5eba3f4f78bc41dbc1460
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Image,Location,Category # Register your models here. # Register your models here. admin.site.register(Image) admin.site.register(Location) admin.site.register(Category)
19.4
43
0.780069
453244842315b11e72f3246173c9d3159b6aff02
1,759
py
Python
blazar-3.0.0/blazar/api/v1/validation.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
24
2015-10-18T02:53:07.000Z
2022-01-04T12:01:07.000Z
blazar-3.0.0/blazar/api/v1/validation.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
19
2017-05-23T21:34:09.000Z
2022-02-21T19:15:29.000Z
blazar-3.0.0/blazar/api/v1/validation.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
22
2015-10-30T07:42:40.000Z
2021-05-31T14:33:38.000Z
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
30.327586
69
0.645253
a77d334283c4f7b0f614b3eaec62f24946b5418a
6,591
py
Python
dynaconf/validator.py
realitycheck/dynaconf
ef0a11183a1c03b78541aa7fd40de5ea92ff2d24
[ "MIT" ]
null
null
null
dynaconf/validator.py
realitycheck/dynaconf
ef0a11183a1c03b78541aa7fd40de5ea92ff2d24
[ "MIT" ]
null
null
null
dynaconf/validator.py
realitycheck/dynaconf
ef0a11183a1c03b78541aa7fd40de5ea92ff2d24
[ "MIT" ]
null
null
null
from types import MappingProxyType from dynaconf import validator_conditions # noqa class ValidationError(Exception): pass class Validator(object): """Validators are conditions attached to settings variables names or patterns:: Validator('MESSAGE', must_exist=True, eq='Hello World') The ...
30.513889
79
0.532848
654cc50146dc74bd545e9865e5090e55e134e01f
11,066
py
Python
jupyter_cadquery/tessellator.py
roipoussiere/jupyter-cadquery
7ed5ff2ba484ea6cb96f5ea999a88484dfb6b1c1
[ "Apache-2.0" ]
null
null
null
jupyter_cadquery/tessellator.py
roipoussiere/jupyter-cadquery
7ed5ff2ba484ea6cb96f5ea999a88484dfb6b1c1
[ "Apache-2.0" ]
null
null
null
jupyter_cadquery/tessellator.py
roipoussiere/jupyter-cadquery
7ed5ff2ba484ea6cb96f5ea999a88484dfb6b1c1
[ "Apache-2.0" ]
null
null
null
from array import array import numpy as np from OCP.gp import gp_Vec, gp_Pnt from OCP.BRep import BRep_Tool from OCP.BRepTools import BRepTools from OCP.BRepGProp import BRepGProp_Face from OCP.BRepMesh import BRepMesh_IncrementalMesh from OCP.TopLoc import TopLoc_Location from OCP.TopAbs import TopAbs_Orientation fr...
30.738889
116
0.523315
b72e6ad88c0909fe941da6618dd6d7b23504acbc
92
py
Python
vmaig_blog/uwsgi-2.0.14/plugins/router_memcached/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
1
2018-11-24T16:10:49.000Z
2018-11-24T16:10:49.000Z
vmaig_blog/uwsgi-2.0.14/plugins/router_memcached/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
vmaig_blog/uwsgi-2.0.14/plugins/router_memcached/uwsgiplugin.py
StanYaha/Blog
3cb38918e14ebe6ce2e2952ef272de116849910d
[ "BSD-3-Clause" ]
null
null
null
NAME='router_memcached' CFLAGS = [] LDFLAGS = [] LIBS = [] GCC_LIST = ['router_memcached']
13.142857
31
0.663043
8e79c77a4579ea676fe2a20f316f04f363507a95
59,409
py
Python
cinder/volume/drivers/ibm/gpfs.py
HybridF5/cinder
dbbe27f850b7a5ec8e614401442a28ee67bdad0c
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/ibm/gpfs.py
HybridF5/cinder
dbbe27f850b7a5ec8e614401442a28ee67bdad0c
[ "Apache-2.0" ]
1
2021-03-21T11:38:29.000Z
2021-03-21T11:38:29.000Z
cinder/volume/drivers/ibm/gpfs.py
HybridF5/cinder
dbbe27f850b7a5ec8e614401442a28ee67bdad0c
[ "Apache-2.0" ]
1
2021-03-21T11:37:47.000Z
2021-03-21T11:37:47.000Z
# Copyright IBM Corp. 2013 All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
42.801873
79
0.600936
fe46b4e00b0546a3bddf4eaca88649a07157559e
4,217
py
Python
retrieve_refseq_mat_peptide.py
jhayer/viral_mat_peptides
0df37c65af0cf25ce6d7786fce4e1536b286b812
[ "MIT" ]
null
null
null
retrieve_refseq_mat_peptide.py
jhayer/viral_mat_peptides
0df37c65af0cf25ce6d7786fce4e1536b286b812
[ "MIT" ]
null
null
null
retrieve_refseq_mat_peptide.py
jhayer/viral_mat_peptides
0df37c65af0cf25ce6d7786fce4e1536b286b812
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse from Bio.Seq import Seq from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Alphabet import IUPAC def main(): parser = argparse.ArgumentParser(description="To retrieve gbk entries that\ contain mat_peptide features from a gbk file...
39.046296
123
0.626037
21ecd293921e83081dd82160c581ae9a2b4c38d4
6,509
py
Python
glide_finetune/glide_util.py
roher1727/glide-finetune
e5e22ee6250f43b9ffdaa6c9b053c3a56c6ad508
[ "MIT" ]
43
2022-01-19T16:47:06.000Z
2022-03-28T11:11:59.000Z
glide_finetune/glide_util.py
roher1727/glide-finetune
e5e22ee6250f43b9ffdaa6c9b053c3a56c6ad508
[ "MIT" ]
null
null
null
glide_finetune/glide_util.py
roher1727/glide-finetune
e5e22ee6250f43b9ffdaa6c9b053c3a56c6ad508
[ "MIT" ]
9
2022-01-23T18:15:46.000Z
2022-03-21T12:40:29.000Z
## glide_util.py # Utilities for tokenizing, padding, and batching data and sampling from GLIDE. import os from typing import Tuple import PIL import numpy as np import torch as th from glide_finetune.train_util import pred_to_pil from glide_text2im.download import load_checkpoint from glide_text2im.model_creation im...
36.567416
109
0.676909
ed8f08b2d6797d16e132885e3e551b4ffc373225
36,383
py
Python
baselines/toxic_comments/deterministic.py
dvdzhang/uncertainty-baselines
8ce0d7494e5cae0719c1b750da4b61564e536636
[ "Apache-2.0" ]
null
null
null
baselines/toxic_comments/deterministic.py
dvdzhang/uncertainty-baselines
8ce0d7494e5cae0719c1b750da4b61564e536636
[ "Apache-2.0" ]
null
null
null
baselines/toxic_comments/deterministic.py
dvdzhang/uncertainty-baselines
8ce0d7494e5cae0719c1b750da4b61564e536636
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines 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 ap...
43.36472
80
0.645356
d04b3fdd720e0f0438b3b09e035b901a60a4bb8c
652
py
Python
devdash/tiles/views.py
dgreisen-cfpb/devdash
68e61442b137c7e5198b37a1c1612d2ca0cc3ec0
[ "CC0-1.0" ]
2
2015-04-24T05:54:28.000Z
2015-05-03T16:42:07.000Z
devdash/tiles/views.py
dgreisen-cfpb/devdash
68e61442b137c7e5198b37a1c1612d2ca0cc3ec0
[ "CC0-1.0" ]
23
2015-01-09T18:37:47.000Z
2015-05-05T22:29:08.000Z
devdash/tiles/views.py
dgreisen-cfpb/devdash
68e61442b137c7e5198b37a1c1612d2ca0cc3ec0
[ "CC0-1.0" ]
3
2015-01-22T18:19:55.000Z
2015-05-28T19:43:17.000Z
from appring import apps def gen_context(request, tile_names, context, tile_contexts): """ :param request request: Djange request object :param iterator tile_names: tuple of "app.function" tile name :param context context: context :param iterator tile_contexts: pointer into context to a list ...
32.6
65
0.697853
68c7e8ca2634e969a23e4cb8104f050683ae3db5
1,443
py
Python
setup.py
FlipperPA/wagtailpress
4129abb3f75175a1ed8e25bfdd945657c009fe10
[ "BSD-3-Clause" ]
18
2015-10-11T18:32:25.000Z
2020-02-15T10:34:19.000Z
setup.py
FlipperPA/wagtailpress
4129abb3f75175a1ed8e25bfdd945657c009fe10
[ "BSD-3-Clause" ]
1
2015-10-19T06:52:22.000Z
2015-12-26T13:13:59.000Z
setup.py
FlipperPA/wagtailpress
4129abb3f75175a1ed8e25bfdd945657c009fe10
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='wagtailpress', version='0.1', packages=['wagtailpress'], ...
35.195122
107
0.604297
ad7edbc4c6d3ebe1e618bf37b681236e6de6dfff
412
py
Python
tests/integration/__init__.py
AshwinParmar/localstack
ae33c57849fa648cc21338629ddaf16ac3aa8351
[ "Apache-2.0" ]
8,330
2016-11-08T13:59:51.000Z
2022-03-29T08:49:12.000Z
tests/integration/__init__.py
AshwinParmar/localstack
ae33c57849fa648cc21338629ddaf16ac3aa8351
[ "Apache-2.0" ]
142
2016-11-02T11:13:37.000Z
2020-06-09T09:18:21.000Z
tests/integration/__init__.py
AshwinParmar/localstack
ae33c57849fa648cc21338629ddaf16ac3aa8351
[ "Apache-2.0" ]
373
2016-11-29T12:32:26.000Z
2021-09-06T22:49:00.000Z
import sys import threading import logging from localstack.services import infra from localstack.utils.common import cleanup def setup_package(): try: infra.start_infra(async=True) except Exception as e: # make sure to tear down the infrastructure infra.stop_infra() raise e d...
19.619048
51
0.701456
f99ebcfb9fb917389b798b86ea534f196efd6280
369
py
Python
files/catkin_ws/build/iai_kinect2/kinect2_viewer/catkin_generated/pkg.develspace.context.pc.py
Filipe-Douglas-Slam/slam_lidar_kinect
4ac2c9555f939ba3bc3e97314eb611bdd9df5f27
[ "MIT" ]
null
null
null
files/catkin_ws/build/iai_kinect2/kinect2_viewer/catkin_generated/pkg.develspace.context.pc.py
Filipe-Douglas-Slam/slam_lidar_kinect
4ac2c9555f939ba3bc3e97314eb611bdd9df5f27
[ "MIT" ]
null
null
null
files/catkin_ws/build/iai_kinect2/kinect2_viewer/catkin_generated/pkg.develspace.context.pc.py
Filipe-Douglas-Slam/slam_lidar_kinect
4ac2c9555f939ba3bc3e97314eb611bdd9df5f27
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "kinect2_viewer" PROJECT_SPACE_DIR = "...
41
68
0.704607
0261e4af3c2c5e2f18ca4551451d22893a91c9c6
4,898
py
Python
python/seldon_deploy_sdk/models/batcher.py
adriangonz/seldon-deploy-sdk
c5504838630a87053387cec57ec2e1e7251971e2
[ "Apache-2.0" ]
6
2021-02-18T14:37:54.000Z
2022-01-13T13:27:43.000Z
python/seldon_deploy_sdk/models/batcher.py
adriangonz/seldon-deploy-sdk
c5504838630a87053387cec57ec2e1e7251971e2
[ "Apache-2.0" ]
14
2021-01-04T16:32:03.000Z
2021-12-13T17:53:59.000Z
python/seldon_deploy_sdk/models/batcher.py
adriangonz/seldon-deploy-sdk
c5504838630a87053387cec57ec2e1e7251971e2
[ "Apache-2.0" ]
7
2021-03-17T09:05:55.000Z
2022-01-05T10:39:56.000Z
# coding: utf-8 """ Seldon Deploy API API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 OpenAPI spec version: v1alpha1 Contact: hello@seldon.io Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint...
28.149425
122
0.580033
29d6bd1b2055bb669051b0c2d390aaa98dca9e14
2,593
py
Python
nova/conf/service_token.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
null
null
null
nova/conf/service_token.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
2
2015-02-03T06:25:24.000Z
2015-02-04T10:10:36.000Z
nova/conf/service_token.py
teresa-ho/stx-nova
1f82323439da2449edbbaed2fe1c8414a550c86f
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.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...
38.701493
78
0.743926
e8de420360d66486e60341b45231ba3cbb724cbc
265
py
Python
tile.py
ullesdiykanal/zeldaclone
f4d9c0fb1ecb0ef659901c03662c4d7724adea05
[ "CC0-1.0" ]
null
null
null
tile.py
ullesdiykanal/zeldaclone
f4d9c0fb1ecb0ef659901c03662c4d7724adea05
[ "CC0-1.0" ]
null
null
null
tile.py
ullesdiykanal/zeldaclone
f4d9c0fb1ecb0ef659901c03662c4d7724adea05
[ "CC0-1.0" ]
null
null
null
import pygame from settings import * class Tile(pygame.sprite.Sprite): def __init__(self, pos, groups): super().__init__(groups) self.image = pygame.image.load('assets/rock.png').convert_alpha() self.rect = self.image.get_rect(topleft = pos)
33.125
71
0.698113
0d1c75de04c6fa7b4de3510ba1327af29273ed51
74,022
py
Python
silx/gui/plot/test/testPlotWidget.py
mretegan/silx
2c8b05ff1c8c1fc00e3d4a08331c76ff5b44996b
[ "CC0-1.0", "MIT" ]
1
2019-11-29T20:45:36.000Z
2019-11-29T20:45:36.000Z
silx/gui/plot/test/testPlotWidget.py
mretegan/silx
2c8b05ff1c8c1fc00e3d4a08331c76ff5b44996b
[ "CC0-1.0", "MIT" ]
null
null
null
silx/gui/plot/test/testPlotWidget.py
mretegan/silx
2c8b05ff1c8c1fc00e3d4a08331c76ff5b44996b
[ "CC0-1.0", "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2016-2020 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
39.562801
94
0.56336
b05faa213106ee440dea80ea0de716a0738fb3cf
13,419
py
Python
exavault/models/update_account_request_body.py
ExaVault/evapi-python
769bfa9fbb683f2b4653ca2564029ffb72445c8c
[ "MIT" ]
null
null
null
exavault/models/update_account_request_body.py
ExaVault/evapi-python
769bfa9fbb683f2b4653ca2564029ffb72445c8c
[ "MIT" ]
3
2017-07-13T20:58:05.000Z
2019-08-02T19:08:37.000Z
exavault/models/update_account_request_body.py
ExaVault/evapi-python
769bfa9fbb683f2b4653ca2564029ffb72445c8c
[ "MIT" ]
4
2016-11-16T00:14:23.000Z
2020-09-24T14:50:46.000Z
# coding: utf-8 """ ExaVault API See our API reference documentation at https://www.exavault.com/developer/api-docs/ # noqa: E501 OpenAPI spec version: 2.0 Contact: support@exavault.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 i...
34.496144
275
0.655339
e3c83e726d786e7b9f87a1f14f06ff2aa47d4a9b
1,277
py
Python
pymitools/girder/metadataPresets.py
chapmanbe/pymitools
be0f4a3f56dd6c8bb89678368c49e09b3333232c
[ "Apache-2.0" ]
null
null
null
pymitools/girder/metadataPresets.py
chapmanbe/pymitools
be0f4a3f56dd6c8bb89678368c49e09b3333232c
[ "Apache-2.0" ]
null
null
null
pymitools/girder/metadataPresets.py
chapmanbe/pymitools
be0f4a3f56dd6c8bb89678368c49e09b3333232c
[ "Apache-2.0" ]
null
null
null
"""Metadata presets for commonly used keywords.""" presets = { chest : {"Anatomical Region": {"ID": "0001443", "Name": "chest", "Ontology Acronym": "UBERON", "Ontology Name": "Uber Anatomy Ontology", "Resource URL": "http://pur...
29.697674
66
0.473767
369ad44f63e3d5a9957a56ea28277e1c8502439d
173
gyp
Python
test/gyppies/cmd_cwd/test.gyp
indutny/gyp.js
eb8aa23d7b1599db892d54d8c815ce75fa7ae74f
[ "Unlicense", "MIT" ]
188
2016-06-09T17:49:46.000Z
2022-02-05T16:46:00.000Z
test/gyppies/cmd_cwd/test.gyp
indutny/gyp.js
eb8aa23d7b1599db892d54d8c815ce75fa7ae74f
[ "Unlicense", "MIT" ]
38
2016-06-12T20:13:29.000Z
2019-05-12T17:21:05.000Z
test/gyppies/cmd_cwd/test.gyp
indutny/gyp.js
eb8aa23d7b1599db892d54d8c815ce75fa7ae74f
[ "Unlicense", "MIT" ]
22
2016-06-12T23:06:17.000Z
2019-05-12T11:25:51.000Z
{ "targets": [{ "target_name": "test", "type": "executable", "dependencies": [ "dep/dep.gyp:dep", ], "sources": [ "main.c", ], }], }
13.307692
26
0.416185
7c0419993f9ee97ceae46e016ec9ac72a18b32a6
136
py
Python
DeepLearning/Python/Chapter 3/Ch03-05-02-softmax.py
BlueWay-KU/Study
a86405cdc3011eaed1b980b562b75df1e9ce90a8
[ "MIT" ]
null
null
null
DeepLearning/Python/Chapter 3/Ch03-05-02-softmax.py
BlueWay-KU/Study
a86405cdc3011eaed1b980b562b75df1e9ce90a8
[ "MIT" ]
null
null
null
DeepLearning/Python/Chapter 3/Ch03-05-02-softmax.py
BlueWay-KU/Study
a86405cdc3011eaed1b980b562b75df1e9ce90a8
[ "MIT" ]
null
null
null
import numpy as np def softmax(a): exp_a = np.exp(a) sum_exp_a = np.sum(exp_a) y = exp_a / sum_exp_a return y
15.111111
30
0.573529
c7e31d00cbadae9faf9d20c430a192ead730ab7f
1,498
py
Python
300-/455.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
300-/455.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
300-/455.py
yshshadow/Leetcode
5097f69bb0050d963c784d6bc0e88a7e871568ed
[ "MIT" ]
null
null
null
# Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a cookie that the child will be content with; and each cookie j has a size sj. If sj >= gi, we can assign the cookie j to t...
37.45
456
0.64753
ae6b75d69cff7b76a2982bd5ef1815332f71b7b7
40,635
py
Python
nuitka/nodes/ConstantRefNodes.py
LarsK1/Nuitka
c437f79c62e240b10515ea5cc37f7d71965defee
[ "Apache-2.0" ]
1
2019-02-25T14:14:35.000Z
2019-02-25T14:14:35.000Z
nuitka/nodes/ConstantRefNodes.py
LarsK1/Nuitka
c437f79c62e240b10515ea5cc37f7d71965defee
[ "Apache-2.0" ]
null
null
null
nuitka/nodes/ConstantRefNodes.py
LarsK1/Nuitka
c437f79c62e240b10515ea5cc37f7d71965defee
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
26.420676
112
0.63935
499794da3eeaf3c39435cccbd07594026869b6a8
27,134
py
Python
test/functional/feature_restricted_assets.py
HiveProject2021/Hivecoin
6e63c17be1de617f29908592c2e79beabb86b2d3
[ "MIT" ]
10
2021-03-05T18:06:36.000Z
2022-02-12T21:02:02.000Z
test/functional/feature_restricted_assets.py
HiveProject2021/Hivecoin
6e63c17be1de617f29908592c2e79beabb86b2d3
[ "MIT" ]
1
2021-10-06T05:22:54.000Z
2021-11-23T00:49:20.000Z
test/functional/feature_restricted_assets.py
HiveProject2021/Hivecoin
6e63c17be1de617f29908592c2e79beabb86b2d3
[ "MIT" ]
2
2021-11-08T23:44:59.000Z
2021-12-12T22:17:20.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Copyright (c) 2017-2019 The Raven Core developers # Copyright (c) 2020-2021 The Hive Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ""...
45.757167
179
0.686924
4db2d8cc1daab9e3380e823917cbf0770e87dbed
1,989
py
Python
tests/reactor/conftest.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
855
2020-08-19T09:40:38.000Z
2022-03-31T19:13:29.000Z
tests/reactor/conftest.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
715
2019-12-23T14:17:35.000Z
2022-03-30T20:54:45.000Z
tests/reactor/conftest.py
tavaresrodrigo/kopf
97e1c7a926705a79dabce2931e96a924252b61df
[ "MIT" ]
97
2019-04-25T09:32:54.000Z
2022-03-30T10:15:30.000Z
import asyncio import functools import pytest from asynctest import CoroutineMock from kopf._cogs.clients.watching import infinite_watch from kopf._core.reactor.queueing import watcher, worker as original_worker @pytest.fixture(autouse=True) def _autouse_resp_mocker(resp_mocker): pass @pytest.fixture() def pr...
27.625
81
0.698844
c31795701cfdfd4fe5a1a74248b43d4c54ab88bc
10,239
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/views/project_issue_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/views/project_issue_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/project/views/project_issue_view.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 # coding=utf-8 ''' Created on 2014-1-5 @author: ETHAN ''' from django.http import HttpResponse,StreamingHttpResponse from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from gatesidelib.common.simplelogger import SimpleLogger from doraemon.project.pag...
30.840361
109
0.727805
169ef25694a193cfab10ada1773719d2d9294394
8,996
py
Python
tensorflow_model_analysis/evaluators/confidence_intervals_util.py
jaymessina3/model-analysis
8638ad375d860a97df5938850c59c72b0def995a
[ "Apache-2.0" ]
1,118
2018-03-30T02:01:17.000Z
2022-03-22T07:25:58.000Z
tensorflow_model_analysis/evaluators/confidence_intervals_util.py
jaymessina3/model-analysis
8638ad375d860a97df5938850c59c72b0def995a
[ "Apache-2.0" ]
82
2018-04-12T12:54:05.000Z
2022-03-31T11:14:31.000Z
tensorflow_model_analysis/evaluators/confidence_intervals_util.py
jaymessina3/model-analysis
8638ad375d860a97df5938850c59c72b0def995a
[ "Apache-2.0" ]
280
2018-03-30T15:58:02.000Z
2022-03-21T07:41:53.000Z
# Lint as: python3 # Copyright 2021 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 agr...
40.340807
85
0.734549
05251e7ce7f58301200848f6da1235e4e07d10f4
9,412
py
Python
dataproject/Dataproject.py
NumEconCopenhagen/projects-2019-al
a5966ce338b1aab9dc52f1b05a1f7a54bd1b25f9
[ "MIT" ]
null
null
null
dataproject/Dataproject.py
NumEconCopenhagen/projects-2019-al
a5966ce338b1aab9dc52f1b05a1f7a54bd1b25f9
[ "MIT" ]
12
2019-04-10T07:46:39.000Z
2019-05-14T16:40:44.000Z
dataproject/Dataproject.py
NumEconCopenhagen/projects-2019-al
a5966ce338b1aab9dc52f1b05a1f7a54bd1b25f9
[ "MIT" ]
2
2019-04-08T14:04:53.000Z
2019-05-13T08:06:52.000Z
import pandas as pd import pandas_datareader as pdr import numpy as np import matplotlib.pyplot as plt import ipywidgets as widgets ## Data import and cleaning # a. Import of enviromental data form the OECD statistics bank API df = pdr.DataReader("AIR_GHG","oecd") df.head() # b. Import of locally placed OECD data on ...
40.39485
183
0.674564
67b7f27a0700af14e2ec8126757c04fbd0b6d17c
1,094
py
Python
esc_firmware/test_internal_controller.py
jnez71/multicopter
34efc31c42457967115c6abbe4aa3d83be079001
[ "MIT" ]
1
2018-02-12T07:50:45.000Z
2018-02-12T07:50:45.000Z
esc_firmware/test_internal_controller.py
jnez71/multicopter
34efc31c42457967115c6abbe4aa3d83be079001
[ "MIT" ]
null
null
null
esc_firmware/test_internal_controller.py
jnez71/multicopter
34efc31c42457967115c6abbe4aa3d83be079001
[ "MIT" ]
3
2018-02-12T07:50:49.000Z
2020-07-01T21:11:46.000Z
from __future__ import division import struct import time import sys import serial import protocol s = serial.Serial('/dev/serial/by-id/pci-FTDI_FT232R_USB_UART_AH034I96-if00-port0', 115200, timeout=.1) p = protocol.Protocol(s) id_ = int(sys.argv[1]) dev = protocol.Device(p, 2, id_) def print_status(): dev.w...
23.782609
107
0.677331
abe27e25d59fd821c30aaa75edc268e20a8ea5a3
37,012
py
Python
openmdao/core/tests/test_matmat.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
null
null
null
openmdao/core/tests/test_matmat.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
null
null
null
openmdao/core/tests/test_matmat.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
1
2018-07-27T06:39:15.000Z
2018-07-27T06:39:15.000Z
from __future__ import print_function, division, absolute_import import unittest import numpy as np import openmdao.api as om from openmdao.utils.assert_utils import assert_rel_error class QuadraticCompVectorized(om.ImplicitComponent): """ A Simple Implicit Component representing a Quadratic Equation. ...
36.791252
110
0.585432
d3fdac4774aa2e102c9a7e4f8873070a880c9f5a
3,082
py
Python
test/kfold_test.py
dsosnoski/irvideo-classification
894e0bf00039fb35e870e682eb62f68e7ec00334
[ "Apache-2.0" ]
null
null
null
test/kfold_test.py
dsosnoski/irvideo-classification
894e0bf00039fb35e870e682eb62f68e7ec00334
[ "Apache-2.0" ]
null
null
null
test/kfold_test.py
dsosnoski/irvideo-classification
894e0bf00039fb35e870e682eb62f68e7ec00334
[ "Apache-2.0" ]
null
null
null
import os import pickle import sys import traceback import numpy as np from support.data_model import CLASSES, TAG_CLASS_MAP from test.test_utils import load_tracks, load_model, prep_track, flatten_tag_tracks def frame_count(tracks): return np.sum([t.frame_count for t in tracks]) def all_frame_counts(tag_tra...
36.690476
167
0.654121
56231aa5525b1c0f9e9688be90c9155144a6ac92
2,773
py
Python
appion/bin/tomo2pdb.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
appion/bin/tomo2pdb.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
appion/bin/tomo2pdb.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import numpy import scipy.ndimage from pyami import mrc if __name__ == "__main__": ## using scipy.ndimage to find blobs labelstruct = numpy.ones((3,3,3)) def scipyblobs(im,mask): labels,n = scipy.ndimage.label(mask, labelstruct) ## too bad ndimage module is inconsistent with what is retur...
33.409639
116
0.651641
47691ae6f9801c13cba48b44a4ecbe890924080b
2,508
py
Python
test/functional/mempool_limit.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
test/functional/mempool_limit.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
test/functional/mempool_limit.py
arcana-coin/arcana-core
b5d6d71968d1f19c42dc3f351aff17800da5af36
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bytcoyn Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool limiting together/eviction with the wallet.""" from test_framework.test_framework import ...
45.6
118
0.672249
94665f9e07f74f27d65af5cb7fde9379ec4ac08d
3,255
py
Python
InvenTree/InvenTree/context.py
ssewell/InvenTree
c882d1f89bca9fa52670fa2951cbf9b26c87ee67
[ "MIT" ]
1
2022-03-07T05:17:07.000Z
2022-03-07T05:17:07.000Z
InvenTree/InvenTree/context.py
ssewell/InvenTree
c882d1f89bca9fa52670fa2951cbf9b26c87ee67
[ "MIT" ]
null
null
null
InvenTree/InvenTree/context.py
ssewell/InvenTree
c882d1f89bca9fa52670fa2951cbf9b26c87ee67
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Provides extra global data to all templates. """ from InvenTree.status_codes import SalesOrderStatus, PurchaseOrderStatus from InvenTree.status_codes import BuildStatus, StockStatus from InvenTree.status_codes import StockHistoryCode import InvenTree.status from users.models import RuleS...
26.04
74
0.603687
a630d3fdd28546bb05dd0f8a4f2352ba21745907
2,124
py
Python
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[en_US-2012] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[en_US-2012] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
tests/snapshots/snap_test_holidata/test_holidata_produces_holidays_for_locale_and_year[en_US-2012] 1.py
ghlecl/holidata
1db24d4aecab7ec7a007720987d84ffb0988b6db
[ "MIT" ]
null
null
null
[ { 'date': '2012-01-01', 'description': "New Year's Day", 'locale': 'en-US', 'notes': '', 'region': '', 'type': 'NF' }, { 'date': '2012-01-16', 'description': 'Birthday of Martin Luther King, Jr.', 'locale': 'en-US', 'notes': '...
21.673469
61
0.361111
3572cc7fdcefcf7391eac702731d1fd98668773d
1,160
py
Python
examples/bot.py
shahriyardx/dismusic
191a14bdd4fce8098c3822831a2fb4caf42e050c
[ "MIT" ]
17
2022-02-08T12:13:54.000Z
2022-03-29T15:51:38.000Z
examples/bot.py
shahriyardx/dismusic
191a14bdd4fce8098c3822831a2fb4caf42e050c
[ "MIT" ]
1
2022-03-30T01:14:37.000Z
2022-03-30T15:14:36.000Z
examples/bot.py
shahriyardx/dismusic
191a14bdd4fce8098c3822831a2fb4caf42e050c
[ "MIT" ]
18
2022-02-10T06:41:25.000Z
2022-03-31T17:53:09.000Z
import os from discord.ext import commands from discord.ext.commands.context import Context from dotenv import load_dotenv load_dotenv(".env") bot = commands.Bot(command_prefix="?") bot.lavalink_nodes = [ {"host": "losingtime.dpaste.org", "port": 2124, "password": "SleepingOnTrains"}, # Can have multiple nod...
23.673469
89
0.689655
8c4e1c9dfc45613325a3e4c2f3164f52962f1994
340
py
Python
Code Accdemy/Dictionary_keys.py
JackVoice/Testing
11e1b83c7b2e51fa0a8cdde67c5c1eab650e018a
[ "Unlicense" ]
null
null
null
Code Accdemy/Dictionary_keys.py
JackVoice/Testing
11e1b83c7b2e51fa0a8cdde67c5c1eab650e018a
[ "Unlicense" ]
null
null
null
Code Accdemy/Dictionary_keys.py
JackVoice/Testing
11e1b83c7b2e51fa0a8cdde67c5c1eab650e018a
[ "Unlicense" ]
null
null
null
user_ids = {"teraCoder": 100019, "pythonGuy": 182921, "samTheJavaMaam": 123112, "lyleLoop": 102931, "keysmithKeith": 129384} num_exercises = {"functions": 10, "syntax": 13, "control flow": 15, "loops": 22, "lists": 19, "classes": 18, "dictionaries": 18} users = user_ids.keys() print(users) lessons = num_exercises.key...
34
128
0.694118
fab7b7ba6e984a93cee353c80aefa2fad9d3552f
13,306
py
Python
doc/ext/setupdoc.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
doc/ext/setupdoc.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
doc/ext/setupdoc.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
33.516373
93
0.595821
917186122287215cbfc3217f5c7b4e0c8a0d9906
20,365
py
Python
examples/tutorials/nb_python/Habitat2_Quickstart.py
ScottCSteinhauser/habitat-lab
4cceb55451fdc48588f1a6015c32fa5653c08050
[ "MIT" ]
null
null
null
examples/tutorials/nb_python/Habitat2_Quickstart.py
ScottCSteinhauser/habitat-lab
4cceb55451fdc48588f1a6015c32fa5653c08050
[ "MIT" ]
null
null
null
examples/tutorials/nb_python/Habitat2_Quickstart.py
ScottCSteinhauser/habitat-lab
4cceb55451fdc48588f1a6015c32fa5653c08050
[ "MIT" ]
null
null
null
# --- # jupyter: # accelerator: GPU # colab: # collapsed_sections: [] # name: Habitat 2.0 Quick Start Tutorial # provenance: [] # jupytext: # cell_metadata_filter: -all # formats: nb_python//py:percent,colabs//ipynb # notebook_metadata_filter: all # text_representation: # extensi...
33.113821
523
0.692021
eab03c19a56c9eef7868e48ca631722c3a8c55dd
8,109
py
Python
src/transformers/utils/logging.py
MaximovaIrina/transformers
033c3ed95a14b58f5a657f5124bc5988e4109c9f
[ "Apache-2.0" ]
1
2022-01-12T11:39:47.000Z
2022-01-12T11:39:47.000Z
src/transformers/utils/logging.py
AugustVIII/transformers
185876392c0dcd4c4bb02f2750822144a3bee545
[ "Apache-2.0" ]
null
null
null
src/transformers/utils/logging.py
AugustVIII/transformers
185876392c0dcd4c4bb02f2750822144a3bee545
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 Optuna, Hugging Face # # 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 o...
28.960714
119
0.703416
7b09c160483e22e6b0e788edc939e226cd33a884
599
py
Python
FOadmin/migrations/0005_companystructure_fo_profile.py
vdenPython/FirmOffice
01ed6424e14dfd9a28530c45dc0a15b2fc29f706
[ "Apache-2.0" ]
null
null
null
FOadmin/migrations/0005_companystructure_fo_profile.py
vdenPython/FirmOffice
01ed6424e14dfd9a28530c45dc0a15b2fc29f706
[ "Apache-2.0" ]
null
null
null
FOadmin/migrations/0005_companystructure_fo_profile.py
vdenPython/FirmOffice
01ed6424e14dfd9a28530c45dc0a15b2fc29f706
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-06 04:18 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('FOadmin', '0004_auto_20170406_0917'), ] operations...
27.227273
153
0.66778
7becb1bef911924432c62f9b138cc048c8846ed9
1,020
py
Python
blender_bindings/ui/export_nodes/nodes/input_object_node.py
BlenderAddonsArchive/SourceIO
7e29de15e7b9a3db538bcdf805547d1781fce3c9
[ "MIT" ]
199
2019-04-02T02:30:58.000Z
2022-03-30T21:29:49.000Z
bpy_utilities/export_nodes/nodes/input_object_node.py
syborg64/SourceIO
e4ba86d801f518e192260af08ef533759c2e1cc3
[ "MIT" ]
113
2019-03-03T19:36:25.000Z
2022-03-31T19:44:05.000Z
bpy_utilities/export_nodes/nodes/input_object_node.py
syborg64/SourceIO
e4ba86d801f518e192260af08ef533759c2e1cc3
[ "MIT" ]
38
2019-05-15T16:49:30.000Z
2022-03-22T03:40:43.000Z
from bpy.types import Node import bpy from .base_node import SourceIOModelTreeNode class SourceIOBlankObjectProto: class BlankObject: name = "BLANK" @property def obj(self): return SourceIOBlankObjectProto.BlankObject class SourceIOObjectProto: def __init__(self): self.obj ...
24.285714
77
0.656863
b08e65fff0427f8d147fe2e1b1eabacfb89fe405
472
py
Python
org.bridgedb.server/contrib/bridgedb-example.py
fehrhart/BridgeDb
bfbecc042b205a604bddf27aa16db154afba2143
[ "Apache-2.0" ]
22
2015-02-05T11:12:51.000Z
2022-02-04T01:09:13.000Z
org.bridgedb.server/contrib/bridgedb-example.py
fehrhart/BridgeDb
bfbecc042b205a604bddf27aa16db154afba2143
[ "Apache-2.0" ]
154
2015-04-07T11:04:27.000Z
2022-03-29T12:02:00.000Z
org.bridgedb.server/contrib/bridgedb-example.py
fehrhart/BridgeDb
bfbecc042b205a604bddf27aa16db154afba2143
[ "Apache-2.0" ]
25
2015-01-05T18:31:18.000Z
2022-02-25T10:13:52.000Z
#!/usr/bin/python import urllib ## If you want to use a local bridgedb idmapper in python, setup a local service ## and change the url below. See http://bridgedb.org/wiki/LocalService ## for information on how to run a local service. webserviceUrl = "http://webservice.bridgedb.org"; def mapID (id, code): species = ...
24.842105
80
0.673729
87b220847f5a0c871d5332c555e14b284447c1a7
4,045
py
Python
setup.py
Shamrock-Network/achi-blockchain
bf5d8546115b4f92de174ce1b5f732c3f8541838
[ "Apache-2.0" ]
null
null
null
setup.py
Shamrock-Network/achi-blockchain
bf5d8546115b4f92de174ce1b5f732c3f8541838
[ "Apache-2.0" ]
null
null
null
setup.py
Shamrock-Network/achi-blockchain
bf5d8546115b4f92de174ce1b5f732c3f8541838
[ "Apache-2.0" ]
null
null
null
from setuptools import setup dependencies = [ "blspy==1.0.2", # Signature library "achivdf==1.0.1", # timelord and vdf verification "achibip158==1.0", # bip158-style wallet filters "achipos==1.0.2", # proof of space "alvm==0.9.6", "alvm_rs==0.1.7", "alvm_tools==0.4.3", "aiohttp==3.7...
34.279661
90
0.609394
dc11060637775ca5d9a74c405b8de93211c56d76
2,896
py
Python
tech_project/lib/python2.7/site-packages/easy_thumbnails/widgets.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/easy_thumbnails/widgets.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
tech_project/lib/python2.7/site-packages/easy_thumbnails/widgets.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
null
null
null
from django import VERSION as DJANGO_VERSION from django.forms.widgets import ClearableFileInput from django.utils.safestring import mark_safe from easy_thumbnails.files import get_thumbnailer from easy_thumbnails.conf import settings class ImageClearableFileInput(ClearableFileInput): """ Use this widget to ...
37.61039
79
0.650207
a0c2bc11731f2bd82f05d08d4429a90c33b12ea0
3,354
py
Python
snap_scripts/downscaling_10min/downscaling_10min_OLD_KEEP/compute_5ModelAvg_cmip5.py
ua-snap/downscale
3fe8ea1774cf82149d19561ce5f19b25e6cba6fb
[ "MIT" ]
5
2020-06-24T21:55:12.000Z
2022-03-23T16:32:54.000Z
snap_scripts/downscaling_10min/downscaling_10min_OLD_KEEP/compute_5ModelAvg_cmip5.py
ua-snap/downscale
3fe8ea1774cf82149d19561ce5f19b25e6cba6fb
[ "MIT" ]
17
2016-01-04T23:37:47.000Z
2017-04-17T20:57:02.000Z
snap_scripts/downscaling_10min/downscaling_10min_OLD_KEEP/compute_5ModelAvg_cmip5.py
ua-snap/downscale
3fe8ea1774cf82149d19561ce5f19b25e6cba6fb
[ "MIT" ]
3
2020-09-16T04:48:57.000Z
2021-05-25T03:46:00.000Z
# # # # # # # # # # # # # # # # # # # # # # # # # Generate 5 Model Averages --> 10 min data # author: Michael Lindgren -- 2017 # # # # # # # # # # # # # # # # # # # # # # # # def list_files( input_path, begin=1900, end=2005 ): ''' list the files in the range of begin, end ''' files = sorted( glob.glob( os.path.joi...
34.22449
151
0.658915
8a5e3124a26e50eb8b0c02f0e418df4f67399cd4
3,676
py
Python
tests/regressiontests/forms/models.py
mrts2/django
973cf20260cb90b42b0c97d6fe80c988b539ed89
[ "BSD-3-Clause" ]
1
2016-05-09T13:27:14.000Z
2016-05-09T13:27:14.000Z
tests/regressiontests/forms/models.py
mrts2/django
973cf20260cb90b42b0c97d6fe80c988b539ed89
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/forms/models.py
mrts2/django
973cf20260cb90b42b0c97d6fe80c988b539ed89
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import tempfile import shutil from django.db import models # Can't import as "forms" due to implementation details in the test suite (the # current file is called "forms" and is already imported). from django import forms as django_forms from django.core.files.storage import Fil...
33.724771
138
0.707563
facbf8483e5483221c508b267d7d4804637ec622
40,131
py
Python
py21cmmc_fg/core.py
dprelogo/py21cmmc_fg
beee2a2a0a55a22430f37a1eaf4e4d83115421a1
[ "MIT" ]
null
null
null
py21cmmc_fg/core.py
dprelogo/py21cmmc_fg
beee2a2a0a55a22430f37a1eaf4e4d83115421a1
[ "MIT" ]
null
null
null
py21cmmc_fg/core.py
dprelogo/py21cmmc_fg
beee2a2a0a55a22430f37a1eaf4e4d83115421a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Apr 17 14:13:39 2018 @author: bella Foreground core for 21cmmc """ import logging from os import path import numpy as np import py21cmmc as p21 from astropy import constants as const from astropy import units as un from powerbox import LogNormalPowerBox from powerbox.dft i...
38.47651
208
0.617727
9c520cb168d795cea39123c5db2986607bf783f0
11,898
py
Python
client/verta/verta/environment/_python.py
VertaAI/modeldb
9ef5a5f106185bf4041945c4986e3235e9678b3f
[ "Apache-2.0" ]
624
2020-01-18T21:10:12.000Z
2022-03-23T12:11:06.000Z
client/verta/verta/environment/_python.py
VertaAI/modeldb
9ef5a5f106185bf4041945c4986e3235e9678b3f
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/environment/_python.py
VertaAI/modeldb
9ef5a5f106185bf4041945c4986e3235e9678b3f
[ "Apache-2.0" ]
118
2019-04-12T16:01:21.000Z
2022-03-05T16:29:41.000Z
# -*- coding: utf-8 -*- import copy import logging import os import sys from ..external import six from .._protos.public.modeldb.versioning import ( VersioningService_pb2 as _VersioningService, ) from .._protos.public.modeldb.versioning import Environment_pb2 as _EnvironmentService from .._internal_utils import...
31.643617
92
0.590688
8c6a6beec235106636f05a3e7a942e73da490979
5,358
py
Python
src/garage/envs/hierarchical_rl_rllab/multi_direction_env.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
1
2021-03-02T08:43:20.000Z
2021-03-02T08:43:20.000Z
src/garage/envs/hierarchical_rl_rllab/multi_direction_env.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
src/garage/envs/hierarchical_rl_rllab/multi_direction_env.py
fangqyi/garage
ddafba385ef005f46f913ab352f9638760e5b412
[ "MIT" ]
null
null
null
import numpy as np from rllab.core.serializable import Serializable from rllab.envs.mujoco.swimmer_env import SwimmerEnv from rllab.envs.mujoco.ant_env import AntEnv from rllab.envs.mujoco.humanoid_env import HumanoidEnv from rllab.envs.base import Step from rllab.misc import logger from .helpers import get_multi_dir...
33.698113
87
0.637365
c9492dc3b5478277c648e46a430dfa5c26197246
3,659
py
Python
autotest/ogr/ogr_avc.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
1
2020-02-22T01:28:29.000Z
2020-02-22T01:28:29.000Z
autotest/ogr/ogr_avc.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
1
2016-04-04T09:14:19.000Z
2016-04-14T19:17:10.000Z
autotest/ogr/ogr_avc.py
pramsey/gdal
965421b79fe4d3332b0f2f633b072fdcab2b700a
[ "MIT" ]
2
2018-05-08T01:51:34.000Z
2019-06-26T05:08:56.000Z
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test OGR AVCE00 and AVCBin drivers # Author: Even Rouault, <even dot rouault at mines dash paris dot org> # #######################################################...
30.491667
145
0.587046
bd758f08f68601686388fe7ed049097551c388e7
6,985
py
Python
log_caspase/model_211.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_caspase/model_211.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_caspase/model_211.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('C6A', ['C8pro']) Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C3ub') Monomer('C3A', ['Xiap', 'ParpU', 'C6pro']) Mo...
69.85
296
0.818039
4eb1d9a19274253aa426c8da0ef7f8f6cd6e1178
348
py
Python
seaice/sedna/test/test_cli_util.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
2
2020-08-27T08:40:22.000Z
2021-04-14T15:42:09.000Z
seaice/sedna/test/test_cli_util.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
null
null
null
seaice/sedna/test/test_cli_util.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
null
null
null
import os import unittest import seaice.sedna.cli.util as util class Test_load_config(unittest.TestCase): def test_returns_empty_with_default_configfile_which_does_not_exist(self): assert not os.path.exists(util.DEFAULT_CONFIG_FILE) actual = util.load_config(util.DEFAULT_CONFIG_FILE) s...
23.2
78
0.770115
f1f4b00ff0b2814643df2126b68e58e981813077
8,671
py
Python
trax/trax/models.py
christianlupus/trax
85af6f908cbf55584f74856207ae3f6530728ccb
[ "MIT" ]
4
2021-01-19T16:12:24.000Z
2021-08-05T07:25:44.000Z
trax/trax/models.py
christianlupus/trax
85af6f908cbf55584f74856207ae3f6530728ccb
[ "MIT" ]
1
2021-03-18T20:44:01.000Z
2021-03-18T20:44:01.000Z
trax/trax/models.py
christianlupus/trax
85af6f908cbf55584f74856207ae3f6530728ccb
[ "MIT" ]
1
2021-08-16T01:10:52.000Z
2021-08-16T01:10:52.000Z
import datetime import requests import pytz import json import croniter from django.db import models, transaction from django.utils import timezone from django.forms import ValidationError from django.utils.text import slugify from django.core.exceptions import ValidationError from django.template import loader, Conte...
30.212544
97
0.645024
13bb5df25e7af9b05f01bc2213f1821e13477479
671
py
Python
irekua_filters/users/users.py
CONABIO-audio/irekua-filters
ea340238d8db85c72d96ac010e3390e975d24c16
[ "BSD-4-Clause" ]
null
null
null
irekua_filters/users/users.py
CONABIO-audio/irekua-filters
ea340238d8db85c72d96ac010e3390e975d24c16
[ "BSD-4-Clause" ]
8
2020-03-17T04:08:41.000Z
2022-03-12T00:03:16.000Z
irekua_filters/users/users.py
CONABIO-audio/irekua-filters
ea340238d8db85c72d96ac010e3390e975d24c16
[ "BSD-4-Clause" ]
null
null
null
from django.utils.translation import gettext as _ from django_filters import FilterSet from irekua_database.models import User class Filter(FilterSet): class Meta: model = User fields = { 'username': ['exact', 'icontains'], 'email': ['exact'], 'first_name': ['...
19.735294
49
0.546945
e78d7a078fafd3926544d1bf7aaed2b3ba393fe7
355
py
Python
db_upgrade.py
Amperture/flask-mega-tutorial
e98200e0f85c1e4ad69a7dfde5f48fd70707f2f9
[ "MIT" ]
null
null
null
db_upgrade.py
Amperture/flask-mega-tutorial
e98200e0f85c1e4ad69a7dfde5f48fd70707f2f9
[ "MIT" ]
null
null
null
db_upgrade.py
Amperture/flask-mega-tutorial
e98200e0f85c1e4ad69a7dfde5f48fd70707f2f9
[ "MIT" ]
null
null
null
#!flask/bin/python from migrate.versioning import api from config import SQLALCHEMY_DATABASE_URI from config import SQLALCHEMY_MIGRATE_REPO api.upgrade( SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO) v = api.db_version( SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO) print('Curr...
20.882353
44
0.757746
1c4319f777093247b8f9e9c7bd3a0e82affbfe84
4,744
py
Python
visigoth/utils/hue_manager/discrete_hue_manager.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
null
null
null
visigoth/utils/hue_manager/discrete_hue_manager.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
1
2021-01-26T16:55:48.000Z
2021-09-03T15:29:14.000Z
visigoth/utils/hue_manager/discrete_hue_manager.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # visigoth: A lightweight Python3 library for rendering data visualizations in SVG # Copyright (C) 2020-2021 Visigoth Developers # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to...
36.775194
104
0.621206
d26b402fd4f899fab0dc6d4c7ca1d33b28c4bef7
287
py
Python
snmp/list-products/list-extreme-products.py
alexanderfefelov/scripts
8e8f0e66a130a1ac69ef76ddcf4cced169e5a75b
[ "MIT" ]
1
2022-01-01T15:24:55.000Z
2022-01-01T15:24:55.000Z
snmp/list-products/list-extreme-products.py
alexanderfefelov/scripts
8e8f0e66a130a1ac69ef76ddcf4cced169e5a75b
[ "MIT" ]
null
null
null
snmp/list-products/list-extreme-products.py
alexanderfefelov/scripts
8e8f0e66a130a1ac69ef76ddcf4cced169e5a75b
[ "MIT" ]
1
2021-03-02T17:53:42.000Z
2021-03-02T17:53:42.000Z
#!/usr/bin/env python3 from mibs.Extreme_EXTREME_BASE_MIB_mib import MIB product_oid = MIB['nodes']['extremeProduct']['oid'] products = [x for x in MIB['nodes'] if MIB['nodes'][x]['oid'].startswith(product_oid + '.')] for node in products: print(node, MIB['nodes'][node]['oid'])
26.090909
92
0.682927
43df458c9e19c3f0fee282413d030f5ccfcfc5c2
3,401
py
Python
NotIncluded/Examples/BASIN-ATTRACTION-GK.py
DaluS/GEMMES
10d4a062004ce5b7fd26eb8c4937d940b7d097d5
[ "MIT" ]
4
2021-06-28T07:11:34.000Z
2022-01-11T13:43:17.000Z
NotIncluded/Examples/BASIN-ATTRACTION-GK.py
DaluS/GEMMES
10d4a062004ce5b7fd26eb8c4937d940b7d097d5
[ "MIT" ]
167
2021-06-28T07:10:21.000Z
2022-03-18T17:30:40.000Z
NotIncluded/Examples/BASIN-ATTRACTION-GK.py
DaluS/GEMMES
10d4a062004ce5b7fd26eb8c4937d940b7d097d5
[ "MIT" ]
3
2021-06-28T07:19:12.000Z
2022-03-03T02:44:15.000Z
# -*- coding: utf-8 -*- ''' This Example shows how to compute a Basin of Attraction for a Goodwin-Keen system ''' import imageio # Library to record gif of construction import cv2 # To detect basin limit import numpy as np import pygemmes as pgm import matplotlib.pyplot as plt #####################################...
32.390476
92
0.554837
171cd5b76d815fee846625f08592d7b1eb4cc354
241
py
Python
pyeccodes/defs/mars/grib_edmm_an_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/mars/grib_edmm_an_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/mars/grib_edmm_an_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): h.alias('mars.step', 'startStep') h.alias('mars.number', 'perturbationNumber') h.alias('monthlyVerificationTime', 'validityTime') h.alias('monthlyVerificationDate', 'dataDate')
24.1
54
0.705394
3ff5223f97fa120fb5eafafc4cbe4790ff9a47da
713
py
Python
blog/migrations/0007_auto_20220425_1925.py
imanbayati/my-site
ffe920730de29b64c16502fbd1bf8b4f0728359e
[ "MIT" ]
null
null
null
blog/migrations/0007_auto_20220425_1925.py
imanbayati/my-site
ffe920730de29b64c16502fbd1bf8b4f0728359e
[ "MIT" ]
null
null
null
blog/migrations/0007_auto_20220425_1925.py
imanbayati/my-site
ffe920730de29b64c16502fbd1bf8b4f0728359e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.12 on 2022-04-25 14:55 from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0004_alter_taggeditem_content_type_alter_taggeditem_tag'), ('blog', '0006_auto_20220308_1442'), ] operations = [ ...
28.52
162
0.628331
3d427f24b143800ef4dd21073d63e4dee3211a13
4,827
py
Python
docs/conf.py
MridulS/nbreproduce
c1c66ec66fb3cea652ee3618b9b43f780975c0f5
[ "BSD-3-Clause" ]
9
2020-06-29T23:33:01.000Z
2021-11-16T11:50:10.000Z
docs/conf.py
econ-ark/nbreproduce
c1c66ec66fb3cea652ee3618b9b43f780975c0f5
[ "BSD-3-Clause" ]
10
2020-07-16T15:10:55.000Z
2021-12-03T17:00:14.000Z
docs/conf.py
econ-ark/nbreproduce
c1c66ec66fb3cea652ee3618b9b43f780975c0f5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # nbreproduce documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # #...
29.613497
77
0.687176
9374701e98274addccf48b2556686f38fe8aa145
1,139
py
Python
test/configuration_v1/test_alerting_profiles.py
jimm-with-a-j/dt-api
cf0df2c05d800dd9d768869d4722d2251b758962
[ "Apache-2.0" ]
null
null
null
test/configuration_v1/test_alerting_profiles.py
jimm-with-a-j/dt-api
cf0df2c05d800dd9d768869d4722d2251b758962
[ "Apache-2.0" ]
null
null
null
test/configuration_v1/test_alerting_profiles.py
jimm-with-a-j/dt-api
cf0df2c05d800dd9d768869d4722d2251b758962
[ "Apache-2.0" ]
null
null
null
from dynatrace import Dynatrace from dynatrace.configuration_v1.alerting_profiles import AlertingProfileStub, AlertingProfile, AlertingProfileSeverityRule from dynatrace.pagination import PaginatedList def test_list(dt: Dynatrace): alert_profiles = dt.alerting_profiles.list() assert isinstance(alert_profiles,...
36.741935
122
0.787533
ddf05dfbc09332bc8ed4204a55fa4d22fe81fd3d
12,013
py
Python
utils.py
singhsourabh/Resume-NER
57ce64f3bf7f76180d53e8fefb488fef79289bfe
[ "MIT" ]
30
2020-08-28T17:19:23.000Z
2022-02-25T08:59:28.000Z
utils.py
singhsourabh/Resume-NER
57ce64f3bf7f76180d53e8fefb488fef79289bfe
[ "MIT" ]
4
2020-08-21T06:29:06.000Z
2022-03-28T10:50:57.000Z
utils.py
singhsourabh/Resume-NER
57ce64f3bf7f76180d53e8fefb488fef79289bfe
[ "MIT" ]
15
2021-01-06T18:16:58.000Z
2022-03-28T06:29:54.000Z
import re import json import logging import numpy as np from tqdm import trange import torch from torch.utils.data import Dataset, DataLoader, RandomSampler, SequentialSampler from seqeval.metrics import classification_report from sklearn.metrics import confusion_matrix def convert_goldparse(dataturks_JSON_FilePath):...
34.127841
110
0.575876
6c8785aa046f2fd57933af40ba564635863d883e
1,821
py
Python
DFN/src/fracture.py
angelobattaglia/Discrete-Fracture-Network
5d785c5b8f7a4f2b62bbcab4b7ec8c068f50445a
[ "MIT" ]
1
2021-05-02T20:22:47.000Z
2021-05-02T20:22:47.000Z
DFN/src/fracture.py
angelobattaglia/Discrete-Fracture-Network
5d785c5b8f7a4f2b62bbcab4b7ec8c068f50445a
[ "MIT" ]
null
null
null
DFN/src/fracture.py
angelobattaglia/Discrete-Fracture-Network
5d785c5b8f7a4f2b62bbcab4b7ec8c068f50445a
[ "MIT" ]
null
null
null
import numpy as np import matlab_clones as mc class Fracture: """ Classe per la descrizione delle fratture: riceve i vari parametri in ingresso ed effettua le dovute rotazioni """ def __init__(self, n, rx, alpha, ar, v, bar): """ Costruttore della classe :param n: numero di ve...
36.42
113
0.575508
b1c750f62269b6f164f32ce6ce6251f95332a484
5,137
py
Python
trace/tests/unit/gapic/v2/test_trace_service_client_v2.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
1
2019-01-23T21:54:51.000Z
2019-01-23T21:54:51.000Z
trace/tests/unit/gapic/v2/test_trace_service_client_v2.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
1
2018-04-06T19:51:23.000Z
2018-04-06T19:51:23.000Z
trace/tests/unit/gapic/v2/test_trace_service_client_v2.py
nielm/google-cloud-python
fd126fdea34206109eb00d675374ff7dc4dcc5ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2019 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...
33.141935
88
0.662254