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
08770b4a8025d1b0a3e992f79b4bec044b49fab8
25,224
py
Python
pymatgen/core/tests/test_composition.py
rwoodsrobinson/pymatgen
f9226b79b8f9ccd0b305e557c9e4878e096bfc77
[ "MIT" ]
2
2021-04-28T13:28:52.000Z
2021-04-28T13:29:06.000Z
pymatgen/core/tests/test_composition.py
rwoodsrobinson/pymatgen
f9226b79b8f9ccd0b305e557c9e4878e096bfc77
[ "MIT" ]
null
null
null
pymatgen/core/tests/test_composition.py
rwoodsrobinson/pymatgen
f9226b79b8f9ccd0b305e557c9e4878e096bfc77
[ "MIT" ]
3
2018-10-17T19:08:09.000Z
2021-12-02T20:26:58.000Z
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Created on Nov 10, 2012 @author: shyue """ from pymatgen.util.testing import PymatgenTest __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, The Materials Project" __version__ = "0.1" __maint...
42.322148
91
0.575642
82ccec3c057780f5609a01408de46842f8509a49
2,120
py
Python
data/scripts/cragCastleDefs.py
starpirate2203/BROODY-S-LAST-SCRIPT
7b5a9eab02c782ebf39b0f3edf69536fae8289c6
[ "MIT" ]
2
2021-09-07T16:04:30.000Z
2021-09-16T03:30:16.000Z
data/scripts/cragCastleDefs.py
starpirate2203/BROODY-S-LAST-SCRIPT
7b5a9eab02c782ebf39b0f3edf69536fae8289c6
[ "MIT" ]
null
null
null
data/scripts/cragCastleDefs.py
starpirate2203/BROODY-S-LAST-SCRIPT
7b5a9eab02c782ebf39b0f3edf69536fae8289c6
[ "MIT" ]
1
2021-09-21T12:42:28.000Z
2021-09-21T12:42:28.000Z
# This file was automatically generated from "cragCastle.ma" points = {} boxes = {} boxes['areaOfInterestBounds'] = (0.7033834902, 6.55869393, -3.153439808) + (0.0, 0.0, 0.0) + (16.73648528, 14.94789935, 11.60063102) points['ffaSpawn1'] = (-4.04166076, 7.54589296, -3.542792409) + (2.471508516, 1.156019141, 0.1791707664...
73.103448
132
0.705189
f917edca32b5a5b00edd294d9b8cc8ed1c8e1747
915
py
Python
obd_client.py
lukaszmitka/obd-tool
fedf94d3a3254f1b6497811bbc6da9d1a2934375
[ "MIT" ]
null
null
null
obd_client.py
lukaszmitka/obd-tool
fedf94d3a3254f1b6497811bbc6da9d1a2934375
[ "MIT" ]
null
null
null
obd_client.py
lukaszmitka/obd-tool
fedf94d3a3254f1b6497811bbc6da9d1a2934375
[ "MIT" ]
null
null
null
from time import sleep import RPi.GPIO as GPIO import serial ser = serial.Serial('/dev/ttyUSB0', 38400, timeout=1) ser.write(b'ATZ\r') data = ser.read(100) ser.write(b'ATE0\r') data = ser.read(100) ser.write(b'ATH1\r') data = ser.read(100) ser.write(b'ATL0\r') data = ser.read(100) ser.write(b'0100\r') data = ser.re...
22.317073
56
0.625137
e227baad59d08c625045f06043d649b12c6aebe4
3,475
py
Python
resources/synthetic_data.py
BreastGAN/experiment1
edc55b93f214997c2ef0654aeeedcdc2f11b554c
[ "Apache-2.0" ]
7
2018-12-05T21:40:16.000Z
2022-01-09T11:11:02.000Z
resources/synthetic_data.py
BreastGAN/experiment1
edc55b93f214997c2ef0654aeeedcdc2f11b554c
[ "Apache-2.0" ]
2
2021-01-31T12:14:31.000Z
2022-02-09T23:28:39.000Z
resources/synthetic_data.py
BreastGAN/experiment1
edc55b93f214997c2ef0654aeeedcdc2f11b554c
[ "Apache-2.0" ]
1
2018-11-26T01:44:19.000Z
2018-11-26T01:44:19.000Z
# Copyright 2018 Lukas Jendele and Ondrej Skopek. 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...
34.405941
95
0.610935
42e778de4b98377ea3438075d8ad85f654837949
4,043
py
Python
.history/run_update_20220328115000.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
.history/run_update_20220328115000.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
.history/run_update_20220328115000.py
miguel-fresh/geoip-translation
ccf9dbc0330e597704e57d8b2967fc9be16017ed
[ "Info-ZIP" ]
null
null
null
from asyncio.subprocess import STDOUT from fileinput import filename from genericpath import exists import subprocess from pathlib import Path from os import getcwd, remove, rename, path import yaml def removeFileIfExists(file_path): if path.exists(file_path): remove(file_path) def checkExistence(path_t...
29.086331
100
0.65026
ffb13af6cf3eb4f6ed85f2de4405cb7cee07b789
6,039
py
Python
tf_models.py
hanskrupakar/MRI-tumor-segmentation-Brats
5a1a51b159a556261cd485db45f4d705974c86f4
[ "MIT" ]
null
null
null
tf_models.py
hanskrupakar/MRI-tumor-segmentation-Brats
5a1a51b159a556261cd485db45f4d705974c86f4
[ "MIT" ]
null
null
null
tf_models.py
hanskrupakar/MRI-tumor-segmentation-Brats
5a1a51b159a556261cd485db45f4d705974c86f4
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Conv3D, MaxPooling3D, UpSampling3D, Activation, Conv3DTranspose from tf_layers import * def PlainCounterpart(input, name): x = Conv3DWithBN(input, filters=24, ksize=3, strides=1, padding='same', name=name + '_conv_15rf_1x') x = Conv3DWithBN(x, filte...
44.404412
104
0.700116
86a65c50784fa6a2f7c65b5254a4b8a03d01aa0e
4,025
py
Python
mass_replace/mass_replace.py
Kilo59/mass_replace
f44627f99f09433af9368e7a5fd6f7152905d484
[ "MIT" ]
1
2019-01-06T01:32:41.000Z
2019-01-06T01:32:41.000Z
mass_replace/mass_replace.py
Kilo59/mass_replace
f44627f99f09433af9368e7a5fd6f7152905d484
[ "MIT" ]
14
2018-04-25T00:06:58.000Z
2020-03-31T00:55:23.000Z
mass_replace/mass_replace.py
Kilo59/mass_replace
f44627f99f09433af9368e7a5fd6f7152905d484
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ mass_replace.py ~~~~~~~~~~~~~~~ Python Application for multiple simultaneous find and replace operations in a directory. """ import pathlib from sys import version_info import os import fileinput import yaml from pprint import pprint as pp PYTHON_VER = (version_info.major, version_info.m...
32.991803
89
0.644472
9f0422b5b39e15216c044f2bbab22c6e71c4608e
1,444
py
Python
pysubgroup/tests/algorithms_testing.py
rovany706/pysubgroup
ed20c47fd3b82f34109e5451552986c3349e6aa4
[ "Apache-2.0" ]
40
2018-11-25T14:00:32.000Z
2022-03-17T07:24:22.000Z
pysubgroup/tests/algorithms_testing.py
rovany706/pysubgroup
ed20c47fd3b82f34109e5451552986c3349e6aa4
[ "Apache-2.0" ]
25
2018-12-05T13:56:17.000Z
2022-03-02T10:53:49.000Z
pysubgroup/tests/algorithms_testing.py
rovany706/pysubgroup
ed20c47fd3b82f34109e5451552986c3349e6aa4
[ "Apache-2.0" ]
21
2018-12-21T11:19:37.000Z
2022-01-14T03:41:36.000Z
from timeit import default_timer as timer import abc import pysubgroup as ps class TestAlgorithmsBase(abc.ABC): # pylint: disable=no-member def evaluate_result(self, algorithm_result, result, qualities): self.assertTrue(isinstance(algorithm_result, ps.SubgroupDiscoveryResult)) algorithm_result...
39.027027
110
0.662742
6eab9e9ceae63a82d5a82c4f277843db888be921
11,925
py
Python
saleor/graphql/account/types.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
8
2018-07-17T13:13:21.000Z
2022-03-01T17:02:34.000Z
saleor/graphql/account/types.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
2
2021-03-09T18:11:34.000Z
2021-05-10T15:05:35.000Z
saleor/graphql/account/types.py
elwoodxblues/saleor
5e4e4a4259a011d24b04ebd24c77c689de843fa1
[ "CC-BY-4.0" ]
1
2019-09-03T03:04:50.000Z
2019-09-03T03:04:50.000Z
import graphene import graphene_django_optimizer as gql_optimizer from django.contrib.auth import get_user_model from graphene import relay from graphql_jwt.decorators import login_required from ...account import models from ...checkout.utils import get_user_checkout from ...core.permissions import get_permissions fro...
35.176991
88
0.672537
167910c3c017cf3d680531e8cf3f1de6b9153e4f
2,345
py
Python
babilim/model/layers/activation.py
penguinmenac3/babilim
d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27
[ "MIT" ]
1
2020-05-04T15:20:55.000Z
2020-05-04T15:20:55.000Z
babilim/model/layers/activation.py
penguinmenac3/babilim
d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27
[ "MIT" ]
1
2019-11-28T09:03:20.000Z
2019-11-28T09:03:20.000Z
babilim/model/layers/activation.py
penguinmenac3/babilim
d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27
[ "MIT" ]
1
2019-11-28T08:30:13.000Z
2019-11-28T08:30:13.000Z
# AUTOGENERATED FROM: babilim/model/layers/activation.ipynb # Cell: 0 """doc # babilim.model.layers.activation > Compute an activation function. """ # Cell: 1 from babilim.core.annotations import RunOnlyOnce from babilim.core.module_native import ModuleNative # Cell: 2 class Activation(ModuleNative): def __ini...
32.569444
116
0.620896
b77ece63a9d10aaa8c7958e2c24b2f525b0c9747
2,994
py
Python
python/television/consumers.py
pztrick/django-television
5857200a0871702052827a5d603db7d60bca1406
[ "MIT" ]
1
2018-07-16T16:21:44.000Z
2018-07-16T16:21:44.000Z
python/television/consumers.py
pztrick/django-television
5857200a0871702052827a5d603db7d60bca1406
[ "MIT" ]
4
2019-12-22T11:20:56.000Z
2021-06-10T19:38:46.000Z
python/television/consumers.py
pztrick/django-television
5857200a0871702052827a5d603db7d60bca1406
[ "MIT" ]
null
null
null
import json import traceback from django.http import HttpResponse from channels.handler import AsgiHandler from channels import Group from .decorators import add_listener, call_listener from django.conf import settings from django.db import connection from channels.auth import http_session_user, channel_session_user, c...
37.425
108
0.654977
b3bfece2cb14151382aaeaa2726981e45f3fd08b
2,446
py
Python
eshop/store/views/signup.py
shruti0419/templates-hacktoberfest
748b8d8a335dc53dc6b80a928ca38c53d33b9798
[ "MIT" ]
8
2021-10-01T13:29:58.000Z
2021-10-06T16:19:50.000Z
eshop/store/views/signup.py
shruti0419/templates-hacktoberfest
748b8d8a335dc53dc6b80a928ca38c53d33b9798
[ "MIT" ]
31
2021-09-30T17:45:36.000Z
2021-10-12T04:57:21.000Z
eshop/store/views/signup.py
shruti0419/templates-hacktoberfest
748b8d8a335dc53dc6b80a928ca38c53d33b9798
[ "MIT" ]
31
2021-09-30T19:49:54.000Z
2021-10-05T17:32:42.000Z
from django.shortcuts import render, redirect from django.contrib.auth.hashers import make_password from store.models.customer import Customer from django.views import View class Signup(View): def get(self, request): return render(request, 'signup.html') def post(self, request): postData = re...
35.449275
68
0.577269
dbcd4dab1960e21a0df909987ff91044f5e61c00
3,136
py
Python
http3/dispatch/threaded.py
didip/http3
7c6fb5c6ca44b69fd221d626c9e2fb60530fa1bc
[ "BSD-3-Clause" ]
1
2021-10-07T01:41:33.000Z
2021-10-07T01:41:33.000Z
http3/dispatch/threaded.py
didip/http3
7c6fb5c6ca44b69fd221d626c9e2fb60530fa1bc
[ "BSD-3-Clause" ]
null
null
null
http3/dispatch/threaded.py
didip/http3
7c6fb5c6ca44b69fd221d626c9e2fb60530fa1bc
[ "BSD-3-Clause" ]
null
null
null
from ..config import CertTypes, TimeoutTypes, VerifyTypes from ..interfaces import AsyncDispatcher, ConcurrencyBackend, Dispatcher from ..models import ( AsyncRequest, AsyncRequestData, AsyncResponse, AsyncResponseContent, Request, RequestData, Response, ResponseContent, ) class Thread...
32
88
0.641582
1ae194ea8b07d1ae0e68649aff67396b47e8ee02
2,673
py
Python
src/OTLMOW/OTLModel/Classes/VRBAZ.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/OTLModel/Classes/VRBAZ.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/OTLModel/Classes/VRBAZ.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.VRModuleZFirmware import VRModuleZFirmware from OTLMOW.OTLModel.Datatypes.KlVRBAZMerk import KlVRBAZMerk from OTLMOW.OTLModel.Datatypes.KlVRBAZModelnaam import KlVRBAZModelnaam # Generated with OTLClassCreato...
53.46
618
0.657688
9c1e5bd0068d03e2cea45cd6468dc3939626770f
3,967
py
Python
cellengine/payloads/gate_utils/ellipse_gate.py
primitybio/cellengine-python-toolk
1f9dd168f1f27e2beba69f02e340371190857b33
[ "MIT" ]
4
2021-01-12T17:03:37.000Z
2021-12-16T13:23:57.000Z
cellengine/payloads/gate_utils/ellipse_gate.py
primitybio/cellengine-python-toolk
1f9dd168f1f27e2beba69f02e340371190857b33
[ "MIT" ]
61
2021-01-11T05:27:16.000Z
2022-03-08T01:50:09.000Z
cellengine/payloads/gate_utils/ellipse_gate.py
primitybio/cellengine-python-toolkit
1f9dd168f1f27e2beba69f02e340371190857b33
[ "MIT" ]
null
null
null
from typing import List from cellengine.payloads.gate_utils import format_common_gate from cellengine.utils.generate_id import generate_id def format_ellipse_gate( experiment_id: str, x_channel: str, y_channel: str, name: str, x: float, y: float, angle: float, major: float, minor:...
37.424528
86
0.624653
bac9bb6c55d7d93cdaf4803c44758361de8192df
253
py
Python
chatnoir_api/types.py
chatnoir-eu/chatnoir-api
aff5059d2caafc892d0ba750889dc9938fbb0493
[ "MIT" ]
3
2022-01-25T10:31:19.000Z
2022-01-27T10:21:51.000Z
chatnoir_api/types.py
chatnoir-eu/chatnoir-api
aff5059d2caafc892d0ba750889dc9938fbb0493
[ "MIT" ]
1
2022-01-22T17:28:47.000Z
2022-01-24T12:57:30.000Z
chatnoir_api/types.py
heinrichreimer/chatnoir-api
aff5059d2caafc892d0ba750889dc9938fbb0493
[ "MIT" ]
1
2022-03-31T14:59:44.000Z
2022-03-31T14:59:44.000Z
try: from functools import cached_property # noqa: F401 except ImportError: cached_property = property # noqa: F401 try: from typing import Literal # noqa: F401 except ImportError: from typing_extensions import Literal # noqa: F401
25.3
55
0.735178
0645ee37440f90b8a168915191e648b994f53786
3,087
py
Python
sdk/storagepool/azure-mgmt-storagepool/setup.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/storagepool/azure-mgmt-storagepool/setup.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/storagepool/azure-mgmt-storagepool/setup.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
33.554348
91
0.60609
190e0debcfd77d78928700924dcb09254669831c
760
py
Python
venv/Lib/site-packages/joblib/test/test_module.py
deerajnagothu/pyenf_extraction
f5c3ebc9657133e1bea102b41768152ba0b30e1b
[ "MIT" ]
6
2021-10-30T09:00:55.000Z
2022-03-07T16:33:25.000Z
venv/Lib/site-packages/joblib/test/test_module.py
deerajnagothu/pyenf_extraction
f5c3ebc9657133e1bea102b41768152ba0b30e1b
[ "MIT" ]
null
null
null
venv/Lib/site-packages/joblib/test/test_module.py
deerajnagothu/pyenf_extraction
f5c3ebc9657133e1bea102b41768152ba0b30e1b
[ "MIT" ]
1
2022-03-16T11:33:50.000Z
2022-03-16T11:33:50.000Z
import sys import joblib import pytest from joblib.testing import check_subprocess_call def test_version(): assert hasattr(joblib, '__version__'), ( "There are no __version__ argument on the joblib module") @pytest.mark.skipif(sys.version_info < (3, 3), reason="Need python3.3+") def test_no_...
31.666667
73
0.686842
5c161b119fcfae68866c5d3ae296b129b348e9ff
1,230
py
Python
src/pyscript/matmul.py
JohndeVostok/tftest
b63123357b935db155394ccec156862f0cacee6e
[ "MIT" ]
null
null
null
src/pyscript/matmul.py
JohndeVostok/tftest
b63123357b935db155394ccec156862f0cacee6e
[ "MIT" ]
null
null
null
src/pyscript/matmul.py
JohndeVostok/tftest
b63123357b935db155394ccec156862f0cacee6e
[ "MIT" ]
null
null
null
import os import json import tensorflow as tf from tensorflow.python.client import timeline if __name__ == "__main__": os.environ["CUDA_VISIBLE_DEVICES"]="-1" os.chdir("/home/mazx/git/tftest") a = tf.random_normal([5000, 5000], name = "random_normal_0") b = tf.random_normal([5000, 5000], name = "random...
31.538462
97
0.629268
20451fbf46bb28f5207462324ffc5900dcdbf7b9
8,071
py
Python
PaddleCV/gan/network/SPADE_network.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
5
2021-09-28T13:28:01.000Z
2021-12-21T07:25:44.000Z
PaddleCV/gan/network/SPADE_network.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
1
2019-11-18T03:03:37.000Z
2019-11-18T03:03:37.000Z
PaddleCV/gan/network/SPADE_network.py
suytingwan/models
ccdbfe77d071cc19b55fb9f4b738912e35d982ef
[ "Apache-2.0" ]
4
2021-08-11T08:25:10.000Z
2021-10-16T07:41:59.000Z
#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # #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 l...
30.923372
79
0.515673
701fade2ab871d586a73ad7aeda563e0d20f5df4
3,707
py
Python
core/utils/frame_utils.py
gallif/raft
11a35ff5ede31918a360eca2f1481bc5fec9b5e5
[ "BSD-3-Clause" ]
1
2021-11-28T09:52:49.000Z
2021-11-28T09:52:49.000Z
core/utils/frame_utils.py
Kolin96/RAFT
3fac6470f487c85bcc03ef102f86e1542262108e
[ "BSD-3-Clause" ]
null
null
null
core/utils/frame_utils.py
Kolin96/RAFT
3fac6470f487c85bcc03ef102f86e1542262108e
[ "BSD-3-Clause" ]
1
2021-03-10T03:43:18.000Z
2021-03-10T03:43:18.000Z
import numpy as np from PIL import Image from os.path import * import re import cv2 TAG_CHAR = np.array([202021.25], np.float32) def readFlow(fn): """ Read .flo file in Middlebury format""" # Code adapted from: # http://stackoverflow.com/questions/28013200/reading-middlebury-flow-files-with-python-bytes-a...
29.895161
109
0.578635
cfd526ec4e91e34a6efb4c2fd9ca547cdcc828d6
497
py
Python
env/lib/python3.8/site-packages/plotly/validators/heatmapgl/colorbar/tickformatstop/_name.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/heatmapgl/colorbar/tickformatstop/_name.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/heatmapgl/colorbar/tickformatstop/_name.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class NameValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="name", parent_name="heatmapgl.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotl...
27.611111
66
0.61167
891453bacdbb537eddab14e1b54cd58ad577b562
11,070
py
Python
aim/storage/structured/sql_engine/entities.py
fairhopeweb/aim
f17b309e0e415e8798b6330b9ee71436a1b3994e
[ "Apache-2.0" ]
null
null
null
aim/storage/structured/sql_engine/entities.py
fairhopeweb/aim
f17b309e0e415e8798b6330b9ee71436a1b3994e
[ "Apache-2.0" ]
null
null
null
aim/storage/structured/sql_engine/entities.py
fairhopeweb/aim
f17b309e0e415e8798b6330b9ee71436a1b3994e
[ "Apache-2.0" ]
null
null
null
from typing import Collection, Union from sqlalchemy.orm import joinedload from aim.storage.types import SafeNone from aim.storage.structured.entities import \ Run as IRun, \ Experiment as IExperiment, \ Tag as ITag,\ RunCollection, TagCollection from aim.storage.structured.sql_engine.models import \ ...
34.811321
114
0.628636
0d51d0dee13bb281a3e3e357e611cd70a6008c43
10,563
py
Python
tensorflow/contrib/image/python/ops/image_ops.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
1
2019-01-22T19:43:27.000Z
2019-01-22T19:43:27.000Z
tensorflow/contrib/image/python/ops/image_ops.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/image/python/ops/image_ops.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
1
2019-03-03T15:17:50.000Z
2019-03-03T15:17:50.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.471264
85
0.700275
b3d0c43cc11f39cd6883c4f3d54a3405ef96fe8e
2,438
py
Python
cfripper/rules/SecurityGroupOpenToWorldRule.py
harry738/cfripper
83e4a2eb8015aad7178b67b112bcd99b1f60b09f
[ "Apache-2.0" ]
null
null
null
cfripper/rules/SecurityGroupOpenToWorldRule.py
harry738/cfripper
83e4a2eb8015aad7178b67b112bcd99b1f60b09f
[ "Apache-2.0" ]
null
null
null
cfripper/rules/SecurityGroupOpenToWorldRule.py
harry738/cfripper
83e4a2eb8015aad7178b67b112bcd99b1f60b09f
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 Skyscanner Ltd 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 dis...
37.507692
95
0.671452
c8c3e1cd08a4b913da3e4c4698c66b556e93c9d8
3,171
py
Python
emanate/cli.py
ritlew/emanate
9081e382242a9f7d27d8ee9027b4c891af1b3f1a
[ "MIT" ]
null
null
null
emanate/cli.py
ritlew/emanate
9081e382242a9f7d27d8ee9027b4c891af1b3f1a
[ "MIT" ]
null
null
null
emanate/cli.py
ritlew/emanate
9081e382242a9f7d27d8ee9027b4c891af1b3f1a
[ "MIT" ]
null
null
null
"""Command-line interface for the Emanate symbolic link manager. Examples: Emanate defaults to using the current directory as source, and the current user's home directory as destination:: ~/.dotfiles $ emanate would create symbolic links in ~ for files in ~/.dotfiles Emanate also defaults t...
33.378947
80
0.58562
c8684e5bb8c448810e0191bf6a0e26457171c4f5
2,416
py
Python
tests/tests_models/test_ensemble.py
michaelneale/mljar-supervised
8d1b5fdd56e994a7f13ec5f6d2033830744f3d6f
[ "MIT" ]
null
null
null
tests/tests_models/test_ensemble.py
michaelneale/mljar-supervised
8d1b5fdd56e994a7f13ec5f6d2033830744f3d6f
[ "MIT" ]
null
null
null
tests/tests_models/test_ensemble.py
michaelneale/mljar-supervised
8d1b5fdd56e994a7f13ec5f6d2033830744f3d6f
[ "MIT" ]
1
2021-03-12T05:48:45.000Z
2021-03-12T05:48:45.000Z
import unittest import tempfile import json import numpy as np import pandas as pd from numpy.testing import assert_almost_equal from sklearn import datasets from supervised.models.ensemble import Ensemble from supervised.metric import Metric from supervised.models.learner_factory import LearnerFactory class Simple...
27.146067
66
0.54346
8ed269914a494a7b6bf3195f956b482c907d43bc
4,017
py
Python
Source/Qt5/modules/syscheck.py
TheEnvironmentGuy/noodle-pipe
175ee86618ff202c3291f1bfa3952a14b9d6ac75
[ "MIT" ]
null
null
null
Source/Qt5/modules/syscheck.py
TheEnvironmentGuy/noodle-pipe
175ee86618ff202c3291f1bfa3952a14b9d6ac75
[ "MIT" ]
12
2015-01-31T02:37:45.000Z
2015-02-05T04:18:21.000Z
Source/Qt5/modules/syscheck.py
TheEnvironmentGuy/noodle-pipe
175ee86618ff202c3291f1bfa3952a14b9d6ac75
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- #Load modules try: import imp import sys import os import time import prefcheck import gui #import update import json except ImportError: raise Exception("Error: Faild to import critical modules.") sys.exit(1) def sysCheck(): #start writing to sysCheck.log unlo...
28.090909
89
0.656958
f396f4dea2b71f999b99b58cc46819ef7711d4bb
357
py
Python
Web_Pages_Manipulating_html/FindClass_on_SpecificTag.py
OblackatO/Network-Security
c954676453d0767e2f27cea622835e3e353b1134
[ "MIT" ]
null
null
null
Web_Pages_Manipulating_html/FindClass_on_SpecificTag.py
OblackatO/Network-Security
c954676453d0767e2f27cea622835e3e353b1134
[ "MIT" ]
null
null
null
Web_Pages_Manipulating_html/FindClass_on_SpecificTag.py
OblackatO/Network-Security
c954676453d0767e2f27cea622835e3e353b1134
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup bsinstance = BeautifulSoup(open('ltps_parse.html'),"lxml") #Searches for all img tags with a class on it , True means it can be any class, but one class can be specified. classimg = bsinstance.find_all('div',class_='label_text',limit=5) #can set a limit to the number of classes you want ...
51
117
0.770308
52d2af3fca052544302d2230ff5c1761b18aca1f
1,195
py
Python
2020/21/1.py
chaserobertson/advent
30205dcc20e46e5a48aaa80cbf8025d947045d93
[ "MIT" ]
null
null
null
2020/21/1.py
chaserobertson/advent
30205dcc20e46e5a48aaa80cbf8025d947045d93
[ "MIT" ]
null
null
null
2020/21/1.py
chaserobertson/advent
30205dcc20e46e5a48aaa80cbf8025d947045d93
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ingredients = [] allergens = [] with open('advent2020/21/input.txt', 'r') as f: for line in f.readlines(): all_str = line[line.find('(')+10:line.find(')')] if line.count(',') > 0: allergenz = all_str.split(', ') else: allergenz = [all_str] ...
25.978261
56
0.512971
12d0f48978959f6e0bbcf26835b8c3109ae82cd7
19,488
py
Python
visualization/visualization_utils.py
abfleishman/CameraTraps
eb509ac6a5305217266647b518d5383dc48f0b72
[ "MIT" ]
null
null
null
visualization/visualization_utils.py
abfleishman/CameraTraps
eb509ac6a5305217266647b518d5383dc48f0b72
[ "MIT" ]
null
null
null
visualization/visualization_utils.py
abfleishman/CameraTraps
eb509ac6a5305217266647b518d5383dc48f0b72
[ "MIT" ]
null
null
null
##### # # visualization_utils.py # # Core rendering functions shared across visualization scripts # ##### #%% Constants and imports import numpy as np from PIL import Image, ImageFile, ImageFont, ImageDraw import matplotlib.pyplot as plt from data_management.annotations import annotation_constants ImageFile.LOAD_TRUN...
39.054108
125
0.594982
68d6d328bf9064bb508b93ae3a4620575cc30b52
2,426
py
Python
CODE/downloader/downloader.py
teamboxcoxrox/teamboxcoxrox.gitlab.io
626074a46cb1b2dba6d367cfb63c9bfdb9cb3a92
[ "Unlicense" ]
null
null
null
CODE/downloader/downloader.py
teamboxcoxrox/teamboxcoxrox.gitlab.io
626074a46cb1b2dba6d367cfb63c9bfdb9cb3a92
[ "Unlicense" ]
null
null
null
CODE/downloader/downloader.py
teamboxcoxrox/teamboxcoxrox.gitlab.io
626074a46cb1b2dba6d367cfb63c9bfdb9cb3a92
[ "Unlicense" ]
1
2021-04-22T21:29:44.000Z
2021-04-22T21:29:44.000Z
from downloader.review_helper import ReviewHelper from downloader.product_helper import ProductHelper from downloader.download_helper import DownloadHelper from datetime import datetime class Downloader(): def __init__(self): pass def run(self, database_location): print("--------------- Do...
37.323077
101
0.612531
4627f9f04b186bcb0487853879cbe9bbcb6e0156
275
py
Python
tests/test_api.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
tests/test_api.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
5
2020-07-20T11:05:07.000Z
2022-03-11T15:51:52.000Z
tests/test_api.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
from pynorare import NoRaRe def test_NoRaRe(repos, concepticon_api): api = NoRaRe(repos=repos, concepticon=concepticon_api) assert len(api.refs) == 1 assert len(api.datasets) == 3 assert api.datasets['dsid'].columns assert api.datasets['dsid'].concepts
27.5
58
0.72
4428772b23fee354ea92116c67ac970f5f4b8755
1,994
py
Python
profiles_api/models.py
Aravind2468/Django-Profiles-Rest-API
25909a614c9b715c424abbd02924ea1d3cfba17e
[ "MIT" ]
null
null
null
profiles_api/models.py
Aravind2468/Django-Profiles-Rest-API
25909a614c9b715c424abbd02924ea1d3cfba17e
[ "MIT" ]
null
null
null
profiles_api/models.py
Aravind2468/Django-Profiles-Rest-API
25909a614c9b715c424abbd02924ea1d3cfba17e
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager # Create your models here. class UserProfileManager(BaseUserManager): """Manager for user profiles""" def create...
28.084507
63
0.657472
892a9979a4daf180bbe497580e0ee399b7ed1bfa
414
py
Python
experiments/fdtd-2d/tmp_files/3651.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/3651.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/3651.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/3651.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
23
116
0.722222
8c49b944da7c4f7cfc3fc708e9283849868ef216
1,912
py
Python
base/internedcollection.py
squahtx/hal9000
80e13911d0cf240c786f016993cd18bb063e687f
[ "MIT" ]
null
null
null
base/internedcollection.py
squahtx/hal9000
80e13911d0cf240c786f016993cd18bb063e687f
[ "MIT" ]
null
null
null
base/internedcollection.py
squahtx/hal9000
80e13911d0cf240c786f016993cd18bb063e687f
[ "MIT" ]
null
null
null
from .event import Event class InternedCollection(object): def __init__(self, factory, identity = None): super(InternedCollection, self).__init__() if identity is None: identity = lambda x: x self._itemAdded = Event("itemAdded") self._itemRemoved = Event("itemRemoved") self.factory = factory...
21.010989
64
0.675209
dd7460808a52a4b92a2dd6c926adc18145be3007
23,305
py
Python
src/evaluation_system/model/solr_core.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
2
2020-06-12T18:18:48.000Z
2021-12-18T03:35:08.000Z
src/evaluation_system/model/solr_core.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/evaluation_system/model/solr_core.py
FREVA-CLINT/Freva
53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" Created on 11.03.2013 @author: Sebastian Illing / estani This package encapsulate access to a solr instance (not for search but for administration) We define two cores:: * files: all files - id is file (full file path) * latest: only those files from the latest dataset version - id is file_no_version (full file...
43.724203
129
0.599828
472a3793ba217b49590f65f650e3fc7d9c6f2c41
1,052
py
Python
src/baselines/random_baseline.py
Michael-Beukman/NEATNoveltyPCG
2441d80eb0f6dd288a00ebb56c432963cefc879d
[ "MIT" ]
5
2022-01-26T23:19:46.000Z
2022-02-10T20:24:19.000Z
src/baselines/random_baseline.py
Michael-Beukman/NEATNoveltyPCG
2441d80eb0f6dd288a00ebb56c432963cefc879d
[ "MIT" ]
null
null
null
src/baselines/random_baseline.py
Michael-Beukman/NEATNoveltyPCG
2441d80eb0f6dd288a00ebb56c432963cefc879d
[ "MIT" ]
null
null
null
from common.methods.pcg_method import PCGMethod from games.game import Game from games.level import Level import numpy as np class RandomBaseline(PCGMethod): # This is a simple random baseline def __init__(self, game: Game, init_level: Level) -> None: super().__init__(game, init_level) de...
30.941176
78
0.68251
2d1d70618803015027d0ed67167745f601348cb2
1,920
py
Python
games/forms.py
dabreese00/clue-solver-django
ff5f33782a21cd1642362f48207f759342767a0e
[ "MIT" ]
null
null
null
games/forms.py
dabreese00/clue-solver-django
ff5f33782a21cd1642362f48207f759342767a0e
[ "MIT" ]
null
null
null
games/forms.py
dabreese00/clue-solver-django
ff5f33782a21cd1642362f48207f759342767a0e
[ "MIT" ]
null
null
null
from django import forms from django.core.exceptions import ValidationError from .models import ClueRelation, Player, GameCard from cards.models import CardSet class ClueRelationForm(forms.ModelForm): def __init__(self, game, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['player'...
35.555556
74
0.548438
a04c86953bfb4ac7c27f6b36d94f792478766c43
2,340
py
Python
colosseumrl/matchmaking/MatchmakingClient.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
8
2019-06-04T00:22:30.000Z
2022-02-14T15:27:17.000Z
colosseumrl/matchmaking/MatchmakingClient.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
1
2019-07-23T03:32:59.000Z
2019-07-23T06:16:35.000Z
colosseumrl/matchmaking/MatchmakingClient.py
carletonz/colosseumrl
878f0459731511d716672aee8a5adafcb96cf0a7
[ "MIT" ]
3
2020-01-13T08:09:27.000Z
2021-11-14T01:30:25.000Z
from typing import NamedTuple from hashlib import sha256 import grpc from .grpc_gen.server_pb2 import QuickMatchRequest from .grpc_gen.server_pb2_grpc import MatchmakerStub class GameResponse(NamedTuple): """ The container object for the response from the server. """ host: str port: int username: str...
32.5
119
0.675214
a0cc62a5fe266341fafaaae59a4b133b5049a3e1
1,759
py
Python
pychron/lasers/tasks/laser_calibration_panes.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/lasers/tasks/laser_calibration_panes.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/lasers/tasks/laser_calibration_panes.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2013 Jake Ross # # 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/licens...
35.18
84
0.604889
da2c3eb3c7af20c3785eb039f29ed74302fd116b
768
py
Python
packages/micropython-official/v1.9.4/esp8266/stubs/uctypes.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
18
2019-07-11T13:31:09.000Z
2022-01-27T06:38:40.000Z
packages/micropython-official/v1.9.4/esp8266/stubs/uctypes.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
9
2019-09-01T21:44:49.000Z
2022-02-04T20:55:08.000Z
packages/micropython-official/v1.9.4/esp8266/stubs/uctypes.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
6
2019-10-08T05:31:21.000Z
2021-04-22T10:21:01.000Z
""" Module: 'uctypes' on esp8266 v1.9.4 """ # MCU: (sysname='esp8266', nodename='esp8266', release='2.2.0-dev(9422289)', version='v1.9.4-8-ga9a3caad0 on 2018-05-11', machine='ESP module with ESP8266') # Stubber: 1.1.2 ARRAY = -1073741824 BFINT16 = -671088640 BFINT32 = -402653184 BFINT8 = -939524096 BFUINT16 = -80530636...
17.066667
156
0.699219
5aae8edea28495fe0a38dd31a1a555722d128185
43,831
py
Python
gnumpy/npmat.py
ExoCTK/gnumpy3
e8366dee8c25ab621c1a8780eb917afc407df0a8
[ "BSD-3-Clause" ]
1
2020-12-26T13:22:33.000Z
2020-12-26T13:22:33.000Z
gnumpy/npmat.py
ExoCTK/gnumpy3
e8366dee8c25ab621c1a8780eb917afc407df0a8
[ "BSD-3-Clause" ]
null
null
null
gnumpy/npmat.py
ExoCTK/gnumpy3
e8366dee8c25ab621c1a8780eb917afc407df0a8
[ "BSD-3-Clause" ]
1
2020-05-10T00:49:36.000Z
2020-05-10T00:49:36.000Z
import os, pdb, time, warnings import numpy as np __DTYPE__ = np.float64 def dummy(): return CUDAMatrix(np.zeros((1, 1))) def deprecated(func): """This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emmitted when the function is used.""" de...
21.517428
169
0.579407
2338ddfa264ef1df05958d42b54fc21b95436ccf
44,527
py
Python
src/TheLanguage/Lexer/Phrases/UnitTests/DSL_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Lexer/Phrases/UnitTests/DSL_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
null
null
null
src/TheLanguage/Lexer/Phrases/UnitTests/DSL_UnitTest.py
davidbrownell/DavidBrownell_TheLanguage
07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98
[ "BSL-1.0" ]
1
2021-06-18T18:58:57.000Z
2021-06-18T18:58:57.000Z
# ---------------------------------------------------------------------- # | # | DSL_UnitTest.py # | # | David Brownell <db@DavidBrownell.com> # | 2021-09-24 16:43:52 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2021 # | Distributed und...
32.525201
236
0.42545
46fd49c07aff2abf38a480232ea59a52feb9c767
1,326
py
Python
test/functional/test_framework/script_util.py
Perbug/perbug
4fa48d19be465006cdcaf9e6c09d394309aa2bf9
[ "MIT" ]
1
2022-03-05T14:50:58.000Z
2022-03-05T14:50:58.000Z
test/functional/test_framework/script_util.py
Perbug/perbug
4fa48d19be465006cdcaf9e6c09d394309aa2bf9
[ "MIT" ]
2
2021-12-18T03:02:54.000Z
2022-01-17T17:55:36.000Z
test/functional/test_framework/script_util.py
DclrCoin/dclrcoin
1ca3bd1f787fdead6ae84b7cda2bab6c6cb62b1d
[ "MIT" ]
2
2021-12-25T12:39:07.000Z
2022-02-14T03:03:36.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Bitcoin Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Useful Script constants and utils.""" from test_framework.script import CScript # To prevent a "tx-size-sma...
51
84
0.737557
a149c37aea7b9672b441d22aa1332574486432ce
3,129
py
Python
python/ray/tune/tests/test_warnings.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/tune/tests/test_warnings.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
41
2021-09-21T01:13:48.000Z
2022-03-19T07:12:22.000Z
python/ray/tune/tests/test_warnings.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
import pytest import ray from ray import tune from ray.data.context import DatasetContext from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy from ray.tune.error import TuneError def test_nowarn_zero_cpu(): def f(*a): @ray.remote(num_cpus=0) def f(): pass ...
21.729167
86
0.555129
d7cc7ad803aea1957fe8a0f65051bf4e4ecfc351
10,262
py
Python
exps/actor_critic.py
windweller/nlplab
aac33ff17036bbf00bd3118953db08ae98da9d36
[ "MIT" ]
null
null
null
exps/actor_critic.py
windweller/nlplab
aac33ff17036bbf00bd3118953db08ae98da9d36
[ "MIT" ]
null
null
null
exps/actor_critic.py
windweller/nlplab
aac33ff17036bbf00bd3118953db08ae98da9d36
[ "MIT" ]
null
null
null
from sandbox.rocky.tf.algos.vpg import VPG from rllab.misc.overrides import overrides import numpy as np import pickle from sandbox.rocky.tf.misc import tensor_utils import tensorflow as tf from rllab.misc import ext # TODO: 2. add code to pretrain critic class PreTrainer(object): """ It seems that rllab is ...
38.578947
114
0.625609
b1372e15f25deaa263c9376112c3964a526d2b5f
151,680
py
Python
python/helpers/pycharm_generator_utils/pyparsing_py2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/helpers/pycharm_generator_utils/pyparsing_py2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/helpers/pycharm_generator_utils/pyparsing_py2.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-04-05T14:26:13.000Z
2021-03-09T08:18:17.000Z
# module pyparsing.py # # Copyright (c) 2003-2011 Paul T. McGuire # # 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, cop...
40.448
196
0.588014
21231c3f6f54724b3ebc9dcd89ad41ad7121d9d8
14,463
py
Python
userbot/modules/stickers.py
Furuhashii/aone-kangbot
2732b66faf778771cff33f48a83ee0275d92c462
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/stickers.py
Furuhashii/aone-kangbot
2732b66faf778771cff33f48a83ee0275d92c462
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/stickers.py
Furuhashii/aone-kangbot
2732b66faf778771cff33f48a83ee0275d92c462
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-05-06T17:14:03.000Z
2020-05-06T17:14:03.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for kanging stickers or making new ones. Thanks @rupansh""" import io import math import urllib.req...
42.289474
114
0.566618
5761ac2c4a24737674df47d16022385b64e6ba53
6,404
py
Python
gtp_extensions.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
gtp_extensions.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
gtp_extensions.py
awesome-archive/minigo
188fb197fdafbe9664a32142373b1cbd1459bc67
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.27673
129
0.62539
266389ce1d217230e40fdfefa2446c07d0d18a8e
3,086
py
Python
deepcell_datasets/conftest.py
vanvalenlab/deepcell-datasets
aadd709b2bc13e1de57add5226e4d2abbeb21362
[ "Apache-2.0" ]
null
null
null
deepcell_datasets/conftest.py
vanvalenlab/deepcell-datasets
aadd709b2bc13e1de57add5226e4d2abbeb21362
[ "Apache-2.0" ]
5
2021-03-19T18:43:46.000Z
2022-02-28T02:34:03.000Z
deepcell_datasets/conftest.py
vanvalenlab/deepcell-datasets
aadd709b2bc13e1de57add5226e4d2abbeb21362
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2020 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
29.961165
80
0.680169
1be6f53339dcf0a50c440909896dbeaf1f779acf
261
py
Python
World 3/Exercise 114.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 3/Exercise 114.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
World 3/Exercise 114.py
NikiReis/Python--Exercises
2f50a3cd6900cec024edcf1a812d1cd86afcdea1
[ "MIT" ]
null
null
null
import urllib import urllib.request try: site = urllib.request.urlopen('https://www.python.org/') except urllib.error.URLError: print('O site não está disponível para ser acessado!') else: print('O site está disponível para ser acessado!')
29
61
0.708812
294810aedac3ebcfb07a7fc6e47737e53d420602
1,378
py
Python
gcd/bus.py
bthate/genocide
8de7a2cccee7315ae6cf5661738ba1335e30a5ba
[ "DOC" ]
null
null
null
gcd/bus.py
bthate/genocide
8de7a2cccee7315ae6cf5661738ba1335e30a5ba
[ "DOC" ]
null
null
null
gcd/bus.py
bthate/genocide
8de7a2cccee7315ae6cf5661738ba1335e30a5ba
[ "DOC" ]
null
null
null
# This file is placed in the Public Domain. from .obj import Object class BusError(Exception): pass class Bus(Object): objs = [] def __iter__(self): return iter(Bus.objs) @staticmethod def add(obj): if obj not in Bus.objs: Bus.objs.append(obj) @staticmethod...
19.408451
43
0.49492
61dd7e4005f58f895c0e3be78e928704c2d8da1e
7,678
py
Python
my_configs/fast_rcnn/fast_demo.py
EtokonE/mmdetection
1d7b0dcf3ff0cdc0d5142ea3bee1a4c0040408a0
[ "Apache-2.0" ]
null
null
null
my_configs/fast_rcnn/fast_demo.py
EtokonE/mmdetection
1d7b0dcf3ff0cdc0d5142ea3bee1a4c0040408a0
[ "Apache-2.0" ]
null
null
null
my_configs/fast_rcnn/fast_demo.py
EtokonE/mmdetection
1d7b0dcf3ff0cdc0d5142ea3bee1a4c0040408a0
[ "Apache-2.0" ]
1
2021-07-16T06:47:17.000Z
2021-07-16T06:47:17.000Z
model = dict( type='FastRCNN', pretrained='open-mmlab://detectron2/resnet101_caffe', backbone=dict( type='ResNet', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=False), norm_eval=True, ...
37.091787
102
0.525527
9f9fc72d4466b6882677958b4101597bebcf6404
1,698
py
Python
example/utils.py
marknotfound/django-su
af989d8872a7add40eb1ec33a43a661f6429ea47
[ "MIT" ]
123
2015-01-06T00:38:04.000Z
2022-02-02T10:50:12.000Z
example/utils.py
marknotfound/django-su
af989d8872a7add40eb1ec33a43a661f6429ea47
[ "MIT" ]
42
2015-02-19T20:22:28.000Z
2022-03-30T14:11:21.000Z
example/utils.py
marknotfound/django-su
af989d8872a7add40eb1ec33a43a661f6429ea47
[ "MIT" ]
34
2015-06-15T22:24:00.000Z
2022-02-02T10:50:13.000Z
# -*- coding: utf-8 -*- from django.contrib.auth import SESSION_KEY, BACKEND_SESSION_KEY, get_user_model try: from django.contrib.auth import HASH_SESSION_KEY except ImportError: HASH_SESSION_KEY = '_auth_user_hash' User = get_user_model() def su_login_callback(user): if user.is_active and user.is_staf...
31.444444
80
0.694346
1df97bc96c54cddbc16ffc293c707555da259a42
511
py
Python
tools/build/test/example_libraries.py
lijgame/boost
ec2214a19cdddd1048058321a8105dd0231dac47
[ "BSL-1.0" ]
85
2015-02-08T20:36:17.000Z
2021-11-14T20:38:31.000Z
libs/boost/tools/build/test/example_libraries.py
flingone/frameworks_base_cmds_remoted
4509d9f0468137ed7fd8d100179160d167e7d943
[ "Apache-2.0" ]
9
2015-01-28T16:33:19.000Z
2020-04-12T23:03:28.000Z
libs/boost/tools/build/test/example_libraries.py
flingone/frameworks_base_cmds_remoted
4509d9f0468137ed7fd8d100179160d167e7d943
[ "Apache-2.0" ]
27
2015-01-28T16:33:30.000Z
2021-08-12T05:04:39.000Z
#!/usr/bin/python # Copyright (C) Vladimir Prus 2006. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Test the 'libraries' example. import BoostBuild t = BoostBuild.Tester(use_test_config=False) ...
23.227273
66
0.684932
abb75434a2349be8190271481222c1b3f5c00420
2,472
py
Python
genesis/length_scales/model_fitting/exponential_fit.py
leifdenby/uclales-extractor
6147533e25b3b417c744bd814d2407a6588cf995
[ "BSD-3-Clause" ]
null
null
null
genesis/length_scales/model_fitting/exponential_fit.py
leifdenby/uclales-extractor
6147533e25b3b417c744bd814d2407a6588cf995
[ "BSD-3-Clause" ]
null
null
null
genesis/length_scales/model_fitting/exponential_fit.py
leifdenby/uclales-extractor
6147533e25b3b417c744bd814d2407a6588cf995
[ "BSD-3-Clause" ]
null
null
null
import xarray as xr import numpy as np import matplotlib.pyplot as plt from .pystan_cache import StanModel_cache from .utils import dist_plot SM_CODE = """ data { int<lower=1> n; real x[n]; } parameters { real<lower=0> beta; } model { x ~ exponential(1.0/beta); } """ def _sample_exp(Ntot, vrange, be...
27.164835
81
0.591019
cf89b0ffd4fa78a2f8d4f00d1efe7329878be7ed
1,716
py
Python
scripts/cms_user_adder.py
ryanking13/cms-guide
d64b0dff3ca4c70abed44f23908fa660a33644d7
[ "MIT" ]
3
2017-11-02T06:03:33.000Z
2019-09-10T08:56:23.000Z
scripts/cms_user_adder.py
ryanking13/cms-guide
d64b0dff3ca4c70abed44f23908fa660a33644d7
[ "MIT" ]
null
null
null
scripts/cms_user_adder.py
ryanking13/cms-guide
d64b0dff3ca4c70abed44f23908fa660a33644d7
[ "MIT" ]
null
null
null
from subprocess import call import sys import random import hashlib def parse_info(info): # this function must return an array of dictionary. # each element should have username, password, first_name, last_name ''' # PARSING SAMPLE # YOU SHOULD IMPLEMNET THIS BY USERSELF data = [] cnt ...
21.721519
84
0.543124
082a4a362429acf4124219d990480395b61a1aae
9,092
py
Python
lambda_ecs_draining/lambda/source/index.py
MakeMeReach/terraform-aws-ecs
457b17c1f5bb5a14b903c85d2f8901c84e7c5bf0
[ "MIT" ]
2
2018-06-06T09:44:03.000Z
2021-02-01T12:42:11.000Z
lambda_ecs_draining/lambda/source/index.py
MakeMeReach/terraform-aws-ecs
457b17c1f5bb5a14b903c85d2f8901c84e7c5bf0
[ "MIT" ]
null
null
null
lambda_ecs_draining/lambda/source/index.py
MakeMeReach/terraform-aws-ecs
457b17c1f5bb5a14b903c85d2f8901c84e7c5bf0
[ "MIT" ]
1
2021-09-24T13:21:08.000Z
2021-09-24T13:21:08.000Z
from __future__ import print_function import boto3 from urlparse import urlparse import base64 import json import datetime import time import logging logging.basicConfig() logger = logging.getLogger() logger.setLevel(logging.DEBUG) # Establish boto3 session session = boto3.session.Session() logger.debug("Session is i...
49.68306
170
0.655741
1d8747f299030c9fc55f1eaed21b8aa6d79f9040
1,687
py
Python
dataviz/cereals.py
Udzu/pudzu
5a0302830b052fc54feba891eb7bf634957a9d90
[ "MIT" ]
119
2017-07-22T15:02:30.000Z
2021-08-02T10:42:59.000Z
dataviz/cereals.py
Udzu/pudzu
5a0302830b052fc54feba891eb7bf634957a9d90
[ "MIT" ]
null
null
null
dataviz/cereals.py
Udzu/pudzu
5a0302830b052fc54feba891eb7bf634957a9d90
[ "MIT" ]
28
2017-08-04T14:28:41.000Z
2019-11-27T23:46:14.000Z
from pudzu.charts import * from pudzu.sandbox.bamboo import * df = pd.read_csv("datasets/cereals.csv").assign_rows(sort=lambda d: "ZZZ" if d["cereal"] == "Special K" else d["cereal"]).sort_values("sort") data = pd.DataFrame(list(generate_batches((dict(row) for _,row in df.iterrows()), 5))) default_img = "https://...
64.884615
183
0.668643
1bbf0066e99c120868ab148165752931cb10d758
1,542
py
Python
Dfs.py
IlohPrincess/SearchAlgorithm
371fd077b0d49c13387e37fd92bd81c950ffecb6
[ "MIT" ]
null
null
null
Dfs.py
IlohPrincess/SearchAlgorithm
371fd077b0d49c13387e37fd92bd81c950ffecb6
[ "MIT" ]
null
null
null
Dfs.py
IlohPrincess/SearchAlgorithm
371fd077b0d49c13387e37fd92bd81c950ffecb6
[ "MIT" ]
null
null
null
from pyamaze import maze, agent, textLabel, COLOR from timeit import timeit def SEARCHDFS(m): start=(m.rows, m.cols) explored=[start] frontier=[start] dfsPath={} while len(frontier)>0: currentCell=frontier.pop() if currentCell==(2,13): break for directi...
33.521739
71
0.549287
551d212e2fcf6702f59cf72e5efc82581357d8e6
2,634
py
Python
itdagene/app/stands/views.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
9
2018-10-17T20:58:09.000Z
2021-12-16T16:16:45.000Z
itdagene/app/stands/views.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
177
2018-10-27T18:15:56.000Z
2022-03-28T04:29:06.000Z
itdagene/app/stands/views.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import permission_required from django.contrib.messages import SUCCESS, add_message from django.shortcuts import get_object_or_404, redirect, render from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from itdagene.app.events.models import Event fr...
30.988235
87
0.64123
394c1e6ad5e7fd942f24a25c26f88952575c3c2c
4,812
py
Python
Sketchbots/sw/labqueue/support/big_counter.py
rlugojr/ChromeWebLab
60f964b3f283c15704b7a04b7bb50cb15791e2e4
[ "Apache-2.0" ]
306
2015-01-09T14:03:44.000Z
2017-09-16T13:03:35.000Z
Sketchbots/sw/labqueue/support/big_counter.py
rlugojr/ChromeWebLab
60f964b3f283c15704b7a04b7bb50cb15791e2e4
[ "Apache-2.0" ]
90
2019-03-26T05:36:00.000Z
2021-07-28T05:30:16.000Z
Sketchbots/sw/labqueue/support/big_counter.py
rlugojr/ChromeWebLab
60f964b3f283c15704b7a04b7bb50cb15791e2e4
[ "Apache-2.0" ]
119
2015-01-26T15:04:33.000Z
2017-09-13T09:30:53.000Z
# Copyright 2013 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
37.59375
122
0.660848
a82a2185df32e52a9adc7124d9f131ac14000c70
10,266
py
Python
mmdet/apis/inference.py
dandelin/mmdetection
03e1c72f1bb6222bdf9af3bfe60946cf008c7143
[ "Apache-2.0" ]
null
null
null
mmdet/apis/inference.py
dandelin/mmdetection
03e1c72f1bb6222bdf9af3bfe60946cf008c7143
[ "Apache-2.0" ]
null
null
null
mmdet/apis/inference.py
dandelin/mmdetection
03e1c72f1bb6222bdf9af3bfe60946cf008c7143
[ "Apache-2.0" ]
null
null
null
import warnings import os import ipdb from skimage.transform import resize from tensorboardX import SummaryWriter import torch.nn.functional as F import mmcv import numpy as np import torch from mmcv.runner import load_checkpoint from matplotlib import pyplot as plt import sys import os sys.path.insert(0, os.path.joi...
30.194118
123
0.601695
7d98bccf220ff0e7e2f21c13da26f17fb330c3a6
650
py
Python
ami_test.py
Swiftaim/simpleami
9beaf1386d64bce525d6b3d9fa9936d627af455f
[ "MIT" ]
1
2019-04-22T11:35:17.000Z
2019-04-22T11:35:17.000Z
ami_test.py
Swiftaim/simpleami
9beaf1386d64bce525d6b3d9fa9936d627af455f
[ "MIT" ]
null
null
null
ami_test.py
Swiftaim/simpleami
9beaf1386d64bce525d6b3d9fa9936d627af455f
[ "MIT" ]
null
null
null
from simpleami import * from collections import namedtuple def originate_action(): options = OriginateOptions(type='Local', number='8888', channel='trunk90-in', timeout='10', caller_id='simpleami', context='auto_test_client', extension='1234', act...
22.413793
53
0.64
ad98e9d19a7c08b6d99d34735e8f2bd1e8e242c5
2,362
py
Python
toughio/_cli/_merge.py
codacy-badger/toughio
8d4f3d8408d5507a83f65e7f393b13be08d42aca
[ "MIT" ]
null
null
null
toughio/_cli/_merge.py
codacy-badger/toughio
8d4f3d8408d5507a83f65e7f393b13be08d42aca
[ "MIT" ]
null
null
null
toughio/_cli/_merge.py
codacy-badger/toughio
8d4f3d8408d5507a83f65e7f393b13be08d42aca
[ "MIT" ]
null
null
null
__all__ = [ "merge", ] def merge(argv=None): import os parser = _get_parser() args = parser.parse_args(argv) # Check that input, MESH and INCON files exist head = os.path.split(args.infile)[0] mesh_filename = head + ("/" if head else "") + "MESH" incon_filename = head + ("/" if head ...
27.465116
78
0.609653
e339142834d7524754044c0c6fa67a5a354b8069
1,063
py
Python
convenience/make_image_single_wavelength.py
smlower/powderday
99e7cec28bfbcba40ec1cff367fa564f51d9b62c
[ "BSD-3-Clause" ]
18
2019-09-04T09:48:54.000Z
2022-02-08T20:45:19.000Z
convenience/make_image_single_wavelength.py
smlower/powderday
99e7cec28bfbcba40ec1cff367fa564f51d9b62c
[ "BSD-3-Clause" ]
79
2019-09-05T15:09:02.000Z
2022-02-25T13:29:51.000Z
convenience/make_image_single_wavelength.py
smlower/powderday
99e7cec28bfbcba40ec1cff367fa564f51d9b62c
[ "BSD-3-Clause" ]
14
2019-08-30T18:24:52.000Z
2021-08-05T15:33:13.000Z
import numpy as np import matplotlib.pyplot as plt from hyperion.model import ModelOutput import astropy.units as u # ------------------------ # modifiable header # ------------------------ m = ModelOutput('/Users/desika/Dropbox/powderday/verification/gadget/example.200.rtout.image') wav = 200 # micron # ----------...
25.309524
94
0.650988
e57aed14fb739c4933ba40bba57fcc84f1b89192
239
py
Python
examples/rq/app.py
BrianHicks/em
19a86c2392b136c9e857000798ccaa525aa0ed84
[ "MIT" ]
6
2015-05-10T14:09:54.000Z
2021-01-04T10:09:38.000Z
examples/rq/app.py
techdragon/emit
19a86c2392b136c9e857000798ccaa525aa0ed84
[ "MIT" ]
null
null
null
examples/rq/app.py
techdragon/emit
19a86c2392b136c9e857000798ccaa525aa0ed84
[ "MIT" ]
3
2015-04-04T15:37:55.000Z
2015-08-21T08:08:45.000Z
'simple rq app' from redis import Redis from emit.router.rq import RQRouter import logging router = RQRouter(redis_connection=Redis(), node_modules=['tasks']) logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
23.9
76
0.774059
86dd282ca9aa91dcaefe3d562e3b72c0656bd001
3,057
py
Python
app/profiles/schemas/queries.py
MrPeker/acikkaynak-service
21c3f2faaa84342d2fa95709293bc84d1e2a23ae
[ "Apache-2.0" ]
5
2021-02-28T22:29:13.000Z
2021-11-29T00:24:28.000Z
app/profiles/schemas/queries.py
MrPeker/acikkaynak-service
21c3f2faaa84342d2fa95709293bc84d1e2a23ae
[ "Apache-2.0" ]
null
null
null
app/profiles/schemas/queries.py
MrPeker/acikkaynak-service
21c3f2faaa84342d2fa95709293bc84d1e2a23ae
[ "Apache-2.0" ]
3
2021-03-03T19:56:30.000Z
2021-03-06T22:10:35.000Z
import graphene from graphene_django.filter import DjangoFilterConnectionField from graphene_django.types import DjangoObjectType from app.common.schemas.languages import LanguageNode from app.profiles.models import Profile, ProfileAchievement, ProfileTag # queries class ProfileTagNode(DjangoObjectType): # id =...
31.193878
93
0.660124
fa413ff1fca80f851da8b26fb111de877796d24f
1,116
py
Python
Programmers/C30L43238/C30L43238.py
iamGreedy/CodingTest
30fc5d73102de2d5c9d8a4f8d7047b8197dc99b7
[ "MIT" ]
null
null
null
Programmers/C30L43238/C30L43238.py
iamGreedy/CodingTest
30fc5d73102de2d5c9d8a4f8d7047b8197dc99b7
[ "MIT" ]
null
null
null
Programmers/C30L43238/C30L43238.py
iamGreedy/CodingTest
30fc5d73102de2d5c9d8a4f8d7047b8197dc99b7
[ "MIT" ]
null
null
null
# %% def prev_sol(n, times): tt = [t * (n // len(times) + (1 if i < n % len(times) else 0)) for i, t in enumerate(times)] while (True): cmxi, cmx = max(enumerate(tt), key=lambda a: a[1]) nmni, nmn = min( enumerate(map(lambda ab: ab[0] + ab[1], zip(times, tt))), key=lambda a...
27.219512
95
0.450717
9871c0e19bc88f145558947598ade2726640b61c
990
py
Python
loggingModule.py
a2gs/pythonStudy
e790e223a05fd50a5bcaf1240ef24ff60f361cdd
[ "MIT" ]
null
null
null
loggingModule.py
a2gs/pythonStudy
e790e223a05fd50a5bcaf1240ef24ff60f361cdd
[ "MIT" ]
null
null
null
loggingModule.py
a2gs/pythonStudy
e790e223a05fd50a5bcaf1240ef24ff60f361cdd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging def func(): logging.debug('This is a debug message') logging.info('This is an info message') logging.warning('This is a warning message') logging.error('This is an error message') logging.critical('This is a critical message') try: c = 1 / 0 exce...
31.935484
215
0.689899
b9282cabb8e70f56150f81861062172041f13ba3
152
py
Python
ExpandAlphabets.py
hemanthsoma/Coding-Practice
82992453426103c5198461886cf014cff3a75813
[ "Unlicense" ]
2
2020-09-17T14:30:06.000Z
2020-09-20T17:11:06.000Z
ExpandAlphabets.py
hemanthsoma/CodingSolutions
82992453426103c5198461886cf014cff3a75813
[ "Unlicense" ]
null
null
null
ExpandAlphabets.py
hemanthsoma/CodingSolutions
82992453426103c5198461886cf014cff3a75813
[ "Unlicense" ]
null
null
null
import re m=re.split('(\d+)',input().strip()) = for i in range(0,len(m)-1,2): if i%2==0: print(m[i]*int(m[i+1]),end="")
25.333333
57
0.434211
858525df545e11aa9320e80d666eb0b1d0159c11
11,894
py
Python
mmdet/core/anchor/guided_anchor_target.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
null
null
null
mmdet/core/anchor/guided_anchor_target.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
null
null
null
mmdet/core/anchor/guided_anchor_target.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
null
null
null
import torch from ..bbox import PseudoSampler, build_assigner, build_sampler from ..utils import multi_apply, unmap def calc_region(bbox, ratio, featmap_size=None, use_round=True): """Calculate a proportional bbox region. The bbox center are fixed and the new h' and w' is h * ratio and w * ratio. Args:...
40.872852
79
0.611148
3c02b1e86e3ba156c6d1cd2a8370a7957f7a1658
2,761
py
Python
src/third_party/wiredtiger/test/suite/test_txn11.py
mwhudson/mongo
914bbbd26a686e032fdddec964b109ea78c6e6f6
[ "Apache-2.0" ]
14
2019-01-11T05:01:29.000Z
2021-11-01T00:39:46.000Z
src/third_party/wiredtiger/test/suite/test_txn11.py
mwhudson/mongo
914bbbd26a686e032fdddec964b109ea78c6e6f6
[ "Apache-2.0" ]
1
2022-03-05T02:55:28.000Z
2022-03-05T05:28:00.000Z
src/third_party/wiredtiger/test/suite/test_txn11.py
mwhudson/mongo
914bbbd26a686e032fdddec964b109ea78c6e6f6
[ "Apache-2.0" ]
7
2019-02-08T16:28:36.000Z
2021-05-08T14:25:47.000Z
#!/usr/bin/env python # # Public Domain 2014-2016 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
35.397436
73
0.692141
891f3e6874d4420de073b367842e3b38f1b91e8a
737
py
Python
deploy.py
yehan2002/TrapsAndTrolls
7ca377e7f10802a5dd868ce26ce0f49a1fce81cf
[ "MIT" ]
1
2019-04-14T06:21:50.000Z
2019-04-14T06:21:50.000Z
deploy.py
yehan2002/TrapsAndTrolls
7ca377e7f10802a5dd868ce26ce0f49a1fce81cf
[ "MIT" ]
null
null
null
deploy.py
yehan2002/TrapsAndTrolls
7ca377e7f10802a5dd868ce26ce0f49a1fce81cf
[ "MIT" ]
1
2019-01-24T14:40:59.000Z
2019-01-24T14:40:59.000Z
#!/usr/bin/python2 import sys import os if len(sys.argv) == 1: quit("Usage: %s [Version]" % os.path.dirname(__file__)) version= sys.argv[1] os.chdir(os.path.dirname(__file__)) def addVersion(path, key, data): filedata = [] with open(path, 'rb') as f: for l in f.readlines(): if key i...
23.774194
73
0.588874
9325c38d43c1c4d8030ab8f3f98679861fc4659e
1,084
py
Python
src/python/WMQuality/Emulators/WMAgents/WMAgentEmulator.py
vkuznet/WMCore
001cc51651052405a7ecd811cde91da611b1dc57
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
src/python/WMQuality/Emulators/WMAgents/WMAgentEmulator.py
vkuznet/WMCore
001cc51651052405a7ecd811cde91da611b1dc57
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
src/python/WMQuality/Emulators/WMAgents/WMAgentEmulator.py
vkuznet/WMCore
001cc51651052405a7ecd811cde91da611b1dc57
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ Auto generated stub be careful with editing, Inheritance is preferred. """ from __future__ import absolute_import import logging import threading from WMCore.Agent.Harness import Harness from WMQuality.Emulators.RucioClient.MockRucioApi import SITES as DUMMY_SITES from .WMAgentTasks import ...
26.439024
85
0.687269
7598a7740a2c92cdead8fce7a4355fcadc170d22
84,716
py
Python
alphapept/feature_finding.py
mschwoer/alphapept
446b3c8b2a20619a74ff872c24a01fed8b99a20a
[ "Apache-2.0" ]
null
null
null
alphapept/feature_finding.py
mschwoer/alphapept
446b3c8b2a20619a74ff872c24a01fed8b99a20a
[ "Apache-2.0" ]
null
null
null
alphapept/feature_finding.py
mschwoer/alphapept
446b3c8b2a20619a74ff872c24a01fed8b99a20a
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/04_feature_finding.ipynb (unless otherwise specified). __all__ = ['connect_centroids_unidirection', 'find_centroid_connections', 'convert_connections_to_array', 'eliminate_overarching_vertex', 'connect_centroids', 'path_finder', 'find_path_start', 'find_path_l...
39.274919
438
0.65683
0e8e109dc2d5c300a72b06fc16a6718619759d81
939
py
Python
scraping/web.py
vmarcella/auto-python
d98b5cd56d5c04e57992ed6ec2f6f0c8630caf8d
[ "MIT" ]
1
2019-05-04T09:26:07.000Z
2019-05-04T09:26:07.000Z
scraping/web.py
C3NZ/auto-python
d98b5cd56d5c04e57992ed6ec2f6f0c8630caf8d
[ "MIT" ]
2
2021-03-19T00:49:22.000Z
2021-06-08T19:56:02.000Z
scraping/web.py
vmarcella/auto-python
d98b5cd56d5c04e57992ed6ec2f6f0c8630caf8d
[ "MIT" ]
null
null
null
""" Playing around with API calls in python """ import requests def main(): # fetch a bunch of posts response = requests.get("https://jsonplaceholder.typicode.com/posts") # Print out our status code, and the first post print(response) print(response.json()[0]) # Dictionary of the new pos...
22.902439
75
0.643237
0ea37bead89777eb5845fa6e72e443ad32cbcf25
81,469
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/virtual_network_gateways_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/virtual_network_gateways_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/virtual_network_gateways_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.615713
231
0.693307
3b009c6a5ac7c586c6716a94106231602a560b18
466
py
Python
challenges/spoj/ngm/ngm_v001.py
Joeffison/coding_challenges
0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea
[ "MIT" ]
1
2018-02-27T15:53:17.000Z
2018-02-27T15:53:17.000Z
challenges/spoj/ngm/ngm_v001.py
Joeffison/coding_challenges
0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea
[ "MIT" ]
null
null
null
challenges/spoj/ngm/ngm_v001.py
Joeffison/coding_challenges
0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea
[ "MIT" ]
1
2021-04-18T09:43:21.000Z
2021-04-18T09:43:21.000Z
#!/usr/bin/env python3 import fileinput import sys def solution(n): # If a player faces a number n <= 9, they can play it to win # But if n is 10, there is no chance to win # and any number divisible per 10 will eventually lead to the same scenario (when both players are optimal) remainder = n % 10 return ...
25.888889
109
0.690987
ca9593ea371d5e77d93c3eec24a69f5e1c1e80b5
3,375
py
Python
src/2.7/sample/chapter_03/sample_3_2.py
nutti/Introduction-to-Addon-Development-in-Blender-Web
cae839a4ce5fe1caabae67e252912440277d42e8
[ "CC0-1.0" ]
10
2020-02-17T05:50:17.000Z
2022-01-02T14:50:48.000Z
src/2.7/sample/chapter_03/sample_3_2.py
nutti/Introduction-to-Addon-Development-in-Blender-Web
cae839a4ce5fe1caabae67e252912440277d42e8
[ "CC0-1.0" ]
1
2020-03-29T14:32:46.000Z
2020-03-30T08:56:50.000Z
src/2.7/sample/chapter_03/sample_3_2.py
nutti/Introduction-to-Addon-Development-in-Blender-Web
cae839a4ce5fe1caabae67e252912440277d42e8
[ "CC0-1.0" ]
6
2019-05-15T16:59:48.000Z
2020-08-08T17:20:09.000Z
import bpy from bpy.props import BoolProperty, PointerProperty from mathutils import Vector bl_info = { "name": "サンプル3-2: キーボードのキー入力に応じてオブジェクトを並進移動させる", "author": "Nutti", "version": (2, 0), "blender": (2, 75, 0), "location": "3Dビュー > プロパティパネル > オブジェクト並進移動", "description": "キーボードからの入力に応じてオブジェク...
27.217742
70
0.600593
48b6d8178b1218d6d935a8f37982daf39b81d681
4,918
py
Python
app/main.py
thundercomb/ingest-clnn-news
43b1385fee33b955ddc06fe296d78d898dbfa0fe
[ "MIT" ]
1
2020-01-16T17:19:32.000Z
2020-01-16T17:19:32.000Z
app/main.py
thundercomb/ingest-clnn-news
43b1385fee33b955ddc06fe296d78d898dbfa0fe
[ "MIT" ]
6
2020-01-28T23:08:27.000Z
2022-02-10T00:36:11.000Z
app/main.py
thundercomb/ingest-clnn-news
43b1385fee33b955ddc06fe296d78d898dbfa0fe
[ "MIT" ]
1
2020-06-27T07:38:43.000Z
2020-06-27T07:38:43.000Z
from flask import Flask import requests as rq import logging import os import math import time import datetime import csv from random import randint import feedparser from bs4 import BeautifulSoup from google.cloud import pubsub_v1 from google.cloud import bigquery from google.cloud.exceptions import NotFound, Confli...
29.100592
135
0.617121
05e6ce2c50634b4a16f84e7f008cf09cd60e1eef
9,535
py
Python
tensorflow/python/tpu/tpu_sharding.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/tpu/tpu_sharding.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/tpu/tpu_sharding.py
abhaikollara/tensorflow
4f96df3659696990cb34d0ad07dc67843c4225a9
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.687747
80
0.684636
7d9d0b541ad72bbd73fba74b2ae991478421f863
366
py
Python
search_test.py
mochileiroDaGalaxia/Browser-Automation-With-Python-and-WebDriver
045c863177993c223291a9b74c05c68e11ab8c1a
[ "MIT" ]
null
null
null
search_test.py
mochileiroDaGalaxia/Browser-Automation-With-Python-and-WebDriver
045c863177993c223291a9b74c05c68e11ab8c1a
[ "MIT" ]
null
null
null
search_test.py
mochileiroDaGalaxia/Browser-Automation-With-Python-and-WebDriver
045c863177993c223291a9b74c05c68e11ab8c1a
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Chrome('bin/chromedriver') driver.get("http://www.python.org") assert "Python" in driver.title elem = driver.find_element_by_name("q") elem.clear() elem.send_keys("pycon") elem.send_keys(Keys.RETURN) assert "No results fo...
30.5
52
0.786885
ccb641b419a2b184715e21c394e516cb6df87a85
1,288
py
Python
setup.py
WeVidIt/graphene-gis
238466bd02392e79b7f771375da112a8d18ea158
[ "MIT" ]
null
null
null
setup.py
WeVidIt/graphene-gis
238466bd02392e79b7f771375da112a8d18ea158
[ "MIT" ]
null
null
null
setup.py
WeVidIt/graphene-gis
238466bd02392e79b7f771375da112a8d18ea158
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup tests_require = [ "pytest>=5.1.2", "pytest-cov==2.7.1", "pytest-django>=3.5.1" ] dev_requires = [ "black==19.3b0", "flake8==3.7.8", ] + tests_require with open("README.md", "r") as desc: long_description = desc.read() setup( name="graphene-gis"...
24.301887
61
0.626553
5920eb9334e6e542b3bc371c4c9146d1a68adbdb
5,161
py
Python
etc/gdb/evawiz/evawiz_codeblock.py
einsxiao/evawiz
12c148f46c89551c281271718893a92b26da2bfa
[ "BSD-2-Clause" ]
1
2019-06-07T03:44:39.000Z
2019-06-07T03:44:39.000Z
etc/gdb/evawiz/evawiz_codeblock.py
einsxiao/evawiz
12c148f46c89551c281271718893a92b26da2bfa
[ "BSD-2-Clause" ]
null
null
null
etc/gdb/evawiz/evawiz_codeblock.py
einsxiao/evawiz
12c148f46c89551c281271718893a92b26da2bfa
[ "BSD-2-Clause" ]
null
null
null
#!/opt/evawiz/python/bin/python def dprint(*params): print "debug_info: " for i in params: print i, print class StdStringPrinter(object): "Print a std::string" def __init__(self,val): self.val = val def to_string(self): return self.val['_M_dataplus']['_M_p'] ...
33.296774
86
0.484596
9977b6bd8f8aab027bf73f277bd14641ab33ee80
1,103
py
Python
master/teachkids-master/teachkids-master/ch04/ViralSpiral.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/teachkids-master/teachkids-master/ch04/ViralSpiral.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/teachkids-master/teachkids-master/ch04/ViralSpiral.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# ViralSpiral.py - a spiral of spirals! import turtle t = turtle.Pen() t.penup() turtle.bgcolor("black") # Ask the user for the number of sides, default to 4, min 2, max 6 sides = int(turtle.numinput("Number of sides", "How many sides in your spiral of spirals? (2-6)", 4,2,6)) colors = ["red", "yellow", "bl...
38.034483
70
0.637353
6cd6dae352886c301bc9e172dc228591f66f7620
5,821
py
Python
errant/fr/merger.py
Maxwell1447/ERRANT-fr
023bb3568cb07241000829c2b0a23b7613409d45
[ "MIT" ]
null
null
null
errant/fr/merger.py
Maxwell1447/ERRANT-fr
023bb3568cb07241000829c2b0a23b7613409d45
[ "MIT" ]
null
null
null
errant/fr/merger.py
Maxwell1447/ERRANT-fr
023bb3568cb07241000829c2b0a23b7613409d45
[ "MIT" ]
null
null
null
from itertools import combinations, groupby from re import sub from string import punctuation import Levenshtein import spacy.symbols as POS from errant.edit import Edit import logging # Merger resources open_pos = {POS.ADJ, POS.AUX, POS.ADV, POS.NOUN, POS.VERB} # Input: An Alignment object # Output: A list of Edit ...
38.296053
84
0.540629
1e318bedf3b5b4822d0b7ef5c119542c2e6b6ea0
972
py
Python
bin/verification_client.py
Anas-Dew/copyword
fcd21bd972acd00028f754898e7c9158d3daafd8
[ "MIT" ]
null
null
null
bin/verification_client.py
Anas-Dew/copyword
fcd21bd972acd00028f754898e7c9158d3daafd8
[ "MIT" ]
null
null
null
bin/verification_client.py
Anas-Dew/copyword
fcd21bd972acd00028f754898e7c9158d3daafd8
[ "MIT" ]
null
null
null
# -------------for-saving-login-data-in-local-machine import os def save_logs_on_system(login_data): # takes login data and # save in current app working directory os.chdir(f"{os.getcwd()}") with open("user_login.file","w") as f: f.write(str(login_data)) # --------------for-validating-if-ent...
24.3
70
0.621399
e6ecdea873931818a699d322e8e901f178045e50
1,475
py
Python
alien.py
AldoNunes001/Alien_Invasion
5c317206af1a675d724f49e8f7474e9b575c251d
[ "MIT" ]
null
null
null
alien.py
AldoNunes001/Alien_Invasion
5c317206af1a675d724f49e8f7474e9b575c251d
[ "MIT" ]
null
null
null
alien.py
AldoNunes001/Alien_Invasion
5c317206af1a675d724f49e8f7474e9b575c251d
[ "MIT" ]
null
null
null
import pygame from pygame.sprite import Sprite class Alien(Sprite): """A class to represent a single alien in the fleet.""" def __init__(self, ai_settings, screen): """Initialize the alien and set its starting position.""" super().__init__() self.screen = screen self.ai_settin...
32.777778
108
0.612881
c078fbcefb76085776fc94beae03d6a4abb028bb
503
py
Python
setup.py
igorgad/ray_lightning
ab5239a9cbafbd2683714ab975d4116043409c64
[ "Apache-2.0" ]
null
null
null
setup.py
igorgad/ray_lightning
ab5239a9cbafbd2683714ab975d4116043409c64
[ "Apache-2.0" ]
null
null
null
setup.py
igorgad/ray_lightning
ab5239a9cbafbd2683714ab975d4116043409c64
[ "Apache-2.0" ]
null
null
null
from setuptools import find_packages, setup setup( name="ray_lightning", packages=find_packages(where=".", include="ray_lightning*"), version="0.0.1", author="Ray Team", description="Ray distributed plugins for Pytorch Lightning.", long_description="Custom Pytorch Lightning distributed plugins"...
38.692308
68
0.73161
1fef96426a64a732414f9cf8f01886d7fcd8b711
3,591
py
Python
xunit-autolabeler-v2/ast_parser/core/cli_list_source_files.py
GoogleCloudPlatform/repo-automation-playground
a4c8f104c246ede002f6c18fcebfc0496c8abb94
[ "Apache-2.0" ]
5
2019-07-11T17:35:44.000Z
2021-10-09T01:49:04.000Z
xunit-autolabeler-v2/ast_parser/core/cli_list_source_files.py
GoogleCloudPlatform/repo-automation-playground
a4c8f104c246ede002f6c18fcebfc0496c8abb94
[ "Apache-2.0" ]
36
2019-08-27T18:20:21.000Z
2022-01-12T21:29:00.000Z
xunit-autolabeler-v2/ast_parser/core/cli_list_source_files.py
GoogleCloudPlatform/repo-automation-playground
a4c8f104c246ede002f6c18fcebfc0496c8abb94
[ "Apache-2.0" ]
13
2019-10-30T19:39:51.000Z
2021-04-04T09:31:52.000Z
# Copyright 2020 Google LLC. 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...
34.528846
79
0.728766
c606bcc276909723ed111b5e04add80daa9fce36
3,133
py
Python
rtplot.py
elrobotista/serial_port
d77ff1901c2c7d16af5c4e821a482ed0ca92f44e
[ "MIT" ]
3
2018-02-19T13:36:23.000Z
2020-03-10T23:34:15.000Z
rtplot.py
AllanStark/serial_port
d77ff1901c2c7d16af5c4e821a482ed0ca92f44e
[ "MIT" ]
null
null
null
rtplot.py
AllanStark/serial_port
d77ff1901c2c7d16af5c4e821a482ed0ca92f44e
[ "MIT" ]
3
2018-02-19T05:58:41.000Z
2019-05-17T13:11:46.000Z
import serial import json import matplotlib.pyplot as plt import matplotlib.animation as animation import threading import numpy as np # Puerto Serial port = serial.Serial('/dev/ttyACM0', 115200, timeout = 1.) # Creemos los ejes y la figura donde graficaremos. fig, ax = plt.subplots() # Este diccionario almacenara l...
34.811111
78
0.647941
3f33a38d6c6a7cd2123e08b97630d637c1cc7f0c
1,248
py
Python
jenkins_jobs/modules/hudson_model.py
pratikmallya/jenkins-job-builder
83114faba6b85bb0dae066ca3ec4f23871683fb5
[ "Apache-2.0" ]
3
2019-03-03T20:15:29.000Z
2020-11-17T18:48:27.000Z
jenkins_jobs/modules/hudson_model.py
pratikmallya/jenkins-job-builder
83114faba6b85bb0dae066ca3ec4f23871683fb5
[ "Apache-2.0" ]
12
2015-11-30T17:13:11.000Z
2022-03-18T10:58:07.000Z
jenkins_jobs/modules/hudson_model.py
pratikmallya/jenkins-job-builder
83114faba6b85bb0dae066ca3ec4f23871683fb5
[ "Apache-2.0" ]
11
2016-10-25T12:03:32.000Z
2021-04-27T12:16:51.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
21.894737
75
0.634615
2bcacdb6ab5003877b366bf2fc46259996a95aa7
3,204
py
Python
app/home/migrations/0001_initial.py
Monxun/monxun-code
35ce6d4aaf3a8afa0b80dde1dae9a1e7603a1f84
[ "MIT" ]
null
null
null
app/home/migrations/0001_initial.py
Monxun/monxun-code
35ce6d4aaf3a8afa0b80dde1dae9a1e7603a1f84
[ "MIT" ]
null
null
null
app/home/migrations/0001_initial.py
Monxun/monxun-code
35ce6d4aaf3a8afa0b80dde1dae9a1e7603a1f84
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-11-09 09:52 import django.contrib.postgres.fields.jsonb from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TableBacktests', ...
36.409091
117
0.518414
ad77d224ca791d3e52b17337c0ede159c9c0fc50
6,554
py
Python
djforms/languages/tle/views.py
carthagecollege/django-djforms
6d05a13223646f47062f827c6d90c88bcbdcb470
[ "Unlicense" ]
1
2019-11-20T12:30:50.000Z
2019-11-20T12:30:50.000Z
djforms/languages/tle/views.py
carthagecollege/django-djforms
6d05a13223646f47062f827c6d90c88bcbdcb470
[ "Unlicense" ]
8
2020-03-23T20:36:06.000Z
2022-02-20T17:06:13.000Z
djforms/languages/tle/views.py
carthagecollege/django-djforms
6d05a13223646f47062f827c6d90c88bcbdcb470
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from django.http import Http404 from django.conf import settings from django.utils.dates import MONTHS from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse_lazy from djforms.languages.tle.forms import * from djtools.utils.ma...
44.890411
158
0.489319
bcdd539602dd68dfd5e90eba2645f29db0364b64
97
py
Python
api/tests/utils.py
equinor/lcm
338bf67e6eb412446e469b4c73f7000990445ebd
[ "MIT" ]
3
2020-12-02T11:14:31.000Z
2021-12-09T16:53:53.000Z
api/tests/utils.py
equinor/lcm
338bf67e6eb412446e469b4c73f7000990445ebd
[ "MIT" ]
76
2020-09-29T10:59:10.000Z
2022-01-03T07:41:29.000Z
api/tests/utils.py
equinor/lcm
338bf67e6eb412446e469b4c73f7000990445ebd
[ "MIT" ]
2
2021-01-25T14:24:57.000Z
2021-01-25T14:51:16.000Z
def read_file(path: str) -> bytes: with open(path, "rb") as file: return file.read()
24.25
34
0.597938
1b8ca10a0614292ef2a15e796b2a09eaacfdd4ce
11,196
py
Python
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/je_os_fixedaggr_leaky.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/je_os_fixedaggr_leaky.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/je_os_fixedaggr_leaky.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
"""Single slice vgg with normalised scale. """ import functools import lasagne as nn import numpy as np import theano import theano.tensor as T import data_loader import deep_learning_layers import image_transform import layers import preprocess import postprocess import objectives import theano_print...
45.145161
193
0.7199
0a54e537b27cd46df3f5d33aab434dbfd5789c55
2,453
py
Python
examples/torch/dqn_cartpole.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
1
2021-01-11T18:40:52.000Z
2021-01-11T18:40:52.000Z
examples/torch/dqn_cartpole.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
null
null
null
examples/torch/dqn_cartpole.py
michahu/garage
c045a1e5e5088a18828ec48bfee0addb1943bfd4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """An example to train a task with DQN algorithm. Here it creates a gym environment CartPole, and trains a DQN with 50k steps. """ import click from garage import wrap_experiment from garage.envs import GymEnv from garage.experiment.deterministic import set_seed from garage.np.exploration_polic...
35.550725
76
0.649001
956c966f9886c941baa42d9ea3afe5e67939c151
8,025
py
Python
render_swisscube.py
Komod0D/DeepIM-PyTorch
ecd4788a4a7617e1cf9c309910ef024fb2c09f85
[ "BSD-Source-Code" ]
null
null
null
render_swisscube.py
Komod0D/DeepIM-PyTorch
ecd4788a4a7617e1cf9c309910ef024fb2c09f85
[ "BSD-Source-Code" ]
null
null
null
render_swisscube.py
Komod0D/DeepIM-PyTorch
ecd4788a4a7617e1cf9c309910ef024fb2c09f85
[ "BSD-Source-Code" ]
null
null
null
import pyrender import os import trimesh import numpy as np import cv2 import os import torch from transforms3d.quaternions import mat2quat, quat2mat, qmult from scipy.spatial.transform import Rotation as R os.environ['PYOPENGL_PLATFORM'] = 'egl' def to_homo(rotation, translation): transform = np.eye(4) tra...
29.612546
114
0.541558