hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795cd8064c8ef53745b3e657774a32762932b97c
7,219
py
Python
testing/scripts/test_seldon_metadata.py
glindsell/seldon-core
a6992832b74ed71bbd3a91c48b5a79a5cee785b2
[ "Apache-2.0" ]
1
2020-07-14T15:42:41.000Z
2020-07-14T15:42:41.000Z
testing/scripts/test_seldon_metadata.py
glindsell/seldon-core
a6992832b74ed71bbd3a91c48b5a79a5cee785b2
[ "Apache-2.0" ]
231
2020-08-10T08:38:42.000Z
2021-08-02T20:56:49.000Z
testing/scripts/test_seldon_metadata.py
glindsell/seldon-core
a6992832b74ed71bbd3a91c48b5a79a5cee785b2
[ "Apache-2.0" ]
null
null
null
import pytest import time from google.protobuf import json_format import json from subprocess import run import numpy as np from seldon_core.proto import prediction_pb2 from seldon_e2e_utils import ( wait_for_status, wait_for_rollout, rest_request_ambassador, initial_rest_request, grpc_request_amb...
31.662281
95
0.657432
795cd90c8a52730525cb80e93729fb7304b2c5c7
17,453
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/operator.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/-762174762/operator.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/-762174762/operator.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module operator # from (built-in) # by generator 1.147 """ Operator interface. This module exports a set of functions implemented in C corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y. The function names are those used for spe...
31.560579
92
0.599438
795cd91394186aa8a38671f00da6374df7e68536
2,515
py
Python
archive/21October2020_17-22EST/mapMaker.py
ianm24/map-generation
0327548815ef7adfe0456dfcaa16d9ad7e36f88b
[ "MIT" ]
null
null
null
archive/21October2020_17-22EST/mapMaker.py
ianm24/map-generation
0327548815ef7adfe0456dfcaa16d9ad7e36f88b
[ "MIT" ]
null
null
null
archive/21October2020_17-22EST/mapMaker.py
ianm24/map-generation
0327548815ef7adfe0456dfcaa16d9ad7e36f88b
[ "MIT" ]
null
null
null
# Program Made By: Ian McDowell # Started 8 Oct 2020 from PIL import Image import glob, os, imageio, random, math path = 'images' #map maker def map_maker( filename,width,height, lastColorIncentive, landToWater,nRange): img = Image.new("RGBA",(width, height),(0,0,0,0)) img.save(path+'/'+filename+'.bmp') blue = ...
32.662338
94
0.68827
795cda742b46786c21bb8dfb9bff13436044ec3e
6,693
py
Python
packages/syft/src/syft/core/node/common/node_service/network_search/network_search_messages.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
8,428
2017-08-10T09:17:49.000Z
2022-03-31T08:20:14.000Z
packages/syft/src/syft/core/node/common/node_service/network_search/network_search_messages.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
4,779
2017-08-09T23:19:00.000Z
2022-03-29T11:49:36.000Z
packages/syft/src/syft/core/node/common/node_service/network_search/network_search_messages.py
vishalbelsare/PySyft
fb04404fcfbef82fad1fb47407b35a24e9afb599
[ "Apache-1.1" ]
2,307
2017-08-10T08:52:12.000Z
2022-03-30T05:36:07.000Z
# stdlib import json from typing import Dict from typing import Optional # third party from google.protobuf.reflection import GeneratedProtocolMessageType from typing_extensions import final # relative from ...... import serialize from ......proto.grid.messages.network_search_messages_pb2 import ( NetworkSearchMe...
40.077844
92
0.685193
795cdb47ac30284036a9e8c06bafeff0f596351c
4,852
py
Python
clients/python/generated/test/test_blue_ocean_api.py
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
23
2017-08-01T12:25:26.000Z
2022-01-25T03:44:11.000Z
clients/python/generated/test/test_blue_ocean_api.py
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
35
2017-06-14T03:28:15.000Z
2022-02-14T10:25:54.000Z
clients/python/generated/test/test_blue_ocean_api.py
PankTrue/swaggy-jenkins
aca35a7cca6e1fcc08bd399e05148942ac2f514b
[ "MIT" ]
11
2017-08-31T19:00:20.000Z
2021-12-19T12:04:12.000Z
# coding: utf-8 """ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification # noqa: E501 OpenAPI spec version: 1.0.1 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import swaggyjenk...
18.879377
85
0.600371
795cdb6397766638cf2c6c9b8bea8a23c0b5d103
117
py
Python
dashboard/config.py
WahajJaved/Hamzar
3dfec7c3ceca5b60ff46f8ad25ac417ba6463b86
[ "Apache-2.0" ]
3
2020-03-30T13:11:57.000Z
2020-04-22T13:55:31.000Z
dashboard/config.py
wahaj/Hamzar
3dfec7c3ceca5b60ff46f8ad25ac417ba6463b86
[ "Apache-2.0" ]
9
2020-10-29T08:03:28.000Z
2021-09-08T01:21:10.000Z
dashboard/config.py
WahajJaved/Hamzar
3dfec7c3ceca5b60ff46f8ad25ac417ba6463b86
[ "Apache-2.0" ]
2
2021-01-06T19:25:07.000Z
2021-05-14T02:00:19.000Z
from oscar.apps.dashboard import config class DashboardConfig(config.DashboardConfig): name = 'dashboard'
19.5
47
0.752137
795cdba4daa934ad439b232509fa69cd16baf5bb
2,854
py
Python
bfassist/standalone/monitoring/realtimevehicle.py
SanHime/bfassist
f4870189a54373487064897ad0d5bf46ae9d97f8
[ "Apache-2.0" ]
1
2021-07-09T14:40:14.000Z
2021-07-09T14:40:14.000Z
bfassist/standalone/monitoring/realtimevehicle.py
SanHime/bfassist
f4870189a54373487064897ad0d5bf46ae9d97f8
[ "Apache-2.0" ]
null
null
null
bfassist/standalone/monitoring/realtimevehicle.py
SanHime/bfassist
f4870189a54373487064897ad0d5bf46ae9d97f8
[ "Apache-2.0" ]
null
null
null
############################################################################# # # # Module of BFA that manages server statistics in realtime # # ############################################################################# """ This module implements the real-time logging of in-game statistics specifically that of bf ve...
34.385542
120
0.556062
795cdd8d6babe50cf4c44b38afe2b769e4a91b1c
2,003
py
Python
test/travis_test_buzzer.py
kdars/pimouse_ros
e568378bc2c0bde12577944636ae6eb238866005
[ "BSD-3-Clause" ]
null
null
null
test/travis_test_buzzer.py
kdars/pimouse_ros
e568378bc2c0bde12577944636ae6eb238866005
[ "BSD-3-Clause" ]
null
null
null
test/travis_test_buzzer.py
kdars/pimouse_ros
e568378bc2c0bde12577944636ae6eb238866005
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import rospy, unittest, rostest, actionlib import rosnode import time from std_msgs.msg import UInt16 from pimouse_ros.msg import MusicAction, MusicResult, MusicFeedback, MusicGoal class BuzzerTest(unittest.TestCase): def setUp(self): self.client = actionlib.SimpleActionClient('music'...
37.792453
124
0.641538
795cdd96ffb7ec24409923999a5e32771fed4d26
52,902
py
Python
auditok/core.py
phrase-loop-player/auditok
7f08e14d482d624edb1498867400862f9d881ecf
[ "MIT" ]
null
null
null
auditok/core.py
phrase-loop-player/auditok
7f08e14d482d624edb1498867400862f9d881ecf
[ "MIT" ]
null
null
null
auditok/core.py
phrase-loop-player/auditok
7f08e14d482d624edb1498867400862f9d881ecf
[ "MIT" ]
null
null
null
""" .. autosummary:: :toctree: generated/ load split AudioRegion StreamTokenizer """ import os import math from .util import AudioReader, DataValidator, AudioEnergyValidator from .io import check_audio_data, to_file, player_for, get_audio_source from .exceptions import TooSamllBlockDuration try: ...
36.259082
96
0.594609
795cddb4bb70984d3be8a24feec2dc9bdef92c69
588
py
Python
trading_api_wrappers/bitfinex/constants_v1.py
alexaptib/trading-api-wrappers
1d061af9adad7d17d60798bed5dca2e62e8949e4
[ "MIT" ]
null
null
null
trading_api_wrappers/bitfinex/constants_v1.py
alexaptib/trading-api-wrappers
1d061af9adad7d17d60798bed5dca2e62e8949e4
[ "MIT" ]
null
null
null
trading_api_wrappers/bitfinex/constants_v1.py
alexaptib/trading-api-wrappers
1d061af9adad7d17d60798bed5dca2e62e8949e4
[ "MIT" ]
null
null
null
from ..base import _Enum # Bitfinex supported symbols class Symbol(_Enum): BTCUSD = 'btcusd' LTCUSD = 'ltcusd' ETHUSD = 'ethusd' ETHBTC = 'ethbtc' ETCUSD = 'etcusd' ETCBTC = 'etcbtc' BFXUSD = 'bfxusd' BFXBTC = 'bfxbtc' RRTUSD = 'rrtusd' RRTBTC = 'rrtbtc' ZECUSD = 'zecusd' ...
18.375
31
0.57483
795cdf8154c3cf7a37962b8b2088a743239434b2
1,494
py
Python
example/foobar/models.py
TGoldR/internationalize
802e918b41835a7d5406f33cebaff1bdf486649b
[ "MIT" ]
null
null
null
example/foobar/models.py
TGoldR/internationalize
802e918b41835a7d5406f33cebaff1bdf486649b
[ "MIT" ]
null
null
null
example/foobar/models.py
TGoldR/internationalize
802e918b41835a7d5406f33cebaff1bdf486649b
[ "MIT" ]
null
null
null
from django.db import models from django.utils.translation import ugettext_lazy as _ from easymode.i18n.decorators import I18n from easymode.tree.xml.decorators import toxml # Create your models here. KINDS = ( ('cow' , _("An animal that produces milk")), ('horse' , _("A unit used to measure car engine power...
26.210526
61
0.635207
795ce05950274823c7d52f05872979a724d13c23
7,496
py
Python
tensorflow/python/keras/benchmarks/benchmark_util.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
615
2018-04-14T22:04:13.000Z
2022-03-31T12:46:50.000Z
tensorflow/python/keras/benchmarks/benchmark_util.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,167
2018-05-15T15:26:33.000Z
2022-03-31T18:58:41.000Z
tensorflow/python/keras/benchmarks/benchmark_util.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
93
2018-04-11T02:46:16.000Z
2022-03-31T12:46:16.000Z
# Copyright 2020 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...
34.543779
80
0.661019
795ce0cc56b5173fa3e4bf72ba746c5021c908c4
2,929
py
Python
src/python/pants/backend/jvm/tasks/scala_repl.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/scala_repl.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/scala_repl.py
rahuliyer95/pants
50ee5cc8bd9ab40ad13c3c28ccbc4e7f189292ec
[ "Apache-2.0" ]
2
2020-05-18T18:43:11.000Z
2020-05-19T02:47:47.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import sys from pants.backend.jvm.subsystems.scala_platform import ScalaPlatform from pants.backend.jvm.targets.jar_library import JarLibrary from pants.backend.jvm.targets.jvm_target imp...
38.539474
100
0.688972
795ce1d2af3df6a21f2f7ae8912d98f069f786e1
1,907
py
Python
nhs_scraper/nhs_scraper/spiders/nhsConditions.py
samer-makary/nhs-conditions-indexing
7023f1f6a8b5352af18591928d2c2e9e8382f322
[ "Apache-2.0" ]
null
null
null
nhs_scraper/nhs_scraper/spiders/nhsConditions.py
samer-makary/nhs-conditions-indexing
7023f1f6a8b5352af18591928d2c2e9e8382f322
[ "Apache-2.0" ]
null
null
null
nhs_scraper/nhs_scraper/spiders/nhsConditions.py
samer-makary/nhs-conditions-indexing
7023f1f6a8b5352af18591928d2c2e9e8382f322
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scrapy from functools import partial class NhsconditionsSpider(scrapy.Spider): name = 'nhsConditions' start_urls = ['http://www.nhs.uk/Conditions/Pages/hub.aspx'] exclude = [ 'starts-with(@href, "http://www.nhs.uk/ServiceDirectories/")', 'starts-with(@href, "http://www.nhs.uk/ser...
37.392157
97
0.689565
795ce205f7735a7c0e800d2983908d3031146576
550
py
Python
manage.py
kodeklaude/Django3-RESTful-API-Movie-Reviews-Classification
68e7556de72a824594046d5a7f9501e8a1fdda3d
[ "MIT" ]
1
2021-01-06T11:01:15.000Z
2021-01-06T11:01:15.000Z
manage.py
kodeklaude/Django3-RESTful-API-Movie-Reviews-Classification
68e7556de72a824594046d5a7f9501e8a1fdda3d
[ "MIT" ]
3
2021-03-19T03:21:57.000Z
2021-06-04T23:10:14.000Z
manage.py
khaled-klod/Django3-RESTful-API-Movie-Reviews-Classification
68e7556de72a824594046d5a7f9501e8a1fdda3d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "heroku_classification_model.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't...
34.375
91
0.696364
795ce29eed3c90f7e1604457bf98240df72087b9
3,236
py
Python
fuzzers/eclipser/fuzzer.py
alifahmed/fuzzbench
6d3107cd8b57ee3b0a95b34388e7e82f107b5f5d
[ "Apache-2.0" ]
1
2021-03-30T01:23:33.000Z
2021-03-30T01:23:33.000Z
fuzzers/eclipser/fuzzer.py
zzyyrr/fuzzbench
7805093436f36ddaef155da8b045da2b57ec02b2
[ "Apache-2.0" ]
null
null
null
fuzzers/eclipser/fuzzer.py
zzyyrr/fuzzbench
7805093436f36ddaef155da8b045da2b57ec02b2
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
32.686869
172
0.628554
795ce308fcc10c41406003dc75a9dd26a962c421
1,432
py
Python
apps/public/pyrosetta/find_my_residues.py
RosettaCommons/jade2
40affc7c4e0f1f6ee07030e72de284e3484946e7
[ "BSD-3-Clause" ]
1
2019-12-23T21:52:23.000Z
2019-12-23T21:52:23.000Z
apps/public/pyrosetta/find_my_residues.py
RosettaCommons/jade2
40affc7c4e0f1f6ee07030e72de284e3484946e7
[ "BSD-3-Clause" ]
null
null
null
apps/public/pyrosetta/find_my_residues.py
RosettaCommons/jade2
40affc7c4e0f1f6ee07030e72de284e3484946e7
[ "BSD-3-Clause" ]
2
2021-11-13T01:34:15.000Z
2021-11-13T01:34:34.000Z
#!/usr/bin/env python3 import os import sys from argparse import ArgumentParser import rosetta import pyrosetta pyrosetta.init("-include_sugars -ignore_unrecognized_res -ignore_zero_occupancy false") def get_parser(): parser = ArgumentParser(description="Simple app to scan a PDB file and print PDB info and ...
30.468085
134
0.644553
795ce361ced11171105ad3100c28a8e43203fd4b
254
py
Python
hackerrank/13. regex and parsing/10.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
hackerrank/13. regex and parsing/10.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
hackerrank/13. regex and parsing/10.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
import re import email.utils for _ in range(int(input())): name, emails = email.utils.parseaddr(input()) c = re.compile(r'^([a-zA-Z])([a-zA-Z0-9-._])*@([a-zA-Z]+\.[a-zA-Z]{1,3})$') if bool(c.match(emails)): print(name, f'<{emails}>')
31.75
79
0.562992
795ce411fde7901be0bac9a01a98db7f6d2cd1c2
2,137
py
Python
mars/dataframe/window/rolling/tests/test_rolling.py
ConanoutlooklvTBS/mars
7030566fd9e9fc02b6b4064ef7bd86f6c24a2f60
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/dataframe/window/rolling/tests/test_rolling.py
ConanoutlooklvTBS/mars
7030566fd9e9fc02b6b4064ef7bd86f6c24a2f60
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/dataframe/window/rolling/tests/test_rolling.py
ConanoutlooklvTBS/mars
7030566fd9e9fc02b6b4064ef7bd86f6c24a2f60
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
# Copyright 1999-2021 Alibaba Group Holding 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 a...
31.426471
74
0.645765
795ce415b66297a24cb720a83655fb0cf006f8b8
579
py
Python
torch2trt/converters/sigmoid.py
bunderhi/torch2trt
fa5e31e742a0f0c9a9ee38909a6fa56bb07ba96d
[ "MIT" ]
1
2021-01-13T08:40:52.000Z
2021-01-13T08:40:52.000Z
torch2trt/converters/sigmoid.py
bunderhi/torch2trt
fa5e31e742a0f0c9a9ee38909a6fa56bb07ba96d
[ "MIT" ]
null
null
null
torch2trt/converters/sigmoid.py
bunderhi/torch2trt
fa5e31e742a0f0c9a9ee38909a6fa56bb07ba96d
[ "MIT" ]
null
null
null
from torch2trt.torch2trt import * from torch2trt.module_test import add_module_test @tensorrt_converter('torch.nn.functional.sigmoid') @tensorrt_converter('torch.sigmoid') def convert_sigmoid(ctx): input = ctx.method_args[0] input_trt = add_missing_trt_tensors(ctx.network, [input])[0] output = ctx.method_...
32.166667
77
0.744387
795ce43bdd8305f1a34852761801817271ed734e
5,050
py
Python
libqtile/widget/net.py
Fuhrmann/qtile
9760feed411582eeb0379afe7b4b54f73220c1ad
[ "MIT" ]
null
null
null
libqtile/widget/net.py
Fuhrmann/qtile
9760feed411582eeb0379afe7b4b54f73220c1ad
[ "MIT" ]
null
null
null
libqtile/widget/net.py
Fuhrmann/qtile
9760feed411582eeb0379afe7b4b54f73220c1ad
[ "MIT" ]
null
null
null
# Copyright (c) 2014 Rock Neurotiko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, dist...
38.846154
119
0.587723
795ce4f48c23dd9e0cf3a0ba5e6c2f0b2a0e6255
155
py
Python
tests/model_control/detailed/transf_None/model_control_one_enabled_None_LinearTrend_Seasonal_Second_SVR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_None/model_control_one_enabled_None_LinearTrend_Seasonal_Second_SVR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_None/model_control_one_enabled_None_LinearTrend_Seasonal_Second_SVR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['None'] , ['LinearTrend'] , ['Seasonal_Second'] , ['SVR'] );
38.75
82
0.748387
795ce5c80e97cbf0e395dd0dc8dc899420d3c5f5
10,861
py
Python
homeassistant/components/nest/climate.py
tecknicaltom/home-assistant
5c50fa34056ba2cd0c91c06cbb6a9c894b4be92e
[ "Apache-2.0" ]
3
2020-05-18T10:18:16.000Z
2020-12-08T11:27:55.000Z
homeassistant/components/nest/climate.py
tecknicaltom/home-assistant
5c50fa34056ba2cd0c91c06cbb6a9c894b4be92e
[ "Apache-2.0" ]
3
2021-02-08T20:54:46.000Z
2021-09-08T02:30:04.000Z
homeassistant/components/nest/climate.py
tecknicaltom/home-assistant
5c50fa34056ba2cd0c91c06cbb6a9c894b4be92e
[ "Apache-2.0" ]
6
2020-04-10T06:21:11.000Z
2021-07-01T08:53:38.000Z
"""Support for Nest thermostats.""" import logging from nest.nest import APIError import voluptuous as vol from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice from homeassistant.components.climate.const import ( ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW, FAN_AUTO, FAN_ON, ...
30.767705
88
0.653991
795ce5fa65af8a9493abcd5baf54a691084545df
23,893
py
Python
ScaleFast.roboFontExt/lib/MutatorScale/lib/mutatorScale/objects/mathGlyph.py
roboDocs/ScaleFast
8d9c5d8ecb03fd4e791ce365e5b6585cbcfdb4e0
[ "MIT" ]
7
2018-10-17T16:00:04.000Z
2020-07-14T20:49:26.000Z
ScaleFast.roboFontExt/lib/MutatorScale/lib/mutatorScale/objects/mathGlyph.py
roboDocs/ScaleFast
8d9c5d8ecb03fd4e791ce365e5b6585cbcfdb4e0
[ "MIT" ]
12
2018-10-19T12:08:45.000Z
2021-09-03T20:25:43.000Z
ScaleFast.roboFontExt/lib/MutatorScale/lib/mutatorScale/objects/mathGlyph.py
roboDocs/ScaleFast
8d9c5d8ecb03fd4e791ce365e5b6585cbcfdb4e0
[ "MIT" ]
2
2019-03-29T18:19:58.000Z
2019-10-03T21:21:48.000Z
import weakref from fontParts.fontshell import RGlyph from fontParts.base import BaseGlyph try: # RF >= 3.3b from fontTools.pens.pointPen import BasePointToSegmentPen, AbstractPointPen, PointToSegmentPen except: from ufoLib.pointPen import BasePointToSegmentPen, AbstractPointPen, PointToSegmentPen from math ...
38.850407
138
0.577868
795ce60113e41c5bf812e0b534bf0bd3a418bf87
269
py
Python
dermoscopy_preprocessing/utils/__init__.py
ClaudiaOM/Image_Preprocessing_Library
dd1bbbf2170b53a92c1f46053e36d85a97f544f8
[ "MIT" ]
3
2022-02-04T23:25:29.000Z
2022-02-21T22:58:10.000Z
dermoscopy_preprocessing/utils/__init__.py
ClaudiaOM/Image_Preprocessing_Library
dd1bbbf2170b53a92c1f46053e36d85a97f544f8
[ "MIT" ]
null
null
null
dermoscopy_preprocessing/utils/__init__.py
ClaudiaOM/Image_Preprocessing_Library
dd1bbbf2170b53a92c1f46053e36d85a97f544f8
[ "MIT" ]
null
null
null
from .utils import __image__, histogram from .utils import CIRCLE_KERNEL_9X9, CIRCLE_KERNEL_5X5, CIRCLE_KERNEL_3X3, CIRCLE_KERNEL_7X7, CIRCLE_KERNEL_4X4, CIRCLE_KERNEL_11X11 from .utils import WEIGTHS from .utils import SHARPEN_KERNEL, RHOMB_KERNEL_3X3, STAR_KERNEL_3X3
67.25
133
0.869888
795ce90dcfd21308cbb489aaf60470f7284694f4
3,909
py
Python
fivegsim/platforms/odroid_acc.py
tud-ccc/mocasin-fivegsim
1944bb624b3d01aaa72c162503fbe68661f90086
[ "0BSD" ]
null
null
null
fivegsim/platforms/odroid_acc.py
tud-ccc/mocasin-fivegsim
1944bb624b3d01aaa72c162503fbe68661f90086
[ "0BSD" ]
null
null
null
fivegsim/platforms/odroid_acc.py
tud-ccc/mocasin-fivegsim
1944bb624b3d01aaa72c162503fbe68661f90086
[ "0BSD" ]
null
null
null
# Copyright (C) 2020 TU Dresden # Licensed under the ISC license (see LICENSE.txt) # # Authors: Felix Teweleit, Andres Goens, Christian Menard import copy from hydra.utils import instantiate from mocasin.common.platform import Platform, Processor from mocasin.platforms.platformDesigner import PlatformDesigner clas...
33.698276
80
0.614479
795cea37f2366be87539ce669045adb5ed12f881
2,749
py
Python
aspen/website.py
Acidburn0zzz/aspen-python
3b25a3ca041bd0bf4d313f7fc3a15cf092903de7
[ "MIT" ]
null
null
null
aspen/website.py
Acidburn0zzz/aspen-python
3b25a3ca041bd0bf4d313f7fc3a15cf092903de7
[ "MIT" ]
null
null
null
aspen/website.py
Acidburn0zzz/aspen-python
3b25a3ca041bd0bf4d313f7fc3a15cf092903de7
[ "MIT" ]
null
null
null
""" aspen.website +++++++++++++ """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import datetime import os from algorithm import Algorithm from aspen.configuration import Configurable from aspen.utils import to_rfc...
30.544444
79
0.640233
795cea9c15515cfc625b0bc577aa0ba07b48eb4c
1,114
py
Python
tests/pyre.pkg/xml/empty.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
tests/pyre.pkg/xml/empty.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
tests/pyre.pkg/xml/empty.py
avalentino/pyre
7e1f0287eb7eba1c6d1ef385e5160079283ac363
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2021 all rights reserved # """ Read an empty document """ def test(): import pyre.xml from pyre.xml.Node import Node from pyre.xml.Document import Document class Filesystem(Node): """The top leve...
19.54386
75
0.614004
795ceb22d8b5f0000ac06d3890217624289fc3d7
2,929
py
Python
playwright/wait_helper.py
tumregels/playwright-python
1936c529b67d718940bfdc6d872f0181518d912c
[ "Apache-2.0" ]
2
2020-12-18T21:16:09.000Z
2020-12-18T21:16:16.000Z
playwright/wait_helper.py
tumregels/playwright-python
1936c529b67d718940bfdc6d872f0181518d912c
[ "Apache-2.0" ]
null
null
null
playwright/wait_helper.py
tumregels/playwright-python
1936c529b67d718940bfdc6d872f0181518d912c
[ "Apache-2.0" ]
1
2020-12-10T10:53:40.000Z
2020-12-10T10:53:40.000Z
# Copyright (c) Microsoft 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...
32.544444
88
0.658587
795cec9606d28f6e871ab3638cf926fd93f585b3
2,935
py
Python
coffee/coffee/output.py
blubber/silvia
8308c4ff9391d740bcf4e51a10b4e8ad3b69cb95
[ "Apache-2.0" ]
2
2021-01-29T17:44:51.000Z
2021-04-06T13:08:02.000Z
coffee/coffee/output.py
blubber/silvia
8308c4ff9391d740bcf4e51a10b4e8ad3b69cb95
[ "Apache-2.0" ]
null
null
null
coffee/coffee/output.py
blubber/silvia
8308c4ff9391d740bcf4e51a10b4e8ad3b69cb95
[ "Apache-2.0" ]
null
null
null
''' coffee.output ~~~~~~~~~~~~~ Utilities for outputting information to the terminal. ''' import itertools import os import sys import time from termcolor import colored def get_window_width (): rows, columns = os.popen('stty size', 'r').read().split() return int(columns) class ClearMixin (obj...
24.458333
70
0.513799
795ced19389d73adab7b4905deab786b08f6dd66
14,119
py
Python
test/functional/wallet_bumpfee.py
farmscoins/farmcoin
dcfa0e7b33de314cfa1e4d3de1d8e2d894821d43
[ "MIT" ]
1
2019-06-11T08:21:52.000Z
2019-06-11T08:21:52.000Z
test/functional/wallet_bumpfee.py
farmscoins/farmcoin
dcfa0e7b33de314cfa1e4d3de1d8e2d894821d43
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
farmscoins/farmcoin
dcfa0e7b33de314cfa1e4d3de1d8e2d894821d43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the bumpfee RPC. Verifies that the bumpfee RPC creates replacement transactions successfully when...
45.692557
159
0.72923
795ceec6ce375a43bbef0ca3dbabeb05eea7bc0f
29,254
py
Python
numpy-1.14.0.dev0+68a58e0-py3.6-macosx-10.13-x86_64.egg/numpy/core/arrayprint.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
numpy-1.14.0.dev0+68a58e0-py3.6-macosx-10.13-x86_64.egg/numpy/core/arrayprint.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
numpy-1.14.0.dev0+68a58e0-py3.6-macosx-10.13-x86_64.egg/numpy/core/arrayprint.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2019-08-14T08:08:41.000Z
2019-08-14T08:08:41.000Z
"""Array printing function $Id: arrayprint.py,v 1.9 2005/09/13 13:58:44 teoliphant Exp $ """ from __future__ import division, absolute_import, print_function __all__ = ["array2string", "set_printoptions", "get_printoptions"] __docformat__ = 'restructuredtext' # # Written by Konrad Hinsen <hinsenk@ere.umontreal.ca> ...
33.937355
91
0.577015
795cef415135e04d88c2606481b591bcc6c188e4
2,934
py
Python
examples/demo/scene/probe_view.py
chongxi/vispy
3683ea1f58e43b4aa1b32a3e69656bead8a31e99
[ "BSD-3-Clause" ]
null
null
null
examples/demo/scene/probe_view.py
chongxi/vispy
3683ea1f58e43b4aa1b32a3e69656bead8a31e99
[ "BSD-3-Clause" ]
null
null
null
examples/demo/scene/probe_view.py
chongxi/vispy
3683ea1f58e43b4aa1b32a3e69656bead8a31e99
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from vispy import app, scene, visuals, gloo from vispy.color import Color from vispy.visuals.transforms import STTransform white = Color("#ecf0f1") gray = Color("#121212") red = Color("#e74c3c") blue = Color("#2980b9") orange = Color("#e88834") def star(inner=0.5, outer=1.0, n=5): R = np.array...
29.34
126
0.568507
795cefadf2d82344f987623c09fc11093d516451
1,761
py
Python
networkx/testing/utils.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
networkx/testing/utils.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
25
2020-11-16T15:36:41.000Z
2021-06-01T05:15:31.000Z
networkx/testing/utils.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
__all__ = [ "assert_nodes_equal", "assert_edges_equal", "assert_graphs_equal", "almost_equal", ] def almost_equal(x, y, places=7): return round(abs(x - y), places) == 0 def assert_nodes_equal(nodes1, nodes2): # Assumes iterables of nodes, or (node,datadict) tuples nlist1 = list(nodes1) ...
26.681818
69
0.567291
795cefbbf548540dbdc9d1952c02464794287853
2,991
py
Python
export_scripts/export_gen_onnx.py
TriceHelix/ASMAGAN
6e2b5b587f88f641fdcc05a81cf5f0b4d6a9f3e1
[ "Apache-2.0" ]
null
null
null
export_scripts/export_gen_onnx.py
TriceHelix/ASMAGAN
6e2b5b587f88f641fdcc05a81cf5f0b4d6a9f3e1
[ "Apache-2.0" ]
null
null
null
export_scripts/export_gen_onnx.py
TriceHelix/ASMAGAN
6e2b5b587f88f641fdcc05a81cf5f0b4d6a9f3e1
[ "Apache-2.0" ]
null
null
null
import os import json import torch import torch.onnx class Exporter(object): def __init__(self, config): self.config = config def export(self): save_path_gen = "exports/{}_generator.onnx".format(self.config["version"]) exports_dir = "exports" save_path_condition_labels = "{}/{}...
43.985294
130
0.571046
795cf18e722a0db878f75e649845628d96dcd1f2
9,043
py
Python
simple_ur_driver/src/simple_ur_driver/ur_simulation_study_a2.py
futureneer/simple_ur
0004c6450c70f3ceb06e0e96f26dde8479012c28
[ "BSD-2-Clause" ]
2
2015-01-15T15:55:57.000Z
2015-03-18T21:35:36.000Z
simple_ur_driver/src/simple_ur_driver/ur_simulation_study_a2.py
futureneer/simple_ur
0004c6450c70f3ceb06e0e96f26dde8479012c28
[ "BSD-2-Clause" ]
1
2018-05-11T06:13:36.000Z
2018-05-11T06:13:36.000Z
simple_ur_driver/src/simple_ur_driver/ur_simulation_study_a2.py
futureneer/simple_ur
0004c6450c70f3ceb06e0e96f26dde8479012c28
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # ROS IMPORTS import roslib; roslib.load_manifest('simple_ur_driver') import rospy import tf; import tf_conversions as tf_c import PyKDL # URDF from urdf_parser_py.urdf import URDF from pykdl_utils.kdl_kinematics import KDLKinematics # MSGS and SERVICES from simple_ur_msgs.srv import * from sensor...
41.865741
122
0.610749
795cf1d315af326cda693e24ee95466d078bbeec
263
py
Python
packages/Python/lldbsuite/test/lang/swift/member_lookup_crash/TestMemberLookupCrash.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
2
2019-05-24T14:10:24.000Z
2019-05-24T14:27:38.000Z
packages/Python/lldbsuite/test/lang/swift/member_lookup_crash/TestMemberLookupCrash.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
packages/Python/lldbsuite/test/lang/swift/member_lookup_crash/TestMemberLookupCrash.py
enterstudio/swift-lldb
af85d636d230da2460f91938b1ff734b0fb64b42
[ "Apache-2.0" ]
null
null
null
""" Test that member lookup inside of generic container doesn't crash """ import lldbsuite.test.lldbinline as lldbinline import lldbsuite.test.decorators as decorators lldbinline.MakeInlineTest( __file__, globals(), decorators=[decorators.skipUnlessDarwin])
29.222222
66
0.806084
795cf2e748e31748b8cbe3457a2691ac9dd4b119
1,574
py
Python
Examples/Infovis/Python/graph1.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
3
2020-06-20T23:31:06.000Z
2021-01-11T02:17:16.000Z
Examples/Infovis/Python/graph1.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
1
2020-12-01T23:21:02.000Z
2020-12-02T23:44:43.000Z
Examples/Infovis/Python/graph1.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
1
2020-11-28T19:22:18.000Z
2020-11-28T19:22:18.000Z
#!/usr/bin/env python """ This file demonstrates the creation of a directed graph using the Python interface to VTK. """ from vtk import * #------------------------------------------------------------------------------ # Script Entry Point #-----------------------------------------------------------------------------...
27.137931
80
0.590851
795cf52b1bbf66312e6467b9710d88206934d50d
1,561
py
Python
proxy_attrs.py
cloew/proxy-attrs
6576bd4d7df38886db0a605c22ae5dd8146629a7
[ "MIT" ]
null
null
null
proxy_attrs.py
cloew/proxy-attrs
6576bd4d7df38886db0a605c22ae5dd8146629a7
[ "MIT" ]
null
null
null
proxy_attrs.py
cloew/proxy-attrs
6576bd4d7df38886db0a605c22ae5dd8146629a7
[ "MIT" ]
null
null
null
def proxy_for(parent, attrs, **kwargs): """ Add properties for the attrs on the provided field to hide interaction from a class to an internal component """ def addProxyData(cls): def add_property(cls, attr): setattr(cls, attr, ProxyAttr(parent, attr, **kwargs)) ...
41.078947
123
0.643818
795cf55b5b53286db8090f52759b1d7d8507b15f
4,250
py
Python
src/data/future/utils.py
newlyedward/datascinece
2a6148511832552991e115cb468ba4cc1db24353
[ "MIT" ]
2
2019-03-22T16:14:33.000Z
2020-06-12T07:56:57.000Z
src/data/future/utils.py
newlyedward/datascinece
2a6148511832552991e115cb468ba4cc1db24353
[ "MIT" ]
null
null
null
src/data/future/utils.py
newlyedward/datascinece
2a6148511832552991e115cb468ba4cc1db24353
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from pathlib import Path from datetime import datetime, timedelta import pandas as pd from src.data import conn from src.data import DATE_PATTERN, INSTRUMENT_TYPE, RAW_HQ_DIR, BACKUP_DIR from src.data import get_future_hq from log import LogHandler log = LogHandler('future.log') #...
25.757576
119
0.631294
795cf5beff25a76b48ece631b8cc22b3ffe351ac
1,406
py
Python
3rdParty/patool/patoolib/programs/zpaq.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
46
2019-03-01T02:19:18.000Z
2021-12-18T12:37:02.000Z
3rdParty/patool/patoolib/programs/zpaq.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
8
2019-01-22T10:46:43.000Z
2020-12-30T13:03:04.000Z
3rdParty/patool/patoolib/programs/zpaq.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
67
2018-10-29T09:50:49.000Z
2022-01-06T07:35:56.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2014-2015 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. #...
35.15
78
0.716927
795cf6542c505ca5817e5e72d28cd85381917ece
78
py
Python
assertion.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
assertion.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
assertion.py
godontop/python-work
ea22e0df8b0b17605f5a434e556a388d1f75aa47
[ "MIT" ]
null
null
null
print(0) assert "h" != "w" print(1) assert False print(2) assert True print(3)
11.142857
17
0.679487
795cf6df3106ad3565dcb528fb142b3877cb22f7
2,437
py
Python
tests/functional/plots.py
earboxer/thefrick
81ec3fb98c00ec249166dbe179cc16c7350cc103
[ "MIT" ]
null
null
null
tests/functional/plots.py
earboxer/thefrick
81ec3fb98c00ec249166dbe179cc16c7350cc103
[ "MIT" ]
null
null
null
tests/functional/plots.py
earboxer/thefrick
81ec3fb98c00ec249166dbe179cc16c7350cc103
[ "MIT" ]
null
null
null
def _set_confirmation(proc, require): proc.sendline(u'mkdir -p ~/.thefrick') proc.sendline( u'echo "require_confirmation = {}" > ~/.thefrick/settings.py'.format( require)) def with_confirmation(proc, TIMEOUT): """Ensures that command can be fixed when confirmation enabled.""" _set_...
28.337209
77
0.664752
795cf71de6d3683cac3d4d474b490b09ec18f627
377
py
Python
api/utilities/helpers/errors.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
api/utilities/helpers/errors.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
api/utilities/helpers/errors.py
Meeqan/trisixty-buys-API
b747ec92c6d6af329fef5781ecd6f1433a5b5393
[ "MIT" ]
null
null
null
"""Errors""" # utilities from api.utilities.validations.custom_validations_error import ValidationError def raises(message, status_code): """A helper method for raising exceptions. Args: message (str): Message status_code (int): Status code Raises: ValidationError """ r...
19.842105
78
0.69496
795cf72d4d9966289cd6462ac533664f64fa0976
1,448
py
Python
watch_commits.py
korandoru/gravity
16d771a8855b72bf4210d3970dd8f16762d88dcc
[ "Apache-2.0" ]
null
null
null
watch_commits.py
korandoru/gravity
16d771a8855b72bf4210d3970dd8f16762d88dcc
[ "Apache-2.0" ]
null
null
null
watch_commits.py
korandoru/gravity
16d771a8855b72bf4210d3970dd8f16762d88dcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2022 tison <wander4096@gmail.com> # # 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...
31.478261
117
0.700276
795cf7aece629272a5219ba68c2d8641a723d06d
3,443
py
Python
python3/koans/about_lists.py
mitchellaustin3/PythonKoans
52225a4a6ac30a3e6e5bf828406d62b1890ffa81
[ "MIT" ]
null
null
null
python3/koans/about_lists.py
mitchellaustin3/PythonKoans
52225a4a6ac30a3e6e5bf828406d62b1890ffa81
[ "MIT" ]
null
null
null
python3/koans/about_lists.py
mitchellaustin3/PythonKoans
52225a4a6ac30a3e6e5bf828406d62b1890ffa81
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Based on AboutArrays in the Ruby Koans # from runner.koan import * class AboutLists(Koan): def test_creating_lists(self): empty_list = list() self.assertEqual(list, type(empty_list)) self.assertEqual(0, len(empty_list)) def test_list_...
31.3
79
0.579727
795cf995c7e36974797711da449986b908a969fa
9,513
py
Python
manimlib/config.py
tomasderner97/manim
67a8cf9bccffbf1833e6ce2149e0a273b979a96b
[ "MIT" ]
null
null
null
manimlib/config.py
tomasderner97/manim
67a8cf9bccffbf1833e6ce2149e0a273b979a96b
[ "MIT" ]
null
null
null
manimlib/config.py
tomasderner97/manim
67a8cf9bccffbf1833e6ce2149e0a273b979a96b
[ "MIT" ]
null
null
null
import argparse import colour import importlib.util import os import sys import types import manimlib.constants def parse_cli(): try: parser = argparse.ArgumentParser() module_location = parser.add_mutually_exclusive_group() module_location.add_argument( "file", na...
32.803448
81
0.565332
795cf9b3dea7421f013b5ab92ff82039e6e3ca7b
17,044
py
Python
raiden_contracts/tests/test_token_network_registry.py
LefterisJP/raiden-contracts
fdcee22d22aeacb16efb58c3a324ac20c01cdb40
[ "MIT" ]
1
2021-04-23T03:59:00.000Z
2021-04-23T03:59:00.000Z
raiden_contracts/tests/test_token_network_registry.py
LefterisJP/raiden-contracts
fdcee22d22aeacb16efb58c3a324ac20c01cdb40
[ "MIT" ]
null
null
null
raiden_contracts/tests/test_token_network_registry.py
LefterisJP/raiden-contracts
fdcee22d22aeacb16efb58c3a324ac20c01cdb40
[ "MIT" ]
null
null
null
from typing import Callable import pytest from eth_tester.exceptions import TransactionFailed from web3 import Web3 from web3.contract import Contract from web3.exceptions import ValidationError from raiden_contracts.constants import ( EMPTY_ADDRESS, EVENT_TOKEN_NETWORK_CREATED, TEST_SETTLE_TIMEOUT_MAX, ...
38.824601
98
0.721192
795cf9d9addd04acaf77dc479f7bfdfeb65d30fa
1,661
py
Python
eval_policy.py
Stanford-ILIAD/Confidence-Aware-Imitation-Learning
1d8af0e4ab87a025885133a2384d5a937329b2f5
[ "MIT" ]
16
2021-10-30T15:19:37.000Z
2022-03-23T12:57:49.000Z
eval_policy.py
Stanford-ILIAD/Confidence-Aware-Imitation-Learning
1d8af0e4ab87a025885133a2384d5a937329b2f5
[ "MIT" ]
null
null
null
eval_policy.py
Stanford-ILIAD/Confidence-Aware-Imitation-Learning
1d8af0e4ab87a025885133a2384d5a937329b2f5
[ "MIT" ]
2
2021-11-28T02:49:01.000Z
2022-03-22T16:57:24.000Z
import argparse import torch from cail.env import make_env from cail.algo.algo import EXP_ALGOS from cail.utils import evaluation def run(args): env = make_env(args.env_id) device = torch.device("cuda" if torch.cuda.is_available() else "cpu") algo = EXP_ALGOS[args.algo]( state_sha...
29.660714
104
0.595424
795cfa120870ae57353ef018364667fbe07e9001
2,296
py
Python
src/build_vocab.py
vikasbahirwani/SequenceTagging
b4e0dc2a71f869a27ada003c9276fd1f269e230d
[ "Apache-2.0" ]
null
null
null
src/build_vocab.py
vikasbahirwani/SequenceTagging
b4e0dc2a71f869a27ada003c9276fd1f269e230d
[ "Apache-2.0" ]
null
null
null
src/build_vocab.py
vikasbahirwani/SequenceTagging
b4e0dc2a71f869a27ada003c9276fd1f269e230d
[ "Apache-2.0" ]
null
null
null
# taken from https://github.com/guillaumegenthial/tf_ner/blob/master/data/example/build_vocab.py # edited to fit my project structure # original__author__ = "Guillaume Genthial" """Script to build words, chars and tags vocab""" __author__ = "Vikas Bahirwani" from collections import Counter from pathlib import Path ...
33.764706
96
0.635453
795cfa7a073fc8f7080e1928b6b4f8207f33dde1
1,370
py
Python
lib/galaxy/model/migrate/versions/0081_add_tool_version_to_hda_ldda.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/versions/0081_add_tool_version_to_hda_ldda.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
lib/galaxy/model/migrate/versions/0081_add_tool_version_to_hda_ldda.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
""" Migration script to add a 'tool_version' column to the hda/ldda tables. """ from sqlalchemy import * from sqlalchemy.orm import * from migrate import * from migrate.changeset import * from galaxy.model.custom_types import * metadata = MetaData() def upgrade(migrate_engine): metadata.bind = migrate_engine ...
31.860465
92
0.694161
795cfb6923e60bd263309f069d263721b46693f9
18,647
py
Python
metalink/proxy.py
cehbrecht/pymetalink
540128fc75b0e01faa1fe0ba7d3ec1fb5bcabc9b
[ "MIT" ]
null
null
null
metalink/proxy.py
cehbrecht/pymetalink
540128fc75b0e01faa1fe0ba7d3ec1fb5bcabc9b
[ "MIT" ]
null
null
null
metalink/proxy.py
cehbrecht/pymetalink
540128fc75b0e01faa1fe0ba7d3ec1fb5bcabc9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################## # # Project: pyMetalink # URL: https://github.com/metalink-dev/pymetalink # E-mail: nabber00@gmail.com # # Copyright: (C) 2011, Neil McNab # License: MIT # # Permission is hereby granted, f...
34.467652
125
0.565507
795cfb7ca4266ac3194ddc3f4495e6bbb3c3ba24
6,299
py
Python
tests/_internal/fakes/docker.py
Shuenhoy/certbot-docker-swarm
79fa0b01414c4047ea157d610d4e719ffa08b5bf
[ "BSD-3-Clause" ]
3
2021-01-13T11:54:33.000Z
2022-01-19T09:29:49.000Z
tests/_internal/fakes/docker.py
Shuenhoy/certbot-docker-swarm
79fa0b01414c4047ea157d610d4e719ffa08b5bf
[ "BSD-3-Clause" ]
1
2021-08-10T12:49:11.000Z
2021-08-12T16:10:46.000Z
tests/_internal/fakes/docker.py
Shuenhoy/certbot-docker-swarm
79fa0b01414c4047ea157d610d4e719ffa08b5bf
[ "BSD-3-Clause" ]
1
2021-08-12T07:05:51.000Z
2021-08-12T07:05:51.000Z
from docker.models.nodes import Node from docker.models.secrets import Secret from docker.models.services import Service class NodeCollectionDefs: @classmethod def list(cls): return [ Node(attrs={ "ID": "abcde", "Spec": { "Role": "manager...
31.653266
75
0.329576
795cfb850af3117aa301d72a14b01ef4637938e3
2,612
py
Python
game.py
baronet2/Backgammon
58b8b30c9903dbd224587c54890f4402ae4539da
[ "MIT" ]
null
null
null
game.py
baronet2/Backgammon
58b8b30c9903dbd224587c54890f4402ae4539da
[ "MIT" ]
null
null
null
game.py
baronet2/Backgammon
58b8b30c9903dbd224587c54890f4402ae4539da
[ "MIT" ]
null
null
null
from board import Backgammon from dice import roll_die, roll_dice def prompt_for_input_from_list(options : set): response = None formatted_options = sorted(options) options = {str(x) for x in options} while response not in options: print("Options: ", formatted_options) response = input("Input your sel...
29.022222
98
0.659265
795cfbf0e5ce6236bf8cb5cee67ae097a09b05da
2,148
py
Python
visualize_sampler.py
eram1205/DeepSDF
c71c1545fa4606cbbe4b6d7a4edac5060d6750ab
[ "MIT" ]
null
null
null
visualize_sampler.py
eram1205/DeepSDF
c71c1545fa4606cbbe4b6d7a4edac5060d6750ab
[ "MIT" ]
null
null
null
visualize_sampler.py
eram1205/DeepSDF
c71c1545fa4606cbbe4b6d7a4edac5060d6750ab
[ "MIT" ]
1
2022-03-22T15:21:08.000Z
2022-03-22T15:21:08.000Z
import argparse import trimesh import torch import numpy as np from deep_sdf.samplers import NormalPerPoint as Sampler def get_sphere_transform(translation): t = np.eye(4) t[:3,3] = translation return t def add_point_to_scene(scene, point, scale=1., color=[128,128,128,50]): sphere = trimesh.primitive...
31.588235
83
0.664339
795cfc43b6d95fd4c46e19e09ece4b7b57891c85
52,708
py
Python
dnacentersdk/models/validators/v1_3_0/jsd_09b0f9ce4239ae10.py
daxm/dnacentersdk
5baa0cb151fb9e72cf7af1ae29e7541d89c3f06b
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v1_3_0/jsd_09b0f9ce4239ae10.py
daxm/dnacentersdk
5baa0cb151fb9e72cf7af1ae29e7541d89c3f06b
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v1_3_0/jsd_09b0f9ce4239ae10.py
daxm/dnacentersdk
5baa0cb151fb9e72cf7af1ae29e7541d89c3f06b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Update Device data model. Copyright (c) 2019 Cisco and/or its affiliates. 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 with...
24.699157
78
0.198129
795cfc62dcc9a4a6af3c7b2dd76bfcc75497742a
227
py
Python
QuizBox/admin.py
pk8742/QuizHub
5ef00fe8f7bb021f7af80a9792c4de0fd268ac3c
[ "MIT" ]
null
null
null
QuizBox/admin.py
pk8742/QuizHub
5ef00fe8f7bb021f7af80a9792c4de0fd268ac3c
[ "MIT" ]
null
null
null
QuizBox/admin.py
pk8742/QuizHub
5ef00fe8f7bb021f7af80a9792c4de0fd268ac3c
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import CS_quiz,Quiz_dashboard,Quiz_result_table # Register your models here. admin.site.register(CS_quiz) admin.site.register(Quiz_result_table) admin.site.register(Quiz_dashboard)
32.428571
60
0.85022
795cfc77a20fda5d373943e7cd0c3d0e3f10fb10
2,313
py
Python
polling_stations/apps/data_importers/management/commands/import_flintshire.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
29
2015-03-10T08:41:34.000Z
2022-01-12T08:51:38.000Z
polling_stations/apps/data_importers/management/commands/import_flintshire.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
4,112
2015-04-01T21:27:38.000Z
2022-03-31T19:22:11.000Z
polling_stations/apps/data_importers/management/commands/import_flintshire.py
smsmith97/UK-Polling-Stations
ecbd98cb99e89e97354da3960b0063aa36181b11
[ "BSD-3-Clause" ]
31
2015-03-18T14:52:50.000Z
2022-02-24T10:31:07.000Z
from data_importers.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "FLN" addresses_name = ( "2021-03-29T09:58:34.913328/Flintshire Democracy_Club__06May2021.tsv" ) stations_name = ( "2021-03-29T09:58:34.9133...
25.417582
81
0.414181
795cfd16e6b04b51a1115553a0ba4211c4298ebf
2,606
py
Python
engine/line/__init__.py
Lee-Junhee/polygons
d24e70e1383233f3cd548a79880abc4c219b9db8
[ "MIT" ]
null
null
null
engine/line/__init__.py
Lee-Junhee/polygons
d24e70e1383233f3cd548a79880abc4c219b9db8
[ "MIT" ]
null
null
null
engine/line/__init__.py
Lee-Junhee/polygons
d24e70e1383233f3cd548a79880abc4c219b9db8
[ "MIT" ]
null
null
null
from canvas.exceptions import OutOfBoundsException class Line: pic = None color = -1 def __init__(self, pic, color): self.pic = pic self.color = color def oct1(self, x0, y0, x1, y1): if (x0 > x1): x0, y0, x1, y1 = x1, y1, x0, y0 x = x0 y = y0 ...
24.584906
54
0.345357
795cfd9401d369051b44326c7b27899bfe57512d
610
py
Python
visualizations/admin.py
IlyaLab/ISB-LSDF
897825832aabb819659bb5ad6f0b1df941619bc9
[ "Apache-2.0" ]
null
null
null
visualizations/admin.py
IlyaLab/ISB-LSDF
897825832aabb819659bb5ad6f0b1df941619bc9
[ "Apache-2.0" ]
null
null
null
visualizations/admin.py
IlyaLab/ISB-LSDF
897825832aabb819659bb5ad6f0b1df941619bc9
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015, Institute for Systems Biology 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 w...
30.5
72
0.781967
795cfdc1ae90291d69149578df1cf5a05a4269cc
2,711
py
Python
al/algorithms/uncertainty.py
kili-technology/active-learning
72dce7d91b988264dd7fa1a972d9af45e9648c4c
[ "Apache-2.0" ]
3
2020-09-11T07:30:54.000Z
2021-04-17T07:45:05.000Z
al/algorithms/uncertainty.py
kili-technology/active-learning
72dce7d91b988264dd7fa1a972d9af45e9648c4c
[ "Apache-2.0" ]
null
null
null
al/algorithms/uncertainty.py
kili-technology/active-learning
72dce7d91b988264dd7fa1a972d9af45e9648c4c
[ "Apache-2.0" ]
null
null
null
import numpy as np from .baseline import Strategy from ..helpers.time import timeit class BaseUncertaintyStrategy(Strategy): @timeit def score_dataset(self, dataset, learner, log_time={}): raise NotImplementedError def return_top_indices(self, dataset, learner, top, log_time={}): scores...
37.136986
74
0.696053
795cfde2c56a24d16262790ff77505fb7f40cf8b
1,786
py
Python
test/contextmanagers.py
Max-Reuter/qiskit-ibmq-provider
deb869e4117ef4c6942148c233c474ad5d4d7a46
[ "Apache-2.0" ]
1
2020-07-14T20:09:52.000Z
2020-07-14T20:09:52.000Z
test/contextmanagers.py
Max-Reuter/qiskit-ibmq-provider
deb869e4117ef4c6942148c233c474ad5d4d7a46
[ "Apache-2.0" ]
null
null
null
test/contextmanagers.py
Max-Reuter/qiskit-ibmq-provider
deb869e4117ef4c6942148c233c474ad5d4d7a46
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
30.271186
77
0.690929
795cfe566b6f3dd3ba50003c8ce8d95bd646394c
206
py
Python
examples/switch.py
personal-army-of-4o/nyanMigen
205e114d47495a3c7c885556ffa0ebe386e9b9fc
[ "BSD-3-Clause" ]
4
2021-02-26T17:20:44.000Z
2021-04-15T07:41:31.000Z
examples/switch.py
personal-army-of-4o/nyanMigen
205e114d47495a3c7c885556ffa0ebe386e9b9fc
[ "BSD-3-Clause" ]
121
2021-02-18T07:24:22.000Z
2021-07-19T14:24:51.000Z
examples/switch.py
personal-army-of-4o/nyanMigen
205e114d47495a3c7c885556ffa0ebe386e9b9fc
[ "BSD-3-Clause" ]
null
null
null
from nyanMigen import nyanify @nyanify def switch(): a = Signal(2) b = Signal(2) with switch(a): b = 3 with case(0): b = 1 with case(1): b = 0
13.733333
29
0.451456
795cfeb96442621d9e344d7ce691f112ac8d5e7d
3,806
py
Python
monitoring/api/v2/lightweight_custom_metric.py
arbatovdan/new
f36d2bf4846061ea22b35775c8074bcd5bec3788
[ "Apache-2.0" ]
1
2021-02-03T15:49:06.000Z
2021-02-03T15:49:06.000Z
monitoring/api/v2/lightweight_custom_metric.py
Acidburn0zzz/python-docs-samples
bc0924a6826cbdb669415b58fd5b2d8534d87aa1
[ "Apache-2.0" ]
1
2021-06-10T23:56:36.000Z
2021-06-10T23:56:36.000Z
monitoring/api/v2/lightweight_custom_metric.py
Acidburn0zzz/python-docs-samples
bc0924a6826cbdb669415b58fd5b2d8534d87aa1
[ "Apache-2.0" ]
3
2020-08-27T01:23:49.000Z
2021-04-13T08:46:33.000Z
#!/usr/bin/env python # Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
33.095652
77
0.672885
795cffa6db390034283d619c12c48d4216eb5b90
45,468
py
Python
vnpy/trader/gateway/gateioGateway/gateioGateway.py
QuantTraderEd/vnpy_crypto
a1142eddaa8a7eb63cc13af30554c05718e151b1
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
vnpy/trader/gateway/gateioGateway/gateioGateway.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
null
null
null
vnpy/trader/gateway/gateioGateway/gateioGateway.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
# encoding: UTF-8 import os import json from datetime import datetime from copy import copy from threading import Condition from threading import Thread import json from datetime import datetime , timedelta from vnpy.api.gateio import Gate_DataApi , Gate_TradeApi from vnpy.trader.vtGateway import * fro...
47.264033
345
0.508182
795d00e1a35d14578f7d53a7270f72ec16e7887c
3,499
py
Python
samples/es/tp/test-oas.py
bmarandel/mcafee-epo-policies
bdbd4edbb96f0aaace8d0fdf12044f741e7d604a
[ "Apache-2.0" ]
2
2021-01-30T11:27:38.000Z
2021-05-03T21:18:24.000Z
samples/es/tp/test-oas.py
bmarandel/mcafee-epo-policies
bdbd4edbb96f0aaace8d0fdf12044f741e7d604a
[ "Apache-2.0" ]
null
null
null
samples/es/tp/test-oas.py
bmarandel/mcafee-epo-policies
bdbd4edbb96f0aaace8d0fdf12044f741e7d604a
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3 from mcafee_epo_policies import ESTPPolicyOnAccessScan, ProcessList, ExclusionList ens_oas = ESTPPolicyOnAccessScan() ens_oas.load_from_file('oas_policy.xml') assert ens_oas.get_epo_server() == 'TESTSRV' assert ens_oas.get_epo_version() == '5.9.1.0' assert ens_oas.get_gti_level() == '0' pr...
42.156627
93
0.752215
795d03aa8476acdf3b6bec1ac7ca8f934e295aae
1,088
py
Python
application/caches/test/test_cache_manager.py
andrew749/andrew749.github.io
3b39cad5706557358311ba73b2ec77b7b73d90b7
[ "Apache-2.0" ]
null
null
null
application/caches/test/test_cache_manager.py
andrew749/andrew749.github.io
3b39cad5706557358311ba73b2ec77b7b73d90b7
[ "Apache-2.0" ]
null
null
null
application/caches/test/test_cache_manager.py
andrew749/andrew749.github.io
3b39cad5706557358311ba73b2ec77b7b73d90b7
[ "Apache-2.0" ]
null
null
null
import unittest import six if six.PY2: from mock import Mock else: from unittest.mock import Mock from application.caches.cache_manager import CacheManager class TestCacheManager(unittest.TestCase): def setUp(self): self.cache_manager = CacheManager() def tearDown(self): pass def test_addElementSingleCac...
23.148936
68
0.748162
795d03e408d259568b8d5f3576a99d6dc93b9e4c
1,125
py
Python
lin_kernighan/algorithms/structures/tabu_list.py
Yamp/Lin-Kernighan
88e3ef8c0f4ec91ba22a065466b2473725d86870
[ "MIT" ]
1
2021-07-24T02:50:52.000Z
2021-07-24T02:50:52.000Z
lin_kernighan/algorithms/structures/tabu_list.py
Lin-Kernighan/Lin-Kernighan
88e3ef8c0f4ec91ba22a065466b2473725d86870
[ "MIT" ]
5
2020-02-01T10:44:09.000Z
2020-05-24T10:39:14.000Z
lin_kernighan/algorithms/structures/tabu_list.py
Yamp/Lin-Kernighan
88e3ef8c0f4ec91ba22a065466b2473725d86870
[ "MIT" ]
1
2020-08-26T05:26:23.000Z
2020-08-26T05:26:23.000Z
from sys import maxsize from typing import Tuple import numba as nb import numpy as np from lin_kernighan.algorithms.utils.hash import generate_hash @nb.experimental.jitclass(spec=[ ('data', nb.types.Set(nb.i8)), ('best_length', nb.float64), ('best_route', nb.int64[:]) ]) class TabuSet: def __init_...
26.162791
67
0.618667
795d050ff4fecf67a1e73ee836459027a7677224
9,029
py
Python
datapungibea/tests/test_driversCI.py
jjotterson/beafullfetchpy
47d492f79e620ad967593982887d9428756cd63b
[ "MIT" ]
13
2019-09-24T16:32:40.000Z
2021-09-27T08:40:24.000Z
datapungibea/tests/test_driversCI.py
jjotterson/beafullfetchpy
47d492f79e620ad967593982887d9428756cd63b
[ "MIT" ]
3
2020-12-08T22:16:56.000Z
2020-12-24T20:40:30.000Z
datapungibea/tests/test_driversCI.py
jjotterson/beafullfetchpy
47d492f79e620ad967593982887d9428756cd63b
[ "MIT" ]
2
2019-11-05T23:30:23.000Z
2020-12-17T23:41:04.000Z
import datapungibea as dpbea import time import pandas as pd import os def executeCode(stringIn): ''' auxiliary function for tests: get the requests code as a string and try to execute it. ''' try: exec(stringIn+'\n') #exec('print("hi")') # return(dict( codeRun = True, codeOutp...
55.392638
136
0.670728
795d05b0f0390c17d0185bad30d8a15374c49856
3,472
py
Python
mitmproxy/addons/modifyheaders.py
cifred98/mitmproxy
59fd15ef12c7eba4f44c5ad91171ccc8eb12e50b
[ "MIT" ]
1
2020-10-22T01:13:33.000Z
2020-10-22T01:13:33.000Z
mitmproxy/addons/modifyheaders.py
cifred98/mitmproxy
59fd15ef12c7eba4f44c5ad91171ccc8eb12e50b
[ "MIT" ]
null
null
null
mitmproxy/addons/modifyheaders.py
cifred98/mitmproxy
59fd15ef12c7eba4f44c5ad91171ccc8eb12e50b
[ "MIT" ]
null
null
null
import re import typing from pathlib import Path from mitmproxy import ctx, exceptions, flowfilter, http from mitmproxy.net.http import Headers from mitmproxy.utils import strutils from mitmproxy.utils.spec import parse_spec class ModifySpec(typing.NamedTuple): matches: flowfilter.TFilter subject: bytes ...
34.72
109
0.618088
795d05cb7c6d018cac453054ae855d7135addd11
2,585
py
Python
batchRenderScript.py
AnDCGI/mayaSnippets
1f7bf6878433cb9fe364ab6d9b801ddb1b092895
[ "CC0-1.0" ]
null
null
null
batchRenderScript.py
AnDCGI/mayaSnippets
1f7bf6878433cb9fe364ab6d9b801ddb1b092895
[ "CC0-1.0" ]
null
null
null
batchRenderScript.py
AnDCGI/mayaSnippets
1f7bf6878433cb9fe364ab6d9b801ddb1b092895
[ "CC0-1.0" ]
null
null
null
# © 2020 AnD CGI This work is licensed under a Creative Commons # Attribution-ShareAlike 4.0 International License. '''The Batch Render Script Designed To Work As A Shelf Button Inside Maya The Purpose Is To Work On As Many Shots/files As Possible In A Shift After One File/shot Is Done Click On The Shelf Button Th...
44.568966
80
0.721083
795d05f392089fa46b7a5e344067cf6d5323a7b3
10,584
py
Python
alipay/aop/api/domain/KcpLeadsInfo.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/KcpLeadsInfo.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/KcpLeadsInfo.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class KcpLeadsInfo(object): def __init__(self): self._buy_tips = None self._comment_count = None self._compare_label = None self._deal_id = None self._dish_list ...
31.688623
85
0.573791
795d06221244288844eacee168fa5ca191e0194d
151
py
Python
train.py
ITerydh/YOLOV1-BY-PaddlePaddle
153a136c216b68f5453e1e1ce01d76bf451908a9
[ "Apache-2.0" ]
null
null
null
train.py
ITerydh/YOLOV1-BY-PaddlePaddle
153a136c216b68f5453e1e1ce01d76bf451908a9
[ "Apache-2.0" ]
null
null
null
train.py
ITerydh/YOLOV1-BY-PaddlePaddle
153a136c216b68f5453e1e1ce01d76bf451908a9
[ "Apache-2.0" ]
1
2021-08-03T12:32:42.000Z
2021-08-03T12:32:42.000Z
# -*- coding: utf-8 -*- # @Author: 红白黑 # @Date: 2021-08-03 17:12:13 # @Last Modified by: 红白黑 # @Last Modified time: 2021-08-03 17:12:16
16.777778
43
0.556291
795d06f2fa3ed8d73f29fe1cb37fcf243f1befce
1,906
py
Python
bladex/shaft.py
daveb-dev/BladeX
f055bb920ee9dbe717e67483aeff0c05f79bf976
[ "MIT" ]
null
null
null
bladex/shaft.py
daveb-dev/BladeX
f055bb920ee9dbe717e67483aeff0c05f79bf976
[ "MIT" ]
null
null
null
bladex/shaft.py
daveb-dev/BladeX
f055bb920ee9dbe717e67483aeff0c05f79bf976
[ "MIT" ]
null
null
null
import os from OCC.Core.IGESControl import IGESControl_Reader from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeSolid, BRepBuilderAPI_Sewing import OCC.Core.TopoDS from OCC.Display.SimpleGui import init_display class Shaft(object): """ Bottom-up parametrized shaft construction. :param string filename...
36.653846
83
0.687303
795d07d90cebc84e4aedb11ce50b10de15c949c8
8,215
py
Python
src/pyraug/models/rhvae/rhvae_sampler.py
clementchadebec/pyraug
d1b36c060fe56427ed158ecb38cdbc6cc3bc0f74
[ "Apache-2.0" ]
53
2021-09-05T09:04:38.000Z
2022-03-22T05:34:23.000Z
src/pyraug/models/rhvae/rhvae_sampler.py
clementchadebec/pyraug
d1b36c060fe56427ed158ecb38cdbc6cc3bc0f74
[ "Apache-2.0" ]
2
2021-09-28T08:10:37.000Z
2021-12-13T10:32:54.000Z
src/pyraug/models/rhvae/rhvae_sampler.py
clementchadebec/pyraug
d1b36c060fe56427ed158ecb38cdbc6cc3bc0f74
[ "Apache-2.0" ]
6
2021-09-05T01:03:48.000Z
2021-10-13T01:03:08.000Z
import datetime import logging import os import torch from ..base.base_sampler import BaseSampler from .rhvae_config import RHVAESamplerConfig from .rhvae_model import RHVAE logger = logging.getLogger(__name__) # make it print to the console. console = logging.StreamHandler() logger.addHandler(console) logger.setLe...
33.806584
98
0.542422
795d08258ddc74f6ce73cc52b6e3eb75a99dfdf9
39,440
py
Python
dev/train_swap_cond.py
Harsha-Musunuri/stylegan2-pytorch
bd9b42f7031aa1d16245ac64bc562baf0fc0945f
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
7
2021-11-13T02:31:21.000Z
2022-03-30T01:30:15.000Z
dev/train_swap_cond.py
Harsha-Musunuri/stylegan2-pytorch
bd9b42f7031aa1d16245ac64bc562baf0fc0945f
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
null
null
null
dev/train_swap_cond.py
Harsha-Musunuri/stylegan2-pytorch
bd9b42f7031aa1d16245ac64bc562baf0fc0945f
[ "MIT", "BSD-2-Clause", "Apache-2.0" ]
1
2021-03-03T03:46:18.000Z
2021-03-03T03:46:18.000Z
import argparse import math import random import os import numpy as np import torch from torch import nn, autograd, optim from torch.nn import functional as F from torch.utils import data import torch.distributed as dist from torchvision import transforms, utils from PIL import Image from tqdm import tqdm...
40.368475
132
0.581339
795d090cd227c4125e4477793caf143ff7621af3
8,640
py
Python
accounts/forms.py
sauravpanda/Django-CRM
c6b8cde02c9cf3d3f30f4e05b825f77d00734e87
[ "MIT" ]
1
2021-08-23T05:25:30.000Z
2021-08-23T05:25:30.000Z
accounts/forms.py
MrNevil/Django-CRM
8cb9803748bb3e03f843c47413232185f78261f2
[ "MIT" ]
null
null
null
accounts/forms.py
MrNevil/Django-CRM
8cb9803748bb3e03f843c47413232185f78261f2
[ "MIT" ]
1
2021-12-09T09:38:50.000Z
2021-12-09T09:38:50.000Z
from django import forms from .models import Account, Email from common.models import Comment, Attachments, User from leads.models import Lead from contacts.models import Contact from django.db.models import Q from teams.models import Teams class AccountForm(forms.ModelForm): teams_queryset = [] teams = forms...
39.633028
92
0.590856
795d09385e6b23bbbd8316c6a0e4a661248cc5a9
1,904
py
Python
ctapipe/core/traits.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/core/traits.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
ctapipe/core/traits.py
mpecimotika/ctapipe
ffd7930921f7139b761fbf1208da16dd302e97a6
[ "BSD-3-Clause" ]
null
null
null
from traitlets import (Int, Integer, Float, Unicode, Enum, Long, List, Bool, CRegExp, Dict, TraitError, observe, CaselessStrEnum, TraitType) from traitlets.config import boolean_flag as flag import os __all__ = ['Path', 'Int', 'Integer', 'Float', 'Unicode', 'Enum', 'Long',...
34.618182
80
0.519433
795d0a0180b1aa9de93b5366b3f569058e85b611
7,658
py
Python
src/SimulationControl/overlayNodeList.py
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
src/SimulationControl/overlayNodeList.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
src/SimulationControl/overlayNodeList.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.000Z
import mpi import time import VoronoiDistributeNodes import SolidSpheral #........................................................................... # A local helper method for copying data from one NodeList to another. #........................................................................... def copyNodeListField...
36.641148
118
0.606947
795d0a21ea41af3fe8ac83c83206ad4f7dd41e6e
3,948
py
Python
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/tests/utils.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
4
2019-10-03T21:58:22.000Z
2021-02-12T13:33:32.000Z
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/tests/utils.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
4
2020-01-22T13:45:12.000Z
2022-02-10T20:58:09.000Z
pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/tests/utils.py
Anillab/One-Minute-Pitch
123f7b2010d3ae0f031066db1bcfe6eda7a41e84
[ "MIT" ]
1
2021-01-13T09:30:29.000Z
2021-01-13T09:30:29.000Z
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2018, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## import json impor...
26.145695
82
0.534195
795d0a6d7a5fc71677bc66825a67fbfca5365395
801
py
Python
DjBlog/society/models.py
YuanfangLiao/DjangoBlog
107496ca4179836d7654bec5ccc5c171da9cd8e1
[ "MIT" ]
null
null
null
DjBlog/society/models.py
YuanfangLiao/DjangoBlog
107496ca4179836d7654bec5ccc5c171da9cd8e1
[ "MIT" ]
8
2021-02-10T02:17:44.000Z
2022-02-10T12:55:06.000Z
DjBlog/society/models.py
YuanfangLiao/DjangoBlog
107496ca4179836d7654bec5ccc5c171da9cd8e1
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. # 评论表 from django.db.models import CASCADE from blog.models import BlogPostModel from users.models import UserModel STATUS = { 0: u'对文章的评论', 1: u'对评论的评论', } class Comment(models.Model): comment_type = models.IntegerField(default=0) comment_to...
27.62069
91
0.761548
795d0a6f7ef9f7196f610db34c8d9b699966453b
81,762
py
Python
taxcalc_arp/taxcalc/calcfunctions.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-10-01T14:22:32.000Z
2021-10-01T14:22:32.000Z
taxcalc_arp/taxcalc/calcfunctions.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-03-16T13:57:36.000Z
2021-03-16T13:57:36.000Z
taxcalc_arp/taxcalc/calcfunctions.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-03-16T13:44:38.000Z
2021-03-16T13:44:38.000Z
""" Tax-Calculator functions that calculate payroll and individual income taxes. These functions are imported into the Calculator class. Note: the parameter_indexing_CPI_offset policy parameter is the only policy parameter that does not appear here; it is used in the policy.py file to possibly adjust the price inflat...
38.878745
99
0.630256
795d0aed028e002aaed0a4ecd30f64446caca2f5
2,417
py
Python
ideas/matterscout/anomaly_detection/main.py
andreaziani/permafrostanalytics
4bd3f338c07bda67d8c0435c729cb2442e4183d0
[ "MIT" ]
1
2020-02-13T14:35:39.000Z
2020-02-13T14:35:39.000Z
ideas/matterscout/anomaly_detection/main.py
andreaziani/permafrostanalytics
4bd3f338c07bda67d8c0435c729cb2442e4183d0
[ "MIT" ]
null
null
null
ideas/matterscout/anomaly_detection/main.py
andreaziani/permafrostanalytics
4bd3f338c07bda67d8c0435c729cb2442e4183d0
[ "MIT" ]
1
2020-08-27T14:09:08.000Z
2020-08-27T14:09:08.000Z
from datetime import date import os import shutil import argparse from data_load import DATA_FOLDER, create_dataset, load_dataset_from_filesystem, load_precipitation from detection import predict_outlier_labels, save_normal_data, save_anomalies def main(): parser = argparse.ArgumentParser() parser.add_argumen...
43.945455
115
0.632189
795d0b001b7bfc4c3e6291a4eda272e773c18d01
1,728
py
Python
tests/test_train.py
michalwols/yann
b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf
[ "MIT" ]
32
2019-04-13T11:03:38.000Z
2022-01-24T03:00:56.000Z
tests/test_train.py
michalwols/yann
b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf
[ "MIT" ]
13
2019-09-29T00:51:24.000Z
2021-12-12T15:06:00.000Z
tests/test_train.py
michalwols/yann
b3c0f35ec7515ddaeb1f04d365af7b6d136f56cf
[ "MIT" ]
5
2020-01-01T10:27:26.000Z
2021-12-20T18:33:08.000Z
import pytest import torch.cuda from torch import nn from torch.optim import SGD from yann.callbacks import ( History, HistoryPlotter, HistoryWriter, Logger, Checkpoint ) from yann.datasets import TinyDigits from yann.datasets.wrappers import Slice from yann.modules import Flatten from yann.train import Trainer de...
20.819277
79
0.660301
795d0c4010225a80eacfee7f7dc57beb5b7aa3a4
3,587
py
Python
ch06/ch06.py
yummybian/python-practice-book
1efbea8a7f42396b978153683e1e649e3e74dd16
[ "MIT" ]
5
2015-04-03T10:15:21.000Z
2020-06-09T08:21:39.000Z
ch06/ch06.py
yummybian/python-practice-book
1efbea8a7f42396b978153683e1e649e3e74dd16
[ "MIT" ]
null
null
null
ch06/ch06.py
yummybian/python-practice-book
1efbea8a7f42396b978153683e1e649e3e74dd16
[ "MIT" ]
null
null
null
import time # Problem 1. def product(a, b): """ >>> product(3, 4) 12 """ if a == 1: return b return b + product(a-1, b) # Problem 2. def flatten_dict(d, parent_key=None, result=None): if result is None: result = {} for key, value in d.iteritems(): if isinsta...
20.976608
78
0.488152
795d0d039106ffe1e407c007cb51e9dc56ef3b4b
30,272
py
Python
vnpy/app/cta_strategy/engine.py
Wei-Jianan/vnpy
d55e7730427788c43356a033ca33d29865f6a419
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/engine.py
Wei-Jianan/vnpy
d55e7730427788c43356a033ca33d29865f6a419
[ "MIT" ]
null
null
null
vnpy/app/cta_strategy/engine.py
Wei-Jianan/vnpy
d55e7730427788c43356a033ca33d29865f6a419
[ "MIT" ]
null
null
null
"""""" import importlib import os import traceback from collections import defaultdict from pathlib import Path from typing import Any, Callable from datetime import datetime, timedelta from concurrent.futures import ThreadPoolExecutor from copy import copy from tzlocal import get_localzone from typing import Sequence...
30.764228
109
0.594642
795d0d041cef3a5565467ac1220d67624b277b85
5,324
py
Python
computation/Jetson/test_local.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
4
2019-09-19T15:36:22.000Z
2020-02-18T09:28:54.000Z
computation/Jetson/test_local.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
null
null
null
computation/Jetson/test_local.py
y-x-c/Heliot
b98646966fd1d437e308abeed59668df640932de
[ "BSD-3-Clause" ]
2
2020-04-14T19:11:32.000Z
2022-01-08T18:59:02.000Z
""" Testing the installation on Jetson-TX2 Object detection using Pretrained Tensorflow Model Credits: This code is modified from the TensorFlow object detection tutorial available at: https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb """ #Imports import n...
29.252747
106
0.763899
795d0ddb553aa9ec912677d5f84d9b644007e348
19,116
py
Python
src/npc_manager.py
tw1st40/botty
d957e352d5d5623452fa9f0a28d1f8f752e44ebc
[ "MIT" ]
5
2022-01-21T20:08:24.000Z
2022-01-28T14:37:17.000Z
src/npc_manager.py
tw1st40/botty
d957e352d5d5623452fa9f0a28d1f8f752e44ebc
[ "MIT" ]
1
2022-02-10T08:21:22.000Z
2022-02-10T08:38:54.000Z
src/npc_manager.py
tw1st40/botty
d957e352d5d5623452fa9f0a28d1f8f752e44ebc
[ "MIT" ]
6
2022-01-29T05:09:57.000Z
2022-02-11T21:48:52.000Z
import time import os from template_finder import TemplateFinder from config import Config from screen import Screen from utils.misc import color_filter, wait from logger import Logger import keyboard from utils.custom_mouse import mouse from math import sqrt class Npc: #A1 KASHYA = "kashya" CHARSI = "cha...
60.113208
402
0.562042
795d0f5533d4ed9c570bbbea8458d86e5cc040ba
861
py
Python
test/BribeNet/graph/generation/test_weightedGenerator.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/graph/generation/test_weightedGenerator.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/graph/generation/test_weightedGenerator.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
from unittest import TestCase from BribeNet.graph.generation.flatWeightGenerator import FlatWeightedGraphGenerator from BribeNet.graph.generation import GraphGeneratorAlgo class TestFlatWeightedGraphGenerator(TestCase): def test_generate_ws(self): graph_gen = FlatWeightedGraphGenerator(GraphGeneratorAlgo...
39.136364
98
0.75029
795d102b8bba78fb18b1842d4aca165173e10f7d
13,911
py
Python
bcl_caffe/models/seg_obj.py
LEOCUIZHIHAO/segcarpoint
42d78cde1f28b0c705f7755356610cf3039c3caf
[ "MIT" ]
null
null
null
bcl_caffe/models/seg_obj.py
LEOCUIZHIHAO/segcarpoint
42d78cde1f28b0c705f7755356610cf3039c3caf
[ "MIT" ]
null
null
null
bcl_caffe/models/seg_obj.py
LEOCUIZHIHAO/segcarpoint
42d78cde1f28b0c705f7755356610cf3039c3caf
[ "MIT" ]
null
null
null
import caffe from caffe import layers as L, params as P, to_proto def conv_bn_relu(n, name, top_prev, ks, nout, stride=1, pad=0, loop=1): for idx in range(loop): n[str(name)+"_"+str(idx)] = L.Convolution(top_prev, #name = name, convolution_param=dict( ...
48.63986
140
0.444037
795d106628bfe12a3806a87839a2c5e8170d5c58
439
py
Python
Lib/objc/_FTClientServices.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/_FTClientServices.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/_FTClientServices.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'FTClientServices' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None FTCServiceMonitor = _Class("FTCServiceMonitor") FTC...
19.086957
69
0.728929
795d11e4883b68fc130b91bbb2a67bae8a3deebd
4,769
py
Python
core/src/zeit/push/testing.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/push/testing.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/push/testing.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
import gocept.selenium import logging import pkg_resources import plone.testing import six.moves.urllib.parse import zeit.cms.testing import zeit.content.image.testing import zeit.content.text.jinja import zeit.push.interfaces import zope.interface log = logging.getLogger(__name__) @zope.interface.implementer(zeit....
31.793333
77
0.702453
795d11f8c3bca0cb999dbcad5ea750bd75452345
9,527
py
Python
python_modbus_test_software/psoc_moisture_sensor.py
glenn-edgar/psoc_5lp_moisture_sensor
48040f4a8813cfd472f774a879be4936fa989f65
[ "MIT" ]
null
null
null
python_modbus_test_software/psoc_moisture_sensor.py
glenn-edgar/psoc_5lp_moisture_sensor
48040f4a8813cfd472f774a879be4936fa989f65
[ "MIT" ]
null
null
null
python_modbus_test_software/psoc_moisture_sensor.py
glenn-edgar/psoc_5lp_moisture_sensor
48040f4a8813cfd472f774a879be4936fa989f65
[ "MIT" ]
null
null
null
""" File: psoc_moisture_sensor.py This file is the modbus client for the 5lp moisture sensor. This Class is a super class to PSOC_BASE_RTU Additional Modbus Registers are // Logging Control #define LOGGING_FLAG 30 #define LOGGING_INDEX 31 #define LOGGING_RATE ...
36.087121
130
0.575837
795d125840340d283f8e4a7bd088704644b44a17
59,462
py
Python
sdk/python/pulumi_azure_nextgen/network/v20200101/_inputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200101/_inputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20200101/_inputs.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
43.33965
399
0.67396
795d125f93b861d9adca627967c0e8b079a9498a
1,490
py
Python
odoo/custom/src/private/temp_creditnote_fields/account_invoice.py
ecosoft-odoo/mh-doodba
093f14850aaff337951b4829b24bf32eee6e6d40
[ "BSL-1.0" ]
1
2021-10-03T08:11:18.000Z
2021-10-03T08:11:18.000Z
odoo/custom/src/private/temp_creditnote_fields/account_invoice.py
ecosoft-odoo/mh-doodba
093f14850aaff337951b4829b24bf32eee6e6d40
[ "BSL-1.0" ]
null
null
null
odoo/custom/src/private/temp_creditnote_fields/account_invoice.py
ecosoft-odoo/mh-doodba
093f14850aaff337951b4829b24bf32eee6e6d40
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
36.341463
78
0.612752
795d13433dde7b96eca7cbf59c4e4868447ea953
790
py
Python
converter/search_database.py
shijun18/Protein-Structure-Predict
a4e7fcc9ceec3e072e06901748ecb95c4eed2814
[ "Apache-2.0" ]
4
2021-07-26T08:01:50.000Z
2021-12-28T12:40:26.000Z
converter/search_database.py
shijun18/Protein-Structure-Predict
a4e7fcc9ceec3e072e06901748ecb95c4eed2814
[ "Apache-2.0" ]
null
null
null
converter/search_database.py
shijun18/Protein-Structure-Predict
a4e7fcc9ceec3e072e06901748ecb95c4eed2814
[ "Apache-2.0" ]
null
null
null
import os from tqdm import tqdm def extract_hmm(fasta_dir, hmm_dir, hmm_db_path, cpu=20): filename_list = os.listdir(fasta_dir) for filename in tqdm(filename_list): fasta_path = os.path.join(fasta_dir, filename) hmm_path = os.path.join(hmm_dir, filename.replace('fa', 'txt')) cmd = 'hhbl...
46.470588
127
0.708861
795d13ada21687486714771f30122a76dfb8ac62
276
py
Python
manti_by/apps/blog/apps.py
manti-by/m2
ee2d2bad412c265962675c94dbfd29cdec07910c
[ "BSD-3-Clause" ]
2
2017-09-07T09:28:29.000Z
2018-04-10T03:03:32.000Z
manti_by/apps/blog/apps.py
manti-by/m2
ee2d2bad412c265962675c94dbfd29cdec07910c
[ "BSD-3-Clause" ]
10
2018-04-20T15:31:39.000Z
2018-06-26T13:42:01.000Z
manti_by/apps/blog/apps.py
manti-by/Manti.by
ee2d2bad412c265962675c94dbfd29cdec07910c
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class BlogConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "manti_by.apps.blog" verbose_name = _("Blog") verbose_name_plural = _("Blogs")
25.090909
56
0.746377
795d169692abb6780057a797bd5a266a1f3d98f0
28,135
py
Python
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/operations/instance_failover_groups_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/operations/instance_failover_groups_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/operations/instance_failover_groups_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
48.592401
242
0.682317
795d183dfdcf280f231c464ddf5c1c398904b96e
36
py
Python
spiketoolkit/sortingcomponents/__init__.py
teristam/spiketoolk
0ae7adabce46cf620c3627ee0093d890996ef355
[ "MIT" ]
55
2018-11-26T21:57:45.000Z
2021-06-14T15:27:50.000Z
spiketoolkit/sortingcomponents/__init__.py
teristam/spiketoolk
0ae7adabce46cf620c3627ee0093d890996ef355
[ "MIT" ]
364
2018-11-26T21:57:08.000Z
2021-07-27T12:29:28.000Z
spiketoolkit/sortingcomponents/__init__.py
teristam/spiketoolk
0ae7adabce46cf620c3627ee0093d890996ef355
[ "MIT" ]
40
2018-11-23T12:33:44.000Z
2021-09-28T10:27:07.000Z
from .detection import detect_spikes
36
36
0.888889
795d18bca1b120bb9375e7b66416804ed0f1802e
4,907
py
Python
prediction_models/NN.py
MrHuff/general_ds_pipeline
c11440d7e54329931d3b1a4cb5b7f1c855a208cb
[ "MIT" ]
null
null
null
prediction_models/NN.py
MrHuff/general_ds_pipeline
c11440d7e54329931d3b1a4cb5b7f1c855a208cb
[ "MIT" ]
null
null
null
prediction_models/NN.py
MrHuff/general_ds_pipeline
c11440d7e54329931d3b1a4cb5b7f1c855a208cb
[ "MIT" ]
null
null
null
import copy import numpy as np import torch from utils.other import * import tqdm class multi_input_Sequential(torch.nn.Sequential): def forward(self, inputs): for module in self._modules.values(): if type(inputs) == tuple: inputs = module(*inputs) else: ...
35.817518
128
0.587936