hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
0098e5e710a5211ce9b40a8bdbd193c98de9dc92
246
py
Python
tests/test_util.py
yuanz271/vlgp
2f2c9f0c368904f762c75afce6d73dc26a2b911e
[ "MIT" ]
1
2017-09-22T21:03:07.000Z
2017-09-22T21:03:07.000Z
tests/test_util.py
yuanz271/vlgp
2f2c9f0c368904f762c75afce6d73dc26a2b911e
[ "MIT" ]
1
2017-12-07T14:45:45.000Z
2017-12-13T20:09:11.000Z
tests/test_util.py
yuanz271/vlgp
2f2c9f0c368904f762c75afce6d73dc26a2b911e
[ "MIT" ]
null
null
null
def test_save(): import pathlib from vlgp.util import save fit = {"trials": {}, "params": {}, "config": {"path": "test_save.npy"}} save(fit, fit["config"]["path"]) path = pathlib.Path(fit["config"]["path"]) path.unlink()
27.333333
75
0.577236
e44663e78f7ca0adaf226c8d73ec338864009396
22,414
py
Python
core/storage/topic/gae_models.py
arora-ria/oppia
698d5593689f15ee36384a57036cf2e0150bb785
[ "Apache-2.0" ]
1
2021-06-03T20:50:52.000Z
2021-06-03T20:50:52.000Z
core/storage/topic/gae_models.py
arora-ria/oppia
698d5593689f15ee36384a57036cf2e0150bb785
[ "Apache-2.0" ]
null
null
null
core/storage/topic/gae_models.py
arora-ria/oppia
698d5593689f15ee36384a57036cf2e0150bb785
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia 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 requi...
40.458484
82
0.690283
c2a75f990c6d1722ddc9afe4af7a279cbe354de7
8,196
py
Python
gazoo_device/tests/unit_tests/utility_tests/host_utils_test.py
google/gazoo-device
f333b386f5993c8d4c9e12c89ebb620a0c4f5506
[ "Apache-2.0" ]
14
2020-11-05T23:23:32.000Z
2022-03-01T18:59:29.000Z
gazoo_device/tests/unit_tests/utility_tests/host_utils_test.py
google/gazoo-device
f333b386f5993c8d4c9e12c89ebb620a0c4f5506
[ "Apache-2.0" ]
null
null
null
gazoo_device/tests/unit_tests/utility_tests/host_utils_test.py
google/gazoo-device
f333b386f5993c8d4c9e12c89ebb620a0c4f5506
[ "Apache-2.0" ]
5
2021-05-20T22:52:51.000Z
2022-02-21T08:46:21.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
46.305085
80
0.757565
fcb0f65a5009e09e280341b38d6c0ef974e8e632
664
py
Python
runtime/python/Tools/scripts/lfcr.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
runtime/python/Tools/scripts/lfcr.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
8
2019-06-29T14:18:51.000Z
2022-02-19T07:30:27.000Z
runtime/python/Tools/scripts/lfcr.py
hwaipy/InteractionFreeNode
88642b68430f57b028fd0f276a5709f89279e30d
[ "MIT" ]
76
2020-03-16T01:47:46.000Z
2022-03-21T16:37:07.000Z
#! /usr/bin/env python3 "Replace LF with CRLF in argument files. Print names of changed files." import sys, re, os def main(): for filename in sys.argv[1:]: if os.path.isdir(filename): print(filename, "Directory!") continue with open(filename, "rb") as f: ...
26.56
73
0.504518
c4f7b1f05de5168ccc03165ca4c3a7ca5f09b852
23,059
py
Python
openpype/modules/ftrack/plugins/publish/integrate_ftrack_api.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/modules/ftrack/plugins/publish/integrate_ftrack_api.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
openpype/modules/ftrack/plugins/publish/integrate_ftrack_api.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
"""Integrate components into ftrack Requires: context -> ftrackSession - connected ftrack.Session instance -> ftrackComponentsList - list of components to integrate Provides: instance -> ftrackIntegratedAssetVersionsData # legacy instance -> ftrackIntegratedAssetVersions """ import os import sys ...
36.718153
79
0.556789
8beb1cb7ec15578cd5f02c2adc90e03a752128e2
13,793
py
Python
tests/test_streams.py
VisionsOfDrifting/pytube
851eb9969c08b2bcb34ec5113380c4569e122651
[ "Unlicense" ]
null
null
null
tests/test_streams.py
VisionsOfDrifting/pytube
851eb9969c08b2bcb34ec5113380c4569e122651
[ "Unlicense" ]
null
null
null
tests/test_streams.py
VisionsOfDrifting/pytube
851eb9969c08b2bcb34ec5113380c4569e122651
[ "Unlicense" ]
null
null
null
import os import random import pytest from datetime import datetime from unittest import mock from unittest.mock import MagicMock, Mock from urllib.error import HTTPError from pytube import request, Stream @mock.patch("pytube.streams.request") def test_stream_to_buffer(mock_request, cipher_signature): # Given ...
35.366667
88
0.662147
3c7123f5a4314483d89f0f85388d8e38e0c1f273
14,426
py
Python
malib/environments/particle.py
renos/Emergent-Multiagent-Strategies
afaf6acfdd6d505668f06ac23dfb33e872ab2872
[ "MIT" ]
23
2020-07-05T11:13:00.000Z
2022-01-28T00:24:41.000Z
malib/environments/particle.py
renos/Emergent-Multiagent-Strategies
afaf6acfdd6d505668f06ac23dfb33e872ab2872
[ "MIT" ]
2
2020-09-07T19:09:40.000Z
2021-06-02T02:21:51.000Z
malib/environments/particle.py
renos/Emergent-Multiagent-Strategies
afaf6acfdd6d505668f06ac23dfb33e872ab2872
[ "MIT" ]
8
2020-07-06T07:24:37.000Z
2021-09-27T20:28:25.000Z
import gym from gym import spaces import numpy as np from multiagent.multi_discrete import MultiDiscrete from malib.spaces import Box, MASpace, MAEnvSpec # environment for all agents in the multiagent world # currently code assumes that no agents will be created/destroyed at runtime! def make_particle_env(game_name,...
38.989189
126
0.584362
581215e6f0601d9890d84d166d10eea43e64b7cb
483
py
Python
python/hackerrank/weightedmean/main.py
imjoseangel/sandbox
bc4ff74981faf91eb1a1f777d01fcfd13d6f5147
[ "MIT" ]
null
null
null
python/hackerrank/weightedmean/main.py
imjoseangel/sandbox
bc4ff74981faf91eb1a1f777d01fcfd13d6f5147
[ "MIT" ]
null
null
null
python/hackerrank/weightedmean/main.py
imjoseangel/sandbox
bc4ff74981faf91eb1a1f777d01fcfd13d6f5147
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals) def weightedMean(X, W): return round(sum([i[0] * i[1] for i in zip(X, W)]) / sum(W), 1) def main(): n = int(input().strip()) vals = list(map(int, ...
19.32
67
0.585921
9f739d401b75c8e36e4db122582e8965d1db3f8a
839
py
Python
evan/wsgi.py
eillarra/evan
befe0f8daedd1b1f629097110d92e68534e43da1
[ "MIT" ]
null
null
null
evan/wsgi.py
eillarra/evan
befe0f8daedd1b1f629097110d92e68534e43da1
[ "MIT" ]
20
2021-03-31T20:10:46.000Z
2022-02-15T09:58:13.000Z
evan/wsgi.py
eillarra/evan
befe0f8daedd1b1f629097110d92e68534e43da1
[ "MIT" ]
null
null
null
# https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ import os import sentry_sdk from django.conf import settings from django.core.wsgi import get_wsgi_application from sentry_sdk.integrations.django import DjangoIntegration from whitenoise import WhiteNoise env = os.environ.get("DJANGO_ENV", None) if env...
29.964286
85
0.734207
00470f41d238170292ab8534c0e5a58a9bbb5899
3,941
py
Python
functorch/__init__.py
LaudateCorpus1/functorch
b07eea9d29fb44f0a9be3c35c042b3f6124bfcf2
[ "BSD-3-Clause" ]
null
null
null
functorch/__init__.py
LaudateCorpus1/functorch
b07eea9d29fb44f0a9be3c35c042b3f6124bfcf2
[ "BSD-3-Clause" ]
null
null
null
functorch/__init__.py
LaudateCorpus1/functorch
b07eea9d29fb44f0a9be3c35c042b3f6124bfcf2
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch import functools import textwrap from . import _C # Top-level APIs. Please think carefully before a...
30.550388
106
0.691956
e5a88fdfdcf46c6240445dd0967e191203d897c2
304
py
Python
minos/tasks/vcf_cluster.py
oxfordfun/minos
e7165f1a398b1003e82a8aa00480ef5cd65fa834
[ "MIT" ]
14
2018-01-25T15:20:42.000Z
2022-03-25T07:57:19.000Z
minos/tasks/vcf_cluster.py
oxfordfun/minos
e7165f1a398b1003e82a8aa00480ef5cd65fa834
[ "MIT" ]
41
2018-01-25T15:47:13.000Z
2021-11-04T10:30:21.000Z
minos/tasks/vcf_cluster.py
oxfordfun/minos
e7165f1a398b1003e82a8aa00480ef5cd65fa834
[ "MIT" ]
11
2018-01-25T15:11:32.000Z
2021-11-04T08:59:55.000Z
from cluster_vcf_records import variant_tracking def run(options): tracker = variant_tracking.VariantTracker(options.merge_dir, options.ref_fasta) tracker.cluster( options.outprefix, options.max_ref_len, max_alleles=options.max_alleles, cpus=options.cpus, )
25.333333
83
0.720395
015ddabab3c3ec618e508b8a53c897beb5b227d7
860
py
Python
tests/test_cli.py
nmurtagh/rpmvenv
38784c4500bfa6233cd8ef1ef8c5fd7c9602fd32
[ "MIT" ]
null
null
null
tests/test_cli.py
nmurtagh/rpmvenv
38784c4500bfa6233cd8ef1ef8c5fd7c9602fd32
[ "MIT" ]
null
null
null
tests/test_cli.py
nmurtagh/rpmvenv
38784c4500bfa6233cd8ef1ef8c5fd7c9602fd32
[ "MIT" ]
null
null
null
"""Test suites for the primary entry point of the CLI.""" from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import pytest from rpmvenv import cli @pytest.mark.skipif( not pytest.config.getvalue("python_git_url"),...
28.666667
74
0.674419
103edc859e3d2f4bae7b1c5fc418e8d67187355d
1,848
py
Python
pkg_usage.py
akaneko1019/yolact_edge
a9a00281b33b3ac90253a4939773308a8f95e21d
[ "MIT" ]
1,036
2020-12-23T01:48:56.000Z
2022-03-29T11:55:42.000Z
pkg_usage.py
akaneko1019/yolact_edge
a9a00281b33b3ac90253a4939773308a8f95e21d
[ "MIT" ]
184
2020-12-23T05:10:16.000Z
2022-03-30T05:41:25.000Z
pkg_usage.py
akaneko1019/yolact_edge
a9a00281b33b3ac90253a4939773308a8f95e21d
[ "MIT" ]
221
2020-12-23T03:35:35.000Z
2022-03-29T06:26:23.000Z
import numpy as np import urllib import time import cv2 from yolact_edge.inference import YOLACTEdgeInference weights = "yolact_edge_resnet50_54_800000.pth" # All available model configs, depends on which weights # you use. More info could be found in data/config.py. model_configs = [ 'yolact_edge_mobilenetv2_conf...
29.333333
95
0.739177
a1aa1c7f8a6461f1ef9a0f3b461b524d7b273420
505
py
Python
kol/request/OpenChatRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
kol/request/OpenChatRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
kol/request/OpenChatRequest.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
from .GenericRequest import GenericRequest from kol.manager import PatternManager class OpenChatRequest(GenericRequest): def __init__(self, session): super(OpenChatRequest, self).__init__(session) self.url = session.serverURL + "lchat.php" def parseResponse(self): currentChannelPattern...
38.846154
88
0.750495
a5d19a763832911d86c140daea11df751a0d9fa5
1,055
py
Python
plenum/test/input_validation/message_validation/test_consistencyproof_message.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
148
2017-07-11T19:05:25.000Z
2022-03-16T21:31:20.000Z
plenum/test/input_validation/message_validation/test_consistencyproof_message.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
561
2017-06-29T17:59:56.000Z
2022-03-09T15:47:14.000Z
plenum/test/input_validation/message_validation/test_consistencyproof_message.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
378
2017-06-29T17:45:27.000Z
2022-03-26T07:27:59.000Z
import pytest from plenum.common.messages.node_messages import ConsistencyProof from collections import OrderedDict from plenum.common.messages.fields import NonNegativeNumberField, \ LedgerIdField, MerkleRootField, IterableField EXPECTED_ORDERED_FIELDS = OrderedDict([ ("ledgerId", LedgerIdField), ("seqNoS...
32.96875
75
0.76872
d59caa9d9568e7231fa52af8017cb636b5294ee0
4,523
py
Python
libs/RedisProtocol.py
mgronhol/h3-tritium
815b863cb0a4fc438273129dcff537ac2633aa82
[ "Apache-2.0" ]
2
2020-09-05T01:34:58.000Z
2020-09-05T01:54:25.000Z
libs/RedisProtocol.py
mgronhol/h3-tritium
815b863cb0a4fc438273129dcff537ac2633aa82
[ "Apache-2.0" ]
null
null
null
libs/RedisProtocol.py
mgronhol/h3-tritium
815b863cb0a4fc438273129dcff537ac2633aa82
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Markus Gronholm <markus@alshain.fi> / Alshain Oy # # 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/LICEN...
23.805263
76
0.604024
f4a28fac4b39c7798cb7cb3d8e11f3d681cf8859
1,246
py
Python
msg_handler/__init__.py
OpenUpSA/odac-ford-housing
010d9a0361606b1041e2b64140825f7bff60935a
[ "Apache-2.0" ]
1
2015-04-24T23:47:26.000Z
2015-04-24T23:47:26.000Z
msg_handler/__init__.py
Code4SA/odac-ford-housing
010d9a0361606b1041e2b64140825f7bff60935a
[ "Apache-2.0" ]
null
null
null
msg_handler/__init__.py
Code4SA/odac-ford-housing
010d9a0361606b1041e2b64140825f7bff60935a
[ "Apache-2.0" ]
null
null
null
import logging from flask import Flask from redis import Redis from flask.ext.sqlalchemy import SQLAlchemy import sys redis = Redis() app = Flask(__name__, instance_relative_config=True) app.config.from_pyfile('config.py', silent=True) app.config.from_pyfile('config_private.py', silent=True) db = SQLAlchemy(app) # l...
28.318182
67
0.800963
65dc618a41383981ef84d1caa7785a13385dd89b
3,496
py
Python
DXFImporter/lib/ezdxf/math/eulerspiral.py
tapnair/DXFImporter
c86cde0b4420ca7d0c5e3569675acd2d4426667f
[ "MIT" ]
2
2021-07-28T03:52:02.000Z
2021-07-31T05:08:11.000Z
DXFImporter/lib/ezdxf/math/eulerspiral.py
tapnair/DXFImporter
c86cde0b4420ca7d0c5e3569675acd2d4426667f
[ "MIT" ]
1
2020-04-28T17:52:26.000Z
2020-10-07T01:28:56.000Z
DXFImporter/lib/ezdxf/math/eulerspiral.py
tapnair/DXFImporter
c86cde0b4420ca7d0c5e3569675acd2d4426667f
[ "MIT" ]
1
2021-07-31T05:08:12.000Z
2021-07-31T05:08:12.000Z
# Created: 26.03.2010 # License: MIT License from typing import Dict, Iterable from ezdxf.math import Vector from ezdxf.math.bspline import bspline_control_frame, BSpline class EulerSpiral: """ This class represents an euler spiral (clothoid) for `curvature` (Radius of curvature). This is a parametric cu...
30.938053
110
0.579805
3eb69bd7f3d42f5cd8d6cc6d2d32cc9eb808d9a4
38,110
py
Python
tensorflow/python/keras/engine/topology_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/keras/engine/topology_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/keras/engine/topology_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.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...
37.695351
80
0.652611
66757a9498d7bb876cfd2f548886a2ace8af3d09
2,143
py
Python
cogs/userinfo_ja.py
PLM912/Keter
0dc24d33732fccf36406010e2f8e1519ecdfa4b1
[ "MIT" ]
6
2020-09-01T08:20:49.000Z
2021-01-21T15:23:33.000Z
cogs/userinfo_ja.py
PLM912/Keter
0dc24d33732fccf36406010e2f8e1519ecdfa4b1
[ "MIT" ]
3
2020-11-04T23:25:38.000Z
2021-01-21T17:01:20.000Z
cogs/userinfo_ja.py
PLM912/Keter
0dc24d33732fccf36406010e2f8e1519ecdfa4b1
[ "MIT" ]
11
2020-09-01T08:04:17.000Z
2021-02-07T13:12:16.000Z
import discord from discord.ext import commands from evs import default class Userinfo_Ja(commands.Cog): def __init__(self, bot): self.bot = bot self.config = default.get("config.json") # Commands @commands.command(aliases=['ユーザー情報', 'ユーザ情報', 'ユザー情報', 'ユザ情報']) async def __userinfo(self...
42.019608
91
0.451237
6d7e630f7dba7a532391d6d2371dea495b65b56e
2,410
py
Python
sharpy-sc2/sharpy/plans/acts/protoss/chrono_unit.py
etzhang416/sharpy-bot-eco
badc68ad1aa903dfa1bbc33f6225608e433ff353
[ "Unlicense" ]
null
null
null
sharpy-sc2/sharpy/plans/acts/protoss/chrono_unit.py
etzhang416/sharpy-bot-eco
badc68ad1aa903dfa1bbc33f6225608e433ff353
[ "Unlicense" ]
null
null
null
sharpy-sc2/sharpy/plans/acts/protoss/chrono_unit.py
etzhang416/sharpy-bot-eco
badc68ad1aa903dfa1bbc33f6225608e433ff353
[ "Unlicense" ]
null
null
null
import warnings from sc2 import UnitTypeId, AbilityId from sc2.ids.buff_id import BuffId from sc2.unit import Unit, UnitOrder from sharpy.knowledges import Knowledge from sharpy.plans.acts.act_base import ActBase class ChronoUnit(ActBase): # Use Chronoboost on unit production def __init__(self, name: UnitTy...
43.035714
117
0.645643
cec860a2787b03b552074aabd4aba8f77808e8a4
380
py
Python
Dependencies/gyp-master/test/actions/src/subdir3/generate_main.py
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/actions/src/subdir3/generate_main.py
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
Dependencies/gyp-master/test/actions/src/subdir3/generate_main.py
knight666/exlibris
b21b46e0c84e5c4f81f8048022cda88e7bb3dca2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys contents = """ #include <stdio.h> int main(void) { printf("Hello from generate_main.py\\n"); return 0; } ""...
17.272727
73
0.644737
f27d22249289a0544d33e9458cb99727c6602acf
315
py
Python
Programas basicos/ex005.py
RuanSampaio-code/Python-Journey
678bfc5e3df22c3082b00e2b6e1e29d4814d470b
[ "MIT" ]
null
null
null
Programas basicos/ex005.py
RuanSampaio-code/Python-Journey
678bfc5e3df22c3082b00e2b6e1e29d4814d470b
[ "MIT" ]
null
null
null
Programas basicos/ex005.py
RuanSampaio-code/Python-Journey
678bfc5e3df22c3082b00e2b6e1e29d4814d470b
[ "MIT" ]
null
null
null
print('==== PROGRAMA PARA DESCOBRIR ANTECESSOR E SUCESSOR DE UM NUMERO ====') num = int(input('\033[30;7m Digite um número:\033[m')) anter = num - 1 suces = num + 1 print(' O número \033[1m{}\033[m tem como o antecessor ' 'o numero \033[1m{}\033[m e sucessor o número \033[1;3m{}.'.format(num, anter,suces,))
45
92
0.650794
839e837fd4b5d0faddbb2bd057ed8dd5d1436de2
960
py
Python
config.py
mellonixie/Cartoonization-Style-Transfer
3f8720df23bb9d846133a4d523c8dbd37abc0446
[ "Apache-2.0" ]
null
null
null
config.py
mellonixie/Cartoonization-Style-Transfer
3f8720df23bb9d846133a4d523c8dbd37abc0446
[ "Apache-2.0" ]
null
null
null
config.py
mellonixie/Cartoonization-Style-Transfer
3f8720df23bb9d846133a4d523c8dbd37abc0446
[ "Apache-2.0" ]
1
2021-09-01T13:31:10.000Z
2021-09-01T13:31:10.000Z
import cv2 from torchvision import transforms, models style_dict = {} style_dict['dog'] = "images/anime3.png" real_img = "images/golder-retriever-puppy.jpeg" net = cv2.dnn.readNet("YOLO/yolov3.weights", "YOLO/yolov3.cfg") classes = [] with open("YOLO/coco.names", "r") as f: classes = [line.strip() for line in f.r...
30
80
0.577083
da7e399e420e194e82b38bec5a1cfdac66800fb7
35,937
py
Python
absl/testing/tests/xml_reporter_test.py
yuhc/abseil-py
1fe0726fa42bc687c36cb6eba3a6d5dfd5173013
[ "Apache-2.0" ]
null
null
null
absl/testing/tests/xml_reporter_test.py
yuhc/abseil-py
1fe0726fa42bc687c36cb6eba3a6d5dfd5173013
[ "Apache-2.0" ]
null
null
null
absl/testing/tests/xml_reporter_test.py
yuhc/abseil-py
1fe0726fa42bc687c36cb6eba3a6d5dfd5173013
[ "Apache-2.0" ]
1
2019-09-09T21:20:17.000Z
2019-09-09T21:20:17.000Z
# Copyright 2017 The Abseil Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
33.492078
173
0.629045
3c9863dbafde39a229c9be910c165c625cd7a4d2
14,578
py
Python
sql/views.py
gaotuan/Archery
5b218521e1538e265306855484af9bbfee744c6b
[ "Apache-2.0" ]
1
2020-06-05T06:17:52.000Z
2020-06-05T06:17:52.000Z
sql/views.py
gaotuan/Archery
5b218521e1538e265306855484af9bbfee744c6b
[ "Apache-2.0" ]
null
null
null
sql/views.py
gaotuan/Archery
5b218521e1538e265306855484af9bbfee744c6b
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import os import traceback import simplejson as json from django.conf import settings from django.contrib.auth.decorators import permission_required from django.contrib.auth.models import Group from django.core.exceptions import PermissionDenied from django.shortcuts import render, get_object_...
34.792363
120
0.688023
2089115a7928bd6eb2f6a45f87a48d43f528c7bb
148
py
Python
SphereNet_PyTorch/spherenet/__init__.py
ustundag/2D-3D-Semantics
6f79be0082e2bfd6b7940c2314972a603e55f201
[ "Apache-2.0" ]
null
null
null
SphereNet_PyTorch/spherenet/__init__.py
ustundag/2D-3D-Semantics
6f79be0082e2bfd6b7940c2314972a603e55f201
[ "Apache-2.0" ]
null
null
null
SphereNet_PyTorch/spherenet/__init__.py
ustundag/2D-3D-Semantics
6f79be0082e2bfd6b7940c2314972a603e55f201
[ "Apache-2.0" ]
null
null
null
from .sphere_cnn import SphereConv2D from .sphere_cnn import SphereMaxPool2D #from .dataset import OmniMNIST #from .dataset import OmniFashionMNIST
29.6
39
0.851351
3598a42aba799cbc6f2b60fae4ce22058661a7a0
1,960
py
Python
cwbot/modules/messages/CashoutModule.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
cwbot/modules/messages/CashoutModule.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
cwbot/modules/messages/CashoutModule.py
DamianDominoDavis/cwbot-ndy
53b826232eadb7ef558f568872a945d04d8d4252
[ "BSD-3-Clause" ]
null
null
null
from cwbot.modules.BaseKmailModule import BaseKmailModule from kol.database.ItemDatabase import getItemFromId class CashoutModule(BaseKmailModule): """ A module that "cashes out" items withheld due to ronin/HC status. No configuration options. """ requiredCapabilities = ['kmail'] ...
43.555556
80
0.529592
f8462435a451b6e3fce07109be4f6ab9090e657f
3,506
py
Python
homeassistant/components/thinkingcleaner/sensor.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/thinkingcleaner/sensor.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
3
2021-09-08T03:29:36.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/thinkingcleaner/sensor.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
"""Support for ThinkingCleaner sensors.""" import logging from datetime import timedelta from homeassistant import util from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) REQUIREMENTS = ['pythinkingcleaner==0.0.3'] MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10) MIN_TIME_BETWEEN_FO...
31.026549
79
0.651169
2b86c65d5052be9e8fce8307fa13ad5fa2c3f11d
64
py
Python
software/models/common_components/multisense_sl/mit_modifications/jointNameMap.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
92
2016-01-14T21:03:50.000Z
2021-12-01T17:57:46.000Z
software/models/common_components/multisense_sl/mit_modifications/jointNameMap.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
62
2016-01-16T18:08:14.000Z
2016-03-24T15:16:28.000Z
software/models/common_components/multisense_sl/mit_modifications/jointNameMap.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
41
2016-01-14T21:26:58.000Z
2022-03-28T03:10:39.000Z
jointNameMap = {"head_hokuyo_joint": "head_hokuyo_fixed_joint"}
32
63
0.8125
f2528d3216364331761e553855635e84849018d7
2,566
py
Python
pythonScripts/images.py
FuckBrains/videoAutoProduction
e6988c1d2debd511b63968a55e29c4d2373c5ab6
[ "MIT" ]
18
2019-10-02T13:04:25.000Z
2022-03-01T03:24:10.000Z
pythonScripts/images.py
JDuggal760/videoAutoProduction
e6988c1d2debd511b63968a55e29c4d2373c5ab6
[ "MIT" ]
1
2021-04-28T14:33:36.000Z
2022-01-28T09:43:21.000Z
pythonScripts/images.py
JDuggal760/videoAutoProduction
e6988c1d2debd511b63968a55e29c4d2373c5ab6
[ "MIT" ]
7
2020-01-02T14:48:51.000Z
2021-11-15T17:05:50.000Z
import nltk from datetime import datetime from os import listdir, mkdir, remove import extractImages from subprocess import run from PIL import Image date = datetime.now().strftime('%Y-%m-%d') path = f'/home/sr1/Projects/Others/videoAUTO/News/{date}' mkdir(f'{path}/Images') files = [] for f in listdir(f'{path}/Articl...
28.831461
134
0.613016
d5bd47319134e86e5d34fd69633d5336a7376e6e
5,142
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/wider.py
TolyaTalamanov/open_model_zoo
1697e60712df4ca72635a2080a197b9d3bc24129
[ "Apache-2.0" ]
2,201
2018-10-15T14:37:19.000Z
2020-07-16T02:05:51.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/wider.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
759
2018-10-18T07:43:55.000Z
2020-07-16T01:23:12.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/annotation_converters/wider.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
808
2018-10-16T14:03:49.000Z
2020-07-15T11:41:45.000Z
""" Copyright (c) 2018-2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
44.327586
115
0.653637
a7a528b0142fd2a9df1bc75b3518dc509b76e286
5,453
py
Python
domain/analysis.py
sirsean/espn-fantasy-football-analyzer
f7565821d4a558a692cd7c3a07d56a14d5c47faf
[ "MIT" ]
1
2016-05-08T22:44:08.000Z
2016-05-08T22:44:08.000Z
domain/analysis.py
sirsean/espn-fantasy-football-analyzer
f7565821d4a558a692cd7c3a07d56a14d5c47faf
[ "MIT" ]
1
2015-12-08T17:09:19.000Z
2015-12-08T22:01:56.000Z
domain/analysis.py
sirsean/espn-fantasy-football-analyzer
f7565821d4a558a692cd7c3a07d56a14d5c47faf
[ "MIT" ]
null
null
null
""" Represents a team in the league. Keep track of the team's actual record and optimum record, as well as the players who scored above their average against this team. """ class Team: def __init__(self, name): self.name = name self.actualWins = 0 self.actualLosses = 0 self.actualTies = 0 self.optimumWin...
32.652695
183
0.758115
09f88b781864f7bd704de61823aea3ff5b26b934
8,446
py
Python
pinax/stripe/actions/charges.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
null
null
null
pinax/stripe/actions/charges.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
null
null
null
pinax/stripe/actions/charges.py
code-kitchen/pinax-stripe
8fb33bba6f7b23ea589094f3c76456ad8e73f909
[ "MIT" ]
1
2020-03-23T10:21:07.000Z
2020-03-23T10:21:07.000Z
import decimal from django.conf import settings from django.db.models import Q import stripe from six import string_types from .. import hooks, models, utils def calculate_refund_amount(charge, amount=None): """ Calculate refund amount given a charge and optional amount. Args: charge: a pinax....
36.248927
130
0.692044
5f0095e9ec6cff31d46cccf0356605b24d06f9e3
2,488
py
Python
update-sha1sums.py
devices-ng/android_device_gigaset_mt6763-common
2bc486ae6efaecdf144556910ad309b4fbee62ea
[ "FTL" ]
2
2021-08-12T10:59:55.000Z
2021-11-15T11:16:05.000Z
update-sha1sums.py
devices-ng/android_device_gigaset_mt6763-common
2bc486ae6efaecdf144556910ad309b4fbee62ea
[ "FTL" ]
null
null
null
update-sha1sums.py
devices-ng/android_device_gigaset_mt6763-common
2bc486ae6efaecdf144556910ad309b4fbee62ea
[ "FTL" ]
4
2021-08-07T05:15:14.000Z
2022-03-02T22:42:24.000Z
#!/usr/bin/env python # # Copyright (C) 2016 The CyanogenMod Project # Copyright (C) 2017-2020 The LineageOS Project # # 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...
29.619048
75
0.569534
c1be7ee6b5622befaafe13de6f606183a20c5e1b
174
py
Python
getBMR.py
fixture94/super-duper-sortmabob
b3c2eabe4ff2cccbcafae8d1fb7d88263705168c
[ "MIT" ]
null
null
null
getBMR.py
fixture94/super-duper-sortmabob
b3c2eabe4ff2cccbcafae8d1fb7d88263705168c
[ "MIT" ]
null
null
null
getBMR.py
fixture94/super-duper-sortmabob
b3c2eabe4ff2cccbcafae8d1fb7d88263705168c
[ "MIT" ]
null
null
null
def getBMR(weightLBS, heightINCHES, age): weightKG = weightLBS*.453592 heightCM = heightINCHES*2.54 BMR = 10*weightKG+.25*heightCM-5*age+5 return BMR
29
45
0.666667
24d66635b23b08e74fcf1f0cbf820c8b3c57a56c
223
py
Python
twitter_media_tweets/twitter/forms.py
rmotr-group-projects/wdd-w2-twitter-media-tweets
970889ea23a5a692a841be0e2f0e097f74b30f71
[ "MIT" ]
null
null
null
twitter_media_tweets/twitter/forms.py
rmotr-group-projects/wdd-w2-twitter-media-tweets
970889ea23a5a692a841be0e2f0e097f74b30f71
[ "MIT" ]
6
2020-06-05T22:14:42.000Z
2022-01-13T01:30:01.000Z
twitter_media_tweets/twitter/forms.py
ine-rmotr-projects/wdd-w3-twitter-media-tweets
970889ea23a5a692a841be0e2f0e097f74b30f71
[ "MIT" ]
null
null
null
from django import forms from .models import Tweet class TweetForm(forms.Form): content = forms.CharField(max_length=140) image_url = forms.URLField(required=False) video_url = forms.URLField(required=False)
22.3
46
0.757848
068140e07ff22ec0e1788a3a70252b008c329b69
716
py
Python
run_postpred.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
1
2019-03-15T04:01:19.000Z
2019-03-15T04:01:19.000Z
run_postpred.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
5
2017-12-11T00:11:39.000Z
2021-07-09T17:05:16.000Z
run_postpred.py
deapplegate/wtgpipeline
9693e8562022cc97bf5a96427e22965e1a5e8497
[ "MIT" ]
2
2017-08-15T21:19:11.000Z
2017-10-12T00:36:35.000Z
#!/usr/bin/env python ##################### import sys, glob import pymc, numpy as np import shapedistro, shapedistro_residuals as sdr, ldac ##################### trainingfile = sys.argv[1] testingfile = sys.argv[2] resfile = sys.argv[3] modelname = sys.argv[4] burn = int(sys.argv[5]) outfile = sys.argv[6] traini...
21.058824
78
0.710894
ec31bfa84bf7174a714c67eceac31a2f7f8442a8
1,059
py
Python
demoweb/urls.py
biljiang/demoweb
4eb2654f7a8099460339a16dba3d0f78e8cc4115
[ "MIT" ]
null
null
null
demoweb/urls.py
biljiang/demoweb
4eb2654f7a8099460339a16dba3d0f78e8cc4115
[ "MIT" ]
null
null
null
demoweb/urls.py
biljiang/demoweb
4eb2654f7a8099460339a16dba3d0f78e8cc4115
[ "MIT" ]
null
null
null
"""demoweb URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
36.517241
77
0.703494
b82dee324a722219487888d21d231e9dba03a31e
5,107
py
Python
scrapper.py
jonboboeva/2021-2-level-ctlr
4a97fd28a416d39c8d36463df781e8c291c334b5
[ "MIT" ]
null
null
null
scrapper.py
jonboboeva/2021-2-level-ctlr
4a97fd28a416d39c8d36463df781e8c291c334b5
[ "MIT" ]
null
null
null
scrapper.py
jonboboeva/2021-2-level-ctlr
4a97fd28a416d39c8d36463df781e8c291c334b5
[ "MIT" ]
null
null
null
""" Scrapper implementation """ from datetime import datetime import json from pathlib import Path import random import shutil from time import sleep from bs4 import BeautifulSoup import requests from core_utils.article import Article from constants import ASSETS_PATH, CRAWLER_CONFIG_PATH, HTTP_PATTERN ...
31.331288
108
0.645976
9a2dc1499736f0d32bf8dfb13564b60fae29fe16
766
py
Python
.aux/venv/lib/python3.9/site-packages/auxilium/add_arguments/__init__.py
sonntagsgesicht/regtest
160ef1089f797fbade48160efb0e1a386adbada7
[ "Apache-2.0" ]
null
null
null
.aux/venv/lib/python3.9/site-packages/auxilium/add_arguments/__init__.py
sonntagsgesicht/regtest
160ef1089f797fbade48160efb0e1a386adbada7
[ "Apache-2.0" ]
null
null
null
.aux/venv/lib/python3.9/site-packages/auxilium/add_arguments/__init__.py
sonntagsgesicht/regtest
160ef1089f797fbade48160efb0e1a386adbada7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # auxilium # -------- # Python project for an automated test and deploy toolkit. # # Author: sonntagsgesicht # Version: 0.1.8, copyright Saturday, 02 October 2021 # Website: https://github.com/sonntagsgesicht/auxilium # License: Apache License 2.0 (see LICENSE file) from .root import add...
34.818182
75
0.744125
d99ca988d41fe491ac3bf89aeaa4176f9c1987c1
1,185
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/MdiLayout.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/MdiLayout.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/MdiLayout.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
class MdiLayout(Enum,IComparable,IFormattable,IConvertible): """ Specifies the layout of multiple document interface (MDI) child windows in an MDI parent window. enum MdiLayout,values: ArrangeIcons (3),Cascade (0),TileHorizontal (1),TileVertical (2) """ def Instance(self): """ This function has been a...
29.625
215
0.679325
4bb99519c29a4befe9c56b20af27c13f7ed28f63
1,740
py
Python
mock_sensors/lock/lock.py
NGI-Trust-CASSIOPEIA/demonstrator-backend
fd627b393357f799e7203480cd955f04066b684b
[ "MIT" ]
null
null
null
mock_sensors/lock/lock.py
NGI-Trust-CASSIOPEIA/demonstrator-backend
fd627b393357f799e7203480cd955f04066b684b
[ "MIT" ]
null
null
null
mock_sensors/lock/lock.py
NGI-Trust-CASSIOPEIA/demonstrator-backend
fd627b393357f799e7203480cd955f04066b684b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # encoding=utf-8 import paho.mqtt.client as mqtt import logging import json import time import argparse logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger() lock = True def on_connect(client, userdata, flags, rc): logger.debug('Connected with result code {0}'.format(str(...
24.507042
81
0.645402
b6c4e6a2b7c1e1f85c2efd5006a00e8ae67ca9ac
896
py
Python
benchmarks/operator_benchmark/common/tests/random_sample_test.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
benchmarks/operator_benchmark/common/tests/random_sample_test.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
benchmarks/operator_benchmark/common/tests/random_sample_test.py
jsun94/nimble
e5c899a69677818b1becc58100577441e15ede13
[ "BSD-3-Clause" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
import operator_benchmark as op_bench import torch configs = op_bench.random_sample_configs( M=[1, 2, 3, 4, 5, 6], N=[7, 8, 9, 10, 11, 12], K=[13, 14, 15, 16, 17, 18], # probs saves the weights of each value probs=op_bench.attr_probs( M=[0.5, 0.2, 0.1, 0.05, 0.03, 0.1], N=[0.1, 0....
24.888889
56
0.603795
6094c459ce0be0b0f6631e4a607202c4bc015b94
6,352
py
Python
src/S1Processor.py
Thetaspace/TS_Sen12Mosaicker
69c479b2fab6acb988552dec93d6b08eafb622c6
[ "MIT" ]
1
2022-01-24T22:54:08.000Z
2022-01-24T22:54:08.000Z
src/S1Processor.py
Thetaspace/TS_Sen12Mosaicker
69c479b2fab6acb988552dec93d6b08eafb622c6
[ "MIT" ]
null
null
null
src/S1Processor.py
Thetaspace/TS_Sen12Mosaicker
69c479b2fab6acb988552dec93d6b08eafb622c6
[ "MIT" ]
null
null
null
# extended from https://github.com/wajuqi/Sentinel-1-preprocessing-using-Snappy import snappy from snappy import ProductIO from snappy import HashMap from snappy import GPF import os import zipfile import logging import glob from src.Processor import Processor import numpy as np logger = logging.getLogger('S1Processo...
36.930233
133
0.631612
2aa92d455b45534bf9f79cd71d3f212403f0f7e2
857
py
Python
scripts/test_script.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
23
2019-02-27T06:20:15.000Z
2022-03-31T22:54:11.000Z
scripts/test_script.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
38
2019-03-03T17:35:39.000Z
2021-08-23T20:43:34.000Z
scripts/test_script.py
abraker95/ultimate_osu_analyzer
bea58c997d13c3f461ccbe682f52799f0f88fdea
[ "MIT" ]
4
2020-03-30T20:43:14.000Z
2022-03-06T19:40:15.000Z
''' Such scripts allow to execute code that is too complex to manage in the embedded console To start enter the following in the embedded console: CmdUtils.run_script('scripts/test_script.py', globals(), locals()) Now try: ret = TestScript().run('hello', 'world') print(ret) All variables accessable in ...
34.28
95
0.725788
c53e6042d6d46f815020d147c70048103d763cfe
11,180
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/a10/a10_virtual_server.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/a10/a10_virtual_server.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/a10/a10_virtual_server.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Mischa Peters <mpeters@a10networks.com>, # Eric Chou <ericc@a10networks.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = t...
39.22807
138
0.627818
d3db60b7177b5f34d9ad3d9143746c4ae2adbf81
4,437
py
Python
biobb_dna/test/unitests/test_correlation/test_correlation.py
bioexcel/biobb_dna
7b61937d1683629949ffd7e1abb55831dcd25060
[ "Apache-2.0" ]
null
null
null
biobb_dna/test/unitests/test_correlation/test_correlation.py
bioexcel/biobb_dna
7b61937d1683629949ffd7e1abb55831dcd25060
[ "Apache-2.0" ]
1
2021-10-30T07:25:54.000Z
2021-10-30T07:25:54.000Z
biobb_dna/test/unitests/test_correlation/test_correlation.py
bioexcel/biobb_dna
7b61937d1683629949ffd7e1abb55831dcd25060
[ "Apache-2.0" ]
null
null
null
from biobb_common.tools import test_fixtures as fx from biobb_dna.interbp_correlations.interhpcorr import interhpcorr from biobb_dna.interbp_correlations.interseqcorr import interseqcorr from biobb_dna.interbp_correlations.interbpcorr import interbpcorr from biobb_dna.intrabp_correlations.intrahpcorr import intrahpcorr...
32.625
68
0.652243
b4bdd0372fd308a902c6210e987f9f290f9b9fed
16,180
py
Python
git-hound.py
killvxk/git-hound
4cf9be3340f48ff94f94afab8b695199e05acefc
[ "MIT" ]
1
2020-01-07T13:19:08.000Z
2020-01-07T13:19:08.000Z
git-hound.py
killvxk/git-hound
4cf9be3340f48ff94f94afab8b695199e05acefc
[ "MIT" ]
null
null
null
git-hound.py
killvxk/git-hound
4cf9be3340f48ff94f94afab8b695199e05acefc
[ "MIT" ]
null
null
null
import requests import sys import re import urllib.parse import time import hashlib import random import json import yaml import argparse import entropy import fileinput parser = argparse.ArgumentParser( description='Git Hound') parser.add_argument( '--subdomain-file', type=str, help='The file with the subdoma...
34.063158
174
0.618727
45e32d616be78ed0da58476e782d2127a3904f92
165
py
Python
e/mail-relay/web_customer/router_local.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/web_customer/router_local.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/web_customer/router_local.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
class MyRouter(object): def db_for_read(self, model, **hints): return 'localhost' def db_for_write(self, model, **hints): return 'localhost'
27.5
43
0.642424
991e9cb1c68f5845134145529ab921a4db65c19b
7,774
py
Python
docker/loos/board-meters-app/app.py
sourceperl/tk-dashboard
015ececc670902b02284749ac59f354db4304e48
[ "MIT" ]
null
null
null
docker/loos/board-meters-app/app.py
sourceperl/tk-dashboard
015ececc670902b02284749ac59f354db4304e48
[ "MIT" ]
null
null
null
docker/loos/board-meters-app/app.py
sourceperl/tk-dashboard
015ececc670902b02284749ac59f354db4304e48
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from board_lib import catch_log_except from configparser import ConfigParser import logging import time from pyHMI.DS_ModbusTCP import ModbusTCPDevice from pyHMI.DS_Redis import RedisDevice from pyHMI.Tag import Tag import requests import schedule # some const LTX_IP = '192.168.0.62' # modbus a...
41.572193
118
0.638153
4d9fe8abe42098b93dc0d40f7371aa03cc3a0b77
1,692
py
Python
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DeleteTrailRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DeleteTrailRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DeleteTrailRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.333333
86
0.743499
7dfda37ed9fe7023323d90423724239c06aefa1c
1,285
py
Python
run_linters.py
stevenpelley/gloomhaven-monster-ai
6b9422662e7e2554dc01edb55911b7519d38e01c
[ "MIT" ]
1
2020-09-29T23:12:46.000Z
2020-09-29T23:12:46.000Z
run_linters.py
stevenpelley/gloomhaven-monster-ai
6b9422662e7e2554dc01edb55911b7519d38e01c
[ "MIT" ]
null
null
null
run_linters.py
stevenpelley/gloomhaven-monster-ai
6b9422662e7e2554dc01edb55911b7519d38e01c
[ "MIT" ]
null
null
null
"""Run script for all linters.""" import subprocess import sys import typing def main() -> None: """Run all linters. Linter output will be sent to stdout. This function will exit the script with return code 0 on success, and other value on failure. """ is_success: bool = True for linter_i...
26.770833
79
0.565759
43a4a8d4928d4254e2bfa367bba52c37c52db4e1
1,174
py
Python
projectq/setups/decompositions/globalphase.py
VirtueQuantumCloud/projectqX
fa484fe037a3a1772127bbd00fe4628ddba34611
[ "Apache-2.0" ]
null
null
null
projectq/setups/decompositions/globalphase.py
VirtueQuantumCloud/projectqX
fa484fe037a3a1772127bbd00fe4628ddba34611
[ "Apache-2.0" ]
null
null
null
projectq/setups/decompositions/globalphase.py
VirtueQuantumCloud/projectqX
fa484fe037a3a1772127bbd00fe4628ddba34611
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # 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...
30.102564
76
0.746167
3680268a54f56718e3a6d93fe472b716742356d6
554
py
Python
dbt/adapters/sqlite/relation.py
edgarrmondragon/dbt-sqlite
dc578b8e7f7707cb0e9fb8f2bb90b3340d95f5f6
[ "Apache-2.0" ]
43
2020-11-06T20:30:56.000Z
2022-03-12T21:57:37.000Z
dbt/adapters/sqlite/relation.py
edgarrmondragon/dbt-sqlite
dc578b8e7f7707cb0e9fb8f2bb90b3340d95f5f6
[ "Apache-2.0" ]
12
2020-11-07T07:46:01.000Z
2021-12-09T06:07:15.000Z
dbt/adapters/sqlite/relation.py
edgarrmondragon/dbt-sqlite
dc578b8e7f7707cb0e9fb8f2bb90b3340d95f5f6
[ "Apache-2.0" ]
3
2020-11-15T01:41:43.000Z
2021-08-09T20:34:27.000Z
from dataclasses import dataclass from dbt.adapters.base.relation import BaseRelation, Policy @dataclass class SQLiteQuotePolicy(Policy): database: bool = False schema: bool = False identifier: bool = True @dataclass class SQLiteIncludePolicy(Policy): database: bool = False schema: bool = True ...
23.083333
63
0.758123
475a9dd1b954f4c955fce272de2eea64141cb7df
3,009
py
Python
examples/ad_manager/v201911/adjustment_service/update_traffic_adjustments.py
MattCardoso/googleads-python-lib
62f0db9fdb78a1bcdb1e61c82c609d9f47cb48d8
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201911/adjustment_service/update_traffic_adjustments.py
MattCardoso/googleads-python-lib
62f0db9fdb78a1bcdb1e61c82c609d9f47cb48d8
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201911/adjustment_service/update_traffic_adjustments.py
MattCardoso/googleads-python-lib
62f0db9fdb78a1bcdb1e61c82c609d9f47cb48d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.808989
80
0.70123
efb70e6d199971b96fef25ce6491558bc17c5105
697
py
Python
setup.py
techlift-tech/membership_program
265a84345c26670f037beb7363b05acb3f9586f2
[ "MIT" ]
null
null
null
setup.py
techlift-tech/membership_program
265a84345c26670f037beb7363b05acb3f9586f2
[ "MIT" ]
null
null
null
setup.py
techlift-tech/membership_program
265a84345c26670f037beb7363b05acb3f9586f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import re, ast with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in membership_program/__init__.py _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('membership_p...
26.807692
73
0.743185
20f0182720d90cb43e9b7dfc4501b099805c4b05
3,676
py
Python
lib/networks/VGGnet_test.py
Chrisvb95/Claran-repo
a1218faa58fcf148fb352e8674439dceca072ef5
[ "MIT" ]
39
2018-04-09T09:32:46.000Z
2022-03-09T12:05:44.000Z
lib/networks/VGGnet_test.py
Chrisvb95/Claran-repo
a1218faa58fcf148fb352e8674439dceca072ef5
[ "MIT" ]
10
2018-06-29T00:29:50.000Z
2021-10-12T22:52:30.000Z
lib/networks/VGGnet_test.py
Chrisvb95/Claran-repo
a1218faa58fcf148fb352e8674439dceca072ef5
[ "MIT" ]
15
2018-08-28T06:55:48.000Z
2021-08-10T13:05:33.000Z
import tensorflow as tf from networks.network import Network from fast_rcnn.config import cfg n_classes = 7 class VGGnet_test(Network): def __init__(self, trainable=True, anchor_scales=[8, 16, 32], feat_stride=[16, ], low_level_trainable=False, anchor_ratios=[0.5, 1, 2], transf...
46.531646
112
0.572361
24cad57cea41dbca1005be334b039e62cd3b8789
240
py
Python
Business/bustemplate/models.py
Kshashank9/Business-Topology-Website
17d0c5ccabb17c52b6162e147640275de32e5169
[ "MIT" ]
null
null
null
Business/bustemplate/models.py
Kshashank9/Business-Topology-Website
17d0c5ccabb17c52b6162e147640275de32e5169
[ "MIT" ]
null
null
null
Business/bustemplate/models.py
Kshashank9/Business-Topology-Website
17d0c5ccabb17c52b6162e147640275de32e5169
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class courses(models.Model): name = models.CharField(max_length=100) desc = models.TextField() img = models.ImageField(upload_to='pics') price = models.IntegerField()
26.666667
45
0.720833
22f415c45c26822a487e38b9ce086234fc867caf
894
py
Python
LeetCode.Test/_0001_0050/Test_020_ValidParentheses.py
BigEggStudy/LeetCode-Py
735e782742fab15bdb046eb6d5fc7b03502cc92d
[ "MIT" ]
1
2021-01-30T04:07:26.000Z
2021-01-30T04:07:26.000Z
LeetCode.Test/_0001_0050/Test_020_ValidParentheses.py
BigEggStudy/LeetCode-Py
735e782742fab15bdb046eb6d5fc7b03502cc92d
[ "MIT" ]
null
null
null
LeetCode.Test/_0001_0050/Test_020_ValidParentheses.py
BigEggStudy/LeetCode-Py
735e782742fab15bdb046eb6d5fc7b03502cc92d
[ "MIT" ]
1
2021-09-09T20:12:25.000Z
2021-09-09T20:12:25.000Z
import unittest import sys sys.path.append('LeetCode/_0001_0050') from _020_ValidParentheses import Solution class Test_020_ValidParentheses(unittest.TestCase): def test_isValid_oneType(self): solution = Solution() self.assertTrue(solution.isValid('()')) def test_isValid_multipleType(self): ...
27.9375
51
0.675615
92c9a9c21debb3de20ccc25eb3d65b19705bf5e9
3,215
py
Python
build.py
Kataiser/radeline
da1fc490556b393623e0c8ced20cbcdb8de68229
[ "MIT" ]
3
2021-03-18T20:00:21.000Z
2022-03-01T04:11:13.000Z
build.py
Kataiser/radeline
da1fc490556b393623e0c8ced20cbcdb8de68229
[ "MIT" ]
1
2021-12-21T23:21:41.000Z
2021-12-21T23:21:41.000Z
build.py
Kataiser/radeline
da1fc490556b393623e0c8ced20cbcdb8de68229
[ "MIT" ]
null
null
null
import os import shutil import site import subprocess import sys import zipfile from io import BytesIO import requests try: import requests_cache except ImportError: requests_cache = None def main(): print("Building Radeline release package\n") if os.path.isdir('Radeline'): print("Deleting ...
41.753247
183
0.689891
2adcde52a5b3ef32ba6e7b7d35b0ab1ca66dc5c8
1,913
py
Python
openapi_core/schema/schemas/exceptions.py
plambein/openapi-core
91c346b1846cde66909ffd8b7fab91be525d5e17
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/exceptions.py
plambein/openapi-core
91c346b1846cde66909ffd8b7fab91be525d5e17
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/schemas/exceptions.py
plambein/openapi-core
91c346b1846cde66909ffd8b7fab91be525d5e17
[ "BSD-3-Clause" ]
null
null
null
import attr from openapi_core.schema.exceptions import OpenAPIMappingError class OpenAPISchemaError(OpenAPIMappingError): pass @attr.s(hash=True) class NoValidSchema(OpenAPISchemaError): value = attr.ib() def __str__(self): return "No valid schema found for value: {0}".format(self.value) @at...
23.9125
101
0.708834
70d25f71ee328024cf0d09a599912dd1203f8f54
619
py
Python
pcbs/ornament2020/fw/gentable.py
Matir/hacks
232cdb5af8a1e8338d9406dd9ee63252bf589b2b
[ "BSD-2-Clause" ]
6
2020-10-21T13:41:16.000Z
2021-12-21T22:48:40.000Z
pcbs/ornament2020/fw/gentable.py
Matir/hacks
232cdb5af8a1e8338d9406dd9ee63252bf589b2b
[ "BSD-2-Clause" ]
2
2021-08-28T19:40:41.000Z
2021-08-29T17:46:27.000Z
pcbs/ornament2020/fw/gentable.py
Matir/hacks
232cdb5af8a1e8338d9406dd9ee63252bf589b2b
[ "BSD-2-Clause" ]
3
2020-05-08T11:48:07.000Z
2021-10-17T21:06:05.000Z
import math import sys gamma = 2.5 template = ''' #include <stdint.h> #include <avr/pgmspace.h> const uint8_t consts_num_steps = %(nsteps)d; const uint8_t gamma_table[] PROGMEM = {%(gamma_table)s}; ''' nsteps = int(sys.argv[1], 0) maxval = int(sys.argv[2], 0) outfile = sys.argv[3] # Gamma adjustment table per Adaf...
21.344828
74
0.654281
748b056976fbad5b727fb6b4ce0ed0b3234c5ce9
1,227
py
Python
src/pyuwds3/reasoning/estimation/object_pose_estimator.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-08-19T06:15:14.000Z
2021-05-23T09:55:18.000Z
src/pyuwds3/reasoning/estimation/object_pose_estimator.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
5
2021-01-06T09:00:35.000Z
2021-01-20T13:22:19.000Z
src/pyuwds3/reasoning/estimation/object_pose_estimator.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-11-18T17:34:43.000Z
2021-05-23T16:14:17.000Z
import numpy as np from ...types.vector.vector6d import Vector6D from ...types.vector.vector3d import Vector3D class ObjectPoseEstimator(object): """ Allow to compute the 6D pose in global frame """ def estimate(self, tracks, view_pose, camera): """ Estimate the 6D pose in global frame from bbox (...
40.9
97
0.526487
741c86c9b8924e5c71490d4769650fb7cd3c8517
6,252
py
Python
budgetportal/guide_data.py
d3ft0uch/datamanager
60f2f9d5278d20ae553bb063dcedaf206bb3ab29
[ "MIT" ]
null
null
null
budgetportal/guide_data.py
d3ft0uch/datamanager
60f2f9d5278d20ae553bb063dcedaf206bb3ab29
[ "MIT" ]
null
null
null
budgetportal/guide_data.py
d3ft0uch/datamanager
60f2f9d5278d20ae553bb063dcedaf206bb3ab29
[ "MIT" ]
null
null
null
category_guides = { "adjusted-estimates-of-national-expenditure": "adjusted-estimates-of-national-expenditure", "estimates-of-provincial-expenditure": "estimates-of-provincial-expenditure", "frameworks-for-conditional-grants-to-provinces": "frameworks-for-conditional-grants", "frameworks-for-conditional...
61.294118
257
0.662828
c74dc376ba27219e61387502cc6b223f113a7594
134
py
Python
daxboard/home/urls.py
anderson-joyle/daxboard
39b97ea85d771187a9c8600ee1dd8faa9567c455
[ "MIT" ]
1
2017-12-29T09:44:58.000Z
2017-12-29T09:44:58.000Z
daxboard/home/urls.py
anderson-joyle/Daxboard
39b97ea85d771187a9c8600ee1dd8faa9567c455
[ "MIT" ]
2
2020-02-11T22:42:26.000Z
2020-06-05T18:19:35.000Z
daxboard/home/urls.py
anderson-joyle/Daxboard
39b97ea85d771187a9c8600ee1dd8faa9567c455
[ "MIT" ]
2
2018-11-13T07:33:35.000Z
2020-01-29T07:52:19.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.index), path('logout', views.logout), ]
19.142857
34
0.634328
c4f53ba27932cd262bccdb7b5fa79c53230ce629
1,986
py
Python
src/modelmanager.py
HimanshuMittal01/openSeqNet
b52ae66a6adaeaeaded5c65e8517d95e487bff6c
[ "MIT" ]
null
null
null
src/modelmanager.py
HimanshuMittal01/openSeqNet
b52ae66a6adaeaeaded5c65e8517d95e487bff6c
[ "MIT" ]
null
null
null
src/modelmanager.py
HimanshuMittal01/openSeqNet
b52ae66a6adaeaeaded5c65e8517d95e487bff6c
[ "MIT" ]
null
null
null
import torch from .layer import Layer from .edge import EdgeMatrix class ModelManager: def __init__(self, filepath, canvas): self.filepath = filepath self.canvas = canvas self.model = self._load_torch_model(filepath) self.layers = [] self.weights = [] # Instantiates...
31.52381
113
0.576032
1d9a63a6bb7d5cc3321a075576e558bb702050c0
801
py
Python
tensorflow_datasets/import_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
2
2022-02-14T09:51:39.000Z
2022-02-14T13:27:49.000Z
tensorflow_datasets/import_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/import_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
1
2020-12-13T22:11:33.000Z
2020-12-13T22:11:33.000Z
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
27.62069
74
0.751561
de6cb054b10e128b5fa04a23dcae33cf6944c0b1
16,258
py
Python
functions/visualizations.py
CIMAC-CIDC/cidc-cloud-functions
cf6f37d699497a09b68dd5a90000ef5a96f1dd7c
[ "MIT" ]
null
null
null
functions/visualizations.py
CIMAC-CIDC/cidc-cloud-functions
cf6f37d699497a09b68dd5a90000ef5a96f1dd7c
[ "MIT" ]
20
2019-08-05T20:20:32.000Z
2022-02-04T16:14:55.000Z
functions/visualizations.py
CIMAC-CIDC/cidc-cloud-functions
cf6f37d699497a09b68dd5a90000ef5a96f1dd7c
[ "MIT" ]
1
2022-02-15T17:51:36.000Z
2022-02-15T17:51:36.000Z
import json from io import BytesIO from typing import Optional # clustergrammer2 via sklearn uses np.float which is deprecated as of numpy==1.20 import warnings warnings.filterwarnings( action="ignore", category=DeprecationWarning, module="scikit-learn" ) import pandas as pd from clustergrammer2 import Network a...
34.444915
176
0.632489
0e7045f517d44e8d73b08bac7ce499f79d2bf80e
9,498
py
Python
tensorflow/python/keras/_impl/keras/preprocessing/sequence_test.py
ashuven63/tf_audio
bc561b81069001da01a1c7df4c16f6b9ba9a400b
[ "Apache-2.0" ]
1
2018-05-30T00:34:05.000Z
2018-05-30T00:34:05.000Z
tensorflow/python/keras/_impl/keras/preprocessing/sequence_test.py
timctho/tensorflow
015c72eac3f4e448dd8ab852843e902771496532
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/_impl/keras/preprocessing/sequence_test.py
timctho/tensorflow
015c72eac3f4e448dd8ab852843e902771496532
[ "Apache-2.0" ]
1
2021-11-16T19:59:48.000Z
2021-11-16T19:59:48.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...
39.740586
80
0.562645
f6d8a8122ca736019f0c9ffba9b833faf23203ae
3,433
py
Python
myfirst/settings.py
fyunka/django-blog
3cb44c3311ef4bc2a920ec1c4f34eff738b60eea
[ "MIT" ]
null
null
null
myfirst/settings.py
fyunka/django-blog
3cb44c3311ef4bc2a920ec1c4f34eff738b60eea
[ "MIT" ]
null
null
null
myfirst/settings.py
fyunka/django-blog
3cb44c3311ef4bc2a920ec1c4f34eff738b60eea
[ "MIT" ]
null
null
null
""" Django settings for myfirst project. Generated by 'django-admin startproject' using Django 1.11.23. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import o...
26.206107
91
0.694728
b6df8118746a90fac3bcbb541b9310b08e0fe13b
937
py
Python
ble_uart/process_unit.py
yjlou/blue_uart
442dd2bd7d66efbdca995b071ed0a85765152a10
[ "MIT" ]
null
null
null
ble_uart/process_unit.py
yjlou/blue_uart
442dd2bd7d66efbdca995b071ed0a85765152a10
[ "MIT" ]
null
null
null
ble_uart/process_unit.py
yjlou/blue_uart
442dd2bd7d66efbdca995b071ed0a85765152a10
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """A Process Unit is a component that handles the data flows. It contains 2 flows: flow0: data flow from the BLE to the server side. flow1: data flow from the server side to the BLE. +--------------+ | Process Unit | S | | e B ====> flow 0 ====>...
23.425
82
0.550694
034fe9ef7d5abc690c5de710e383a980cb9eea29
14,734
py
Python
youtube_audio_matcher/database/database.py
nrsyed/youtube-audio-matcher
d6a65d2e824f4e8f363c49341896612978b7318c
[ "MIT" ]
1
2020-11-26T00:55:55.000Z
2020-11-26T00:55:55.000Z
youtube_audio_matcher/database/database.py
nrsyed/youtube-audio-matcher
d6a65d2e824f4e8f363c49341896612978b7318c
[ "MIT" ]
null
null
null
youtube_audio_matcher/database/database.py
nrsyed/youtube-audio-matcher
d6a65d2e824f4e8f363c49341896612978b7318c
[ "MIT" ]
null
null
null
import asyncio import logging import time import sqlalchemy from .schema import Base, Fingerprint, Song def database_obj_to_py(obj, fingerprints_in_song=False): """ Recursively convert Fingerprint and Song sqlalchemy objects to native Python types (lists and dicts). Args: obj (database.sche...
34.75
79
0.579272
a55a8cb055373766c801a93cbe22b800648dbe11
1,143
py
Python
Docker-Swarm-deployment/single-node/databroker/backup/backup-app/backup-watch.py
abhilashvenkatesh/iudx-deployment
d57a31709f196764da6cf1da2c7ae93fc19b6f11
[ "MIT" ]
4
2021-12-24T12:34:15.000Z
2022-02-24T12:59:50.000Z
Docker-Swarm-deployment/single-node/databroker/backup/backup-app/backup-watch.py
abhilashvenkatesh/iudx-deployment
d57a31709f196764da6cf1da2c7ae93fc19b6f11
[ "MIT" ]
null
null
null
Docker-Swarm-deployment/single-node/databroker/backup/backup-app/backup-watch.py
abhilashvenkatesh/iudx-deployment
d57a31709f196764da6cf1da2c7ae93fc19b6f11
[ "MIT" ]
null
null
null
#This python script watches for the changes in file LATEST.LOG and backup the definition #by calling the backup.sh import time import os from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler class OnMyWatch: # Set the directory to watch watchDirectory = "/var/lib/rabbitmq/" ...
26.581395
88
0.725284
4af03f237452b0e1578b371813b59067f8547cef
10,941
py
Python
data_generator.py
KayqueTeles/MAML-work-in-progress
7a7c793a994a5f93d7a0b259adfc22918ce93a79
[ "MIT" ]
null
null
null
data_generator.py
KayqueTeles/MAML-work-in-progress
7a7c793a994a5f93d7a0b259adfc22918ce93a79
[ "MIT" ]
null
null
null
data_generator.py
KayqueTeles/MAML-work-in-progress
7a7c793a994a5f93d7a0b259adfc22918ce93a79
[ "MIT" ]
null
null
null
""" Code for loading data. """ import numpy as np import os import random import tensorflow as tf import sys from tensorflow.python.platform import flags from utils import get_images FLAGS = flags.FLAGS class DataGenerator(object): """ Data Generator capable of generating batches of sinusoid or Omniglot data...
53.370732
238
0.618591
9654e0d4b319cc304bdde3e9bf2583401f96b590
2,090
py
Python
mpl_format/utils/color_utils.py
vahndi/mpl-format
b03f97c37968e55a35c7181d93616eb44fc55f05
[ "MIT" ]
null
null
null
mpl_format/utils/color_utils.py
vahndi/mpl-format
b03f97c37968e55a35c7181d93616eb44fc55f05
[ "MIT" ]
51
2020-05-18T04:18:11.000Z
2022-02-01T02:35:59.000Z
mpl_format/utils/color_utils.py
vahndi/mpl-format
b03f97c37968e55a35c7181d93616eb44fc55f05
[ "MIT" ]
null
null
null
from typing import Iterable, Union, List from matplotlib.colors import to_rgb, to_rgba from compound_types.built_ins import FloatOrFloatIterable from mpl_format.compound_types import Color def cross_fade( from_color: Color, to_color: Color, amount: FloatOrFloatIterable, ) -> Union[Color, List[Color]...
28.630137
77
0.651196
1c76efbc0e58ecb3302fbdd372538a8293a9f49a
40,862
py
Python
control/tests/statesp_test.py
josephcslater/python-control
e080cef44e718c7c0e3a286fcc3adae405936b14
[ "BSD-3-Clause" ]
null
null
null
control/tests/statesp_test.py
josephcslater/python-control
e080cef44e718c7c0e3a286fcc3adae405936b14
[ "BSD-3-Clause" ]
null
null
null
control/tests/statesp_test.py
josephcslater/python-control
e080cef44e718c7c0e3a286fcc3adae405936b14
[ "BSD-3-Clause" ]
null
null
null
"""statesp_test.py - test state space class RMM, 30 Mar 2011 based on TestStateSp from v0.4a) RMM, 14 Jun 2019 statesp_array_test.py coverted from statesp_test.py to test with use_numpy_matrix(False) BG, 26 Jul 2020 merge statesp_array_test.py differences into statesp_test.py convert...
43.012632
835
0.511062
2872f1a1dcba11fefa3f47ef3d354ccdce714a64
1,265
py
Python
three.py/TestTemplate.py
lukestanley/three.py
a3fa99cb3553aca8c74ceabb8203edeb55450803
[ "MIT" ]
80
2019-04-04T13:41:32.000Z
2022-01-12T18:40:19.000Z
three.py/TestTemplate.py
lukestanley/three.py
a3fa99cb3553aca8c74ceabb8203edeb55450803
[ "MIT" ]
9
2019-04-04T14:43:50.000Z
2020-03-29T04:50:53.000Z
three.py/TestTemplate.py
lukestanley/three.py
a3fa99cb3553aca8c74ceabb8203edeb55450803
[ "MIT" ]
17
2019-04-04T14:20:42.000Z
2022-03-03T16:26:29.000Z
from core import * from cameras import * from geometry import * from material import * from helpers import * class TestTemplate(Base): def initialize(self): self.setWindowTitle('Test') self.setWindowSize(800,800) self.renderer = Renderer() self.renderer.setViewportSize(800,80...
28.75
93
0.620553
dc47aa0968e0db5a777b4723f5cd0104a26eefe2
22,128
py
Python
pymclevel/minecraft_server.py
gpmidi/MCEdit-Unified
60e1408899fa04113412b89616fd3486db5c8545
[ "0BSD" ]
null
null
null
pymclevel/minecraft_server.py
gpmidi/MCEdit-Unified
60e1408899fa04113412b89616fd3486db5c8545
[ "0BSD" ]
null
null
null
pymclevel/minecraft_server.py
gpmidi/MCEdit-Unified
60e1408899fa04113412b89616fd3486db5c8545
[ "0BSD" ]
null
null
null
import atexit import itertools import logging import os from os.path import dirname, join, basename import random from pymclevel import PocketLeveldbWorld import re import shutil import subprocess import sys import tempfile import time import urllib import json import urllib2 import infiniteworld from directories impo...
36.696517
199
0.592733
227e506ba3748da5e727d00c5e9c475c7051bbcc
289
py
Python
outsource/outsource/pipelines.py
iamjoel/find-outsource-tool
dd799298ffebbc25bd416d54f255ecd8ee8b4fd2
[ "MIT" ]
null
null
null
outsource/outsource/pipelines.py
iamjoel/find-outsource-tool
dd799298ffebbc25bd416d54f255ecd8ee8b4fd2
[ "MIT" ]
null
null
null
outsource/outsource/pipelines.py
iamjoel/find-outsource-tool
dd799298ffebbc25bd416d54f255ecd8ee8b4fd2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class OutsourcePipeline(object): def process_item(self, item, spider): return item
24.083333
65
0.712803
f2c9015e997e8b6b749031eb121f6184265fa6bd
4,662
py
Python
cacheman/autosync.py
Jenyay/py_cache_manager
aa7fa33dcbc30dbd6b2e62cade5f371f6dbbe2cb
[ "BSD-2-Clause" ]
null
null
null
cacheman/autosync.py
Jenyay/py_cache_manager
aa7fa33dcbc30dbd6b2e62cade5f371f6dbbe2cb
[ "BSD-2-Clause" ]
5
2015-02-18T22:17:52.000Z
2018-01-23T05:30:09.000Z
cacheman/autosync.py
Jenyay/py_cache_manager
aa7fa33dcbc30dbd6b2e62cade5f371f6dbbe2cb
[ "BSD-2-Clause" ]
2
2021-05-31T15:18:50.000Z
2022-01-15T16:50:25.000Z
from collections import namedtuple, deque from datetime import datetime from operator import attrgetter from builtins import range from .cachewrap import PersistentCache TimeCount = namedtuple('TimeCount', ['time_length', 'count']) MANY_WRITE_TIME_COUNTS = [TimeCount(60, 1000000), TimeCount(300, 10000), TimeC...
39.508475
112
0.642428
21dc2d354a807c7e17fa2f111f5e9fc8df47d080
32,102
py
Python
esky/tests/test_esky.py
dmckeone/esky
32b5c874b232390d1fe29ea8044cc27ceffba303
[ "BSD-3-Clause" ]
null
null
null
esky/tests/test_esky.py
dmckeone/esky
32b5c874b232390d1fe29ea8044cc27ceffba303
[ "BSD-3-Clause" ]
null
null
null
esky/tests/test_esky.py
dmckeone/esky
32b5c874b232390d1fe29ea8044cc27ceffba303
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2010, Cloud Matrix Pty. Ltd. # All rights reserved; available under the terms of the BSD License. from __future__ import with_statement import sys import os import unittest from os.path import dirname import subprocess import shutil import zipfile import threading import tempfile import urllib2...
40.379874
124
0.605383
4637a000c8cb12b0fa1adbae9a69262d87332964
5,793
py
Python
carla-aebs/aebs.py
kpandey008/carla-aebs
649f230d35b1f161705c5f3511b552f2cc7debd8
[ "MIT" ]
12
2020-11-28T09:47:52.000Z
2022-03-28T09:09:24.000Z
carla-aebs/aebs.py
kpandey008/carla-aebs
649f230d35b1f161705c5f3511b552f2cc7debd8
[ "MIT" ]
2
2021-01-31T08:32:23.000Z
2021-02-01T06:38:33.000Z
carla-aebs/aebs.py
kpandey008/carla-aebs
649f230d35b1f161705c5f3511b552f2cc7debd8
[ "MIT" ]
3
2021-05-25T07:01:37.000Z
2022-02-21T10:25:09.000Z
# Python module to demonstrate AEBS import click import numpy as np import os from models.rl_agent.ddpg_agent import ddpgAgent from models.rl_agent.input_preprocessor import InputPreprocessor from utils.visualize import plot_metrics from world import World @click.command() @click.option( '--mode', type=click...
47.097561
127
0.646125
969e95b609f47f9eb2e5f6fde7571e7d6d648ce2
1,165
py
Python
venmo-sim/leiden/run_leiden_on_sampled_venmo_dataset.py
akatsarakis/tx_benchmarking
f8233e58bba3f4fb54d82273d7ca8631bae36ebc
[ "MIT" ]
3
2020-07-07T17:08:41.000Z
2022-01-10T19:25:46.000Z
venmo-sim/leiden/run_leiden_on_sampled_venmo_dataset.py
akatsarakis/tx_benchmarking
f8233e58bba3f4fb54d82273d7ca8631bae36ebc
[ "MIT" ]
null
null
null
venmo-sim/leiden/run_leiden_on_sampled_venmo_dataset.py
akatsarakis/tx_benchmarking
f8233e58bba3f4fb54d82273d7ca8631bae36ebc
[ "MIT" ]
null
null
null
import csv import leidenalg import igraph as ig # build igraph from venmo dataset fp = open("cleaned_normalized_txes_sampled.csv", "r") # , encoding='utf-8') venmo_edges = csv.reader(fp) G = ig.Graph(directed=True) # TODO , weighted=True) # directed, weighted (edge weight = multiple of edge) # the data does not spe...
28.414634
107
0.695279
40bea55f9d0220d34ba36a7b034d6613482bcf2d
25,440
py
Python
samtranslator/open_api/open_api.py
ejafarli/serverless-application-model
6355433d1f0dec8624417180b0c989afd2d2930a
[ "Apache-2.0" ]
1
2020-10-27T14:27:14.000Z
2020-10-27T14:27:14.000Z
samtranslator/open_api/open_api.py
ejafarli/serverless-application-model
6355433d1f0dec8624417180b0c989afd2d2930a
[ "Apache-2.0" ]
null
null
null
samtranslator/open_api/open_api.py
ejafarli/serverless-application-model
6355433d1f0dec8624417180b0c989afd2d2930a
[ "Apache-2.0" ]
null
null
null
import copy import re from six import string_types from samtranslator.model.intrinsics import ref from samtranslator.model.intrinsics import make_conditional from samtranslator.model.intrinsics import is_intrinsic from samtranslator.model.exceptions import InvalidDocumentException, InvalidTemplateException import json...
43.118644
120
0.64717
0bef6c108f2bed7fe48039d5b00316dca5dfc26e
2,485
py
Python
myDatasets.py
tanaka4463/bippa-detection
c18eece423e334351432dcbf022e3827d97bcfb3
[ "MIT" ]
null
null
null
myDatasets.py
tanaka4463/bippa-detection
c18eece423e334351432dcbf022e3827d97bcfb3
[ "MIT" ]
null
null
null
myDatasets.py
tanaka4463/bippa-detection
c18eece423e334351432dcbf022e3827d97bcfb3
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.utils.data import Dataset import os import json import pandas as pd import numpy as np from PIL import Image class MyDatasets(Dataset): def __init__(self, imgDirectory, transform = None): self.imgDirectory = imgDirectory self.df = self.c...
37.089552
97
0.558149
2bb6fe560093bacaec289618d3406731ed1efdeb
1,211
py
Python
human/core/api/models/work_experience.py
domenicosolazzo/Human
272bbd939c90e0874a51022b9f716ed47e886fec
[ "MIT" ]
null
null
null
human/core/api/models/work_experience.py
domenicosolazzo/Human
272bbd939c90e0874a51022b9f716ed47e886fec
[ "MIT" ]
null
null
null
human/core/api/models/work_experience.py
domenicosolazzo/Human
272bbd939c90e0874a51022b9f716ed47e886fec
[ "MIT" ]
null
null
null
from place import Place class Employer(object): """ Employer model that represents a real work experience """ from_date = "" to_date = "" place = None summary = "", name = "" title = "" sector = "", keywords = [] def __init__(self, data): self.name = data.get('na...
28.833333
77
0.535095
131f6f2da3f2c69cf8ca88de131984155cc0cfa4
185
py
Python
accounts/forms.py
iidamakinen/OHSIHA2018
76c4f2d754045cc82d57062453e7248d63e5bf4d
[ "MIT" ]
null
null
null
accounts/forms.py
iidamakinen/OHSIHA2018
76c4f2d754045cc82d57062453e7248d63e5bf4d
[ "MIT" ]
null
null
null
accounts/forms.py
iidamakinen/OHSIHA2018
76c4f2d754045cc82d57062453e7248d63e5bf4d
[ "MIT" ]
null
null
null
from django import forms from .models import Tapahtuma class TapahtumaForm(forms.ModelForm): class Meta: model = Tapahtuma fields = ['name', 'description', 'date']
23.125
48
0.681081
02dc95abb5b6583696e6bdc49adc7c22a82993ce
10,868
py
Python
tests/regression_tests/test_aerostruct.py
kejacobson/mphys
72ff05a1c444461a9431470d32dcf2a7d51752eb
[ "Apache-2.0" ]
null
null
null
tests/regression_tests/test_aerostruct.py
kejacobson/mphys
72ff05a1c444461a9431470d32dcf2a7d51752eb
[ "Apache-2.0" ]
null
null
null
tests/regression_tests/test_aerostruct.py
kejacobson/mphys
72ff05a1c444461a9431470d32dcf2a7d51752eb
[ "Apache-2.0" ]
null
null
null
# --- Python 3.8 --- """ @File : test_aerostruct.py @Time : 2020/12/20 @Author : Josh Anibal @Desc : Aerostructural regression tests used to test if the output produced by MPHYS has changed """ # === Standard Python modules === from __future__ import print_function, division import os im...
37.347079
120
0.568642
3e1fe83d89e15bd049040214762d7a85054d0b95
7,551
py
Python
test_models.py
iqDF/tsn-pytorch
c734ee040fcb245542866f0a7812cdc6e417cb2c
[ "BSD-2-Clause" ]
2
2019-08-15T10:02:17.000Z
2020-03-27T09:45:56.000Z
test_models.py
iqDF/tsn-pytorch
c734ee040fcb245542866f0a7812cdc6e417cb2c
[ "BSD-2-Clause" ]
null
null
null
test_models.py
iqDF/tsn-pytorch
c734ee040fcb245542866f0a7812cdc6e417cb2c
[ "BSD-2-Clause" ]
null
null
null
""" Usage: python3 test_model.py <DATASET> <MODALITY> <VIDEO_FOR_TEST> <CHECKPOINTS_FILE> \ --arch <ARCH> --save_scores <SAVE_SCORES> e.g: python3 test_models.py saag01 ARP ./fighting.mkv checkpoints/SAAG01_BNI_ARP_3_model_best.pth.tar \ --arch BNInception --save_scores scores/ --num_segments 3 --consensus_type a...
28.280899
99
0.696596
fafeb2ee5267de29defe924520b0f17055090c39
2,201
py
Python
src/homescreen.py
Razdeep/BookManagementSystem
6b56e00c52ba57a8fb033a9ec7e6a288d075d2ac
[ "MIT" ]
null
null
null
src/homescreen.py
Razdeep/BookManagementSystem
6b56e00c52ba57a8fb033a9ec7e6a288d075d2ac
[ "MIT" ]
1
2018-11-27T03:52:22.000Z
2018-11-27T03:52:22.000Z
src/homescreen.py
Razdeep/BookManagementSystem
6b56e00c52ba57a8fb033a9ec7e6a288d075d2ac
[ "MIT" ]
null
null
null
import tkinter from core.config import * from submit import Submit class HomeScreen: def __init__(self,master): self.master=master self.master.config(bg="yellow green") navbar=tkinter.Frame(self.master) fictn_nav=tkinter.Button(navbar,text='Fictional Books',relief=tkinter.R...
42.326923
224
0.657428
a4ff08cd4d3117255a906809bf49c6fbd3d55961
3,148
py
Python
gym_anytrading/envs/stocks_env.py
tsb4/dayTradingEnv
16d1970a41c8933970152f1f41e504340d48cb08
[ "MIT" ]
null
null
null
gym_anytrading/envs/stocks_env.py
tsb4/dayTradingEnv
16d1970a41c8933970152f1f41e504340d48cb08
[ "MIT" ]
null
null
null
gym_anytrading/envs/stocks_env.py
tsb4/dayTradingEnv
16d1970a41c8933970152f1f41e504340d48cb08
[ "MIT" ]
null
null
null
import numpy as np from .trading_env import TradingEnv#, Actions, Positions class StocksEnv(TradingEnv): def __init__(self, df, window_size, frame_bound): assert len(frame_bound) == 2 self.frame_bound = frame_bound super().__init__(df, window_size) self.trade_fee_bid_percent = ...
34.977778
99
0.606099
b67d70a62d2c8d176090eefce22a1fe9d47379da
212
py
Python
common/errors.py
Hy-Oy/Swipter
fa0c2002816a64c3f00372f1e0f069bb03ff4458
[ "MIT" ]
null
null
null
common/errors.py
Hy-Oy/Swipter
fa0c2002816a64c3f00372f1e0f069bb03ff4458
[ "MIT" ]
null
null
null
common/errors.py
Hy-Oy/Swipter
fa0c2002816a64c3f00372f1e0f069bb03ff4458
[ "MIT" ]
null
null
null
''' 状态码, 业务码 ''' ok = 0 # 系统保留状态码:1000-1999 # 用户系统:2000-2999 PHONE_NUM_ERR = 2001 #手机号码错误 SMS_SEND_ERR = 2002 #发送失败 VERIFY_CODE_ERR = 2003 #验证失败 LOGIN_REQUIRED_ERR = 2004 #未登录 AVATAR_UPLOAD_ERR = 2005 #头像上传失败
15.142857
32
0.726415
b204add0f8a02943d713dc15b0280e2f11174155
18,901
py
Python
surface-tool/statistics_scripts/generate_default_graph.py
sara-nl/SURFsara-Trace-Archive
fb053f241b761c7e6dd863f5b87c8e90428b1f6c
[ "Apache-2.0" ]
1
2020-06-17T09:59:15.000Z
2020-06-17T09:59:15.000Z
surface-tool/statistics_scripts/generate_default_graph.py
sara-nl/SURFace
fb053f241b761c7e6dd863f5b87c8e90428b1f6c
[ "Apache-2.0" ]
null
null
null
surface-tool/statistics_scripts/generate_default_graph.py
sara-nl/SURFace
fb053f241b761c7e6dd863f5b87c8e90428b1f6c
[ "Apache-2.0" ]
null
null
null
from scipy.stats.stats import pearsonr, spearmanr, kendalltau import matplotlib.pyplot as plt import sys, os from pathlib import Path import matplotlib.pylab as pylab import numpy as np import pandas as pd import scipy import seaborn as sns import matplotlib.patches as mpatches sys.path.insert(1, '/home/cmt2002/surfsa...
41.178649
154
0.611978
99c78de79b9393fae7b2cbe7fd5a83e3f5da2a89
383
py
Python
Arase/HEP/DeleteDate.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
null
null
null
Arase/HEP/DeleteDate.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
1
2021-06-10T22:51:09.000Z
2021-06-10T22:51:09.000Z
Arase/HEP/DeleteDate.py
mattkjames7/Arase
996167be35a13bbb1fdddfbe75e3a06d124b1d25
[ "MIT" ]
null
null
null
import numpy as np from ..Tools.Downloading._DeleteDate import _DeleteDate from .. import Globals def DeleteDate(Date,L,prod,Confirm=True): ''' Delete all of the files from a given date ''' idxfname = Globals.DataPath + 'HEP/Index-L{:01d}-{:s}.dat'.format(L,prod) datapath = Globals.DataPath + 'HEP/l{:01d}/{:s}/...
27.357143
74
0.720627
122e44a072af7e2008f795d9d7dc7fe94dc5608c
2,234
py
Python
Visualization-for-Company-Stakeholders/code.py
sdshilpadas/greyatom-python-for-data-science
10fdfd55b1879dfcde3a168132ba35e1d3fe2985
[ "MIT" ]
null
null
null
Visualization-for-Company-Stakeholders/code.py
sdshilpadas/greyatom-python-for-data-science
10fdfd55b1879dfcde3a168132ba35e1d3fe2985
[ "MIT" ]
null
null
null
Visualization-for-Company-Stakeholders/code.py
sdshilpadas/greyatom-python-for-data-science
10fdfd55b1879dfcde3a168132ba35e1d3fe2985
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #Reading the file data=pd.read_csv(path) #Code starts here # Step 1 #Reading the file data = pd.read_csv(path) #Creating a new variable to store the value counts loan_status = data['Loan_Status'].value_c...
24.282609
83
0.750671
3a249c929e37803984803aeac3d16866641edd11
1,127
py
Python
python/paddle/fluid/tests/unittests/test_dist_mnist_fp16_allreduce.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/test_dist_mnist_fp16_allreduce.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_dist_mnist_fp16_allreduce.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-12-09T08:59:17.000Z
2021-12-09T08:59:17.000Z
# Copyright (c) 2020 PaddlePaddle 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 appli...
32.2
77
0.741792
25a94ea0b987f4f7f4092899fab0f251a95b8ac1
1,568
py
Python
prototyping/water_flow.py
brenshanny/project_lob
2eb5aca40b5dfae84bdb0eeb19374c93ae0a7a1f
[ "MIT" ]
1
2018-11-09T19:22:23.000Z
2018-11-09T19:22:23.000Z
prototyping/water_flow.py
brenshanny/project_lob
2eb5aca40b5dfae84bdb0eeb19374c93ae0a7a1f
[ "MIT" ]
null
null
null
prototyping/water_flow.py
brenshanny/project_lob
2eb5aca40b5dfae84bdb0eeb19374c93ae0a7a1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import time, sys class WaterFlowMonitor(object): def __init__(self): self.flow_sensor_pin = 17 self.total_count = 0 self.rate_count = 0 self.timer = 0 self.min_count = 0 self.constant = 0.10 # Setup GPIO ...
28
77
0.53699
21fdcf37050226b8c6b166cde5c607dd4d9157e3
3,540
py
Python
2016/11_RadioisotopeThermoelectricGenerators/test_solver.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
1
2021-01-03T23:09:28.000Z
2021-01-03T23:09:28.000Z
2016/11_RadioisotopeThermoelectricGenerators/test_solver.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
6
2020-12-26T21:02:42.000Z
2020-12-26T21:02:52.000Z
2016/11_RadioisotopeThermoelectricGenerators/test_solver.py
deanearlwright/AdventOfCode
ca4cf6315c0efa38bd7748fb6f4bc99e7934871d
[ "MIT" ]
null
null
null
# ====================================================================== # Radioisotope Thermoelectric Generators # Advent of Code 2016 Day 11 -- Eric Wastl -- https://adventofcode.com # # Python implementation by Dr. Dean Earl Wright III # ====================================================================== # ===...
36.494845
92
0.436723
0f7a48752bb6045552a4995149ed985ba121ed9c
4,574
py
Python
grammar2lale/custom_optimizer.py
oudrea/grammar2pddl
f5936c5b8f831c99c7378d88e86c7dd6983c7b12
[ "Apache-2.0" ]
11
2021-03-18T23:36:13.000Z
2022-02-27T11:06:15.000Z
grammar2lale/custom_optimizer.py
oudrea/grammar2pddl
f5936c5b8f831c99c7378d88e86c7dd6983c7b12
[ "Apache-2.0" ]
3
2021-07-14T22:54:02.000Z
2022-02-22T05:12:28.000Z
grammar2lale/custom_optimizer.py
oudrea/grammar2pddl
f5936c5b8f831c99c7378d88e86c7dd6983c7b12
[ "Apache-2.0" ]
1
2022-02-22T02:54:18.000Z
2022-02-22T02:54:18.000Z
from lale.lib.sklearn import * from lale.lib.xgboost import * from lale.lib.lightgbm import * from lale.lib.lale import ConcatFeatures as Concat from lale.lib.lale import NoOp from lale.pretty_print import to_string import lale.helpers import lale.search.op2hp import hyperopt import statistics import numpy as np import...
37.491803
103
0.629427