hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79e680515c80cfe458d6cf26cbe5a53ec6215fed
11,212
py
Python
atomic_reactor/utils/cachito.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
16
2019-07-04T16:00:13.000Z
2022-01-28T19:51:58.000Z
atomic_reactor/utils/cachito.py
containerbuildsystem/atomic-reactor
5734a189fc79245d99610f3a81b3aee9913db355
[ "BSD-3-Clause" ]
577
2019-06-03T07:53:16.000Z
2022-03-31T04:01:23.000Z
atomic_reactor/utils/cachito.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
17
2020-02-21T13:30:06.000Z
2022-02-15T10:42:32.000Z
""" Copyright (c) 2019 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from textwrap import dedent import json import logging import requests import time from atomic_reactor.constants import REMOTE_SOURCE_TARBAL...
42.469697
100
0.631199
79e6a124c0323ad9d45e7f2c32f13fd836072170
1,086
py
Python
setup.py
ICRAR/mwa-voltage
a3606faeeb27853c6b9672b51b5e5650f372b6c9
[ "MIT" ]
null
null
null
setup.py
ICRAR/mwa-voltage
a3606faeeb27853c6b9672b51b5e5650f372b6c9
[ "MIT" ]
null
null
null
setup.py
ICRAR/mwa-voltage
a3606faeeb27853c6b9672b51b5e5650f372b6c9
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools import find_packages from subprocess import check_output #The following two functions were taken from the repo: https://github.com/pyfidelity/setuptools-git-version/blob/master/setuptools_git_version.py def format_version(version, fmt='{tag}.{commitcount}'): parts = ver...
33.9375
145
0.683241
79e6a687633bc3eda7c1e080621d719aa0392670
10,704
py
Python
tests/sentry/plugins/mail/tests.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
tests/sentry/plugins/mail/tests.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/plugins/mail/tests.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import mock from django.core import mail from django.utils import timezone from exam import fixture from mock import Mock from sentry.digests.notifications import ( build_digest, event_to_record, ) from sentry.interfaces.stacktrace import Stackt...
33.766562
105
0.626775
79e6c310ac74b85a0f05d1178278534dd2f12d6d
1,934
py
Python
docs/source/conf.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
1,586
2020-01-07T10:53:31.000Z
2022-03-31T16:15:42.000Z
docs/source/conf.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
398
2020-01-29T16:31:44.000Z
2022-03-11T21:22:10.000Z
docs/source/conf.py
w-michal/papermerge
14703c3316deea06696da041b7adc4bd0b15270b
[ "Apache-2.0" ]
196
2020-01-29T09:25:16.000Z
2022-03-29T11:08:35.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
35.163636
79
0.66908
79e6f7bd3e1d170eb3357d9becaac0e48bca8f36
8,635
py
Python
srcflib/tasks/membership.py
SRCF/SRCFLib
1483dbf2abb8dd36268bd1c49abe5385d7a501aa
[ "MIT" ]
null
null
null
srcflib/tasks/membership.py
SRCF/SRCFLib
1483dbf2abb8dd36268bd1c49abe5385d7a501aa
[ "MIT" ]
2
2020-08-23T17:23:44.000Z
2020-12-21T17:05:50.000Z
srcflib/tasks/membership.py
SRCF/SRCFLib
1483dbf2abb8dd36268bd1c49abe5385d7a501aa
[ "MIT" ]
null
null
null
""" Creation and management of member and society accounts. """ import os from typing import Set from srcf.database import Member, Society from srcf.database.queries import get_member, get_society from ..plumbing import bespoke, mailman, pgsql as pgsql_p, ResultSet, unix from ..plumbing.mysql import context as mysql...
44.282051
99
0.618877
79e72119600649c59c816a3680bc905f1b868178
19
py
Python
OS/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
OS/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
OS/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
from ._os import *
9.5
18
0.684211
79e721dab422c1449214acbe5fc1643edc3a9db0
1,697
bzl
Python
tensorflow/version_check.bzl
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/version_check.bzl
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/version_check.bzl
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
""" Helpers to check minimum version of bazel.""" def _extract_version_number(bazel_version): """Extracts the semantic version number from a version string Args: bazel_version: the version string that begins with the semantic version e.g. "1.2.3rc1 abc1234" where "abc1234" is a commit hash. Returns: ...
34.632653
103
0.711844
79e7585e28ea5f8d15fd0b663351c8435a252cd3
1,439
py
Python
pyOCD/target/target_lpc800.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
2
2019-07-18T06:51:27.000Z
2021-06-30T00:36:12.000Z
pyOCD/target/target_lpc800.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
null
null
null
pyOCD/target/target_lpc800.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
1
2017-07-20T20:47:18.000Z
2017-07-20T20:47:18.000Z
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2013 ARM Limited 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 ...
34.261905
100
0.695622
79e758c8ab2c3cd351fbb886f0b2bdbc63ec83dc
418
py
Python
userbot/plugins/rain.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
3
2020-12-12T21:27:05.000Z
2021-06-28T04:36:07.000Z
userbot/plugins/rain.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
4
2021-05-11T06:08:16.000Z
2021-06-08T18:00:07.000Z
userbot/plugins/rain.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
8
2020-12-12T13:52:20.000Z
2021-06-20T14:08:06.000Z
# Originally created By KingMars ✅ Rain Sequence 2 {Updated} import asyncio from collections import deque from telethon import events @borg.on(events.NewMessage(pattern=r"\.km_rain2", outgoing=True)) async def _(event): if event.fwd_from: return deq = deque(list("☁️⛈Ř/~\İŇ🌬⚡🌪")) for _ in range(...
24.588235
65
0.655502
79e771d2eeed3acc26ca4b70943adac17d3de08a
8,810
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/operations/_iot_hub_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/operations/_iot_hub_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2019_07_01_preview/operations/_iot_hub_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.97561
191
0.681952
79e77580e5601c48c2b5cccfef052f07289cd43a
1,197
py
Python
amatino/internal/url_target.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
2
2018-07-20T20:00:33.000Z
2020-10-08T15:49:06.000Z
amatino/internal/url_target.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
1
2020-05-21T02:49:29.000Z
2020-05-21T02:49:29.000Z
amatino/internal/url_target.py
Amatino-Code/amatino-python
6c5f66b2e61bede5bf9d3e6eee8130a16f511a5f
[ "MIT" ]
3
2018-09-03T09:31:31.000Z
2020-05-21T05:30:00.000Z
""" Amatino API Python Bindings Url Target Module Author: hugh@amatino.io """ from typing import Type from typing import TypeVar from typing import List T = TypeVar('T', bound='UrlTarget') class UrlTarget: """Internal class handling individual url parameter components""" def __init__(self, key: str, value: ...
23.019231
69
0.579783
79e776597fd4aef91da7a6db242a9c6bf9e48f75
485
py
Python
DDetector/Logisticegressiom.py
neiterman21/cheat_detector_keras
a6e9f6e8c55614959ddeeebcaf578ec43edf8d6d
[ "MIT" ]
null
null
null
DDetector/Logisticegressiom.py
neiterman21/cheat_detector_keras
a6e9f6e8c55614959ddeeebcaf578ec43edf8d6d
[ "MIT" ]
null
null
null
DDetector/Logisticegressiom.py
neiterman21/cheat_detector_keras
a6e9f6e8c55614959ddeeebcaf578ec43edf8d6d
[ "MIT" ]
null
null
null
# model definition (canonical way) import tensorflow as tf class LogisticRegression(tf.keras.Model): def __init__(self, num_classes): super(LogisticRegression, self).__init__() self.dense = tf.keras.layers.Dense(num_classes) def call(self, inputs, training=None, mask=None): output = se...
28.529412
55
0.657732
79e78919fd95816fa7a68b28baeae0f12c38d418
967
py
Python
toontown/ai/DistributedResistanceEmoteMgrAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/ai/DistributedResistanceEmoteMgrAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/ai/DistributedResistanceEmoteMgrAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI from direct.distributed.ClockDelta import * from direct.fsm.FSM import FSM from otp.otpbase.OTPLocalizerEnglish import EmoteFuncDict class DistributedResistanceEmoteMgrAI(DistributedObjectAI, FSM):...
35.814815
91
0.738366
79e7ab42edf9ab45e8975ed60109a570d1f8dc4f
11,778
py
Python
UMA-TEST/tracker/Siamese_inference/Siamese_tracker.py
yinjunbo/UMA-MOT
46110c3fae15d440cc3e6b1ac49fc1272082c212
[ "MIT" ]
90
2020-03-26T02:12:21.000Z
2022-03-08T06:32:24.000Z
UMA-TEST/tracker/Siamese_inference/Siamese_tracker.py
yinjunbo/UMA-MOT
46110c3fae15d440cc3e6b1ac49fc1272082c212
[ "MIT" ]
7
2020-05-13T03:07:03.000Z
2022-03-08T06:34:02.000Z
UMA-TEST/tracker/Siamese_inference/Siamese_tracker.py
yinjunbo/UMA-MOT
46110c3fae15d440cc3e6b1ac49fc1272082c212
[ "MIT" ]
16
2020-03-26T10:21:08.000Z
2022-02-21T10:49:40.000Z
import logging import numpy as np from tracker.Siamese_utils.infer_utils import convert_bbox_format, Rectangle from tracker.Siamese_utils.misc_utils import get_center class TargetState(object): """Represent the target state.""" def __init__(self, bbox, search_pos, scale_idx, his_feature, original_search_center, ...
47.491935
160
0.671931
79e7b622f92cebdfb1d6d2e04f609d8527c592b6
1,444
py
Python
djcelery_testworker/tests.py
RentMethod/django-celery-testworker
75079196f66a18474d5c9c1cb67c24a31198b831
[ "BSD-3-Clause" ]
7
2015-11-16T01:35:17.000Z
2021-11-12T19:10:26.000Z
djcelery_testworker/tests.py
RentMethod/django-celery-testworker
75079196f66a18474d5c9c1cb67c24a31198b831
[ "BSD-3-Clause" ]
null
null
null
djcelery_testworker/tests.py
RentMethod/django-celery-testworker
75079196f66a18474d5c9c1cb67c24a31198b831
[ "BSD-3-Clause" ]
4
2015-07-19T16:35:04.000Z
2021-02-11T10:07:35.000Z
from testcase import CeleryWorkerTestCase from tasks import multiply from random import randrange import celery import time class WorkerRunsTestCase(CeleryWorkerTestCase): def test_single_task(self): """ This test requires celery to be running to succeed """ a = randrange(1,10) ...
27.245283
96
0.614266
79e7c7518314665355d56855ac81977d94b671f7
260
py
Python
lang/python/xlsx/xlrd_test.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/xlsx/xlrd_test.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/xlsx/xlrd_test.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
#! /usr/bin/env python2 import xlrd def readXlsx(fn): bk = xlrd.open_workbook(fn) sht = bk.sheet_by_index(0) for i in range(1, sht.nrows): line = sht.row_values(i) print line if __name__ == "__main__": readXlsx('test.xlsx')
17.333333
33
0.619231
79e7e152e5423d8f282592864427c651997772cb
4,747
py
Python
app/base/ssh_client.py
nimar3/pizarra
4553da21b881c8c7eef6850452bc037af721feb0
[ "MIT" ]
null
null
null
app/base/ssh_client.py
nimar3/pizarra
4553da21b881c8c7eef6850452bc037af721feb0
[ "MIT" ]
null
null
null
app/base/ssh_client.py
nimar3/pizarra
4553da21b881c8c7eef6850452bc037af721feb0
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # """ # License: MIT # Copyright (c) 2020 - Pizarra # """ # taken from https://github.com/hackersandslackers/paramiko-tutorial import logging from flask import current_app from paramiko import SSHClient, AutoAddPolicy, RSAKey from paramiko.auth_handler import AuthenticationException, SS...
32.513699
101
0.595323
79e82aa2cbddbda00480a93b52ad6ca816791c0a
2,273
py
Python
scripts/migrations/028-remove-svn-trees.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2017-07-31T23:13:58.000Z
2017-07-31T23:13:58.000Z
scripts/migrations/028-remove-svn-trees.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
scripts/migrations/028-remove-svn-trees.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
40.589286
95
0.651562
79e83796784a7a38cf35e172780a64069ad45663
23,381
py
Python
test/vanilla/low-level/AcceptanceTests/asynctests/test_http.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/AcceptanceTests/asynctests/test_http.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/AcceptanceTests/asynctests/test_http.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
43.540037
182
0.813139
79e84cd402400bd50d11e9db0db308f3f989742c
16,767
py
Python
database_creator.py
Dainean/astro_UFS
324ffbd9c32ea8f1625b1c041ad1ef0f2b962049
[ "MIT" ]
null
null
null
database_creator.py
Dainean/astro_UFS
324ffbd9c32ea8f1625b1c041ad1ef0f2b962049
[ "MIT" ]
1
2020-08-31T08:22:04.000Z
2020-08-31T08:22:04.000Z
database_creator.py
Dainean/astro_UFS
324ffbd9c32ea8f1625b1c041ad1ef0f2b962049
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 18 14:56:53 2020 @author: Dainean """ #Prepare the python system import pandas as pd import numpy as np import fnmatch #For filtering import os #move around in our OS from astropy.io import fits #Working with fits from astropy.cosmology import WMAP9 as cosmo #C...
38.193622
127
0.618059
79e8679744272dff2dbbe4adbd4cf23c80653299
6,670
py
Python
tencentcloud/gaap/v20180529/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
37
2017-10-12T01:50:42.000Z
2022-02-24T02:44:45.000Z
tencentcloud/gaap/v20180529/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
null
null
null
tencentcloud/gaap/v20180529/errorcodes.py
lleiyyang/tencentcloud-sdk-python
e6e6a4ce89286673b2322ae92d3c2fbf8665aa0b
[ "Apache-2.0" ]
12
2018-07-31T10:04:56.000Z
2022-02-07T00:08:06.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
31.168224
103
0.855022
79e86d194f04294924df6c90fa8aee9adf9a5bd2
1,796
py
Python
python-code/opencv-learning/tiny-apps/sleepy-eye-detect.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/opencv-learning/tiny-apps/sleepy-eye-detect.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/opencv-learning/tiny-apps/sleepy-eye-detect.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
#coding:utf-8 import cv2 from functools import wraps from pygame import mixer import time lastsave = 0 def counter(func): @wraps(func) def tmp(*args, **kwargs): tmp.count += 1 global lastsave if time.time() - lastsave > 3: # this is in seconds, so 5 minutes = 300 seconds ...
23.631579
100
0.60245
79e86f2a7239c66114140b0bda5055868a84a80a
16,653
py
Python
alignment/views.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
alignment/views.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
alignment/views.py
Jimmy-A-Caroli/protwis
8987947f9325b2e331e957587cda39e4995628f5
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render, redirect from django.conf import settings from django.http import HttpResponse from django.views.generic import TemplateView from django.db.models import Case, When from django.core.cache import cache from django.core.cache import caches try: cache_alignment = caches['alignment...
34.69375
215
0.67129
79e8713106fa7ba106729036ee954112eacdffcd
479
py
Python
balance/serializers.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
187
2018-03-08T11:18:11.000Z
2021-12-26T13:29:02.000Z
balance/serializers.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
67
2018-03-09T14:56:47.000Z
2021-06-24T08:52:40.000Z
balance/serializers.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
52
2018-03-08T11:18:12.000Z
2021-08-02T16:07:04.000Z
from rest_framework import serializers from balance.models import Record class BalanceSerializer(serializers.ModelSerializer): class Meta: model = Record fields = ( 'reward_type', 'coin_type', 'amount', 'description', 'user', ) ...
20.826087
53
0.492693
79e8b12cf7b453c5dbaaaf0e400184b8af8c9cb6
23,591
py
Python
storm_control/sc_hardware/thorlabs/ucScientificCamera.py
BogdanBintu/Megafish
bc310172b4e85813d8cfc44b55ffec3bd5dc3a3c
[ "MIT" ]
null
null
null
storm_control/sc_hardware/thorlabs/ucScientificCamera.py
BogdanBintu/Megafish
bc310172b4e85813d8cfc44b55ffec3bd5dc3a3c
[ "MIT" ]
null
null
null
storm_control/sc_hardware/thorlabs/ucScientificCamera.py
BogdanBintu/Megafish
bc310172b4e85813d8cfc44b55ffec3bd5dc3a3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Captures pictures from a Thorlabs Scientific series cameras (such as Zelux). This follows the structure of uc480 written by Hazen Run python setup.py install inside: Temp1_Scientific_Camera_Interfaces-Rev_H.zip\Scientific Camera Interfaces\SDK\Python Compact Scientific Camera Toolkit\thorlabs...
33.040616
220
0.583485
79e8d71f25ca4807cc164a8101f54e00052ad2e2
9,403
py
Python
oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/panel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/panel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/panel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, unicode_literals import uuid from collections import defaultdict from copy import copy from django.conf.urls import url from django.db import connections from django.utils.translation import ugettext_lazy as _, ungettext_lazy as __ from debug_toolbar.panels import Pa...
38.695473
100
0.555248
79e8e88ffe4f3fee5d72057f47947b84901b7ee2
3,009
py
Python
river/tree/nodes/arf_htr_nodes.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/tree/nodes/arf_htr_nodes.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/tree/nodes/arf_htr_nodes.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
from .arf_htc_nodes import BaseRandomLeaf from .htr_nodes import LeafAdaptive, LeafMean, LeafModel class RandomLeafMean(BaseRandomLeaf, LeafMean): """ARF learning Node for regression tasks that always use the average target value as response. Parameters ---------- stats In regression task...
33.065934
89
0.678631
79e912407256e7156946a8d68088d1a6dfd27c6a
44,067
py
Python
python_modules/dagster/dagster/core/definitions/graph_definition.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/graph_definition.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/definitions/graph_definition.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from typing import ( TYPE_CHECKING, AbstractSet, Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union, cast, ) from toposort import CircularDependencyError, toposort_flatten from dagster import check from dagster.config im...
43.118395
133
0.642794
79e921ccbc7bbe7f4ad6d9c83f513b62183366cf
14
py
Python
sisyphus/__init__.py
libfirm/sisyphus
107419fd895c929423a58c1c47d3245cd2e25fed
[ "MIT" ]
5
2017-03-15T04:45:56.000Z
2020-09-09T23:23:59.000Z
sisyphus/__init__.py
PaulBone/sisyphus
b30cf61707ced65937c843c3adcf9761b2704413
[ "MIT" ]
1
2020-09-09T23:33:27.000Z
2020-09-09T23:33:27.000Z
sisyphus/__init__.py
PaulBone/sisyphus
b30cf61707ced65937c843c3adcf9761b2704413
[ "MIT" ]
2
2018-02-07T17:59:53.000Z
2020-09-09T23:24:20.000Z
VERSION="0.3"
7
13
0.642857
79e94352866a3e93e3886b76ea63e101cabc5cbd
1,514
py
Python
wc_model_gen/prokaryote/core.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
6
2018-12-24T16:20:11.000Z
2022-01-26T23:38:25.000Z
wc_model_gen/prokaryote/core.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
15
2018-08-08T20:34:40.000Z
2021-10-31T20:08:40.000Z
wc_model_gen/prokaryote/core.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
2
2019-04-05T16:11:57.000Z
2020-04-29T14:14:30.000Z
""" Generator for models based on KBs for random in silico organisms :Author: Jonathan Karr <karr@mssm.edu> :Date: 2018-06-11 :Copyright: 2018, Karr Lab :License: MIT """ import wc_model_gen from .initalize_model import InitalizeModel from .metabolism import MetabolismSubmodelGenerator from .transcription import Tran...
33.644444
72
0.731176
79e944742379ad9a6cb1f52a1f925971c701479a
16,112
py
Python
platon/_utils/events.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/_utils/events.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
platon/_utils/events.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
from abc import ( ABC, abstractmethod, ) from enum import Enum import itertools from typing import ( TYPE_CHECKING, Any, Collection, Dict, Iterable, List, Optional, Sequence, Tuple, Union, cast, ) from platon_abi import ( grammar, ) from platon_abi.codec import (...
30.8659
118
0.65535
79e957000adf693576e062566662558b7e432ca2
745
py
Python
picatrix/version.py
google/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
27
2020-10-23T14:45:14.000Z
2022-03-31T14:57:58.000Z
picatrix/version.py
mariuszlitwin/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
15
2020-10-20T04:10:26.000Z
2021-11-01T16:57:37.000Z
picatrix/version.py
mariuszlitwin/picatrix
4e7f20f238c0f204e332a8a25dac1c0d529ed9ef
[ "Apache-2.0" ]
12
2020-10-17T11:06:10.000Z
2022-01-27T12:37:49.000Z
# Copyright 2020 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...
33.863636
74
0.754362
79e9817a94c734a2546a9959732925381c54a36c
5,485
py
Python
modules/games/hangman.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
null
null
null
modules/games/hangman.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
null
null
null
modules/games/hangman.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
null
null
null
import asyncio from modules.games.util.game import Game HANGMAN_EMOJI_HEAD = "<:head:542748031196332051>" HANGMAN_EMOJIS_ARMS = ["<:arms0:542748031393464320>", "<:arms1:542748031494258708>", "<:arms2:542748031573950464>"] HANGMAN_EMOJIS_LEGS = ["<:legs1:5427480314608353...
36.812081
112
0.567366
79e9b1f34978dc580813f8b510f682ccaf075e31
10,676
py
Python
SCRAPE/Lib/site-packages/pandas/tests/frame/test_ufunc.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1
2022-03-17T12:56:14.000Z
2022-03-17T12:56:14.000Z
SCRAPE/Lib/site-packages/pandas/tests/frame/test_ufunc.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
5
2022-02-13T14:38:04.000Z
2022-02-15T00:13:07.000Z
SCRAPE/Lib/site-packages/pandas/tests/frame/test_ufunc.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4
2022-02-04T22:58:27.000Z
2022-02-14T19:29:18.000Z
from functools import partial import numpy as np import pytest from pandas.compat.numpy import np_version_gte1p22 import pandas.util._test_decorators as td import pandas as pd import pandas._testing as tm from pandas.api.types import is_extension_array_dtype dtypes = [ "int64", "Int64", {"A": "int64", "...
34.43871
88
0.618584
79e9f8dd6480b4b11fb10fd8cbad9100700e5938
1,393
py
Python
cyborg/common/utils.py
LiuLifan8/cyborg
aef91aa8d7ef856b0293a05f01e044f090d37c97
[ "Apache-2.0" ]
null
null
null
cyborg/common/utils.py
LiuLifan8/cyborg
aef91aa8d7ef856b0293a05f01e044f090d37c97
[ "Apache-2.0" ]
null
null
null
cyborg/common/utils.py
LiuLifan8/cyborg
aef91aa8d7ef856b0293a05f01e044f090d37c97
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Huawei Technologies Co.,LTD. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
31.659091
79
0.704235
79e9fb179f3bbde8e4781c1ba4a9b548296b41ec
94
py
Python
Florence/Tensor/__init__.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
65
2017-08-04T10:21:13.000Z
2022-02-21T21:45:09.000Z
Florence/Tensor/__init__.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
6
2018-06-03T02:29:20.000Z
2022-01-18T02:30:22.000Z
Florence/Tensor/__init__.py
jdlaubrie/florence
830dca4a34be00d6e53cbec3007c10d438b27f57
[ "MIT" ]
10
2018-05-30T09:44:10.000Z
2021-05-18T08:06:51.000Z
# import Tensors as tensor from .Tensors import * from .LinAlg import * from .Numeric import *
23.5
26
0.755319
79e9fc2c485ec701c39aa8674013bbdbfd41ca55
81,962
py
Python
neon/backends/cc2.py
zhenglab/neon
ba5b008a03001c2a2e38a1e688b4f265c6461539
[ "Apache-2.0" ]
3
2017-02-02T05:20:48.000Z
2021-07-07T16:50:41.000Z
neon/backends/cc2.py
tambetm/neon
1597082ad0bab59102f1ceb20feb08c5a0bf9d04
[ "Apache-2.0" ]
null
null
null
neon/backends/cc2.py
tambetm/neon
1597082ad0bab59102f1ceb20feb08c5a0bf9d04
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright 2014 Nervana Systems 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.o...
44.739083
79
0.558783
79ea07903e208b975dc64d7d5510d1a373d95726
947
py
Python
SmallObjectAugmentation/demo.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
SmallObjectAugmentation/demo.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
SmallObjectAugmentation/demo.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import os import random from os.path import join # from tqdm import tqdm import aug as am import Helpers as hp from util import * base_dir = os.getcwd() save_base_dir = join(base_dir, 'dpjsave') check_dir(save_base_dir) imgs_dir = [f.strip() for f in open(join(base_dir, 'sea.txt')).readlines()] labels_dir = hp.re...
26.305556
98
0.694826
79ea1c81a6df0d14a8ddb983f3e8032ab511b4b1
2,596
py
Python
engine/cards/variable_setter.py
kaushal-py/GraceEngine
141547d0aa033eefbe0b0d0a20a43380b9ed84cd
[ "Apache-2.0" ]
4
2020-08-10T20:54:44.000Z
2021-09-24T00:49:41.000Z
engine/cards/variable_setter.py
kb-studios/GraceEngine
141547d0aa033eefbe0b0d0a20a43380b9ed84cd
[ "Apache-2.0" ]
8
2020-08-11T12:25:22.000Z
2022-02-27T09:40:18.000Z
engine/cards/variable_setter.py
kaushal-py/GraceEngine
141547d0aa033eefbe0b0d0a20a43380b9ed84cd
[ "Apache-2.0" ]
3
2020-08-12T09:00:52.000Z
2020-09-19T07:52:00.000Z
from engine.cards.card import Card from engine.cards.sticker import Sticker from engine.cards.expression import Expression # from card import Card # from sticker import Sticker # from expression import Expression class VariableSetter(Card): ''' For information on card and attributes and methods, refer p...
33.714286
92
0.628659
79ea22a32dcc430160603fae7515ecb6bb2f3d06
1,804
py
Python
test_scripts/subscribableWebObjects/testSubscribableWebObjects.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
test_scripts/subscribableWebObjects/testSubscribableWebObjects.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
test_scripts/subscribableWebObjects/testSubscribableWebObjects.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
31.649123
76
0.677384
79ea4887372bbc15d458fb4102ad966f2b248169
6,219
py
Python
optimize_images_x/gui/about_window.py
victordomingos/optimize-images-x
c21d23fc77392b2947c91ccb470defd591f3d7b4
[ "MIT" ]
14
2021-04-15T19:26:07.000Z
2022-01-08T15:23:05.000Z
optimize_images_x/gui/about_window.py
victordomingos/optimize-images-x
c21d23fc77392b2947c91ccb470defd591f3d7b4
[ "MIT" ]
2
2021-05-29T14:30:48.000Z
2021-06-14T20:55:07.000Z
optimize_images_x/gui/about_window.py
victordomingos/optimize-images-x
c21d23fc77392b2947c91ccb470defd591f3d7b4
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.font from tkinter import ttk from optimize_images_x import __version__ from optimize_images_x.calcs import human from optimize_images_x.global_setup import APP_NAME from optimize_images_x.global_setup import CREDITS, APP_LICENSE class ThanksWindow: def __init__(self): ...
35.135593
86
0.613764
79ea5f15afd63be82c4e67707e2c9bf6056466bf
23,212
py
Python
bin/cmake_build.py
jagt/bde-tools
1c93fea556dc0533e1503a7761e0f262263ff84a
[ "Apache-2.0" ]
null
null
null
bin/cmake_build.py
jagt/bde-tools
1c93fea556dc0533e1503a7761e0f262263ff84a
[ "Apache-2.0" ]
null
null
null
bin/cmake_build.py
jagt/bde-tools
1c93fea556dc0533e1503a7761e0f262263ff84a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import argparse import collections import errno import json import os import platform import shutil import subprocess import sys import multiprocessing #################################################################### # MSVC environment setup routines if...
36.786054
126
0.56613
79eaab8cfcafcb4b804f5b282d827ec710de3182
6,562
py
Python
pyproxy/pyproxy/coder_client.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
null
null
null
pyproxy/pyproxy/coder_client.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
1
2020-11-08T20:21:13.000Z
2020-11-08T20:21:13.000Z
pyproxy/pyproxy/coder_client.py
dburihabwa/recast
f7adbc344e174f48a919a651df54945ec9672201
[ "MIT" ]
3
2018-05-24T14:40:54.000Z
2021-07-10T17:54:26.000Z
""" Client implementation and util functions to interact with EncoderDecoder service """ #TODO: Move encode and decode calls to the CoderClient class import grpc from pyproxy.playcloud_pb2 import DecodeRequest, EncodeRequest, File, FragmentsNeededRequest, ReconstructRequest, Strip import pyproxy.coder.coding_servicer...
37.930636
119
0.639134
79eaaedd344cc17e48a0f230a9a3ce752fbc9177
25,036
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): # font # ---- @property def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now d...
34.6759
86
0.566544
79eafabf7688da16776f418c46c98255a6123006
3,345
py
Python
python/realbeam_experiments/numerical_damping_computeEnvelope.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
4
2022-02-10T02:28:42.000Z
2022-02-10T07:28:35.000Z
python/realbeam_experiments/numerical_damping_computeEnvelope.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
python/realbeam_experiments/numerical_damping_computeEnvelope.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Numerical Damping Compensation - Case A-1 # ------------------------------------------------------------------------------ ### Import some useful functions import sys sys.path.append('../') from pathlib import Path import numpy as np fr...
29.866071
147
0.581764
79eafb1ebfd8ca34e59522019c08ff0203608821
11,370
py
Python
tensorflow_probability/python/bijectors/chain.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/chain.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/bijectors/chain.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
36.325879
80
0.702814
79eb03d47097ff965c7218734232fef205519732
5,529
py
Python
thinAirfoil.py
cibinjoseph/thinAirfoilPy
eed2367aa978887df7491a4132fcc1b968346331
[ "MIT" ]
null
null
null
thinAirfoil.py
cibinjoseph/thinAirfoilPy
eed2367aa978887df7491a4132fcc1b968346331
[ "MIT" ]
null
null
null
thinAirfoil.py
cibinjoseph/thinAirfoilPy
eed2367aa978887df7491a4132fcc1b968346331
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy as np from scipy.integrate import simps import sys _nPoints = 5001 _eps = np.finfo(np.pi).eps def checkAirfoilType(airfoilCode): if len(airfoilCode) == 4: return 'NACA4' elif len(airfoilCode) == 5: return 'NACA5' else: raise ValueError('Invalid airf...
31.594286
77
0.524688
79eb03de0d249a879501f3ff1595cc033efea6f4
2,319
py
Python
app/core/migrations/0001_initial.py
hertweckhr1/api_foodcycle
b19f1a17779b36e2a7356f2914be3d8ab15a7a00
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
hertweckhr1/api_foodcycle
b19f1a17779b36e2a7356f2914be3d8ab15a7a00
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
hertweckhr1/api_foodcycle
b19f1a17779b36e2a7356f2914be3d8ab15a7a00
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-08 05:11 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
53.930233
266
0.62527
79eb28482ffd55ff469d0f17ac4c672180cb284d
8,571
py
Python
chapter6-improved-gan/wgan-mnist-6.1.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
3
2017-12-31T15:03:22.000Z
2021-03-10T09:39:08.000Z
chapter6-improved-gan/wgan-mnist-6.1.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
null
null
null
chapter6-improved-gan/wgan-mnist-6.1.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
9
2017-10-25T05:59:39.000Z
2020-04-16T08:51:47.000Z
'''Trains WGAN on MNIST using Keras Trains a GAN using Wassertein loss. Similar to DCGAN except for linear activation in output and use of n_critic training per adversarial training. Discriminator weights are clipped as a requirement of Lipschitz constraint. [1] Radford, Alec, Luke Metz, and Soumith Chintala. "Unsup...
32.589354
102
0.649866
79eb3b4b5f12cedcc7564e78eec38ec626439b10
1,064
py
Python
habitat_baselines/rl/aux_losses.py
NicoGrande/habitat-api
baafd1c13c95043d4b31b910ffe4ecc1579dd75a
[ "MIT" ]
2
2022-01-11T06:25:38.000Z
2022-03-09T02:58:19.000Z
habitat_baselines/rl/aux_losses.py
NicoGrande/habitat-api
baafd1c13c95043d4b31b910ffe4ecc1579dd75a
[ "MIT" ]
null
null
null
habitat_baselines/rl/aux_losses.py
NicoGrande/habitat-api
baafd1c13c95043d4b31b910ffe4ecc1579dd75a
[ "MIT" ]
null
null
null
class _AuxLosses: def __init__(self): self._losses = {} self._loss_alphas = {} self._is_active = False self._obs = None def clear(self): self._losses.clear() self._loss_alphas.clear() self._obs = None def register_loss(self, name, loss, alpha=1.0): ...
21.28
66
0.582707
79eb4041408c0f7462ea3bc2c68fc1fc9ea15aaf
33,644
py
Python
comancpipeline/Analysis/SourceFitting.py
SharperJBCA/COMAPreduce
6722c2f59b4968c24b81be4a0f4b12955e270d2b
[ "MIT" ]
5
2019-03-05T11:56:13.000Z
2022-02-16T17:24:07.000Z
comancpipeline/Analysis/SourceFitting.py
SharperJBCA/COMAPreduce
6722c2f59b4968c24b81be4a0f4b12955e270d2b
[ "MIT" ]
null
null
null
comancpipeline/Analysis/SourceFitting.py
SharperJBCA/COMAPreduce
6722c2f59b4968c24b81be4a0f4b12955e270d2b
[ "MIT" ]
2
2021-02-12T14:32:51.000Z
2021-03-10T08:44:44.000Z
import concurrent.futures import numpy as np from comancpipeline.Analysis import BaseClasses from comancpipeline.Analysis import Calibration from comancpipeline.Tools import WCS, Coordinates, Filtering, Fitting, Types, ffuncs, binFuncs, stats from comancpipeline.data import Data from scipy.optimize import fmin, leasts...
36.411255
136
0.537273
79eb59a4e16d60580fe51c7a1c9c4be586fceae3
6,363
py
Python
tests/payment_types_tests.py
derekjamescurtis/veritranspay
0367f8b261293e49ee8a6e395f6c44455212cf7b
[ "BSD-3-Clause" ]
6
2015-07-12T09:46:59.000Z
2017-06-19T18:38:12.000Z
tests/payment_types_tests.py
derekjamescurtis/veritranspay
0367f8b261293e49ee8a6e395f6c44455212cf7b
[ "BSD-3-Clause" ]
8
2015-01-21T17:00:42.000Z
2017-07-06T05:26:30.000Z
tests/payment_types_tests.py
derekjamescurtis/veritranspay
0367f8b261293e49ee8a6e395f6c44455212cf7b
[ "BSD-3-Clause" ]
6
2015-07-21T16:49:57.000Z
2017-07-05T07:55:35.000Z
import unittest from faker import Faker from veritranspay.payment_types import CreditCard, Indomaret, VirtualAccountPermata, VirtualAccountBca, \ VirtualAccountBni, VirtualAccountMandiri, BriEpay, MandiriClickpay, CimbClicks, BCAKlikPay, KlikBCA, GoPay fake = Faker() class CreditCardTests(unittest.TestCase): ...
26.293388
110
0.577558
79eb75b7040f1691e75ff7f52c6d926e3acf488a
14,696
py
Python
padertorch/ops/losses/regression.py
sibange/padertorch
494692d877f04c66847c2943795b23aea488217d
[ "MIT" ]
62
2019-12-22T08:30:29.000Z
2022-03-22T11:02:59.000Z
padertorch/ops/losses/regression.py
sibange/padertorch
494692d877f04c66847c2943795b23aea488217d
[ "MIT" ]
47
2020-01-06T09:23:47.000Z
2022-01-24T16:55:06.000Z
padertorch/ops/losses/regression.py
sibange/padertorch
494692d877f04c66847c2943795b23aea488217d
[ "MIT" ]
13
2019-12-16T08:12:46.000Z
2021-11-08T14:37:06.000Z
import torch def _sqnorm(x, dim=None, keepdim=False): x = torch.abs(x) if dim is None: assert not keepdim return torch.sum(x * x) else: return torch.sum(x * x, dim=dim, keepdim=keepdim) def _mse(estimate, target, dim=None): error = torch.abs(estimate - target) if dim is N...
38.775726
125
0.631328
79eb8aa2c5ae4cb20f9b40380e50241c1db4d42a
148
py
Python
backend/apps/core/apps.py
ambient-innovation/workshop-django
3105f6684097a4443919edc0ac300f64937a1371
[ "MIT" ]
null
null
null
backend/apps/core/apps.py
ambient-innovation/workshop-django
3105f6684097a4443919edc0ac300f64937a1371
[ "MIT" ]
null
null
null
backend/apps/core/apps.py
ambient-innovation/workshop-django
3105f6684097a4443919edc0ac300f64937a1371
[ "MIT" ]
null
null
null
from django.contrib.admin.apps import AdminConfig class CustomAdminConfig(AdminConfig): default_site = 'apps.core.admin.site.CustomAdminSite'
24.666667
57
0.810811
79eb90c46835d7a2f65d9000306ccdc4ef8bafb3
1,273
py
Python
tests/unit/modules/config_test.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
tests/unit/modules/config_test.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/config_test.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
from saltunittest import TestCase from salt.modules import config config.__opts__ = { "test.option.all": "value of test.option.all in __opts__" } config.__pillar__ = { "test.option.all": "value of test.option.all in __pillar__", "master": { "test.option.all": "value of test.option.all in maste" ...
29.604651
74
0.657502
79eb98c870c07875ece0345ac03dd1565f970784
788
py
Python
attic/2020/contributions-2020/tutorial/bwest-cwing/tutorial.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
attic/2020/contributions-2020/tutorial/bwest-cwing/tutorial.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
51
2021-04-08T11:39:59.000Z
2021-05-07T12:01:27.000Z
attic/2020/contributions-2020/tutorial/bwest-cwing/tutorial.py
Agriad/devops-course
380aa43fa69efd71992933f013fb11a96ce16a74
[ "MIT" ]
null
null
null
import re from math import sqrt lipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam cursus convallis magna, et hendrerit arcu ornare et." sentences = len(re.findall(r'\w+', lipsum)) print("Wordcount: {}\n".format(sentences)) print("sqrt(100) = {}\nsqrt(2) = {}\n".format(sqrt(100), sq...
31.52
127
0.678934
79ebbf2e7efdcd312cb5b192f15eb8769e221dce
1,255
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
33.026316
94
0.693227
79ebebb5556bca468dbb233126360cec297989ce
291
py
Python
service/__init__.py
USECAP/ci-tools
ad2300e3297266ff3ee6ed9118ccd16fc05291e3
[ "MIT" ]
null
null
null
service/__init__.py
USECAP/ci-tools
ad2300e3297266ff3ee6ed9118ccd16fc05291e3
[ "MIT" ]
null
null
null
service/__init__.py
USECAP/ci-tools
ad2300e3297266ff3ee6ed9118ccd16fc05291e3
[ "MIT" ]
null
null
null
"""Module for RPC-Service functionality """ from .requests import AsyncRequest, AsyncRequests from .client import WebSocketsClient from .background import BackgroundTask, BackgroundSubProcess __all__ = ['AsyncRequests', 'AsyncRequest', 'WebSocketsClient', 'BackgroundSubProcess']
36.375
63
0.786942
79ec012802311f350a4c79d78188ddf34b07e201
1,496
py
Python
tests/factories.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests/factories.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests/factories.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
import factory import pytz from django.conf import settings from factory.fuzzy import FuzzyChoice from faker import Faker from .models import ModelTest, RelatedModelTest class RelatedModelTestFactory(factory.django.DjangoModelFactory): class Meta: model = RelatedModelTest char_field = factory.Faker(...
41.555556
102
0.75
79ec36fa5e3987e683048330ff78c40c63d52270
3,309
py
Python
services/epic_free_games/epicfreegames.py
pogotulz/aiogram_bot
62bb4edff4a968262812e5179cddd409159f6018
[ "MIT" ]
null
null
null
services/epic_free_games/epicfreegames.py
pogotulz/aiogram_bot
62bb4edff4a968262812e5179cddd409159f6018
[ "MIT" ]
null
null
null
services/epic_free_games/epicfreegames.py
pogotulz/aiogram_bot
62bb4edff4a968262812e5179cddd409159f6018
[ "MIT" ]
null
null
null
import requests import datetime from lxml import html headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0"} class EFG(): def __init__(self): self.data = requests.get( "https://store-site-backend-static.ak.epicgames.com/freeGamesPromotions" ...
37.179775
104
0.565428
79ec3bfc94d249b02c5594110fc78ba5cdd35f91
1,897
py
Python
examples/titanic.py
ieaves/tenzing
92d39c1c3a5633d8074e0ffe8c2687c465aebbc8
[ "MIT" ]
null
null
null
examples/titanic.py
ieaves/tenzing
92d39c1c3a5633d8074e0ffe8c2687c465aebbc8
[ "MIT" ]
null
null
null
examples/titanic.py
ieaves/tenzing
92d39c1c3a5633d8074e0ffe8c2687c465aebbc8
[ "MIT" ]
null
null
null
import pandas as pd from visions.core.implementations import visions_complete_set from visions.core.functional import type_cast_frame, type_inference_frame from visions.application.summaries.summary import CompleteSummary from visions.core.model.dtypes.bool_fix.visions_bool import visions_boolean # Load dataset df = ...
26.71831
83
0.74117
79ec4c4421ece66cbf3090ef37129a00e591d630
52,634
py
Python
src/features/build_features_archive.py
zh272/AIGOGO
0255cf8c4776358b73ee6b1792325a151a0cfa78
[ "BSD-3-Clause" ]
null
null
null
src/features/build_features_archive.py
zh272/AIGOGO
0255cf8c4776358b73ee6b1792325a151a0cfa78
[ "BSD-3-Clause" ]
null
null
null
src/features/build_features_archive.py
zh272/AIGOGO
0255cf8c4776358b73ee6b1792325a151a0cfa78
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import os import pandas as pd from catboost import CatBoostRegressor from sklearn.metrics import mean_absolute_error from sklearn.decomposition import NMF from helpers import MultiColumnLabelEncoder import lightgbm as lgb import itertools ''' Steps to add a new feature: (1) add your function de...
33.804753
609
0.655356
79ec55cb7f9bca6b0178ab83f980e8f2808c78ba
14,082
py
Python
rally/deployment/serverprovider/providers/lxc.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
rally/deployment/serverprovider/providers/lxc.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
rally/deployment/serverprovider/providers/lxc.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.000Z
# Copyright 2013: Mirantis 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 b...
38.370572
79
0.560503
79ecb449678d60e77df5d59244032dce8b8f6f55
555
py
Python
goods2/migrations/0013_auto_20180619_1817.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
goods2/migrations/0013_auto_20180619_1817.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
goods2/migrations/0013_auto_20180619_1817.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-06-19 18:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods2', '0012_auto_20180619_1732'), ] operations = [ migrations.AlterField...
26.428571
151
0.607207
79ecd2c89793ecf68db54553eed1322943bdb1ba
4,915
py
Python
pyrtools/pyramids/steer.py
drwalton/pyrtools
00c055639d2dc887c94bf5adddb7adaa8960fb5f
[ "MIT" ]
54
2019-04-18T06:32:31.000Z
2022-03-24T02:38:08.000Z
pyrtools/pyramids/steer.py
drwalton/pyrtools
00c055639d2dc887c94bf5adddb7adaa8960fb5f
[ "MIT" ]
10
2020-05-18T05:00:56.000Z
2021-10-05T15:07:44.000Z
pyrtools/pyramids/steer.py
drwalton/pyrtools
00c055639d2dc887c94bf5adddb7adaa8960fb5f
[ "MIT" ]
14
2019-05-09T21:00:26.000Z
2022-01-02T14:31:15.000Z
import numpy as np import warnings def steer_to_harmonics_mtx(harmonics, angles=None, even_phase=True): '''Compute a steering matrix This maps a directional basis set onto the angular Fourier harmonics. Parameters ---------- harmonics: `array_like` array specifying the angular harmonics ...
36.139706
99
0.618515
79ecd5ec69e60bd15b76a4d840d7b77f5c4b1fc6
195
py
Python
python/q424/q424.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q424/q424.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q424/q424.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
class Solution: def characterReplacement(self, s: str, k: int) -> int: left = 0 right = 0 freq = {} max = 0 while(right < len(s)): pass
16.25
58
0.451282
79ed3231b6478878806309fba76dfb7ac0d62bb1
6,654
py
Python
NNs/helping_functions.py
gionanide/Speech-Signal-Processing-and-Classification
eff023fd491697a89cdb0491393d2e9600b65895
[ "MIT" ]
203
2018-03-20T13:39:52.000Z
2022-03-24T07:52:31.000Z
NNs/helping_functions.py
gionanide/Speech-Signal-Processing-and-Classification
eff023fd491697a89cdb0491393d2e9600b65895
[ "MIT" ]
3
2019-01-15T07:39:02.000Z
2021-06-07T11:29:34.000Z
NNs/helping_functions.py
gionanide/Speech-Signal-Processing-and-Classification
eff023fd491697a89cdb0491393d2e9600b65895
[ "MIT" ]
68
2018-05-03T06:40:38.000Z
2022-02-13T04:30:57.000Z
#!usr/bin/python #libraries import pandas as pd import matplotlib.pyplot as plt import numpy as np import math import keras.models import keras.layers import sklearn.preprocessing from sklearn.metrics import mean_squared_error import keras.optimizers '''First we have to define our problem. We use LSTM because we w...
34.65625
410
0.712504
79ed56a64ec8486d89458c8bc09fc3a5e59b5a64
1,364
py
Python
plugins/maya/publish/validate_no_atoms_unknown_nodes.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/maya/publish/validate_no_atoms_unknown_nodes.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/maya/publish/validate_no_atoms_unknown_nodes.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api from reveries import plugins class SelectUnknownNodes(plugins.MayaSelectInvalidContextAction): label = "Select Unknown" class DeleteUnknownNodes(plugins.RepairContextAction): label = "Clean Up" class ValidateNoAtomsUnknownNodes(pyblish.api.InstancePlugin): """ """ order ...
22
68
0.6261
79ed57eec0d7a8cc0a1436bcf7ecf1818e85db12
11,857
py
Python
distributed/utils_comm.py
madkinsz/distributed
9f1e3add7dd69ea7b594539acf04fca0afdb32b9
[ "BSD-3-Clause" ]
null
null
null
distributed/utils_comm.py
madkinsz/distributed
9f1e3add7dd69ea7b594539acf04fca0afdb32b9
[ "BSD-3-Clause" ]
null
null
null
distributed/utils_comm.py
madkinsz/distributed
9f1e3add7dd69ea7b594539acf04fca0afdb32b9
[ "BSD-3-Clause" ]
null
null
null
import asyncio import logging import random from collections import OrderedDict, defaultdict from functools import partial from itertools import cycle from tlz import concat, drop, groupby, merge import dask.config from dask.optimization import SubgraphCallable from dask.utils import parse_timedelta, stringify from ...
30.324808
119
0.570212
79ed64378a7af97fac0e8eed793cc664c0fab0a4
117
py
Python
web/website/tests.py
mnahinkhan/rnpfind
5aa956ddd528ab9ebd9588be845f78c449915b78
[ "MIT" ]
3
2021-06-08T03:55:03.000Z
2021-06-15T07:33:08.000Z
web/website/tests.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
1
2022-02-24T15:34:24.000Z
2022-03-04T09:59:10.000Z
web/website/tests.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
1
2021-07-22T04:13:34.000Z
2021-07-22T04:13:34.000Z
""" Tests are defined here """ # Uncomment when needed # from django.test import TestCase # Create your tests here.
14.625
34
0.726496
79ed648fafc2c1f1f5c47b6d1ab7217b802f35af
6,228
py
Python
digideep/environment/common/vec_env/__init__.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
11
2019-03-09T23:54:02.000Z
2020-09-05T20:47:55.000Z
log_sessions/cartpole_8_5_05_1/modules/digideep/environment/common/vec_env/__init__.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
1
2021-09-30T01:15:57.000Z
2021-09-30T01:15:57.000Z
digideep/environment/common/vec_env/__init__.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
null
null
null
""" The MIT License Copyright (c) 2017 OpenAI (http://openai.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
28.967442
99
0.641297
79ed79eef9e8633836fd1a956fdd1be4e814024f
2,527
py
Python
ibm_secrets_manager_sdk/common.py
IBM/secrets-manager-python-sdk
b8d0c46b125baa71ae05213a1c997a97b7187645
[ "Apache-2.0" ]
null
null
null
ibm_secrets_manager_sdk/common.py
IBM/secrets-manager-python-sdk
b8d0c46b125baa71ae05213a1c997a97b7187645
[ "Apache-2.0" ]
1
2021-06-25T12:39:27.000Z
2021-07-01T08:43:28.000Z
ibm_secrets_manager_sdk/common.py
IBM/secrets-manager-python-sdk
b8d0c46b125baa71ae05213a1c997a97b7187645
[ "Apache-2.0" ]
2
2021-01-27T10:50:25.000Z
2021-07-09T05:38:38.000Z
# coding: utf-8 # Copyright 2019, 2020 IBM 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 app...
36.1
111
0.66205
79ed7a6fcc754b88c7b61fdd6e8d638f15b03c85
256
py
Python
CodeChef/FEB21C/MAXFUN.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
CodeChef/FEB21C/MAXFUN.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
CodeChef/FEB21C/MAXFUN.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
def solve(): n = int(input()) A = list(map(int,input().split())) A.sort() m = n//2 mid = A[m] print(abs(A[0] - mid) + abs(A[0]-A[-1]) + abs(A[-1]-mid)) if __name__ == '__main__': for t in range(int(input())): solve()
19.692308
61
0.472656
79ed7d12d3dafca19eb661630ee4c68796977dc2
2,071
py
Python
gen_pspamm.py
Jonas164/PSpaMM
4941a14d6db03117c68d735c4fa78f66f327af2d
[ "BSD-3-Clause" ]
null
null
null
gen_pspamm.py
Jonas164/PSpaMM
4941a14d6db03117c68d735c4fa78f66f327af2d
[ "BSD-3-Clause" ]
null
null
null
gen_pspamm.py
Jonas164/PSpaMM
4941a14d6db03117c68d735c4fa78f66f327af2d
[ "BSD-3-Clause" ]
null
null
null
import os import subprocess os.remove("pspamm.h") if os.path.exists("pspamm.h") else None os.remove("pspamm.cpp") if os.path.exists("pspamm.cpp") else None os.remove("pspamm2.h") if os.path.exists("pspamm2.h") else None os.remove("pspamm2.cpp") if os.path.exists("pspamm2.cpp") else None include_guard = """#ifndef PS...
37.654545
206
0.631579
79ed7f5b3f49e6dad84583395c631c3e27b4b84e
3,318
py
Python
src/bin/hooks/django_orm/chemireg/settings.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
src/bin/hooks/django_orm/chemireg/settings.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
src/bin/hooks/django_orm/chemireg/settings.py
ddamerell53/ChemiRegV2
906fa4674bfda0088b86b3bcdde0e000510c79e0
[ "CC0-1.0" ]
null
null
null
""" Django settings for ChemiRegV2Django project. Generated by 'django-admin startproject' using Django 2.0.2. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ imp...
26.125984
91
0.694696
79ed85e438f338d1d47af2b1118ca622f0ad9b9b
691
py
Python
src/olympia/core/__init__.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
3
2020-03-05T18:17:14.000Z
2020-03-09T01:24:38.000Z
src/olympia/core/__init__.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/core/__init__.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2021-11-24T07:29:55.000Z
2021-11-24T07:29:55.000Z
import contextlib import threading default_app_config = 'olympia.core.apps.CoreConfig' _locals = threading.local() _locals.user = None _locals.remote_addr = None def get_user(): return getattr(_locals, 'user', None) def set_user(user): _locals.user = user def get_remote_addr(): return getattr(_loc...
19.194444
78
0.755427
79ed8752c2ca23eb841d8b578cd8fbf5433b8901
8,996
py
Python
blaspy/helpers.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
4
2015-01-25T12:44:44.000Z
2022-03-19T08:36:19.000Z
blaspy/helpers.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
7
2015-01-20T13:35:39.000Z
2015-05-31T17:11:50.000Z
blaspy/helpers.py
nicholas-moreles/blaspy
c4af6258e17dd996c4b6d90bbaae15b31b8702b4
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2014-2015-2015, The University of Texas at Austin.. All rights reserved. This file is part of BLASpy and is available under the 3-Clause BSD License, which can be found in the LICENSE file at the top-level directory or at http://opensource.org/licenses/BSD-3-Clause """ from .co...
30.086957
98
0.631948
79edaf5aa6b5312c0ffb6dd9f813fd6c4b44d9d2
978
py
Python
example/load_route.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
example/load_route.py
yakinaround/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
2
2021-03-31T18:30:32.000Z
2021-12-13T19:44:07.000Z
example/load_route.py
myadventure/myadventure-api
aae56a93748457c2f060434b9faf81830de5bc99
[ "Apache-2.0" ]
null
null
null
""" load_route.py Load route points from url. """ from datetime import datetime import urllib2 from flask import abort from pykml import parser def load_route(url): """Load route from provided URL.""" obj = urllib2.urlopen(url) res = obj.read() kml_str = "" for line in iter(res.splitlines()): ...
22.744186
79
0.567485
79edc100a288388350fcb1f2d0fbc96e2b66b9b2
65,212
py
Python
services/tests/test_api.py
theirc/IRC-Services-Legacy
818ffd13fecb8a7f1c29c341d427d0a339809f8b
[ "BSD-3-Clause" ]
2
2020-10-05T14:43:24.000Z
2020-10-14T12:46:56.000Z
services/tests/test_api.py
pg-irc/IRC-Services-Legacy
818ffd13fecb8a7f1c29c341d427d0a339809f8b
[ "BSD-3-Clause" ]
3
2019-02-26T18:21:01.000Z
2020-06-18T14:56:16.000Z
services/tests/test_api.py
pg-irc/IRC-Services-Legacy
818ffd13fecb8a7f1c29c341d427d0a339809f8b
[ "BSD-3-Clause" ]
null
null
null
from http.client import OK, CREATED, BAD_REQUEST, NOT_FOUND, METHOD_NOT_ALLOWED, UNAUTHORIZED import json from unittest import skip from django.contrib.auth import get_user_model, authenticate from django.contrib.auth.models import Group from django.contrib.gis.geos import Point from django.core import mail from djang...
44.452624
116
0.628366
79ede3d2cd9c96a1225a37e7adc54b5d4ddcb356
2,166
py
Python
tensorflow_similarity/classification_metrics/utils.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
1
2021-09-14T09:23:10.000Z
2021-09-14T09:23:10.000Z
tensorflow_similarity/classification_metrics/utils.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
null
null
null
tensorflow_similarity/classification_metrics/utils.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow 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 ...
33.84375
74
0.701754
79ededf9e195321b5aa27b636ceef918e3756e3f
2,435
py
Python
alipay/aop/api/response/AlipayPcreditLoanCommissionQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayPcreditLoanCommissionQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayPcreditLoanCommissionQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayPcreditLoanCommissionQueryResponse(AlipayResponse): def __init__(self): super(AlipayPcreditLoanCommissionQueryResponse, self).__init__() self._activity_commissi...
32.039474
113
0.696509
79ee131598220fa74d6464ce648782fef0337590
9,260
py
Python
analysis_collection/tracing_sim/results_smallworld_withQ_halfreact_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_smallworld_withQ_halfreact_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
null
null
null
analysis_collection/tracing_sim/results_smallworld_withQ_halfreact_NMEAS_100_ONLYSAVETIME_False/simulation.py
benmaier/DigCT
62fc3fddb7600e2a43761e08618b2e3df423569c
[ "MIT" ]
1
2021-07-12T13:50:35.000Z
2021-07-12T13:50:35.000Z
import epipack import numpy as np from epipack.stochastic_epi_models import StochasticEpiModel from math import exp from numpy import random import networkx as nx from smallworld import get_smallworld_graph from scipy.stats import expon import numpy as np import networkx as nx def _edge(i,j): if i > j: ret...
38.583333
180
0.461015
79ee1c6956fef3e81007acd2a979beb098705db4
47
py
Python
credit_calculator/errors/negative_parameter_error.py
blanketastronomer/credit_calculator
195cb56934f354543c8d71787577695986bc9340
[ "MIT" ]
null
null
null
credit_calculator/errors/negative_parameter_error.py
blanketastronomer/credit_calculator
195cb56934f354543c8d71787577695986bc9340
[ "MIT" ]
null
null
null
credit_calculator/errors/negative_parameter_error.py
blanketastronomer/credit_calculator
195cb56934f354543c8d71787577695986bc9340
[ "MIT" ]
null
null
null
class NegativeValueError(ValueError): pass
15.666667
37
0.787234
79ee3c820b19a429646397333558662175602c65
67
py
Python
aws_xray_sdk/__init__.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
aws_xray_sdk/__init__.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
aws_xray_sdk/__init__.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
from .sdk_config import SDKConfig global_sdk_config = SDKConfig()
16.75
33
0.820896
79ee488c6ec0c440d763eb82d19b1b9caac4aeb7
1,655
py
Python
luafun/game/ipc_send.py
Delaunay/LuaFun
bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39
[ "BSD-3-Clause" ]
1
2021-02-06T06:42:29.000Z
2021-02-06T06:42:29.000Z
luafun/game/ipc_send.py
Delaunay/LuaFun
bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39
[ "BSD-3-Clause" ]
6
2021-04-08T21:46:06.000Z
2021-05-09T01:40:04.000Z
luafun/game/ipc_send.py
Delaunay/LuaFun
bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39
[ "BSD-3-Clause" ]
null
null
null
import json import os TEAM_RADIANT = 2 TEAM_DIRE = 3 def get_draft_message(draft): from luafun.game.action import DraftAction return { DraftAction.EnableDraft: draft, DraftAction.SelectHero: None, DraftAction.BanHero: None, DraftAction.Lane: None } def new_ipc_message(...
21.493506
83
0.528701
79ee65617a6baf1b9f43668c991a96e8f6858842
2,058
py
Python
tests/layouts/test_auto.py
pbourke/graspologic
1f8eeec5cc97e2715fb092dde7260d2cb2dbbbdb
[ "MIT" ]
1
2021-09-08T18:04:02.000Z
2021-09-08T18:04:02.000Z
tests/layouts/test_auto.py
pbourke/graspologic
1f8eeec5cc97e2715fb092dde7260d2cb2dbbbdb
[ "MIT" ]
null
null
null
tests/layouts/test_auto.py
pbourke/graspologic
1f8eeec5cc97e2715fb092dde7260d2cb2dbbbdb
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation and contributors. # Licensed under the MIT License. import unittest import networkx as nx import numpy from graspologic.layouts.auto import _get_bounds, layout_umap class TestAuto(unittest.TestCase): def test_get_bounds(self): y = numpy.array([(1, 2), (4, 5), (-1, ...
29.826087
81
0.647716
79ee8cb6659d3d6fa99c8b1581736df2afa3edd9
1,279
py
Python
workers/repositorygcworker.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
workers/repositorygcworker.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
workers/repositorygcworker.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import logging from app import repository_gc_queue, all_queues from data import model, database from workers.queueworker import QueueWorker from util.log import logfile_path logger = logging.getLogger(__name__) POLL_PERIOD_SECONDS = 60 REPOSITORY_GC_TIMEOUT = 60 * 15 # 15 minutes class RepositoryGCWorker(QueueWo...
29.068182
88
0.722439
79ee8d82059d5906ef3afcd6b94b8619d9870768
2,249
py
Python
projects/chatbot-server/chat/views.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
3
2021-12-04T09:03:06.000Z
2022-01-10T07:30:15.000Z
projects/chatbot-server/chat/views.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
1
2021-12-04T08:59:00.000Z
2021-12-07T11:20:18.000Z
projects/chatbot-server/chat/views.py
JackonYang/projects-in-one
edca9a313bfc80ddd5c1ca20cdfb0e0a12f8fc62
[ "MIT" ]
null
null
null
import json # import os import copy import hashlib import time import logging from rest_framework.decorators import api_view # from rest_framework.response import Response from django.http import JsonResponse from nlu.keyword_based.api import get_reply_list logger = logging.getLogger(__name__) default_response = { ...
21.834951
78
0.66474
79eeb7a27808b10cdf18ce65fb35bc106cd305fb
28,223
py
Python
nova/virt/vmwareapi/volumeops.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2015-11-30T19:44:00.000Z
2015-11-30T19:44:00.000Z
nova/virt/vmwareapi/volumeops.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/virt/vmwareapi/volumeops.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
3
2018-04-04T15:15:01.000Z
2018-04-19T18:14:25.000Z
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, 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/lic...
46.649587
79
0.578783
79eedda835d73eda1e7110caae376c717b767c61
6,876
py
Python
src/data.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
40
2020-07-22T04:49:43.000Z
2021-12-19T15:11:30.000Z
src/data.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
1
2021-12-13T02:39:29.000Z
2021-12-13T02:39:29.000Z
src/data.py
ttaoREtw/semi-tts
46750fc68d1547e82bda9341f5029595ded984c8
[ "MIT" ]
4
2020-08-16T08:43:40.000Z
2021-02-19T09:53:26.000Z
import torch import random import numpy as np from functools import partial from src.text import load_text_encoder from src.audio import load_audio_transform from torch.utils.data import DataLoader from torch.nn.utils.rnn import pad_sequence SPEC_PAD_VALUE = 0 # Spectrogram was in log-scale def load_dataset(n_jobs, ...
42.708075
113
0.621582
79eedef8fc8c0492c79b26d5f6d07bb7e506aaee
5,535
py
Python
doc/conf.py
FZJ-IAS5-MLMD/PiNN
bbadd16b534b1c32de18da482fc04d463a6131f6
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
FZJ-IAS5-MLMD/PiNN
bbadd16b534b1c32de18da482fc04d463a6131f6
[ "BSD-3-Clause" ]
1
2020-09-15T11:50:41.000Z
2020-09-15T11:50:41.000Z
doc/conf.py
FZJ-IAS5-MLMD/PiNN
bbadd16b534b1c32de18da482fc04d463a6131f6
[ "BSD-3-Clause" ]
1
2020-09-07T09:56:43.000Z
2020-09-07T09:56:43.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.441489
93
0.645709
79eedf8ef5d8b7e902ec490c7bfcb6c11cba198f
103,204
py
Python
nova/tests/unit/virt/vmwareapi/test_driver_api.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/vmwareapi/test_driver_api.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/vmwareapi/test_driver_api.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
1
2020-03-01T17:04:57.000Z
2020-03-01T17:04:57.000Z
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, Inc. # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. Yo...
44.217652
79
0.608319
79eee98f47b28f8e6a64497e39852b7e2e9805f5
5,935
py
Python
tests/bot/cogs/sync/test_roles.py
Savant-Dev/bot
cfc5720925b6bbc40c45507f8579145a0014a6eb
[ "MIT" ]
1
2020-11-15T18:36:43.000Z
2020-11-15T18:36:43.000Z
tests/bot/cogs/sync/test_roles.py
RahimBangla/bot
36ccac8272de9e60c1c04db7ab3640fd76af8585
[ "MIT" ]
1
2021-03-31T19:57:18.000Z
2021-03-31T19:57:18.000Z
tests/bot/cogs/sync/test_roles.py
RahimBangla/bot
36ccac8272de9e60c1c04db7ab3640fd76af8585
[ "MIT" ]
1
2021-06-04T17:05:51.000Z
2021-06-04T17:05:51.000Z
import unittest from unittest import mock import discord from bot.cogs.sync.syncers import RoleSyncer, _Diff, _Role from tests import helpers def fake_role(**kwargs): """Fixture to return a dictionary representing a role with default values set.""" kwargs.setdefault("id", 9) kwargs.setdefault("name", "f...
37.563291
97
0.660994
79ef00464b08ad8c129d64dea4840321b5a7e5f0
10,572
py
Python
FinanceAnalysisAlgoTrading/10-Quantopian-Platform_06-Pipelines.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
FinanceAnalysisAlgoTrading/10-Quantopian-Platform_06-Pipelines.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
FinanceAnalysisAlgoTrading/10-Quantopian-Platform_06-Pipelines.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
#!/usr/bin/env python # coding: utf-8 # # Pipeline # This notebook is from the official Quantopian Guide on Pipelines. Make sure to visit their documentation for many more great resources! # Many trading algorithms have the following structure: # 1. For each asset in a known (large) set, compute N scalar values for the...
39.89434
175
0.747824
79ef7317b673a6ab12b586e391c5acbb7d6f4847
4,648
py
Python
src/simulation.py
eyp/federated-learning-simulation
d6023cb511d8af5b485b36a3d06a93102f2e5f7b
[ "MIT" ]
4
2021-03-21T12:49:34.000Z
2021-10-03T11:37:26.000Z
src/simulation.py
eyp/federated-learning-simulation
d6023cb511d8af5b485b36a3d06a93102f2e5f7b
[ "MIT" ]
null
null
null
src/simulation.py
eyp/federated-learning-simulation
d6023cb511d8af5b485b36a3d06a93102f2e5f7b
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow_federated as tff import nest_asyncio from federated_simulator import FederatedSimulator from federated_external_model import batch_format, create_keras_model nest_asyncio.apply() emnist_train, emnist_test = tff.simulation.datasets.emnist.load_data() federated_simulator = Fede...
38.413223
133
0.770439
79ef77d96b698ce8a9a4315af4616cd253f4a327
2,051
py
Python
setup.py
cenkalti/rabbitpy
39351e9459374b620d8ff36a17aa05d350b0158d
[ "BSD-3-Clause" ]
1
2021-03-08T22:20:34.000Z
2021-03-08T22:20:34.000Z
setup.py
cenkalti/rabbitpy
39351e9459374b620d8ff36a17aa05d350b0158d
[ "BSD-3-Clause" ]
null
null
null
setup.py
cenkalti/rabbitpy
39351e9459374b620d8ff36a17aa05d350b0158d
[ "BSD-3-Clause" ]
null
null
null
import setuptools import sys tests_require = ['nose', 'mock'] if sys.version_info < (2, 7, 0): tests_require.append('unittest2') desc = ('A pure python, thread-safe, minimalistic and pythonic RabbitMQ ' 'client library') setuptools.setup(name='rabbitpy', version='0.19.0', ...
48.833333
92
0.464164
79ef9e0c554709744ed9320c88f562274adce3c8
4,260
py
Python
vnpy/app/csv_loader/ui/widget.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
323
2015-11-21T14:45:29.000Z
2022-03-16T08:54:37.000Z
vnpy/app/csv_loader/ui/widget.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
9
2017-03-21T08:26:21.000Z
2021-08-23T06:41:17.000Z
vnpy/app/csv_loader/ui/widget.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
148
2016-09-26T03:25:39.000Z
2022-02-06T14:43:48.000Z
""" Author: Zehua Wei (nanoric) """ from vnpy.event import EventEngine from vnpy.trader.constant import Exchange, Interval from vnpy.trader.engine import MainEngine from vnpy.trader.ui import QtCore, QtWidgets from ..engine import APP_NAME class CsvLoaderWidget(QtWidgets.QWidget): """""" def __init__(self,...
31.094891
75
0.614319
79efb496a679fb82b830b8655f4d240f4ca6ae78
4,739
py
Python
bumblebee/output.py
4shadoww/bumblebee-status
dd98c1ec51fa96f8d6f8233c0caac047a79951b2
[ "MIT" ]
5
2020-09-12T09:13:23.000Z
2021-07-07T06:48:28.000Z
bumblebee/output.py
4shadoww/bumblebee-status
dd98c1ec51fa96f8d6f8233c0caac047a79951b2
[ "MIT" ]
null
null
null
bumblebee/output.py
4shadoww/bumblebee-status
dd98c1ec51fa96f8d6f8233c0caac047a79951b2
[ "MIT" ]
null
null
null
# pylint: disable=R0201 """Output classes""" import sys import json import uuid import bumblebee.store def scrollable(func): def wrapper(module, widget): text = func(module, widget) if not text: return text width = widget.get("theme.width", module.parameter("width", 30)) widget.s...
32.02027
84
0.581135
79efd7906a917c4f81f4fa3f8fc0ddf07a429d9f
15,519
py
Python
results.py
InsectRobotics/insectvision
ab3ac5e56fa9c75388bdc7d08012736a0c150143
[ "MIT" ]
4
2019-09-05T17:31:13.000Z
2021-05-27T12:34:07.000Z
results.py
InsectRobotics/insectvision
ab3ac5e56fa9c75388bdc7d08012736a0c150143
[ "MIT" ]
null
null
null
results.py
InsectRobotics/insectvision
ab3ac5e56fa9c75388bdc7d08012736a0c150143
[ "MIT" ]
6
2019-10-09T12:02:42.000Z
2021-05-27T12:33:51.000Z
#!/usr/bin/env python __author__ = "Evripidis Gkanias" __copyright__ = "Copyright (c) 2019, Insect Robotics Group," \ "Institude of Perception, Action and Behaviour," \ "School of Informatics, the University of Edinburgh" __credits__ = ["Evripidis Gkanias"] __license__ = "MIT" __version...
35.594037
119
0.480057
79eff2c7fcd843cee60c244c17ac5535481bd75e
27,621
py
Python
rapt/fields.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
1
2021-04-12T09:44:56.000Z
2021-04-12T09:44:56.000Z
rapt/fields.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
rapt/fields.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
import numpy as np from rapt import Re, B0 from scipy.interpolate import RegularGridInterpolator class _Field: """ The superclass for fields. Not used directly, but subclassed. All field- related data and methods are defined in field objects. Attributes ---------- gradientstepsize : float ...
33.890798
522
0.536259