hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
591a3cacdd285aff8631717d90ecd13067b4060d
1,117
py
Python
consulate/exceptions.py
python-microservices/consulate
9d95a946b3a5c3095437801488cf84836d72192c
[ "BSD-3-Clause" ]
309
2015-01-09T19:34:43.000Z
2022-02-11T17:27:55.000Z
consulate/exceptions.py
python-microservices/consulate
9d95a946b3a5c3095437801488cf84836d72192c
[ "BSD-3-Clause" ]
101
2015-01-15T13:26:56.000Z
2021-11-25T17:25:28.000Z
consulate/exceptions.py
python-microservices/consulate
9d95a946b3a5c3095437801488cf84836d72192c
[ "BSD-3-Clause" ]
114
2015-03-02T17:35:43.000Z
2022-03-26T16:26:46.000Z
""" Consulate Exceptions """ class ConsulateException(Exception): """Base Consul exception""" class RequestError(ConsulateException): """There was an error making the request to the consul server""" class ClientError(ConsulateException): """There was an error in the request that was made to consul"""...
22.34
79
0.722471
a04755d2f1373fbfbb891dff65fa1a2bb5e94ea2
767
py
Python
alphadoc/main.py
MLH-Fellowship/alphadoc
e1e867e40d0affc9b67b6f5c02120680863ee81a
[ "MIT" ]
1
2020-11-25T17:56:55.000Z
2020-11-25T17:56:55.000Z
alphadoc/main.py
MLH-Fellowship/alphadoc
e1e867e40d0affc9b67b6f5c02120680863ee81a
[ "MIT" ]
16
2020-11-22T18:29:25.000Z
2021-02-01T07:58:35.000Z
alphadoc/main.py
V2dha/alphadoc
e1e867e40d0affc9b67b6f5c02120680863ee81a
[ "MIT" ]
6
2021-01-20T06:57:52.000Z
2021-01-25T04:06:15.000Z
import click from alphadoc.docstring import get_docstring info = '''Automatic docstring generator and style guide that supports a number of specified conventions for formatting as well as documentation in Python.''' doc_help = '''Specified format for docstrings from Options- ...
34.863636
71
0.628422
5bcdc3f245463e7c731f3b0d4f2aac621adc5ad6
9,340
py
Python
astroNN/models/misc_models.py
igomezv/astroNN
50af116f9cbfc684b63e7ddcf8829343a455722b
[ "MIT" ]
156
2017-10-22T01:29:10.000Z
2022-03-14T10:28:09.000Z
astroNN/models/misc_models.py
AbdulfattahBaalawi/astroNN
0b970dd1a8d4d5e6d611ffa52cfd3c2ffdcb4643
[ "MIT" ]
16
2017-11-02T21:29:28.000Z
2022-03-14T08:40:41.000Z
astroNN/models/misc_models.py
AbdulfattahBaalawi/astroNN
0b970dd1a8d4d5e6d611ffa52cfd3c2ffdcb4643
[ "MIT" ]
46
2017-11-01T18:56:03.000Z
2022-03-07T06:44:22.000Z
# ---------------------------------------------------------# # astroNN.models.misc_models: Contain Misc. Models # ---------------------------------------------------------# import tensorflow.keras as tfk from astroNN.models.base_bayesian_cnn import BayesianCNNBase from astroNN.models.base_cnn import CNNBase from ast...
42.262443
128
0.659422
7dc517a03e8e7475ed98e672cb6fde9c3af2ae5c
1,680
py
Python
conans/test/command/copy_packages_test.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
null
null
null
conans/test/command/copy_packages_test.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
null
null
null
conans/test/command/copy_packages_test.py
datalogics-kam/conan
7bf230cd5f8ef68eb804908777ebaad75e951b16
[ "MIT" ]
null
null
null
import unittest from conans.test.utils.tools import TestClient import os from conans.model.ref import ConanFileReference class CopyPackagesTest(unittest.TestCase): def test_copy_command(self): client = TestClient() conanfile = """from conans import ConanFile class Pkg(ConanFile): settings = "...
40
91
0.669048
e1b119fe90b5b0d65f1b697c7f8ebe783a6afdbc
887
py
Python
ResizableMatrix.py
JFlaherty347/Pokemon-Red-AI
9848c56d14c68bc5f215f6b81937ddf69ad0f297
[ "Apache-2.0" ]
2
2022-03-22T17:33:18.000Z
2022-03-22T17:34:16.000Z
ResizableMatrix.py
JFlaherty347/Pokemon-Red-AI
9848c56d14c68bc5f215f6b81937ddf69ad0f297
[ "Apache-2.0" ]
null
null
null
ResizableMatrix.py
JFlaherty347/Pokemon-Red-AI
9848c56d14c68bc5f215f6b81937ddf69ad0f297
[ "Apache-2.0" ]
1
2022-01-22T00:53:40.000Z
2022-01-22T00:53:40.000Z
from typing import Collection, List import numpy as np import copy class ResizeableMatrix: def __init__(self, matrix = None, dtype = int) -> None: if matrix: self.matrix = matrix else: self.matrix = np.matrix([[]]) def append(self, toAppend:List): if not np.array...
26.878788
60
0.573844
b05908a157f99b11b21f4af60a5483ffe67125f3
464
py
Python
tests/cpydiff/modules_random_randint.py
rxchen/micropython
037b2c72a1d5b54a5508a58ab2044628a7a39fa4
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/cpydiff/modules_random_randint.py
rxchen/micropython
037b2c72a1d5b54a5508a58ab2044628a7a39fa4
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/cpydiff/modules_random_randint.py
rxchen/micropython
037b2c72a1d5b54a5508a58ab2044628a7a39fa4
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
""" categories: Modules,random description: ``randint`` method can only return an integer that is at most the native word size. cause: PRNG is only able to generate 32 bits of state at a time. The result is then cast into a native sized int instead of a full int object. workaround: If you need integers larger than nati...
35.692308
142
0.739224
a4f83346ca7b1ff7b9c96ebb0b3a7f5e9e5450fa
8,279
py
Python
ThirdParty/Twisted/twisted/plugin.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
12
2015-01-21T00:24:06.000Z
2021-07-01T03:06:39.000Z
ThirdParty/Twisted/twisted/plugin.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/plugin.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# -*- test-case-name: twisted.test.test_plugin -*- # Copyright (c) 2005 Divmod, Inc. # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Plugin system for Twisted. @author: Jp Calderone @author: Glyph Lefkowitz """ import os import sys from zope.interface import Interface, providedBy def _d...
32.339844
83
0.635342
ad2e07c53a1bd4ef254b702f01426912700b1662
180
py
Python
examples/turtlebot.py
harryrobotics/pyrobot
006c6c3cc9dc96ba199c4cfe0f2caac30a6acd26
[ "MIT" ]
null
null
null
examples/turtlebot.py
harryrobotics/pyrobot
006c6c3cc9dc96ba199c4cfe0f2caac30a6acd26
[ "MIT" ]
16
2020-01-28T22:49:47.000Z
2022-03-11T23:51:24.000Z
examples/turtlebot.py
harryrobotics/pyrobot
006c6c3cc9dc96ba199c4cfe0f2caac30a6acd26
[ "MIT" ]
null
null
null
from pyrobot import Robot robot = Robot('turtlebot', use_base=True, use_arm=False, use_camera=False, use_gripper=False) while True: print(robot.base.get_state('odom'))
15
36
0.733333
a94ac25aab2b6bf61393abc55301c064eb2ccad2
2,113
py
Python
tests/test_alternative_tuple.py
BBVA/python-etl
f4c0e613792c93fe5833f9d5e670e8fa6cf675da
[ "Apache-2.0" ]
20
2017-11-07T15:09:45.000Z
2021-08-21T00:18:09.000Z
tests/test_alternative_tuple.py
BBVA/python-etl
f4c0e613792c93fe5833f9d5e670e8fa6cf675da
[ "Apache-2.0" ]
4
2017-11-21T13:15:30.000Z
2018-01-17T14:06:14.000Z
tests/test_alternative_tuple.py
BBVA/python-etl
f4c0e613792c93fe5833f9d5e670e8fa6cf675da
[ "Apache-2.0" ]
9
2017-11-08T10:53:43.000Z
2018-04-20T11:26:29.000Z
# Copyright 2017 BBVA # # 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, softwar...
28.554054
74
0.637009
f77b5153482bacdb3babb15dbf3bda3dc464f4d2
3,603
py
Python
main.py
kant/open-solution-value-prediction
708d0958cba1b8a551a10a9959678441f3eaa1dc
[ "MIT" ]
27
2018-06-29T18:38:53.000Z
2019-08-22T21:49:19.000Z
main.py
kant/open-solution-value-prediction
708d0958cba1b8a551a10a9959678441f3eaa1dc
[ "MIT" ]
16
2018-06-19T22:15:18.000Z
2018-06-26T09:15:59.000Z
main.py
kant/open-solution-value-prediction
708d0958cba1b8a551a10a9959678441f3eaa1dc
[ "MIT" ]
15
2018-07-01T00:28:39.000Z
2019-08-08T01:16:24.000Z
import click from src.pipeline_manager import PipelineManager pipeline_manager = PipelineManager() @click.group() def main(): pass @main.command() @click.option('-p', '--pipeline_name', help='pipeline to be trained', required=True) @click.option('-d', '--dev_mode', help='if true only a small sample of data wi...
45.607595
120
0.752984
aa120034da96261de3fcb4f5dc9ae57703fe7003
6,114
py
Python
slot_language/stronger_model/unet_train.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
slot_language/stronger_model/unet_train.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
slot_language/stronger_model/unet_train.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
import os import sys import importlib import argparse import numpy as np from typing import Optional import pytorch_lightning.loggers as pl_loggers from pytorch_lightning import Trainer from pytorch_lightning.callbacks import LearningRateMonitor, ModelCheckpoint import clip from unet_model import UNetSlotAttentionMod...
37.740741
79
0.691855
f1b81b74a6c8a0438d7a56db53974fbb44fcf6a5
18,798
py
Python
resources/models/utils.py
City-of-Turku/respa
53484dd45dfddb17b9c8c9812b51004690aaee9a
[ "MIT" ]
1
2019-12-17T10:02:17.000Z
2019-12-17T10:02:17.000Z
resources/models/utils.py
digipointtku/respa
a529e0df4d3f072df7801adb5bf97a5f4abd1243
[ "MIT" ]
12
2019-11-06T07:53:27.000Z
2019-12-18T06:14:47.000Z
resources/models/utils.py
digipointtku/respa
a529e0df4d3f072df7801adb5bf97a5f4abd1243
[ "MIT" ]
null
null
null
import base64 import datetime from decimal import Decimal import struct import time import io import logging from munigeo.models import Municipality import pytz import arrow from django.conf import settings from django.utils import formats from django.core.mail import EmailMultiAlternatives from django.conf import set...
35.070896
128
0.637089
78db1b5e786e2c54396cafa05922ae1b3d75840c
1,424
py
Python
docs/conf.py
nickcafferry/The-working-of-an-acid-buffer
178ce110020ca64babb0aa4b2fc5689c8b75b352
[ "MIT" ]
1
2020-03-11T02:56:33.000Z
2020-03-11T02:56:33.000Z
docs/conf.py
machine-learning-in-materials-sciences/PSSpred
b065dd394794200bbcc69cd1bde8732933bfe989
[ "MIT" ]
null
null
null
docs/conf.py
machine-learning-in-materials-sciences/PSSpred
b065dd394794200bbcc69cd1bde8732933bfe989
[ "MIT" ]
2
2020-09-20T13:52:54.000Z
2022-03-01T01:52:40.000Z
# -*- coding: utf-8 -*- import sys import os sys.path.insert(0, os.path.abspath("../../manim/")) project = u'PSSpred-Protein Secondary Structure prediction' copyright = u'- Wei MEI (Nick Cafferry)' author = u'Wei MEI' version = '1.0' release = '1.0' extensions = [ 'sphinx.ext.todo', 'sphinx.ext.githubpages...
24.982456
103
0.668539
cc1428c9e258d11e7b1c2c2c18887fbc17a2d5cb
1,918
py
Python
pybossa_lc/__init__.py
LibCrowds/libcrowds-project-generator
d474ffc713e27bd870f1d3f8fca70cec684411e0
[ "MIT" ]
2
2018-09-17T13:58:06.000Z
2020-03-31T15:10:06.000Z
pybossa_lc/__init__.py
LibCrowds/pybossa-lc
d474ffc713e27bd870f1d3f8fca70cec684411e0
[ "MIT" ]
null
null
null
pybossa_lc/__init__.py
LibCrowds/pybossa-lc
d474ffc713e27bd870f1d3f8fca70cec684411e0
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- """Main package for pybossa-lc.""" import os import json from flask import current_app as app from flask.ext.plugins import Plugin from pybossa.extensions import importer from . import default_settings from .extensions import * from .importers.iiif_enhanced import BulkTaskIIIFEnhancedImporter ...
35.518519
77
0.669447
f9c5b547e434f916db97ced95cf30e2a4e197f25
425
py
Python
project/tests/base.py
kshinba/cs501_t1_diagnostic_test
dc762306be50dbdbd3c369c305e65949966fb54f
[ "MIT" ]
null
null
null
project/tests/base.py
kshinba/cs501_t1_diagnostic_test
dc762306be50dbdbd3c369c305e65949966fb54f
[ "MIT" ]
null
null
null
project/tests/base.py
kshinba/cs501_t1_diagnostic_test
dc762306be50dbdbd3c369c305e65949966fb54f
[ "MIT" ]
null
null
null
# project/server/tests/base.py from flask_testing import TestCase from project.server import app, db class BaseTestCase(TestCase): """ Base Tests """ def create_app(self): app.config.from_object('project.server.config.TestingConfig') return app def setUp(self): db.create_all(...
17.708333
69
0.644706
d003e61a0d49f132a8be8525c7feaced7b379f39
3,984
py
Python
dgi/code2graph/utils/parse_config.py
konveyor/tackle-data-gravity-insights
97a3eb6a04a2bca7f7e3422581a8fad055d90c04
[ "Apache-2.0" ]
3
2022-03-28T20:54:34.000Z
2022-03-31T15:14:39.000Z
dgi/code2graph/utils/parse_config.py
rofrano/tackle-data-gravity-insights
f734f023dc46ca8e038b5ba8029e5c1177a1d34f
[ "Apache-2.0" ]
9
2022-03-01T13:29:50.000Z
2022-03-31T13:04:36.000Z
dgi/code2graph/utils/parse_config.py
rofrano/tackle-data-gravity-insights
f734f023dc46ca8e038b5ba8029e5c1177a1d34f
[ "Apache-2.0" ]
3
2022-03-28T14:41:45.000Z
2022-03-30T19:17:31.000Z
################################################################################ # Copyright IBM Corporation 2021, 2022 # # 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.ap...
29.080292
125
0.583333
0dfd171041149ee0e262c18bcd6509e1ef2c4d3b
2,087
py
Python
app/core/migrations/0001_initial.py
FarbodFarhangfar/recipe-app-api
40c36ec0f0ccf90177616d76b77be971bde05866
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
FarbodFarhangfar/recipe-app-api
40c36ec0f0ccf90177616d76b77be971bde05866
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
FarbodFarhangfar/recipe-app-api
40c36ec0f0ccf90177616d76b77be971bde05866
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-02 23:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
52.175
160
0.524677
23b4be2198f22ce21760c3bedf8feb133c29e6e0
1,535
py
Python
azure-mgmt-web/azure/mgmt/web/models/azure_blob_storage_http_logs_config.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-web/azure/mgmt/web/models/azure_blob_storage_http_logs_config.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-web/azure/mgmt/web/models/azure_blob_storage_http_logs_config.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
37.439024
77
0.619544
2ca81ae81458d99e807d69f391134e690cb68fda
7,906
py
Python
my_classes/.history/Tuples/name_tuples_20210722180527.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/Tuples/name_tuples_20210722180527.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/Tuples/name_tuples_20210722180527.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Tuple as Data Structure We have see how we interpreted tuples as data structures The position of the object contained in the tuple gives it meaning For example, we can represent a 2D coordinate as: (10, 20) x y If pt is a position tuple, we can re...
32.138211
154
0.612446
443f46ad4b4e1e32d9a4a70177bbd0c0c23d42ba
14,799
py
Python
ndn_hydra/repo/main/main_loop.py
UCLA-IRL/ndn-hydra
e01829253876ff6dbfd6dfaa92142eca08cd6705
[ "Apache-2.0" ]
2
2021-04-14T04:12:14.000Z
2021-04-23T02:28:49.000Z
ndn_hydra/repo/main/main_loop.py
ZixuanZhong/hydra
e01829253876ff6dbfd6dfaa92142eca08cd6705
[ "Apache-2.0" ]
10
2021-07-03T18:29:26.000Z
2022-02-01T04:11:20.000Z
ndn_hydra/repo/main/main_loop.py
ZixuanZhong/ndn-distributed-repo
e01829253876ff6dbfd6dfaa92142eca08cd6705
[ "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------- # NDN Hydra MainLoop # ---------------------------------------------------------- # @Project: NDN Hydra # @Date: 2021-01-25 # @Authors: Please check AUTHORS.rst # @Source-Code: https://github.com/UCLA-IRL/ndn-hydra # @Documentation: https://ndn-hy...
47.585209
226
0.599568
7563471959abcbe24ea3e35d55d01da203058dec
437
gyp
Python
binding.gyp
phi16/node-sensel
8cfb01cb8667398711658fe42bb10c69e433db5d
[ "MIT" ]
null
null
null
binding.gyp
phi16/node-sensel
8cfb01cb8667398711658fe42bb10c69e433db5d
[ "MIT" ]
null
null
null
binding.gyp
phi16/node-sensel
8cfb01cb8667398711658fe42bb10c69e433db5d
[ "MIT" ]
null
null
null
{ "targets": [ { "target_name": "sensel", "sources": [ "sensel-lib.cc" ], "include_dirs": [ "<!@(node -p \"require('node-addon-api').include\")", "<(module_root_dir)/include" ], "libraries": [ "<(module_root_dir)/lib/LibSensel.lib", "<(m...
21.85
61
0.503432
ad4c384791e27664797922c4b06e9473736d8d1a
12,017
py
Python
nse.py
shivaneeshinde/nsetools
ce70d42e568e2b90932235c4fb4b46a2a2c35dc9
[ "MIT" ]
8
2017-12-24T17:02:08.000Z
2021-11-08T23:42:17.000Z
nse.py
shivaneeshinde/nsetools
ce70d42e568e2b90932235c4fb4b46a2a2c35dc9
[ "MIT" ]
null
null
null
nse.py
shivaneeshinde/nsetools
ce70d42e568e2b90932235c4fb4b46a2a2c35dc9
[ "MIT" ]
11
2017-07-09T05:47:35.000Z
2021-10-16T20:30:57.000Z
""" The MIT License (MIT) Copyright (c) 2014 Vivek Jha 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,...
38.639871
130
0.603645
1779eda1be035d1de8757cfa2b9b91afd8dc9798
1,198
py
Python
setup.py
dillonalaird/shared_numpy
526f69009d75fdd914ded8a0e7017ca277a792f3
[ "MIT" ]
29
2020-03-08T06:18:03.000Z
2022-02-28T12:41:15.000Z
setup.py
dillonalaird/shared_numpy
526f69009d75fdd914ded8a0e7017ca277a792f3
[ "MIT" ]
4
2020-09-04T07:24:54.000Z
2021-08-28T03:38:30.000Z
setup.py
dillonalaird/shared_numpy
526f69009d75fdd914ded8a0e7017ca277a792f3
[ "MIT" ]
8
2020-03-10T02:39:23.000Z
2021-12-02T09:00:39.000Z
from distutils.core import setup, Extension import sys import platform import subprocess if sys.version_info[0] == 3 and sys.version_info[1] == 6: subprocess.run(["python", "shared_numpy/py36_clinic.py", "shared_numpy/posixshmem.c"]) elif sys.version_info[0] == 3 and sys.version_info[1] == 7: subprocess.run([...
24.44898
90
0.641903
de0eb18fb437338f25ecf9412ce1d387864a7062
3,621
py
Python
webSocket/webSocketApp.py
colaboradorDiego/socketsForDummies
38d2d9c68edc41ba2b289b299f7db62d07e57904
[ "Apache-2.0" ]
null
null
null
webSocket/webSocketApp.py
colaboradorDiego/socketsForDummies
38d2d9c68edc41ba2b289b299f7db62d07e57904
[ "Apache-2.0" ]
null
null
null
webSocket/webSocketApp.py
colaboradorDiego/socketsForDummies
38d2d9c68edc41ba2b289b299f7db62d07e57904
[ "Apache-2.0" ]
null
null
null
import websocket import threading import time import sys import os import json # Generalmente leemos un json para configurar nuestro socket class Configurador: pathToConfFile = '' connDATA = '' def __init__(self, path, connDATA): self.pathToConfFile=path self.connDATA=connDATA se...
26.822222
114
0.597901
e2592c2a483bbf75b5f4fa247c1ce72c255a72e1
1,055
py
Python
lists/okfn/bin/alpha3.py
openregister/countries
b335b268ea06dbe442fdf5cd6ee6c7c86cabf27f
[ "MIT" ]
2
2016-05-26T10:06:07.000Z
2016-06-02T05:17:06.000Z
lists/okfn/bin/alpha3.py
openregister/countries
b335b268ea06dbe442fdf5cd6ee6c7c86cabf27f
[ "MIT" ]
5
2016-02-05T13:05:33.000Z
2018-02-23T11:02:35.000Z
lists/okfn/bin/alpha3.py
openregister/countries
b335b268ea06dbe442fdf5cd6ee6c7c86cabf27f
[ "MIT" ]
4
2016-02-08T09:26:28.000Z
2021-04-11T08:26:20.000Z
#!/usr/bin/env python3 import sys import csv # name,official_name_en,official_name_fr,ISO3166-1-Alpha-2,ISO3166-1-Alpha-3,ISO3166-1-numeric,ITU,MARC,WMO,DS,Dial,FIFA,FIPS,GAUL,IOC,ISO4217-currency_alphabetic_code,ISO4217-currency_country_name,ISO4217-currency_minor_unit,ISO4217-currency_name,ISO4217-currency_numeric_...
35.166667
340
0.70237
b2abc7815460d7fe783801cd6ce2e330f00c7af7
879
py
Python
bot/plugins/stats/migrations/0011_download.py
sergei-maertens/discord-bot
29b8daa8c75a8a9ee292fc4f95eaba5f8a16850e
[ "MIT" ]
45
2015-12-29T23:14:43.000Z
2021-05-29T14:49:54.000Z
bot/plugins/stats/migrations/0011_download.py
sergei-maertens/discord-bot
29b8daa8c75a8a9ee292fc4f95eaba5f8a16850e
[ "MIT" ]
28
2016-02-16T21:34:15.000Z
2022-02-10T10:40:36.000Z
bot/plugins/stats/migrations/0011_download.py
sergei-maertens/discord-bot
29b8daa8c75a8a9ee292fc4f95eaba5f8a16850e
[ "MIT" ]
47
2016-01-06T20:42:02.000Z
2021-03-10T02:19:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-06 20:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stats', '0010_auto_20161006_1942'), ] operations = [ migrations.CreateModel...
30.310345
114
0.567691
131d958ea37e1023c674ef329a97675708164f45
1,349
py
Python
07_gashlycrumb/gashlycrumb.py
Fleid/tiny_python_projects
6d6c3bc397631758c42b2e93c41a0179120e8eab
[ "MIT" ]
null
null
null
07_gashlycrumb/gashlycrumb.py
Fleid/tiny_python_projects
6d6c3bc397631758c42b2e93c41a0179120e8eab
[ "MIT" ]
null
null
null
07_gashlycrumb/gashlycrumb.py
Fleid/tiny_python_projects
6d6c3bc397631758c42b2e93c41a0179120e8eab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : fleide <fleide@localhost> Date : 2021-01-27 Purpose: Working with directories """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.ArgumentParser( description='Gashly Crumbing...
24.981481
77
0.487769
dc8c731978959fffa6b2c34764789a1d9461bfb3
4,238
py
Python
tests/test_endpoints_init_on_bp_single.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
226
2017-09-05T08:23:58.000Z
2022-03-28T09:23:47.000Z
tests/test_endpoints_init_on_bp_single.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
179
2017-09-27T08:33:16.000Z
2022-01-28T20:35:23.000Z
tests/test_endpoints_init_on_bp_single.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
45
2017-10-14T10:26:46.000Z
2022-02-04T15:01:20.000Z
from sanic import Sanic from sanic.blueprints import Blueprint from sanic.response import json from sanic_jwt import Authentication, Initialize, protected, scoped blueprint = Blueprint("Test") cache = {} @blueprint.get("/", strict_slashes=True) @protected(blueprint) def protected_hello_world(request): return js...
28.253333
79
0.679094
99520035dde54211c25dcb95715dd2684f317825
24,022
py
Python
src/rsqsim_api/rsqsim_api/fault/segment.py
uc-eqgeo/rsqsim-python-tools
35d65629809b7edc10053a464c212ea03616c8df
[ "MIT" ]
1
2022-03-20T12:02:02.000Z
2022-03-20T12:02:02.000Z
src/rsqsim_api/rsqsim_api/fault/segment.py
uc-eqgeo/rsqsim-python-tools
35d65629809b7edc10053a464c212ea03616c8df
[ "MIT" ]
null
null
null
src/rsqsim_api/rsqsim_api/fault/segment.py
uc-eqgeo/rsqsim-python-tools
35d65629809b7edc10053a464c212ea03616c8df
[ "MIT" ]
1
2021-12-12T19:15:49.000Z
2021-12-12T19:15:49.000Z
import os from collections.abc import Iterable from typing import Union, List import numpy as np import pandas as pd from matplotlib import pyplot as plt from pyproj import Transformer import meshio from shapely.ops import linemerge, unary_union from shapely.geometry import LineString, MultiPolygon from rsqsim_api.i...
39.123779
264
0.624178
0e11a75f336a7dc43b0cf06a6de0d716b057ffd3
344
py
Python
scripts/run_make_decoy_dist_mat.py
lonelu/Metalprot_learning
8edb2c3e4f6ba129a409d75fd4d15ceb3a9e307b
[ "MIT" ]
null
null
null
scripts/run_make_decoy_dist_mat.py
lonelu/Metalprot_learning
8edb2c3e4f6ba129a409d75fd4d15ceb3a9e307b
[ "MIT" ]
null
null
null
scripts/run_make_decoy_dist_mat.py
lonelu/Metalprot_learning
8edb2c3e4f6ba129a409d75fd4d15ceb3a9e307b
[ "MIT" ]
null
null
null
import os from src.extractor import make_neg_dist_mats as neg from src import config workdir = os.getcwd() pdb_path = '/data/metal_decoys/' out_path = '/data/metal_decoys/out/' opts = config.ExtractorConfig() opts.config['dmap'] = True opts.config['--greyscale'] = True neg.run_get_neg_dist_mats(workdir, pdb_path, o...
21.5
67
0.758721
8f8eeac1435b10d431ea3a5ac24c1427a4e7c844
1,376
py
Python
setup.py
Boondockers-Welcome/django-autosave
42792db2163ed410c3adfbed4137e018397aaed7
[ "BSD-2-Clause" ]
null
null
null
setup.py
Boondockers-Welcome/django-autosave
42792db2163ed410c3adfbed4137e018397aaed7
[ "BSD-2-Clause" ]
null
null
null
setup.py
Boondockers-Welcome/django-autosave
42792db2163ed410c3adfbed4137e018397aaed7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import from setuptools import setup, find_packages setup( name="Django Autosave", version="1.0.0", author='Jason Goldstein', author_email='jason@betheshoe.com', url='https://github.com/theatlantic/django-autosave', packages=['autosave'], ...
35.282051
77
0.604651
34d3a99f1c8550b9688b021ce203b1bddcd2662a
1,486
py
Python
cloudify_types/cloudify_types/shared_resource/operations.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
cloudify_types/cloudify_types/shared_resource/operations.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
cloudify_types/cloudify_types/shared_resource/operations.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
37.15
78
0.687079
e331a4807842c3e6e053dd0b96a1ef59e380b823
2,523
py
Python
play.py
jeeiantam/cs221-project
71b5177b93adedc5eb0ba4fdb97b6e031101aeb8
[ "MIT" ]
null
null
null
play.py
jeeiantam/cs221-project
71b5177b93adedc5eb0ba4fdb97b6e031101aeb8
[ "MIT" ]
null
null
null
play.py
jeeiantam/cs221-project
71b5177b93adedc5eb0ba4fdb97b6e031101aeb8
[ "MIT" ]
null
null
null
import gym import time import sys SKIP_CONTROL = 0 # Use previous control decision SKIP_CONTROL times, that's how you # can test what skip is still usable. incremental_action_games = [] def controller_mapping(game_name): if 'LunarLander' in game_name: return {ord('s'):2, o...
29
92
0.597305
6b0df4212aa97a7aaaea1235a603a55b426a98d1
17,570
py
Python
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbMaterial.py
samjay3d/DazToBlender
cf9239bcc5e3c82a8a2373dd821f705edf481cc3
[ "Apache-2.0" ]
86
2020-07-23T03:00:37.000Z
2022-03-26T06:35:20.000Z
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbMaterial.py
samjay3d/DazToBlender
cf9239bcc5e3c82a8a2373dd821f705edf481cc3
[ "Apache-2.0" ]
91
2020-07-25T14:58:55.000Z
2022-03-26T13:02:18.000Z
Blender/appdata_common/Blender Foundation/Blender/BLENDER_VERSION/scripts/addons/DTB/DtbMaterial.py
samjay3d/DazToBlender
cf9239bcc5e3c82a8a2373dd821f705edf481cc3
[ "Apache-2.0" ]
25
2020-07-27T17:06:05.000Z
2022-02-12T14:56:58.000Z
import os import json import pathlib import bpy from . import Global from . import NodeArrange from . import Versions from . import MatDct from . import Util # region top-level methods def srgb_to_linear_rgb(srgb): if srgb < 0: return 0 elif srgb < 0.04045: return srgb / 12.92 else: ...
37.067511
88
0.520319
389234dc0c55ab79d07e2f8e2c6f53c892845571
4,606
py
Python
great_expectations/datasource/sqlalchemy_source.py
orenovadia/great_expectations
76ef0c4e066227f8b589a1ee6ac885618f65906e
[ "Apache-2.0" ]
null
null
null
great_expectations/datasource/sqlalchemy_source.py
orenovadia/great_expectations
76ef0c4e066227f8b589a1ee6ac885618f65906e
[ "Apache-2.0" ]
null
null
null
great_expectations/datasource/sqlalchemy_source.py
orenovadia/great_expectations
76ef0c4e066227f8b589a1ee6ac885618f65906e
[ "Apache-2.0" ]
1
2022-02-10T04:20:37.000Z
2022-02-10T04:20:37.000Z
import time import logging from string import Template from .datasource import Datasource from great_expectations.dataset.sqlalchemy_dataset import SqlAlchemyDataset from .generator.query_generator import QueryGenerator logger = logging.getLogger(__name__) try: import sqlalchemy from sqlalchemy import create...
40.761062
106
0.603561
ae99e20593556be3d5926a809b2bcf6e04a57894
2,148
py
Python
zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py
benjaoming/python-zulip-api
d46935218022d82fed262fb485e112caa1aefd11
[ "Apache-2.0" ]
1
2020-06-17T06:47:15.000Z
2020-06-17T06:47:15.000Z
zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py
benjaoming/python-zulip-api
d46935218022d82fed262fb485e112caa1aefd11
[ "Apache-2.0" ]
7
2017-10-05T07:43:32.000Z
2017-10-14T06:56:47.000Z
zulip_bots/zulip_bots/bots/dialogflow/dialogflow.py
benjaoming/python-zulip-api
d46935218022d82fed262fb485e112caa1aefd11
[ "Apache-2.0" ]
1
2020-08-25T19:25:25.000Z
2020-08-25T19:25:25.000Z
# See readme.md for instructions on running this code. import logging import json import apiai from typing import Any, Dict help_message = '''DialogFlow bot This bot will interact with dialogflow bots. Simply send this bot a message, and it will respond depending on the configured bot's behaviour. ''' def get_bot_r...
37.684211
105
0.643389
2a4167042c51400c37ba748360240d7cc4342a5b
13,477
py
Python
electrumsys/logging.py
syscoin/electrum
ac576539c758640ff87ed6be1311eb57b57d205f
[ "MIT" ]
1
2019-06-26T16:51:43.000Z
2019-06-26T16:51:43.000Z
electrumsys/logging.py
syscoin/electrumsys
ac576539c758640ff87ed6be1311eb57b57d205f
[ "MIT" ]
null
null
null
electrumsys/logging.py
syscoin/electrumsys
ac576539c758640ff87ed6be1311eb57b57d205f
[ "MIT" ]
1
2018-09-10T21:43:02.000Z
2018-09-10T21:43:02.000Z
# Copyright (C) 2019 The ElectrumSys developers # Distributed under the MIT software license, see the accompanying # file LICENCE or http://www.opensource.org/licenses/mit-license.php import logging import logging.handlers import datetime import sys import pathlib import os import platform from typing import Optional ...
36.228495
111
0.67886
81cb076d10538c0bf28f0d2018d6cddf43d7774b
3,719
py
Python
src/dbxdeploy/package/PackageInstaller.py
daipe-ai/dbx-deploy
6fee3578de0189afa45345c930823558f240bb4e
[ "MIT" ]
null
null
null
src/dbxdeploy/package/PackageInstaller.py
daipe-ai/dbx-deploy
6fee3578de0189afa45345c930823558f240bb4e
[ "MIT" ]
7
2021-04-30T07:20:15.000Z
2022-01-03T10:21:52.000Z
src/dbxdeploy/package/PackageInstaller.py
daipe-ai/dbx-deploy
6fee3578de0189afa45345c930823558f240bb4e
[ "MIT" ]
1
2021-12-16T09:06:45.000Z
2021-12-16T09:06:45.000Z
from typing import List from urllib.parse import urlparse from dbxdeploy.package.PackageIndexResolver import PackageIndexResolver class PackageInstaller: def __init__( self, offline_install: bool, package_index_resolver: PackageIndexResolver, ): self.__offline_install = offline...
40.423913
131
0.686206
c7c389be9e7b219ee3e9e2d88c4773257b39419e
2,248
py
Python
setup.py
wingify/vwo-sdk-log-messages
6f403babf0bb9e21d076d70df9973c9a9712de24
[ "Apache-2.0" ]
null
null
null
setup.py
wingify/vwo-sdk-log-messages
6f403babf0bb9e21d076d70df9973c9a9712de24
[ "Apache-2.0" ]
null
null
null
setup.py
wingify/vwo-sdk-log-messages
6f403babf0bb9e21d076d70df9973c9a9712de24
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Wingify Software Pvt. Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
30.794521
74
0.684164
07e906affd40c12b6e5d468a99e69b10ccde046c
4,091
py
Python
packages/python/chart-studio/chart_studio/api/v2/plots.py
sgn/plotly.py
587075c9f5a57a3dd60b03b2d47d925fbbb9b9b6
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
packages/python/chart-studio/chart_studio/api/v2/plots.py
sgn/plotly.py
587075c9f5a57a3dd60b03b2d47d925fbbb9b9b6
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
packages/python/chart-studio/chart_studio/api/v2/plots.py
sgn/plotly.py
587075c9f5a57a3dd60b03b2d47d925fbbb9b9b6
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
"""Interface to Plotly's /v2/plots endpoints.""" from __future__ import absolute_import from chart_studio.api.v2.utils import build_url, make_params, request RESOURCE = "plots" def create(body): """ Create a new plot. :param (dict) body: A mapping of body param names to values. :returns: (requests....
33.809917
79
0.659985
65371165565f5e068b9549cb5d18ebd16a8ac325
1,293
py
Python
config.py
dysfunctionals/sdi-display
cd7ce012de73034752a4efb70298200dd6d42a39
[ "MIT" ]
null
null
null
config.py
dysfunctionals/sdi-display
cd7ce012de73034752a4efb70298200dd6d42a39
[ "MIT" ]
1
2020-02-23T11:57:04.000Z
2020-03-09T11:11:42.000Z
config.py
dysfunctionals/sdi-display
cd7ce012de73034752a4efb70298200dd6d42a39
[ "MIT" ]
1
2020-02-22T23:58:22.000Z
2020-02-22T23:58:22.000Z
config = { "ships": [ { "img": "ship1_1.png", "detail_img": "ship1_1.png", "init_pos": (570, 360), "init_bearing": 45, "detail_pos": (1920 - 288 + 18 + 14, 18 + 20), "controls": [115, 97, 119, 100], "colour" : "Blue", ...
30.785714
59
0.396752
80520868e3b6dbdc4500a19ef0e7ca4c2c886c8d
6,168
py
Python
models/segnet.py
DLWK/CGRNet
a9a65fa192cc9888e7861755313b8b3ac80fa512
[ "MIT" ]
1
2022-03-29T06:32:34.000Z
2022-03-29T06:32:34.000Z
models/segnet.py
DLWK/CGRNet
a9a65fa192cc9888e7861755313b8b3ac80fa512
[ "MIT" ]
null
null
null
models/segnet.py
DLWK/CGRNet
a9a65fa192cc9888e7861755313b8b3ac80fa512
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from collections import OrderedDict class SegNet(nn.Module): def __init__(self,input_nbr,label_nbr): super(SegNet, self).__init__() batchNorm_momentum = 0.1 self.conv11 = nn.Conv2d(input_nbr, 64, kernel_size=3, padding=1) ...
46.37594
80
0.649805
303e5546417460f56171f79300b57a4c2d2f611e
2,724
py
Python
alg_print_tasks.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
8
2019-03-18T06:37:24.000Z
2022-01-30T07:50:58.000Z
alg_print_tasks.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
alg_print_tasks.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function from __future__ import division import numpy as np from ds_queue import Queue class Printer(object): """A printer class.""" def __init__(self, pages_per_minute): self.page_rate = pages_per_minute self.current_task = None self.time_remaining = 0 ...
25.942857
65
0.634728
2383b27ddcd02dbb29faf84023cae0a73d883d8c
807
py
Python
manage.py
jonmsawyer/jsonbench
0b51fa7568d7c638ab94fbd38955f3d9b899e63a
[ "MIT" ]
null
null
null
manage.py
jonmsawyer/jsonbench
0b51fa7568d7c638ab94fbd38955f3d9b899e63a
[ "MIT" ]
null
null
null
manage.py
jonmsawyer/jsonbench
0b51fa7568d7c638ab94fbd38955f3d9b899e63a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jsonbench.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
35.086957
77
0.643123
2ce635935e11178bd4ab2cc980bd81f28747a5b6
2,819
py
Python
python/avi/sdk/samples/get_config_logs.py
thisisshi/sdk
99c52caffeebbfd41f43931fea2b5b1323841892
[ "Apache-2.0" ]
37
2016-03-14T22:27:17.000Z
2022-03-03T05:18:39.000Z
python/avi/sdk/samples/get_config_logs.py
thisisshi/sdk
99c52caffeebbfd41f43931fea2b5b1323841892
[ "Apache-2.0" ]
195
2016-03-14T23:47:55.000Z
2021-05-12T11:28:56.000Z
python/avi/sdk/samples/get_config_logs.py
thisisshi/sdk
99c52caffeebbfd41f43931fea2b5b1323841892
[ "Apache-2.0" ]
50
2016-03-14T05:52:14.000Z
2022-01-06T06:12:00.000Z
import requests import argparse import time from avi.sdk.avi_api import ApiSession def get_config_logs_for_vs(api, vs, only_config=True): url = ('analytics/logs?type=2&filter=co(all,%s)&' 'page_size=10000' % vs) if only_config: url += ('&filter=eq(event_id,[config_create,config_update,' ...
35.2375
79
0.55055
b8fe1990c4e7e3f7df041cae3512702dbeb544ff
395
py
Python
python-icmperror/icmperror/setup.py
krihal/pscheduler
e69e0357797d88d290c78b92b1d99048e73a63e8
[ "Apache-2.0" ]
47
2016-09-28T14:19:10.000Z
2022-03-21T13:26:47.000Z
python-icmperror/icmperror/setup.py
krihal/pscheduler
e69e0357797d88d290c78b92b1d99048e73a63e8
[ "Apache-2.0" ]
993
2016-07-07T19:30:32.000Z
2022-03-21T10:25:52.000Z
python-icmperror/icmperror/setup.py
mfeit-internet2/pscheduler-dev
d2cd4065a6fce88628b0ca63edc7a69f2672dad2
[ "Apache-2.0" ]
36
2016-09-15T09:39:45.000Z
2021-06-23T15:05:13.000Z
#!/usr/bin/env python3 from distutils.core import setup setup(name='icmperror', version='0.1', description='Functions for translating ICMP error codes to enumerated values', url='http://www.perfsonar.net', author='The perfSONAR Development Team', author_email='perfsonar-developer@perfson...
28.214286
84
0.673418
18dbf6ec3babfe896687d15cfe88a5da28a3c3c2
26,441
py
Python
lib/modeling/semseg_headsnvidia-smi.py
zhanwj/multi-task-pytorch
7d57645ec8be0ca0c258cfa99fb788e3cd37f106
[ "MIT" ]
2
2019-06-11T16:16:11.000Z
2020-07-21T10:34:40.000Z
lib/modeling/semseg_headsnvidia-smi.py
zhanwj/multi-task-pytorch
7d57645ec8be0ca0c258cfa99fb788e3cd37f106
[ "MIT" ]
null
null
null
lib/modeling/semseg_headsnvidia-smi.py
zhanwj/multi-task-pytorch
7d57645ec8be0ca0c258cfa99fb788e3cd37f106
[ "MIT" ]
2
2019-05-21T11:07:29.000Z
2019-06-11T16:17:02.000Z
import torch import torch.nn as nn import torchvision from . import resnet as resnet from core.config import cfg from lib.nn import SynchronizedBatchNorm2d import modeling.fcn8s as fcn import modeling.spn as spn class SegmentationModuleBase(nn.Module): def __init__(self): super(SegmentationModuleBase, se...
37.558239
110
0.580689
7ae3b728d5669f6a97c63654aa5e59804440dbe2
1,168
py
Python
version.py
kappazeta/cm_predict
f3093eb58b825ebe45c9830bf7fae985de1e9b2b
[ "Apache-2.0" ]
3
2022-01-06T20:54:11.000Z
2022-03-23T15:03:26.000Z
version.py
kappazeta/cm_predict
f3093eb58b825ebe45c9830bf7fae985de1e9b2b
[ "Apache-2.0" ]
4
2021-09-07T09:05:20.000Z
2022-03-04T09:07:28.000Z
version.py
kappazeta/cm_predict
f3093eb58b825ebe45c9830bf7fae985de1e9b2b
[ "Apache-2.0" ]
1
2021-11-03T14:13:59.000Z
2021-11-03T14:13:59.000Z
# vim: set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab # KappaMask predictor version and changelog. # # Copyright 2021 KappaZeta 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...
41.714286
103
0.758562
d05f52d61dace9a8da82457c1df7187272bac490
13,203
py
Python
tests/shared/core/training_data/story_reader/test_yaml_story_reader.py
SunYanCN/rasa
d522fdaab6414a0aff15a27bf60ac4f4bdbb9e2c
[ "Apache-2.0" ]
null
null
null
tests/shared/core/training_data/story_reader/test_yaml_story_reader.py
SunYanCN/rasa
d522fdaab6414a0aff15a27bf60ac4f4bdbb9e2c
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
tests/shared/core/training_data/story_reader/test_yaml_story_reader.py
SunYanCN/rasa
d522fdaab6414a0aff15a27bf60ac4f4bdbb9e2c
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from typing import Text, List import pytest from rasa.shared.exceptions import FileNotFoundException, YamlSyntaxException import rasa.shared.utils.io from rasa.shared.constants import LATEST_TRAINING_DATA_FORMAT_VERSION from rasa.core import training from rasa.shared.core.constants import RUL...
33.510152
88
0.685677
734fb4f06745b21aa63ae2833e22107320d0a6cc
15,215
py
Python
resources/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/bayes.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/bayes.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
null
null
null
resources/usr/local/lib/python2.7/dist-packages/sklearn/linear_model/bayes.py
edawson/parliament2
2632aa3484ef64c9539c4885026b705b737f6d1e
[ "Apache-2.0" ]
1
2020-07-23T19:26:19.000Z
2020-07-23T19:26:19.000Z
""" Various bayesian regression """ from __future__ import print_function # Authors: V. Michel, F. Pedregosa, A. Gramfort # License: BSD 3 clause from math import log import numpy as np from scipy import linalg from .base import LinearModel from ..base import RegressorMixin from ..utils.extmath import fast_logdet, p...
36.140143
79
0.574827
fde8bb7081184db91f230d6a27f02808f9e73fab
5,049
py
Python
lifemonitor/commands/oauth.py
ilveroluca/life_monitor
61752952cff6be8daea1d87b8f395ccb4dbe424c
[ "MIT" ]
null
null
null
lifemonitor/commands/oauth.py
ilveroluca/life_monitor
61752952cff6be8daea1d87b8f395ccb4dbe424c
[ "MIT" ]
1
2021-04-16T09:08:26.000Z
2021-04-16T09:08:26.000Z
lifemonitor/commands/oauth.py
ilveroluca/life_monitor
61752952cff6be8daea1d87b8f395ccb4dbe424c
[ "MIT" ]
null
null
null
# Copyright (c) 2020-2021 CRS4 # # 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, distribut...
39.755906
92
0.6837
0f58bf9feebc3d76a635f4a79624193c729d282e
240
py
Python
GalaX/login/admin.py
Doublexe/GalaX
1908346a6b60032bdbf494a442f863fd231db8b9
[ "MIT" ]
null
null
null
GalaX/login/admin.py
Doublexe/GalaX
1908346a6b60032bdbf494a442f863fd231db8b9
[ "MIT" ]
null
null
null
GalaX/login/admin.py
Doublexe/GalaX
1908346a6b60032bdbf494a442f863fd231db8b9
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from . import models admin.site.site_header = 'Galax后台' admin.site.index_title = '作者:胡成伟 唐应天 柳蕴珂' #admin.site.register(models.User) #admin.site.register(models.ConfirmString)
21.818182
42
0.779167
a486d4596033d2d1469d511f010171e72e3f834e
15,572
py
Python
reservoir_loop.py
brendano257/boulder_reservoir
e924c76c153e8ad88aa41fa69b75914d2b8242ef
[ "Apache-2.0" ]
null
null
null
reservoir_loop.py
brendano257/boulder_reservoir
e924c76c153e8ad88aa41fa69b75914d2b8242ef
[ "Apache-2.0" ]
null
null
null
reservoir_loop.py
brendano257/boulder_reservoir
e924c76c153e8ad88aa41fa69b75914d2b8242ef
[ "Apache-2.0" ]
null
null
null
import os import asyncio homedir = os.getcwd() locallogdir = 'log' plotdir = 'plots' def print_now(string): """Takes a string and prints it, but appended with - {ISO Datetime of the time it was printed}""" from datetime import datetime print(f"{string} - {datetime.now().isoformat(' ')}") async def chec...
39.224181
145
0.573208
eb9c65b74f493eb3ccd4d8c4616662c542319ff2
537
py
Python
setup.py
Enchan1207/CANClientLib
790001ac6052f6c655b11cdf758607d24c27cea9
[ "MIT" ]
null
null
null
setup.py
Enchan1207/CANClientLib
790001ac6052f6c655b11cdf758607d24c27cea9
[ "MIT" ]
3
2021-08-11T22:06:12.000Z
2021-08-19T09:16:10.000Z
setup.py
Enchan1207/CANClientLib
790001ac6052f6c655b11cdf758607d24c27cea9
[ "MIT" ]
null
null
null
# # pipが読んでライブラリの諸々を設定するためのファイル # import glob import setuptools, os setuptools.setup( name="CANClientLib", version="0.2.0", license="MIT Licence", description="CAN Client library", author="Enchan1207", url="https://github.com/Enchan1207/CANClientLib", packages=setuptools.find_packages("src"...
25.571429
95
0.689013
5ff55118bf185e69061c23958a95010a5643ce1e
59
py
Python
optimizer/__init__.py
hslee1539/NN
8b60a858c1137785ef684dd548b008bcc46b8d6d
[ "MIT" ]
null
null
null
optimizer/__init__.py
hslee1539/NN
8b60a858c1137785ef684dd548b008bcc46b8d6d
[ "MIT" ]
null
null
null
optimizer/__init__.py
hslee1539/NN
8b60a858c1137785ef684dd548b008bcc46b8d6d
[ "MIT" ]
null
null
null
from . import interface_module from .SGD_module import SGD
19.666667
30
0.830508
491acd05a4ac111eed223e6c0397c4c3693b88bc
1,501
py
Python
calamari_ocr/ocr/savedmodel/migrations/version0to1.py
zhangjiulong/calamari
ecd29d46f807a3ad406f0a65bdc3283e358c3585
[ "Apache-2.0" ]
1
2021-03-24T09:32:56.000Z
2021-03-24T09:32:56.000Z
calamari_ocr/ocr/savedmodel/migrations/version0to1.py
zhangjiulong/calamari
ecd29d46f807a3ad406f0a65bdc3283e358c3585
[ "Apache-2.0" ]
null
null
null
calamari_ocr/ocr/savedmodel/migrations/version0to1.py
zhangjiulong/calamari
ecd29d46f807a3ad406f0a65bdc3283e358c3585
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger(__name__) def rename(checkpoint, replace_from, replace_to, add_prefix, dry_run, force_prefix=False): import tensorflow as tf tf.compat.v1.reset_default_graph() with tf.compat.v1.Session() as sess: for var_name, _ in tf.compat.v1.train.list_variables(chec...
35.738095
90
0.586942
660625c9bf75613f59799b778d95dda246e34a79
18,902
py
Python
python/paddle/fluid/tests/unittests/test_deform_conv2d.py
Wangzheee/NX_Paddle
98498d650ca0945d2d045e7e8353079600d4bfb2
[ "Apache-2.0" ]
2
2021-09-07T05:00:00.000Z
2021-12-09T06:56:19.000Z
python/paddle/fluid/tests/unittests/test_deform_conv2d.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_deform_conv2d.py
AFLee/Paddle
311b3b44fc7d51d4d66d90ab8a3fc0d42231afda
[ "Apache-2.0" ]
1
2021-12-09T06:56:27.000Z
2021-12-09T06:56:27.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...
33.813953
82
0.55063
2acfe184bde1591671d2944819a27e45a1203e53
13,601
py
Python
release/scripts/addons/mesh_extra_tools/mesh_check.py
noorbeast/BlenderSource
65ebecc5108388965678b04b43463b85f6c69c1d
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2019-03-20T13:10:46.000Z
2019-05-15T20:00:31.000Z
engine/2.80/scripts/addons/mesh_extra_tools/mesh_check.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
engine/2.80/scripts/addons/mesh_extra_tools/mesh_check.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
# gpl author: Pistiwique bl_info = { "name": "Mesh Check BGL edition", "description": "Display the triangles and ngons of the mesh", "author": "Pistiwique", "version": (1, 0, 1), "blender": (2, 75, 0), "location": "3D View(s) > Properties > Shading", "category": "3D View" } import bpy ...
36.660377
101
0.438277
93b39a9e1914785384afd0471fe693872ada7582
1,506
py
Python
checkov/terraform/checks/resource/kubernetes/DefaultNamespace.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/DefaultNamespace.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
checkov/terraform/checks/resource/kubernetes/DefaultNamespace.py
pmalkki/checkov
b6cdf386dd976fe27c16fed6d550756a678a5d7b
[ "Apache-2.0" ]
null
null
null
from typing import Any from checkov.common.models.enums import CheckCategories, CheckResult from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck class DefaultNamespace(BaseResourceCheck): def __init__(self): # CIS-1.5 5.7.4 name = "The default namespace should not ...
43.028571
112
0.648738
a78e5ed126bb71732b7fa10dbe264b1287857fd9
70,054
gyp
Python
net/net.gyp
Scopetta197/chromium
b7bf8e39baadfd9089de2ebdc0c5d982de4a9820
[ "BSD-3-Clause" ]
212
2015-01-31T11:55:58.000Z
2022-02-22T06:35:11.000Z
net/net.gyp
Scopetta197/chromium
b7bf8e39baadfd9089de2ebdc0c5d982de4a9820
[ "BSD-3-Clause" ]
5
2015-03-27T14:29:23.000Z
2019-09-25T13:23:12.000Z
net/net.gyp
Scopetta197/chromium
b7bf8e39baadfd9089de2ebdc0c5d982de4a9820
[ "BSD-3-Clause" ]
221
2015-01-07T06:21:24.000Z
2022-02-11T02:51:12.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, 'linux_link_kerberos%': 0, 'conditions': [ ['chromeos==1 or OS=="android"', { # Disable...
37.744612
94
0.594984
93477b630d32f08205dc636baf79485650df17fb
596
py
Python
botorch/utils/multi_objective/box_decompositions/__init__.py
dme65/botorch
508f215bfe987373924e39444c8fb544d5132178
[ "MIT" ]
null
null
null
botorch/utils/multi_objective/box_decompositions/__init__.py
dme65/botorch
508f215bfe987373924e39444c8fb544d5132178
[ "MIT" ]
null
null
null
botorch/utils/multi_objective/box_decompositions/__init__.py
dme65/botorch
508f215bfe987373924e39444c8fb544d5132178
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from botorch.utils.multi_objective.box_decompositions.non_dominated import ( FastNondominatedPartitioning, Non...
27.090909
76
0.790268
b18d2e6002e0168d817adf39a70e676444ddc4b6
98
py
Python
app/util/chunker.py
robert-huang/taylen
123b09f6ef697f97e4c33eee263edb3cfb4e2555
[ "MIT" ]
null
null
null
app/util/chunker.py
robert-huang/taylen
123b09f6ef697f97e4c33eee263edb3cfb4e2555
[ "MIT" ]
null
null
null
app/util/chunker.py
robert-huang/taylen
123b09f6ef697f97e4c33eee263edb3cfb4e2555
[ "MIT" ]
null
null
null
def chunker(seq, size: int): return (seq[pos:pos + size] for pos in range(0, len(seq), size))
32.666667
68
0.642857
15cb5d665f39cb294aee431259529b7d511ef0d9
1,952
py
Python
src/adage/dagstate.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
31
2018-07-12T10:33:39.000Z
2021-12-01T22:49:42.000Z
src/adage/dagstate.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
10
2021-02-15T20:13:43.000Z
2022-02-03T00:48:34.000Z
src/adage/dagstate.py
lukasheinrich/dagger
353c15cd97ff5150eff128f34cf1666c78826524
[ "MIT" ]
3
2019-05-31T18:04:15.000Z
2021-08-23T12:00:18.000Z
import logging import adage.nodestate as nodestate log = logging.getLogger(__name__) def node_ran_and_failed(nodeobj): ''' :param nodeobj: the node object :return: - ``True`` if node has been processed and failed - ``False`` in all other cases ''' return nodeobj.state == nodestate...
32
112
0.693135
12d18498a43e4d1a626fcd3f70dd0abbf998f8d6
6,494
py
Python
client/python/lib/tests/tfs_compat_grpc/test_grpc_responses.py
BrightTux/model_server
cdbeb464c78b161e5706490fc18b0a8cf16138fb
[ "Apache-2.0" ]
305
2018-10-01T12:41:28.000Z
2020-04-24T10:36:08.000Z
client/python/lib/tests/tfs_compat_grpc/test_grpc_responses.py
BrightTux/model_server
cdbeb464c78b161e5706490fc18b0a8cf16138fb
[ "Apache-2.0" ]
61
2018-11-15T09:23:01.000Z
2020-04-23T09:29:56.000Z
client/python/lib/tests/tfs_compat_grpc/test_grpc_responses.py
BrightTux/model_server
cdbeb464c78b161e5706490fc18b0a8cf16138fb
[ "Apache-2.0" ]
67
2018-10-13T14:33:48.000Z
2020-04-22T19:01:32.000Z
# # Copyright (c) 2021 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...
45.732394
99
0.721435
d4cfc3ddc014993a9b70e145a39d22433abd1e1a
28,593
py
Python
src/sentry/web/forms/accounts.py
dpoirier/sentry
19bdf8aff1cd230fb6f6b32f13340d49ae16f67c
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/forms/accounts.py
dpoirier/sentry
19bdf8aff1cd230fb6f6b32f13340d49ae16f67c
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/forms/accounts.py
dpoirier/sentry
19bdf8aff1cd230fb6f6b32f13340d49ae16f67c
[ "BSD-3-Clause" ]
null
null
null
""" sentry.web.forms.accounts ~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import pytz import six from datetime import datetime from django import forms from django.conf im...
34.039286
360
0.610954
3b0d8d39e933952bc542bd161b8d54bce3601224
708
py
Python
tests/test_variant.py
jeremymcrae/vcfsyncer
3233df0b4ea760d066a7ade7d315441bf4c01fac
[ "MIT" ]
1
2019-01-25T19:07:05.000Z
2019-01-25T19:07:05.000Z
tests/test_variant.py
jeremymcrae/vcfsyncer
3233df0b4ea760d066a7ade7d315441bf4c01fac
[ "MIT" ]
null
null
null
tests/test_variant.py
jeremymcrae/vcfsyncer
3233df0b4ea760d066a7ade7d315441bf4c01fac
[ "MIT" ]
null
null
null
import unittest from collections import namedtuple from vcfsyncer.variant import MultiVariantRecord Var = namedtuple('Var', ['chrom', 'pos', 'id', 'ref', 'alts', 'qual', 'filter', 'info', 'format', 'samples']) class TestVCFVariant(unittest.TestCase): def test_missing_alt(self): x = Var('1', 100, '.'...
39.333333
81
0.511299
71721ad0e941345f5d447e750599274cae8b4f97
15,625
py
Python
SDUc for Sarbecoviruses MacLean_Lytras_etal_2020/sduc_CpGbdicts.py
spyros-lytras/dinuq
7a3b637ba6f6cec6211ec9784cdbbfe3029d3544
[ "MIT" ]
11
2020-07-07T12:37:06.000Z
2022-03-24T15:49:06.000Z
SDUc for Sarbecoviruses MacLean_Lytras_etal_2020/sduc_CpGbdicts.py
spyros-lytras/dinuq
7a3b637ba6f6cec6211ec9784cdbbfe3029d3544
[ "MIT" ]
4
2020-03-18T19:34:51.000Z
2020-10-30T11:32:07.000Z
SDUc for Sarbecoviruses MacLean_Lytras_etal_2020/sduc_CpGbdicts.py
spyros-lytras/dinuq
7a3b637ba6f6cec6211ec9784cdbbfe3029d3544
[ "MIT" ]
2
2020-03-27T10:11:32.000Z
2022-03-23T13:11:50.000Z
from Bio import SeqIO from Bio.Seq import Seq import random import math #total number of nucleotides used in the estimator ntsamples = 19200 #### NB #### #because of the computational intensity of the estimations below #the bridge ntsamples are only 19200 instead of 19200000 used for #pos1 and pos2. This proble...
88.778409
10,925
0.662848
b6092826ca672abb53a4e77adba71a6300a18143
1,010
py
Python
EindhovenDS/hack9/util/util_func.py
dvalp/coding-practice
bc22de6dfc7590616fd38d029648ebf1ff102feb
[ "MIT" ]
null
null
null
EindhovenDS/hack9/util/util_func.py
dvalp/coding-practice
bc22de6dfc7590616fd38d029648ebf1ff102feb
[ "MIT" ]
null
null
null
EindhovenDS/hack9/util/util_func.py
dvalp/coding-practice
bc22de6dfc7590616fd38d029648ebf1ff102feb
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.python.framework import ops from tensorflow.python.ops import clip_ops def minimize(loss_batch, learningrate=0.0005): """The following plots for every trainable variable - Histogram of the entries of the Tensor - Histogram of the gradient over the Tensor - ...
42.083333
104
0.707921
5fba3d3bb2edbee3d96baf6e38c1c84633cd140f
5,207
py
Python
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/main/python/scripts/red_variables.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
null
null
null
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/main/python/scripts/red_variables.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
null
null
null
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/main/python/scripts/red_variables.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 Nokia Solutions and Networks # Licensed under the Apache License, Version 2.0, # see license.txt file for details. # def get_global_variables(): import robot import tempfile import os # Global variables copied from robot.variables.__init__.py global_variables = { '${TEMP...
33.165605
122
0.595737
3267925e6a4864d89a1c91885ffa8c297dc93c2c
1,045
py
Python
lxserv/passify_UltralightDestroy.py
9bstudios/mecco_passify
1d7231a215e7c651a3d6242890694cf9456a4f70
[ "MIT" ]
2
2018-06-15T14:23:23.000Z
2021-03-08T18:00:01.000Z
lxserv/passify_UltralightDestroy.py
9bstudios/mecco_passify
1d7231a215e7c651a3d6242890694cf9456a4f70
[ "MIT" ]
null
null
null
lxserv/passify_UltralightDestroy.py
9bstudios/mecco_passify
1d7231a215e7c651a3d6242890694cf9456a4f70
[ "MIT" ]
null
null
null
# python import lx, lxu.command, traceback, passify, lxifc class cmd_destroy(lxu.command.BasicCommand): _first_run = True def __init__(self): lxu.command.BasicCommand.__init__(self) def cmd_Flags (self): return lx.symbol.fCMD_MODEL | lx.symbol.fCMD_UNDO def CMD_EXE(self, msg, flags...
24.880952
86
0.647847
90d6988a021fc1c61a8d079165ff33bd8d976bee
2,097
py
Python
tests/test_versioning.py
Svenito/versup
b918a1a0d731f6ed90a0141efeff8fb5fdca8d15
[ "MIT" ]
3
2020-04-15T15:31:40.000Z
2020-09-19T08:09:51.000Z
tests/test_versioning.py
Svenito/versup
b918a1a0d731f6ed90a0141efeff8fb5fdca8d15
[ "MIT" ]
11
2020-04-15T16:11:09.000Z
2020-12-11T11:09:47.000Z
tests/test_versioning.py
Svenito/versup
b918a1a0d731f6ed90a0141efeff8fb5fdca8d15
[ "MIT" ]
1
2020-09-02T02:58:03.000Z
2020-09-02T02:58:03.000Z
from versup import __version__ import pytest from versup import versioning def test_get_new_version_explicit(): assert "1.6.88" == versioning.get_new_version("1.2.3", "1.6.88", [], False) def test_get_new_version_explicit_raise(): with pytest.raises(Exception) as e_info: versioning.get_new_version("...
31.772727
84
0.664282
cbdfc54dc619ffb1beddda508572f1de9b67140e
7,971
py
Python
montepython/importance_sampling.py
ivandebono/montepython_public_3.2dev_Python3
16771c3d37faaa3f80b171c01d78da56a75aa3d9
[ "MIT" ]
null
null
null
montepython/importance_sampling.py
ivandebono/montepython_public_3.2dev_Python3
16771c3d37faaa3f80b171c01d78da56a75aa3d9
[ "MIT" ]
null
null
null
montepython/importance_sampling.py
ivandebono/montepython_public_3.2dev_Python3
16771c3d37faaa3f80b171c01d78da56a75aa3d9
[ "MIT" ]
null
null
null
""" .. module:: importance_sampling :synopsis: Perform an Importance Sampling from an existing folder .. moduleauthor:: Benjamin Audren <benjamin.audren@epfl.ch> """ try: from collections import OrderedDict as od except ImportError: from ordereddict import OrderedDict as od from copy import copy from multi...
41.087629
83
0.672939
d275af3eb0a054d0368763cea75dd2e50e3d2c91
4,490
py
Python
eval_calibration/get_acquisition_stat.py
lyn1874/region_based_active_learning
c4813086b1eb6f8ebb2df26e5c697652b450b775
[ "MIT" ]
7
2020-10-26T06:33:17.000Z
2022-03-26T12:32:31.000Z
eval_calibration/get_acquisition_stat.py
lyn1874/region_based_active_learning
c4813086b1eb6f8ebb2df26e5c697652b450b775
[ "MIT" ]
null
null
null
eval_calibration/get_acquisition_stat.py
lyn1874/region_based_active_learning
c4813086b1eb6f8ebb2df26e5c697652b450b775
[ "MIT" ]
3
2020-10-26T06:33:19.000Z
2021-09-27T07:58:29.000Z
import numpy as np import os from select_regions import selection as SPR_Region_Im from data_utils.update_data import give_init_train_and_val_data, update_training_data, prepare_the_new_uncertain_input import pickle def collect_number_acquired_pixels_region(path_input, total_select_folder_init, stage, start_step): ...
60.675676
118
0.721381
5c650367acaca386bb7883ced28d525569ce46bd
300
py
Python
start_client.py
TrixiS/lolder
05c642551b1f42d40d22bcbc6a7a6cfe1d89efe7
[ "MIT" ]
null
null
null
start_client.py
TrixiS/lolder
05c642551b1f42d40d22bcbc6a7a6cfe1d89efe7
[ "MIT" ]
null
null
null
start_client.py
TrixiS/lolder
05c642551b1f42d40d22bcbc6a7a6cfe1d89efe7
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication from src.client import MainWindow, LoginDialog app = QApplication(sys.argv) login_dialog = LoginDialog() window = MainWindow() window.show() api_client = login_dialog.exec() window.api_client = api_client window.load_files() sys.exit(app.exec())
21.428571
46
0.793333
6348abfbd17f69a4b4a4881012f9b371623b7b19
2,262
py
Python
tacotron2/text/__init__.py
Moon-sung-woo/Tacotron2_ParallelWaveGAN_korean
437c9748673f2e5cb84e99884e8d0d916f269c9e
[ "BSD-3-Clause" ]
3
2020-12-22T01:42:27.000Z
2021-06-17T13:08:58.000Z
tacotron2/text/__init__.py
Moon-sung-woo/Tacotron2_ParallelWaveGAN_korean
437c9748673f2e5cb84e99884e8d0d916f269c9e
[ "BSD-3-Clause" ]
null
null
null
tacotron2/text/__init__.py
Moon-sung-woo/Tacotron2_ParallelWaveGAN_korean
437c9748673f2e5cb84e99884e8d0d916f269c9e
[ "BSD-3-Clause" ]
null
null
null
""" from https://github.com/keithito/tacotron """ import re from tacotron2.text import cleaners from tacotron2.text.symbols import symbols # Mappings from symbol to numeric ID and vice versa: _symbol_to_id = {s: i for i, s in enumerate(symbols)} _id_to_symbol = {i: s for i, s in enumerate(symbols)} # Regular express...
29.763158
93
0.68435
d27888bcc574ccf0249e4b9ba511b9d5b399743c
154
py
Python
api_crawler/__init__.py
pawnhearts/aio_api_crawler
543c4edb8be77bbe9e2ac017fca9a9d6020b51b8
[ "BSD-3-Clause" ]
2
2020-10-31T07:53:20.000Z
2020-11-11T22:32:44.000Z
api_crawler/__init__.py
pawnhearts/aio_api_crawler
543c4edb8be77bbe9e2ac017fca9a9d6020b51b8
[ "BSD-3-Clause" ]
null
null
null
api_crawler/__init__.py
pawnhearts/aio_api_crawler
543c4edb8be77bbe9e2ac017fca9a9d6020b51b8
[ "BSD-3-Clause" ]
null
null
null
from api_crawler.endpoint.json_endpoint import JsonEndpoint __author__ = """robotnaoborot""" __email__ = "robotnaoborot@gmail.com" __version__ = "0.1.3"
25.666667
59
0.785714
adeabb85bd326cd2737f58857802e66770b7e9c4
8,787
py
Python
src/scancode/utils.py
doc22940/scancode-toolk
588b9a9411730e99d763d715ae9f38575744aaee
[ "Apache-2.0", "CC0-1.0" ]
1
2020-06-24T16:03:52.000Z
2020-06-24T16:03:52.000Z
src/scancode/utils.py
doc22940/scancode-toolk
588b9a9411730e99d763d715ae9f38575744aaee
[ "Apache-2.0", "CC0-1.0" ]
1
2021-06-02T02:50:07.000Z
2021-06-02T02:50:07.000Z
src/scancode/utils.py
hwpplayers/scancode-toolkit
72850bd57a1a841e5a6a6e4120223a00c4189046
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# # Copyright (c) 2018 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
37.075949
94
0.686241
512f258ab3abf9f65aed2efe41ccb6a4ea5d5aa4
3,173
py
Python
src/test/conftest.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
76
2020-04-03T01:21:47.000Z
2021-12-06T02:54:53.000Z
src/test/conftest.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
7
2020-04-06T04:44:10.000Z
2021-05-17T12:38:15.000Z
src/test/conftest.py
olirice/nebulo
de9b043fe66d0cb872c5c0f2aca3c5c6f20918a7
[ "MIT" ]
2
2020-10-23T10:25:16.000Z
2020-10-28T14:16:57.000Z
# pylint: disable=redefined-outer-name from __future__ import annotations import importlib from typing import Callable, Optional import pytest from nebulo.gql.sqla_to_gql import sqla_models_to_graphql_schema from nebulo.server.starlette import create_app from nebulo.sql import table_base from nebulo.sql.reflection.co...
29.654206
110
0.736527
c3ed6879ef86a1d19dda0d3009ca3d60333426d9
234
py
Python
LPP/lmsff/lms_app/models.py
teamdiniz/Projeto-devops-lms
e6b95b621a0d998d761ec9fa1654d443940391dd
[ "Apache-2.0" ]
null
null
null
LPP/lmsff/lms_app/models.py
teamdiniz/Projeto-devops-lms
e6b95b621a0d998d761ec9fa1654d443940391dd
[ "Apache-2.0" ]
null
null
null
LPP/lmsff/lms_app/models.py
teamdiniz/Projeto-devops-lms
e6b95b621a0d998d761ec9fa1654d443940391dd
[ "Apache-2.0" ]
null
null
null
from django.db import models from lms_app.professor import * from lms_app.disciplina import * from lms_app.disciplinaofertada import * from lms_app.Aluno import *
8.357143
41
0.57265
98f7a7737dd9566d45a563ab3045cd1143454123
26,980
py
Python
src/python/pants/pantsd/process_manager.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/pantsd/process_manager.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
null
null
null
src/python/pants/pantsd/process_manager.py
revl/pants
8ad83e4ca80c095d44efceafd8b41e575da39c65
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import functools import logging import os import signal import subprocess import time import traceback from contextlib import contextmanager from typing import Optional import psutil fro...
41.253823
107
0.635878
09750213a93d161c18a3be8a5bf64e5789d68932
1,620
py
Python
Zoocmd/build_exe.py
helicontech/zoo
a33ba547f553bcce415f7a54bd89c444f82e48ee
[ "Apache-2.0" ]
2
2017-05-01T07:35:24.000Z
2018-04-12T13:36:03.000Z
Zoocmd/build_exe.py
helicontech/zoo
a33ba547f553bcce415f7a54bd89c444f82e48ee
[ "Apache-2.0" ]
2
2017-03-23T17:28:37.000Z
2018-06-07T06:38:08.000Z
Zoocmd/build_exe.py
helicontech/zoo
a33ba547f553bcce415f7a54bd89c444f82e48ee
[ "Apache-2.0" ]
3
2016-06-22T11:11:16.000Z
2019-10-25T15:09:46.000Z
# -*- coding: utf-8 -*- # A very simple setup script to create a single executable # # hello.py is a very simple 'Hello, world' type script which also displays the # environment in which the script runs # # Run the build process by running the command 'python setup.py build' # # If everything works well you should fin...
29.454545
78
0.627778
25e3ca65c705e75fdd9d547fd40adc587743c435
177
py
Python
virtual/bin/django-admin.py
sharonandisi/hoodwatch
6be8d5ab791f2857d465c1ecd3512522784510e2
[ "PostgreSQL" ]
null
null
null
virtual/bin/django-admin.py
sharonandisi/hoodwatch
6be8d5ab791f2857d465c1ecd3512522784510e2
[ "PostgreSQL" ]
null
null
null
virtual/bin/django-admin.py
sharonandisi/hoodwatch
6be8d5ab791f2857d465c1ecd3512522784510e2
[ "PostgreSQL" ]
null
null
null
#!/home/sharon/Documents/python/Django/Hoodwatch/virtual/bin/python3.6 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
29.5
70
0.79661
d8b8c4850efe40c143d4b9b1e2b9cd2200e08a92
1,679
py
Python
venv/Lib/site-packages/pybrain3/rl/environments/shipsteer/northwardtask.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pybrain3/rl/environments/shipsteer/northwardtask.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pybrain3/rl/environments/shipsteer/northwardtask.py
ishatserka/MachineLearningAndDataAnalysisCoursera
e82e772df2f4aec162cb34ac6127df10d14a625a
[ "MIT" ]
null
null
null
__author__ = 'Martin Felder, felder@in.tum.de' from pybrain3.rl.environments import EpisodicTask from .shipsteer import ShipSteeringEnvironment class GoNorthwardTask(EpisodicTask): """ The task of balancing some pole(s) on a cart """ def __init__(self, env=None, maxsteps=1000): """ :key env:...
31.679245
93
0.533651
51e08530e2a925a5f2e429ff8accc36827b9f332
4,686
py
Python
tests/test_extra.py
JanmanX/mistune
e2c16048d7ffb2fa8b657f33ecd2936e6076e25c
[ "BSD-3-Clause" ]
null
null
null
tests/test_extra.py
JanmanX/mistune
e2c16048d7ffb2fa8b657f33ecd2936e6076e25c
[ "BSD-3-Clause" ]
null
null
null
tests/test_extra.py
JanmanX/mistune
e2c16048d7ffb2fa8b657f33ecd2936e6076e25c
[ "BSD-3-Clause" ]
null
null
null
import mistune def test_escape(): ret = mistune.markdown('<div>**foo**</div>', escape=True) assert '&gt;' in ret ret = mistune.markdown('this **foo** is <b>bold</b>', escape=True) assert '&gt;' in ret def test_linebreak(): ret = mistune.markdown('this **foo** \nis me') assert '<br>' not in ...
28.925926
79
0.60286
5358539eb614d4e22a3ddb4ff48807bd755b6f8d
3,946
py
Python
CenterNet/centernet.py
tommyjohn1001/CenterNet-pytorch-lightning
145fa88807b10c5917a19668639e9b35d8d0df28
[ "Apache-2.0" ]
null
null
null
CenterNet/centernet.py
tommyjohn1001/CenterNet-pytorch-lightning
145fa88807b10c5917a19668639e9b35d8d0df28
[ "Apache-2.0" ]
null
null
null
CenterNet/centernet.py
tommyjohn1001/CenterNet-pytorch-lightning
145fa88807b10c5917a19668639e9b35d8d0df28
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentParser import pytorch_lightning as pl import torch from CenterNet.models import create_model class CenterNet(pl.LightningModule): def __init__(self, arch): super().__init__() self.arch = arch # Backbone specific args self.head_conv = 256 if "dla" in ...
33.159664
90
0.571211
b091a4a2fd13e84b901a46c73ee8924005056125
711
py
Python
versions/1.1.3/blog/api/v1/views/article_views.py
mnp-fuf/django-bona-blog
ca9afd301345ece8074ccb696959feb6b8ca14b3
[ "MIT" ]
92
2020-07-08T05:24:53.000Z
2022-03-16T05:53:47.000Z
versions/1.1.3/blog/api/v1/views/article_views.py
mnp-fuf/django-bona-blog
ca9afd301345ece8074ccb696959feb6b8ca14b3
[ "MIT" ]
9
2020-07-12T15:16:52.000Z
2022-03-12T09:48:10.000Z
versions/1.1.3/blog/api/v1/views/article_views.py
mnp-fuf/django-bona-blog
ca9afd301345ece8074ccb696959feb6b8ca14b3
[ "MIT" ]
45
2020-07-10T09:20:45.000Z
2022-03-19T18:53:18.000Z
# Third-party apps import from rest_framework import generics # Blog app imports from blog.models.article_models import Article from ..serializers.article_serializers import ArticleSerializer class ArticleList(generics.ListAPIView): queryset = Article.objects.filter(status='PUBLISHED') serializer_class = Art...
29.625
71
0.68917
25a92e61cbf9776c30b3a94c8a7697b0ce4c472a
13,201
py
Python
info/modules/admin/views.py
GalphaXie/FlaskProject
ddde875add0934060fcdebaf3f3cf4461d28714b
[ "MIT" ]
null
null
null
info/modules/admin/views.py
GalphaXie/FlaskProject
ddde875add0934060fcdebaf3f3cf4461d28714b
[ "MIT" ]
null
null
null
info/modules/admin/views.py
GalphaXie/FlaskProject
ddde875add0934060fcdebaf3f3cf4461d28714b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # file: views.py # Created by Guang at 19-9-15 # description: # *-* coding:utf8 *-* import time from datetime import datetime, timedelta from flask import render_template, request, session, redirect, url_for, current_app, g, jsonify, abort from info import constants, db from info.models import Use...
29.205752
119
0.625786
68281fd0d67678650c4ca758dfb3d1c19b91804f
5,993
py
Python
pypykatz/remote/cmdhelper.py
m0xbf/pypykatz-copy
39d8b06861d9ccd615e8107707f56f6556fb15a0
[ "MIT" ]
5
2019-04-20T05:34:01.000Z
2019-10-12T01:26:09.000Z
pypykatz/remote/cmdhelper.py
m0xbf/pypykatz-copy
39d8b06861d9ccd615e8107707f56f6556fb15a0
[ "MIT" ]
1
2018-09-13T15:20:29.000Z
2018-09-13T15:20:29.000Z
pypykatz/remote/cmdhelper.py
m0xbf/pypykatz-copy
39d8b06861d9ccd615e8107707f56f6556fb15a0
[ "MIT" ]
8
2018-09-11T22:02:22.000Z
2019-11-27T08:52:20.000Z
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import os import json import glob import ntpath import traceback from pypykatz import logging from pypykatz.commons.common import UniversalEncoder class RemoteCMDHelper: def __init__(self): self.live_keywords = ['share','session','localgroup'] self....
37.223602
174
0.686468
f1a1e8481a998da7176e4f971368fbf868dc2c57
28,617
py
Python
uestc_eams/cli.py
Sunmxt/UESTC-EAMS
760a7387a5d73967e45a0b9d211acb383bb50fe1
[ "Apache-2.0" ]
1
2020-07-25T13:53:35.000Z
2020-07-25T13:53:35.000Z
uestc_eams/cli.py
Sunmxt/UESTC-EAMS
760a7387a5d73967e45a0b9d211acb383bb50fe1
[ "Apache-2.0" ]
null
null
null
uestc_eams/cli.py
Sunmxt/UESTC-EAMS
760a7387a5d73967e45a0b9d211acb383bb50fe1
[ "Apache-2.0" ]
null
null
null
''' Commandline interface to accessing UESTC EAMS system. ''' #import re import os import os.path import getopt import sqlite3 import pickle from .session import Login, EAMSSession from .base import ELECT, CANCEL, RecordMethodException ''' Some constants ''' ERR_OK = 0 ERR_PARAMS = 1 ERR_NETWORK = 2 ERR_D...
35.549068
151
0.525317
f8eb5adbeecb3347527d932f785083d5d6ee80f6
3,331
py
Python
heron/instance/src/python/utils/misc/communicator.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
2
2016-07-04T07:10:31.000Z
2018-03-28T16:59:02.000Z
heron/instance/src/python/utils/misc/communicator.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
1
2019-05-08T22:30:16.000Z
2019-05-08T22:30:16.000Z
heron/instance/src/python/utils/misc/communicator.py
Munyola/incubator-heron
4aa106c6eaef9c60ed2d692e41998adda8115e6f
[ "Apache-2.0" ]
1
2017-06-05T17:55:45.000Z
2017-06-05T17:55:45.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- # 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...
32.980198
97
0.698889
5b04bbd2bf9e835c93fb1c113cd2b0eeb617a49d
219
py
Python
04/abc176_b.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
1
2021-03-29T08:30:19.000Z
2021-03-29T08:30:19.000Z
04/abc176_b.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
04/abc176_b.py
koshin117/python-learning
68dd99e2f72fff7507a874c11511415fef3c9354
[ "MIT" ]
null
null
null
def main(): # input N = input() # compute As = list(map(int, N)) x = sum(As) # output if x % 9 == 0: print("Yes") else: print("No") if __name__ == '__main__': main()
14.6
26
0.438356
1deb7829b3603678194bda9709250905a193dd78
6,401
bzl
Python
mediapipe/framework/port/build_config.bzl
hangqiu/MLEXray
11762df1b1113e86f44d81f201d54fb6ac3a2242
[ "MIT" ]
2
2022-02-11T23:49:58.000Z
2022-03-15T20:24:46.000Z
mediapipe/framework/port/build_config.bzl
hangqiu/ML-EXray
23d0ff7cd39854bbd8fcc8e050bb3c1787edb056
[ "MIT" ]
null
null
null
mediapipe/framework/port/build_config.bzl
hangqiu/ML-EXray
23d0ff7cd39854bbd8fcc8e050bb3c1787edb056
[ "MIT" ]
null
null
null
# TODO: Split build rules into several individual files to make them # more manageable. """.bzl file for mediapipe open source build configs.""" load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library", "py_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") def provided_args(**kwargs): "...
37
101
0.645993
a6a12f4a1bc8a7dbb5f12ad75b074abbde80b3f9
4,074
py
Python
scrapy/tests/test_squeue.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
1
2016-01-01T14:58:12.000Z
2016-01-01T14:58:12.000Z
scrapy/tests/test_squeue.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
null
null
null
scrapy/tests/test_squeue.py
emschorsch/scrapy
acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f
[ "BSD-3-Clause" ]
null
null
null
from scrapy.tests import test_utils_queue as t from scrapy.squeue import MarshalFifoDiskQueue, MarshalLifoDiskQueue, PickleFifoDiskQueue, PickleLifoDiskQueue from scrapy.item import Item, Field from scrapy.http import Request from scrapy.contrib.loader import ItemLoader class TestItem(Item): name = Field() def te...
27.714286
110
0.656357
e27b8950074e95e5b0b9e477cd1eaaa72d88d067
2,235
py
Python
talos/parameters/DistributeParamSpace.py
abhijithneilabraham/talos
4f60dbbbedede240a086a7a6cd1e7a2b17db87dd
[ "MIT" ]
null
null
null
talos/parameters/DistributeParamSpace.py
abhijithneilabraham/talos
4f60dbbbedede240a086a7a6cd1e7a2b17db87dd
[ "MIT" ]
null
null
null
talos/parameters/DistributeParamSpace.py
abhijithneilabraham/talos
4f60dbbbedede240a086a7a6cd1e7a2b17db87dd
[ "MIT" ]
null
null
null
class DistributeParamSpace: def __init__(self, params, param_keys, random_method='uniform_mersenne', fraction_limit=None, round_limit=None, time_limit=None, boolean_limit=None, ma...
31.928571
78
0.561521
a5677cc3e26a0afe7994228cdcf04d4fdd78a039
1,503
py
Python
packages/python/plotly/plotly/validators/parcats/line/__init__.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/parcats/line/__init__.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/parcats/line/__init__.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._showscale import ShowscaleValidator from ._shape import ShapeValidator from ._reversescale import ReversescaleValidator from ._hovertemplate import HovertemplateValidator from ._colorsrc import Colorsr...
35.785714
56
0.685961
f6bb122b26bab596fe3bdfc57d9dfdc92dcf59a0
1,611
py
Python
dset_loaders/domainnet.py
Luodian/Learning-Invariant-Representations-and-Risks
f3058fe50e86660ca0c17ba0df41ece9af64c557
[ "MIT" ]
17
2021-04-22T03:24:38.000Z
2022-03-30T03:12:09.000Z
dset_loaders/domainnet.py
Luodian/Learning-Invariant-Representations-and-Risks
f3058fe50e86660ca0c17ba0df41ece9af64c557
[ "MIT" ]
5
2021-12-10T10:12:26.000Z
2022-03-31T00:01:58.000Z
dset_loaders/domainnet.py
Luodian/Learning-Invariant-Representations-and-Risks
f3058fe50e86660ca0c17ba0df41ece9af64c557
[ "MIT" ]
3
2021-05-19T06:12:14.000Z
2021-12-17T09:27:49.000Z
import os.path import torch.utils.data as data import torchvision from PIL import Image import numpy as np import random from utils.utils_module import TwoCropsTransform # what about re-calculate these values for each dataset? class DomainnetParams(object): num_channels = 3 image_size = 256 # 384, 216 mea...
32.877551
64
0.62694
ace66bb5e5137d33b80ab90b3e952c496403ab32
42,563
py
Python
src/azure-cli/azure/cli/command_modules/rdbms/custom.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/rdbms/custom.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/rdbms/custom.py
ZengTaoxu/azure-cli
6be96de450da5ac9f07aafb22dd69880bea04792
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
47.45039
372
0.682941
0cfd5617cea570c341260657e682a798f8fe660d
39,456
py
Python
sympy/printing/tests/test_mathml.py
Bavish2201/sympy
f472bcc07e8af4080d0e78057dd8beb948d8766f
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_mathml.py
Bavish2201/sympy
f472bcc07e8af4080d0e78057dd8beb948d8766f
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_mathml.py
Bavish2201/sympy
f472bcc07e8af4080d0e78057dd8beb948d8766f
[ "BSD-3-Clause" ]
null
null
null
from sympy import diff, Integral, Limit, sin, Symbol, Integer, Rational, cos, \ tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh, E, I, oo, \ pi, GoldenRatio, EulerGamma, Sum, Eq, Ne, Ge, Lt, Float, Matrix, Basic from sympy.printing.mathml import mathml, MathMLContentPrinter, MathMLPresentationPrint...
41.929862
100
0.644794
1cb725db1e03751f1731e54a351ab4cfb6e30e96
10,178
py
Python
network-tests/test_deletes.py
victor-tucci/beldex-storage-server
b7726f775696bc964623b083a24947df0fb97674
[ "MIT" ]
2
2021-08-15T17:07:06.000Z
2021-08-25T10:34:04.000Z
network-tests/test_deletes.py
victor-tucci/beldex-storage-server
b7726f775696bc964623b083a24947df0fb97674
[ "MIT" ]
null
null
null
network-tests/test_deletes.py
victor-tucci/beldex-storage-server
b7726f775696bc964623b083a24947df0fb97674
[ "MIT" ]
9
2021-07-22T10:38:33.000Z
2022-01-27T10:22:18.000Z
import pyoxenmq import ss import time import base64 import json from nacl.encoding import HexEncoder, Base64Encoder from nacl.hash import blake2b from nacl.signing import VerifyKey import nacl.exceptions def test_delete_all(omq, random_mn, sk, exclude): swarm = ss.get_swarm(omq, random_mn, sk) mns = ss.random_...
36.092199
105
0.599921
b4a1da18a8b3134a3394469a538f20ce9c9dc610
341
py
Python
Script_db/ler_porta_e_atualiza_db.py
Collab-Barco-Solar/poente-software
8ec5a6539c3fe385ce434d3eac813c34ee6b8e76
[ "Unlicense" ]
1
2021-04-01T21:04:47.000Z
2021-04-01T21:04:47.000Z
Script_db/ler_porta_e_atualiza_db.py
Collab-Barco-Solar/poente-software
8ec5a6539c3fe385ce434d3eac813c34ee6b8e76
[ "Unlicense" ]
4
2020-10-20T00:07:24.000Z
2022-03-25T19:22:01.000Z
Script_db/ler_porta_e_atualiza_db.py
Collab-Barco-Solar/poente-software
8ec5a6539c3fe385ce434d3eac813c34ee6b8e76
[ "Unlicense" ]
null
null
null
import serial import sqlite3 db = sqlite3.connect('teste.db') cursor = db.cursor() porta = "/dev/ttyUSB0" velocidade = 9600 conexao = serial.Serial(porta,velocidade) while(1): leitura = conexao.read() cursor.execute(""" INSERT INTO dados (num) VALUES(?) """,(leitura,)) db.commit() p...
14.208333
41
0.639296