hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 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.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7551478291616d2c374c6237ba8190235b7df550 | 4,609 | py | Python | examples/quickstart_mxnet/client.py | Chris-george-anil/flower | 98fb2fcde273c1226cc1f2e1638c1e4d8f35815c | [
"Apache-2.0"
] | 895 | 2020-03-22T20:34:16.000Z | 2022-03-31T15:20:42.000Z | examples/quickstart_mxnet/client.py | Chris-george-anil/flower | 98fb2fcde273c1226cc1f2e1638c1e4d8f35815c | [
"Apache-2.0"
] | 322 | 2020-02-19T10:16:33.000Z | 2022-03-31T09:49:08.000Z | examples/quickstart_mxnet/client.py | Chris-george-anil/flower | 98fb2fcde273c1226cc1f2e1638c1e4d8f35815c | [
"Apache-2.0"
] | 234 | 2020-03-31T10:52:16.000Z | 2022-03-31T14:04:42.000Z | """Flower client example using MXNet for MNIST classification.
The code is generally adapted from:
https://mxnet.apache.org/api/python/docs/tutorials/packages/gluon/image/mnist.html
"""
import flwr as fl
import numpy as np
import mxnet as mx
from mxnet import nd
from mxnet import gluon
from mxnet.gluon import nn
fro... | 33.642336 | 87 | 0.62378 |
755336617545c70fccce90a28a65b00fb6da7a58 | 2,116 | py | Python | driver/eater.py | riastrad/newSeer | 0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13 | [
"MIT"
] | null | null | null | driver/eater.py | riastrad/newSeer | 0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13 | [
"MIT"
] | 5 | 2017-03-27T17:22:16.000Z | 2017-04-25T03:14:56.000Z | driver/eater.py | riastrad/newSeer | 0f9841c7e7bb555c27c1ed2fc1ea7623f8e30f13 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# @Author: Josh Erb <josh.erb>
# @Date: 27-Feb-2017 11:02
# @Email: josh.erb@excella.com
# @Last modified by: josh.erb
# @Last modified time: 27-Feb-2017 11:02
"""
Main driver script for ingesting RSS data. Uses the ArticleFeed() object
from the feeder.py script and a dictionary of public... | 29.802817 | 92 | 0.577977 |
7553e2b1473100abeaecabefbde8805eee7ba8aa | 10,033 | py | Python | utils/adscrawl.py | nmiles2718/PACMan_dist | 62f495f8d506919146a16750072a523aaafb3c53 | [
"MIT"
] | null | null | null | utils/adscrawl.py | nmiles2718/PACMan_dist | 62f495f8d506919146a16750072a523aaafb3c53 | [
"MIT"
] | null | null | null | utils/adscrawl.py | nmiles2718/PACMan_dist | 62f495f8d506919146a16750072a523aaafb3c53 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os,sys,pdb,scipy,glob
from pylab import *
import urllib, urllib2
import xml.dom.minidom
import datetime
if __name__=='__main__':
journals=['+SPIE','+PASP','-APJ','-AJ','-NATUR','-SCI','-MNRAS','-A&A','-PhDT']
ref_stem = ','.join(journals)
print ref_stem
... | 41.118852 | 128 | 0.549686 |
755568c409e234d158d2eba42024254a2b722778 | 919 | py | Python | app/main.py | DanNduati/fastapi | f575d3f51e91aaf2d342e43c613795c01bd9229c | [
"MIT"
] | 1 | 2021-12-21T16:27:16.000Z | 2021-12-21T16:27:16.000Z | app/main.py | DanNduati/FastAPI-social-API | c4270a035b263e434ab49de98c183060e81e0181 | [
"MIT"
] | 1 | 2021-12-18T14:54:16.000Z | 2021-12-19T13:56:11.000Z | app/main.py | DanNduati/fastapi | f575d3f51e91aaf2d342e43c613795c01bd9229c | [
"MIT"
] | null | null | null | from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.routers import auth
from . import models
from .database import engine
from .routers import posts, users, auth, votes
#create our posts table if its not present
models.Base.metadata.create_all(bind=engine)
# aplication instance
app... | 23.564103 | 50 | 0.710555 |
7558bfa8001faf2bdbf433c4fb30d2420e02470d | 1,068 | py | Python | callbacks/visdom_callback.py | AIS-Bonn/temporal_latticenet | 02b60a69c82da909417f32fdd184321945a604d1 | [
"MIT"
] | null | null | null | callbacks/visdom_callback.py | AIS-Bonn/temporal_latticenet | 02b60a69c82da909417f32fdd184321945a604d1 | [
"MIT"
] | null | null | null | callbacks/visdom_callback.py | AIS-Bonn/temporal_latticenet | 02b60a69c82da909417f32fdd184321945a604d1 | [
"MIT"
] | null | null | null | from callbacks.callback import *
from callbacks.vis import * | 53.4 | 162 | 0.700375 |
755b8168748f1f7d664c1eb56c8d4b37b99d430f | 1,451 | py | Python | src/mnist_backbone.py | StevenHuang2020/PyTorch_Learning | 292508f6794cfb23e0767139c1c703b9525cdb35 | [
"MIT"
] | null | null | null | src/mnist_backbone.py | StevenHuang2020/PyTorch_Learning | 292508f6794cfb23e0767139c1c703b9525cdb35 | [
"MIT"
] | null | null | null | src/mnist_backbone.py | StevenHuang2020/PyTorch_Learning | 292508f6794cfb23e0767139c1c703b9525cdb35 | [
"MIT"
] | null | null | null | #python3 Steven 12/05/20,Auckland,NZ
#pytorch backbone models
import torch
from commonTorch import ClassifierCNN_NetBB
from summaryModel import summaryNet
from backbones import*
if __name__ == '__main__':
main()
| 29.612245 | 64 | 0.674707 |
755d1072e648dc7b70b3ca63fee0d190c94c9d5d | 953 | py | Python | user_app/model/foot_models.py | syz247179876/e_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 7 | 2021-04-10T13:20:56.000Z | 2022-03-29T15:00:29.000Z | user_app/model/foot_models.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 9 | 2021-05-11T03:53:31.000Z | 2022-03-12T00:58:03.000Z | user_app/model/foot_models.py | syz247179876/E_mall | f94e39e091e098242342f532ae371b8ff127542f | [
"Apache-2.0"
] | 2 | 2020-11-24T08:59:22.000Z | 2020-11-24T14:10:59.000Z | # -*- coding: utf-8 -*-
# @Time : 2021/2/19 4:22
# @Author :
# @File : foot_models.py
# @Software: Pycharm
from django.contrib.auth import get_user_model
from django.db import models
from django.db.models import Manager
from django.utils.translation import gettext_lazy as _
from shop_app.models.commodity_models impor... | 27.228571 | 94 | 0.679958 |
755e3ccae90e818b543931a7a80b80c4d6d28e00 | 1,569 | py | Python | src/fftIfftTests.py | vberthiaume/vblandr | dbd139e7b6172b9dbc97707ff4874bc398de7aaa | [
"Apache-2.0"
] | null | null | null | src/fftIfftTests.py | vberthiaume/vblandr | dbd139e7b6172b9dbc97707ff4874bc398de7aaa | [
"Apache-2.0"
] | 10 | 2016-08-29T20:06:05.000Z | 2016-10-27T20:40:58.000Z | src/fftIfftTests.py | vberthiaume/vblandr | dbd139e7b6172b9dbc97707ff4874bc398de7aaa | [
"Apache-2.0"
] | null | null | null | import subprocess as sp
import scikits.audiolab
import numpy as np
from scipy.fftpack import fft, ifft
from scipy.io import wavfile
#--CONVERT MP3 TO WAV------------------------------------------
song_path = '/home/gris/Music/vblandr/test_small/punk/07 Alkaline Trio - Only Love.mp3'
command = [ 'ffmpeg',
'-i'... | 35.659091 | 124 | 0.615679 |
7560a82fac322ef2d8c50e83c01dd45192035ed7 | 372 | py | Python | MIC/LCD12864/urls.py | blacksea3/MainMIC | 02f226bce63c6b85f6922420fff4da885e6c24a3 | [
"Apache-2.0"
] | null | null | null | MIC/LCD12864/urls.py | blacksea3/MainMIC | 02f226bce63c6b85f6922420fff4da885e6c24a3 | [
"Apache-2.0"
] | null | null | null | MIC/LCD12864/urls.py | blacksea3/MainMIC | 02f226bce63c6b85f6922420fff4da885e6c24a3 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import patterns, include, url
from django.http import HttpResponseRedirect
from LCD12864.views import *
urlpatterns = patterns('',
url(r'index/$', index),
url(r'search/$', search),
url(r'update_database/$', update_database),
url(r'$',auto_redirect),
) | 24.8 | 51 | 0.704301 |
75621ce86b3dd347f7fcc091107874d8c219b771 | 3,243 | py | Python | src/schema.py | DanielCollins/pgtq | a8b0931a8a2538da8da01a8f4fd17e57ea772715 | [
"0BSD"
] | 12 | 2017-10-11T07:41:04.000Z | 2021-02-19T06:19:29.000Z | src/schema.py | DanielCollins/pgtq | a8b0931a8a2538da8da01a8f4fd17e57ea772715 | [
"0BSD"
] | 33 | 2017-10-29T04:23:23.000Z | 2019-01-30T05:20:57.000Z | src/schema.py | DanielCollins/pgtq | a8b0931a8a2538da8da01a8f4fd17e57ea772715 | [
"0BSD"
] | null | null | null | """SQL for storing and working on tasks."""
SQL_TEMPLATE = """
CREATE TABLE IF NOT EXISTS pgtq_{0}_scheduled (
key INTEGER PRIMARY KEY,
not_before TIMESTAMP WITHOUT TIME ZONE NOT NULL,
task JSON NOT NULL,
attempts INTEGER NOT NULL,
max_retries INTEGER
);
CREATE INDEX IF NOT EXISTS
ix_pgtq_{0}_scheduled_no... | 29.216216 | 72 | 0.668208 |
7562fcbbdac668092cdb6d5710b89f8c5f901a32 | 6,259 | py | Python | visgraph/tests/test_graphcore.py | vEpiphyte/vivisect | 14947a53c6781175f0aa83d49cc16c524a2e23a3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-23T19:23:17.000Z | 2020-12-23T19:23:17.000Z | visgraph/tests/test_graphcore.py | vEpiphyte/vivisect | 14947a53c6781175f0aa83d49cc16c524a2e23a3 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | visgraph/tests/test_graphcore.py | vEpiphyte/vivisect | 14947a53c6781175f0aa83d49cc16c524a2e23a3 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-12-23T19:23:58.000Z | 2020-12-23T19:23:58.000Z | import unittest
import visgraph.graphcore as v_graphcore
s1paths = [
('a','c','f'),
('a','b','d','f'),
('a','b','e','f'),
]
s2paths = [
('a','b'),
('a','b','c'),
]
| 28.321267 | 95 | 0.537466 |
f3287946bcd7a026ba36e730bf9b3548a5dd79b1 | 4,029 | py | Python | chatty_goose/agents/chat.py | saileshnankani/chatty-goose | ef3a27119d6825a96ae85d1453d6b4eac4ed22b7 | [
"Apache-2.0"
] | 24 | 2021-03-08T09:53:59.000Z | 2022-03-17T06:47:06.000Z | chatty_goose/agents/chat.py | saileshnankani/chatty-goose | ef3a27119d6825a96ae85d1453d6b4eac4ed22b7 | [
"Apache-2.0"
] | 10 | 2021-03-08T13:35:54.000Z | 2021-11-15T03:32:37.000Z | chatty_goose/agents/chat.py | saileshnankani/chatty-goose | ef3a27119d6825a96ae85d1453d6b4eac4ed22b7 | [
"Apache-2.0"
] | 8 | 2021-03-03T00:37:18.000Z | 2021-08-01T00:50:47.000Z | import logging
from chatty_goose.cqr import Hqe, Ntr
from chatty_goose.pipeline import RetrievalPipeline
from chatty_goose.settings import HqeSettings, NtrSettings
from chatty_goose.types import CqrType, PosFilter
from parlai.core.agents import Agent, register_agent
from pyserini.search import SimpleSearcher
if __n... | 44.274725 | 131 | 0.641598 |
f32993767d59acc690a30337b62cd5533087e465 | 5,639 | py | Python | analysis/utils.py | VUB-HYDR/2022_Vanderkelen_etal_GMD | eceb5507a00c96d559b9611125935577ab84991b | [
"MIT"
] | null | null | null | analysis/utils.py | VUB-HYDR/2022_Vanderkelen_etal_GMD | eceb5507a00c96d559b9611125935577ab84991b | [
"MIT"
] | null | null | null | analysis/utils.py | VUB-HYDR/2022_Vanderkelen_etal_GMD | eceb5507a00c96d559b9611125935577ab84991b | [
"MIT"
] | null | null | null | """
Utils and functions to for MizuRoute postprocessing on Cheyenne
Inne Vanderkelen - March 2021
"""
import numpy as np
def set_plot_param():
"""Set my own customized plotting parameters"""
import matplotlib as mpl
mpl.rc('xtick',labelsize=12)
mpl.rc('ytick',labelsize=12)
mpl.rc('axes',tit... | 34.384146 | 124 | 0.609328 |
f32a75ee5c791e6098d35828898f7b16caa86fd3 | 210 | py | Python | django/web/admin.py | priyankcommits/priyank.co.uk | 9ca022ef102c156d1bfe943809d97b1cc447e464 | [
"MIT"
] | null | null | null | django/web/admin.py | priyankcommits/priyank.co.uk | 9ca022ef102c156d1bfe943809d97b1cc447e464 | [
"MIT"
] | 4 | 2021-03-09T09:57:40.000Z | 2022-02-12T13:42:46.000Z | django/web/admin.py | priyankcommits/priyank.co.uk | 9ca022ef102c156d1bfe943809d97b1cc447e464 | [
"MIT"
] | null | null | null | from django.contrib import admin
from web.models import Subscribers, Article, Post, Profile
admin.site.register(Subscribers)
admin.site.register(Article)
admin.site.register(Post)
admin.site.register(Profile)
| 26.25 | 58 | 0.82381 |
f32b83762755b987c17ac30aaedffee878d37ce9 | 875 | py | Python | django_safe_project/safe_settings.py | Ketibansapi/sensitivity-djtest | b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959 | [
"MIT"
] | null | null | null | django_safe_project/safe_settings.py | Ketibansapi/sensitivity-djtest | b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959 | [
"MIT"
] | null | null | null | django_safe_project/safe_settings.py | Ketibansapi/sensitivity-djtest | b4a5b52fb07f25b9a5c62cf86d4ab19fc5609959 | [
"MIT"
] | null | null | null | """This module defines the settings to be altered and how to handle them.
Each setting should contain a dict with the following keys:
'value': The content to be placed in `local_settings.py`
'default': The content will be set as the default value in `settings.py`
`<SETTING_NAME> = getattr(local_setting... | 43.75 | 80 | 0.691429 |
f32c7c7a86c83603395a612781c31e2718a2e153 | 14,611 | py | Python | fhirstore/fhirstore.py | arkhn/pyfhirstore | dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6 | [
"Apache-2.0"
] | 15 | 2019-10-04T14:29:42.000Z | 2021-12-27T09:15:07.000Z | fhirstore/fhirstore.py | arkhn/pyfhirstore | dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6 | [
"Apache-2.0"
] | 34 | 2019-10-08T16:37:26.000Z | 2020-11-30T17:51:59.000Z | fhirstore/fhirstore.py | arkhn/pyfhirstore | dd43b6d7db600f95d81dc83ae0a6e6de78ff02c6 | [
"Apache-2.0"
] | 1 | 2020-12-14T06:13:19.000Z | 2020-12-14T06:13:19.000Z | import sys
import logging
from typing import Union, Dict, Optional
import json
from elasticsearch import Elasticsearch
from elasticsearch.exceptions import (
NotFoundError as ESNotFoundError,
RequestError as ESRequestError,
AuthenticationException as ESAuthenticationException,
)
import pydantic
from pymong... | 39.596206 | 100 | 0.605024 |
f32db992fe4b60b3413127ecc2439e2e3dfbd02f | 1,276 | py | Python | model/base/vgg_base.py | lizhaoliu-Lec/ImageAestheticAssessmentPyTorch | 3ddb8408d978543b9609bdb4976b8e944057d449 | [
"Apache-2.0"
] | 7 | 2021-04-17T06:57:50.000Z | 2022-03-15T08:12:11.000Z | model/base/vgg_base.py | lizhaoliu-Lec/ImageAestheticAssessmentPyTorch | 3ddb8408d978543b9609bdb4976b8e944057d449 | [
"Apache-2.0"
] | null | null | null | model/base/vgg_base.py | lizhaoliu-Lec/ImageAestheticAssessmentPyTorch | 3ddb8408d978543b9609bdb4976b8e944057d449 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from torchvision.models import vgg11
from torchvision.models import vgg13
from torchvision.models import vgg16
from torchvision.models import vgg19
from torchvision.models import vgg11_bn
from torchvision.models import vgg13_bn
from torchvision.models import vgg16_bn
from torchvision... | 26.040816 | 91 | 0.668495 |
f330826045b7dfd8da77b8e1ad7b89465919a84a | 3,684 | py | Python | Binary Tree/7.1-binary_tree.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | Binary Tree/7.1-binary_tree.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | Binary Tree/7.1-binary_tree.py | neeveermoree/data_structures_and_algorithms | 8aa37cade53539909383fb9d4952b13ca19c931a | [
"MIT"
] | null | null | null | from utils_queue import Queue
"""
Tree structure:
1
2 3
4 5 6 7
"""
node4 = _Node(4)
node5 = _Node(5)
node6 = _Node(6)
node7 = _Node(7)
node2 = _Node(2, node4, node5)
node3 = _Node(3, node6, node... | 24.891892 | 57 | 0.580347 |
f3319761fd1182fd6665e156c585de85bd502534 | 35,625 | py | Python | simpleserver.py | pixelheartz/SimpleServer | 8fe21248b3a797aa5725d9e032752b94afa8180d | [
"MIT"
] | null | null | null | simpleserver.py | pixelheartz/SimpleServer | 8fe21248b3a797aa5725d9e032752b94afa8180d | [
"MIT"
] | null | null | null | simpleserver.py | pixelheartz/SimpleServer | 8fe21248b3a797aa5725d9e032752b94afa8180d | [
"MIT"
] | 1 | 2020-05-08T19:34:56.000Z | 2020-05-08T19:34:56.000Z | NAMAFILE = 'Telkomsel Opok v1'
REQ = ''
LHOST = '127.0.0.1'
LPORT = 8080
FQUERY = ('dGVsa29tLnR1eXVsY3J5cHRvcy5jb20vaXBrLWJpbi9pcGsucG5nL25wYXpvbmUvMDAvaHR0cC8=').decode('base64')
MQUERY = ''
BQUERY = ''
RQUERY = ('di53aGF0c2FwcC5jb20uYmVyYmFnaW1hbmZhYXQuY28uaWQ=').decode('base64')
CQUERY = ''
IQUERY = ''
IMETHOD = 0
I... | 34.688413 | 175 | 0.510428 |
f33285e15ede8369b4a0525755bb9a17e11b734e | 472 | py | Python | wishlist/domain/product/test/test_create_product.py | guiyllw/wishlist-luizalabs | 0bc9f594cd7973fcb39e839e5540232cf1f718f9 | [
"Apache-2.0"
] | null | null | null | wishlist/domain/product/test/test_create_product.py | guiyllw/wishlist-luizalabs | 0bc9f594cd7973fcb39e839e5540232cf1f718f9 | [
"Apache-2.0"
] | null | null | null | wishlist/domain/product/test/test_create_product.py | guiyllw/wishlist-luizalabs | 0bc9f594cd7973fcb39e839e5540232cf1f718f9 | [
"Apache-2.0"
] | null | null | null | from wishlist.domain.product.ports import CreateProduct
from wishlist.test.helpers import AsyncMock
| 24.842105 | 69 | 0.716102 |
f332e5b3dab0d4a4b710e2086f5d14ccd27126f6 | 41 | py | Python | pbconcept/__init__.py | ScarletPan/probase-concept | 57f91998876f0085dd0acf34112fb2389563d0c2 | [
"MIT"
] | 18 | 2019-10-28T06:39:50.000Z | 2022-02-28T12:54:08.000Z | pbconcept/__init__.py | ScarletPan/probase-concept | 57f91998876f0085dd0acf34112fb2389563d0c2 | [
"MIT"
] | null | null | null | pbconcept/__init__.py | ScarletPan/probase-concept | 57f91998876f0085dd0acf34112fb2389563d0c2 | [
"MIT"
] | null | null | null | from .conceptualize import ProbaseConcept | 41 | 41 | 0.902439 |
f3334adaaf08994c3d3ed59dde038655efaef8ef | 3,798 | py | Python | src/MATGenerator.py | yumataesu/TouchDesigner-ShaderBuilder | 5f9e8300603afc91cd60bf0c91061d11401520d1 | [
"MIT"
] | 1 | 2022-02-13T13:19:56.000Z | 2022-02-13T13:19:56.000Z | src/MATGenerator.py | yumataesu/TouchDesigner-ShaderBuilder | 5f9e8300603afc91cd60bf0c91061d11401520d1 | [
"MIT"
] | null | null | null | src/MATGenerator.py | yumataesu/TouchDesigner-ShaderBuilder | 5f9e8300603afc91cd60bf0c91061d11401520d1 | [
"MIT"
] | null | null | null | import platform
| 26.013699 | 112 | 0.614007 |
f333fbce56cacfc6b06521c303bbc2eacd4a8772 | 7,707 | py | Python | tests/test_modifiers_mujoco.py | MoritzTaylor/simmod | 76b2186c39940ce2d08aa36f3d06bfe3640d6c00 | [
"MIT"
] | 2 | 2021-07-05T14:08:09.000Z | 2021-10-01T09:48:37.000Z | tests/test_modifiers_mujoco.py | MoritzTaylor/simmod | 76b2186c39940ce2d08aa36f3d06bfe3640d6c00 | [
"MIT"
] | null | null | null | tests/test_modifiers_mujoco.py | MoritzTaylor/simmod | 76b2186c39940ce2d08aa36f3d06bfe3640d6c00 | [
"MIT"
] | null | null | null | import pytest
import xml.etree.ElementTree as ET
import numpy as np
from mujoco_py import load_model_from_xml, MjSim, load_model_from_path
from simmod.modification.mujoco import MujocoBodyModifier
from simmod.modification.mujoco import MujocoJointModifier
TEST_MODEL_FURUTA_PATH = 'assets/test_mujoco_furuta.xml'
TEST... | 36.014019 | 102 | 0.682367 |
f334941419dcf2217c67d295f355f106aacc212c | 1,265 | py | Python | typelike/tests/core/test_list.py | LockhartLab/typelike | bc959a5348133f24e5f5df3f4f7976fc062b2e05 | [
"MIT"
] | null | null | null | typelike/tests/core/test_list.py | LockhartLab/typelike | bc959a5348133f24e5f5df3f4f7976fc062b2e05 | [
"MIT"
] | null | null | null | typelike/tests/core/test_list.py | LockhartLab/typelike | bc959a5348133f24e5f5df3f4f7976fc062b2e05 | [
"MIT"
] | null | null | null | """
test_list.py
written in Python3
author: C. Lockhart
"""
from typelike.core import ListLike
from hypothesis import given
import hypothesis.strategies as st
import numpy as np
import pandas as pd
import unittest
# Contents
__all__ = [
'TestList'
]
# Test typelike/core/list.py | 28.111111 | 94 | 0.680632 |
f334c373215cba10b03d648d2ce22cbe3103246a | 484 | py | Python | create_db.py | jmprkables/webapp | 72cdb4b0a8c2d4822e36280421776ca706f724ab | [
"MIT"
] | null | null | null | create_db.py | jmprkables/webapp | 72cdb4b0a8c2d4822e36280421776ca706f724ab | [
"MIT"
] | null | null | null | create_db.py | jmprkables/webapp | 72cdb4b0a8c2d4822e36280421776ca706f724ab | [
"MIT"
] | null | null | null | import rethinkdb as r
conn = r.connect("192.168.6.26", 28015)
try:
r.db_drop("hackiiitd").run(conn)
print("deleted old db")
except:
print("inital creation")
r.db_create("hackiiitd").run(conn)
r.db("hackiiitd").table_create("fall").run(conn)
print("."),
r.db("hackiiitd").table_create("medicine").run(conn)
print(".... | 23.047619 | 71 | 0.683884 |
f335a88172969ef4b07ebc46cdb0148f28a15f96 | 8,820 | py | Python | mixtas/mixtas/pedidos/views.py | stad-team/stad-mixtas | 68513f247eeedd7f731d18339891146634619af1 | [
"MIT"
] | null | null | null | mixtas/mixtas/pedidos/views.py | stad-team/stad-mixtas | 68513f247eeedd7f731d18339891146634619af1 | [
"MIT"
] | null | null | null | mixtas/mixtas/pedidos/views.py | stad-team/stad-mixtas | 68513f247eeedd7f731d18339891146634619af1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
STAD TEAM
~~~~~~~~~~
"""
from __future__ import absolute_import, unicode_literals, print_function
import win32print
import win32ui
from escpos import printer
from datetime import datetime
from .models import Mesas, DetalleOrden, Simbolos, Menu, Folio
from rest_framework.viewsets import M... | 30.413793 | 125 | 0.566667 |
f335ec77eb35c369571cab5128f06c7e945d0e70 | 4,856 | py | Python | thumbor_riak/storage.py | dhardy92/thumbor_riak | d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f | [
"MIT"
] | null | null | null | thumbor_riak/storage.py | dhardy92/thumbor_riak | d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f | [
"MIT"
] | 1 | 2017-02-28T16:08:07.000Z | 2017-03-02T13:44:07.000Z | thumbor_riak/storage.py | dhardy92/thumbor_riak | d3ae5d1ac832dd8a1a0681b3b0c85384868dfe6f | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/dhardy92/thumbor_riak/
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2012 dhard92@github.com
from json import loads, dumps
from datetime import datetime, timedelta
from thumbo... | 33.489655 | 108 | 0.576606 |
f336821713a91066ae6212929dccb33669ef98c9 | 60 | py | Python | app/settings.py | tomcrane/wikipedia-to-iiif | 69f2fc2239622c9e9e267ff8283baf79fa613eed | [
"MIT"
] | 7 | 2017-12-11T14:10:45.000Z | 2019-05-30T08:41:13.000Z | app/settings.py | tomcrane/wikipedia-to-iiif | 69f2fc2239622c9e9e267ff8283baf79fa613eed | [
"MIT"
] | null | null | null | app/settings.py | tomcrane/wikipedia-to-iiif | 69f2fc2239622c9e9e267ff8283baf79fa613eed | [
"MIT"
] | null | null | null | import os
EXAMPLE_VARIABLE = os.getenv("EXAMPLE_VARIABLE")
| 15 | 48 | 0.8 |
f337866812b474c09e2202fff6887c80f6dcd01a | 31,982 | py | Python | sdk/python/pulumi_databricks/mws_customer_managed_keys.py | pulumi/pulumi-databricks | 43580d4adbd04b72558f368ff0eef3d03432ebc1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_databricks/mws_customer_managed_keys.py | pulumi/pulumi-databricks | 43580d4adbd04b72558f368ff0eef3d03432ebc1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_databricks/mws_customer_managed_keys.py | pulumi/pulumi-databricks | 43580d4adbd04b72558f368ff0eef3d03432ebc1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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, overload
from . import ... | 49.738725 | 272 | 0.616253 |
f337e2d1736dd597f92bbbb31718a4f5323d8684 | 2,656 | py | Python | setup.py | batterseapower/hdf5storage | 9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7 | [
"BSD-2-Clause"
] | null | null | null | setup.py | batterseapower/hdf5storage | 9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7 | [
"BSD-2-Clause"
] | null | null | null | setup.py | batterseapower/hdf5storage | 9ccec8818e11c2a66a0e834bd2be2e3d3a6761b7 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2013-2020, Freja Nordsiek
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions ... | 42.15873 | 110 | 0.707078 |
f3389d6e189436dc0b18edac8152f2bc9327e39e | 1,040 | py | Python | mminterconcept/construction/molecule.py | Lnaden/mminterconcept | 83c5bc75f93113443d2126551e4df3940637536d | [
"MIT"
] | null | null | null | mminterconcept/construction/molecule.py | Lnaden/mminterconcept | 83c5bc75f93113443d2126551e4df3940637536d | [
"MIT"
] | null | null | null | mminterconcept/construction/molecule.py | Lnaden/mminterconcept | 83c5bc75f93113443d2126551e4df3940637536d | [
"MIT"
] | null | null | null | '''
Author: Andrew-AbiMansour
DOC: Oct 21, 2019
This module defines a molecule for MD simulation/analysis
'''
from qcelemental.models import molecule as qc_molecule
from pydantic import Schema
from typing import Optional, Tuple, List
| 40 | 118 | 0.707692 |
f338e98f4e08bde2d9d5d0b8509480a59736e419 | 3,192 | py | Python | polaris_health/util/log.py | pjns-lb/polaris-gslb | d5c4f1865ceb4311a6c36c7c6d23462565864e98 | [
"BSD-3-Clause"
] | 225 | 2015-09-02T16:53:34.000Z | 2022-03-19T16:52:32.000Z | polaris_health/util/log.py | pjns-lb/polaris-gslb | d5c4f1865ceb4311a6c36c7c6d23462565864e98 | [
"BSD-3-Clause"
] | 60 | 2015-09-08T09:39:00.000Z | 2022-02-01T10:42:34.000Z | polaris_health/util/log.py | pjns-lb/polaris-gslb | d5c4f1865ceb4311a6c36c7c6d23462565864e98 | [
"BSD-3-Clause"
] | 77 | 2015-09-08T16:23:21.000Z | 2022-03-19T15:57:23.000Z | # -*- coding: utf-8 -*-
import logging
import logging.config
from polaris_health import Error, config
__all__ = [ 'setup', 'setup_debug' ]
LOG = logging.getLogger(__name__)
LOG.addHandler(logging.NullHandler())
FORMAT = '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
def setup():
"""Setup logging"""
... | 23.470588 | 68 | 0.518797 |
f3393e3733e864fdd4beef58afdb68b438e60fb1 | 722 | py | Python | chia/outbound_message.py | ssysm/ChiaNodeSync | bb574e7b20c79074ef8c2f56e5a177d169d1b843 | [
"Apache-2.0"
] | 2 | 2021-05-20T19:33:26.000Z | 2021-10-13T03:23:29.000Z | chia/outbound_message.py | ssysm/ChiaNodeSync | bb574e7b20c79074ef8c2f56e5a177d169d1b843 | [
"Apache-2.0"
] | null | null | null | chia/outbound_message.py | ssysm/ChiaNodeSync | bb574e7b20c79074ef8c2f56e5a177d169d1b843 | [
"Apache-2.0"
] | 1 | 2021-07-11T13:14:50.000Z | 2021-07-11T13:14:50.000Z | from dataclasses import dataclass
from enum import IntEnum
from typing import Any, Optional
from chia.protocols.protocol_message_types import ProtocolMessageTypes
from chia.util.ints import uint8, uint16
from chia.util.streamable import Streamable, streamable
def make_msg(msg_type: ProtocolMessageTypes, data: Any) -... | 24.896552 | 70 | 0.742382 |
f3395aa0c5cc601517f789fbb804e0b43eadb2eb | 4,147 | py | Python | osbrain/tests/test_agent_sync_publications_handlers.py | RezaBehzadpour/osbrain | 1b7061bfa6bcfa2176685081fd39c5c971107d51 | [
"Apache-2.0"
] | 176 | 2016-07-12T20:05:32.000Z | 2022-01-18T10:12:07.000Z | osbrain/tests/test_agent_sync_publications_handlers.py | RezaBehzadpour/osbrain | 1b7061bfa6bcfa2176685081fd39c5c971107d51 | [
"Apache-2.0"
] | 358 | 2016-08-04T09:21:35.000Z | 2021-10-15T07:20:07.000Z | osbrain/tests/test_agent_sync_publications_handlers.py | RezaBehzadpour/osbrain | 1b7061bfa6bcfa2176685081fd39c5c971107d51 | [
"Apache-2.0"
] | 50 | 2016-07-17T11:52:36.000Z | 2021-05-10T14:48:45.000Z | """
Test file for synchronized publications handlers.
"""
import pytest
from osbrain import Agent
from osbrain import run_agent
from osbrain.helper import wait_agent_attr
from .common import append_received
def test_sync_pub_handler_exists(nsproxy):
"""
When binding a SYNC_PUB socket without a handler, an... | 30.718519 | 79 | 0.67591 |
f33ba675e1eea0466ae4a3b552dee73fb4344ba0 | 598 | py | Python | events/migrations/0004_auto_20180425_1508.py | Akash1S/meethub | 3517ec7b4e03ca1fe50e7053fd46349f0b31740c | [
"MIT"
] | 428 | 2018-05-11T16:36:33.000Z | 2022-02-05T15:29:23.000Z | events/migrations/0004_auto_20180425_1508.py | dmkibuka/meethub | 296a1494ab6f2828b61f0b8e4ad80308306fc23a | [
"MIT"
] | 15 | 2018-05-14T16:33:29.000Z | 2021-06-09T17:28:14.000Z | events/migrations/0004_auto_20180425_1508.py | dmkibuka/meethub | 296a1494ab6f2828b61f0b8e4ad80308306fc23a | [
"MIT"
] | 53 | 2018-05-12T10:41:24.000Z | 2022-02-23T12:15:33.000Z | # Generated by Django 2.0.4 on 2018-04-25 15:08
from django.db import migrations, models
| 26 | 109 | 0.595318 |
f33c856e8fe096a3d7793a81f6b7f5325ea10432 | 1,543 | py | Python | tirma/__main__.py | franpoz/tirma | 40905210cbfe6ab2dc40d3f5707850e390ccabb5 | [
"MIT"
] | null | null | null | tirma/__main__.py | franpoz/tirma | 40905210cbfe6ab2dc40d3f5707850e390ccabb5 | [
"MIT"
] | null | null | null | tirma/__main__.py | franpoz/tirma | 40905210cbfe6ab2dc40d3f5707850e390ccabb5 | [
"MIT"
] | null | null | null | import os
import yaml
from argparse import ArgumentParser
from os import path
from tirma.tirma import TIRMA
if __name__ == '__main__':
current_path = os.path.dirname(os.path.realpath(__file__))
ap = ArgumentParser(description='Sherlock Inject&Recovery tool')
ap.add_argument('--dir', default="./", help="W... | 51.433333 | 112 | 0.714841 |
f3407e32f5f6523d6af3047286ae165f92497d48 | 1,988 | py | Python | webserver.py | ChaunceyXCX/e_gate | 1df172c1293b54ec9d47410b90bf5bd00c43e96b | [
"MIT"
] | null | null | null | webserver.py | ChaunceyXCX/e_gate | 1df172c1293b54ec9d47410b90bf5bd00c43e96b | [
"MIT"
] | null | null | null | webserver.py | ChaunceyXCX/e_gate | 1df172c1293b54ec9d47410b90bf5bd00c43e96b | [
"MIT"
] | null | null | null | import picoweb
import gpio
import network
import ujson
import wlanauto
app = picoweb.WebApp("SafeGate")
def qs_parse(qs):
parameters = {}
ampersandSplit = qs.split("&")
for element in ampersandSplit:
equalSplit = element.split("=")
parameters[equalSplit[0]] = equalSplit[1]
return param... | 28 | 78 | 0.678068 |
f3416451d8e96fafe38d11507d5a845e008e0c70 | 9,046 | py | Python | dnn_reco/export_model.py | mxmeier/dnn_reco | c26ca45c7e0f9b160a99598d25e29779a674707f | [
"MIT"
] | null | null | null | dnn_reco/export_model.py | mxmeier/dnn_reco | c26ca45c7e0f9b160a99598d25e29779a674707f | [
"MIT"
] | null | null | null | dnn_reco/export_model.py | mxmeier/dnn_reco | c26ca45c7e0f9b160a99598d25e29779a674707f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function
import os
import shutil
import glob
import click
import ruamel.yaml as yaml
import tensorflow as tf
from dnn_reco import misc
from dnn_reco.setup_manager import SetupManager
from dnn_reco.data_handler import DataHandler
from ... | 40.565022 | 79 | 0.612425 |
f341934b753020a83775024239d87aaaed4b7ee7 | 11,379 | py | Python | neuralparticles/scripts/run_punet.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | neuralparticles/scripts/run_punet.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | neuralparticles/scripts/run_punet.py | senliontec/NeuralParticles | 8ede22bfb43e60be175b9cef19045c1c7b1ffb73 | [
"MIT"
] | null | null | null | import numpy as np
import h5py
import keras
import keras.backend as K
from glob import glob
import json
import math, scipy
from scipy.optimize import linear_sum_assignment
import time
from collections import OrderedDict
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import keras
from neura... | 37.065147 | 330 | 0.61508 |
f3425b5ebea9c1fe60e371d5dba169b6aa7ee4c8 | 23,965 | py | Python | deepreg/model/layer_util.py | mathpluscode/DeepReg | 80854094feafec998fa6237199066556c73f31f9 | [
"Apache-2.0"
] | null | null | null | deepreg/model/layer_util.py | mathpluscode/DeepReg | 80854094feafec998fa6237199066556c73f31f9 | [
"Apache-2.0"
] | null | null | null | deepreg/model/layer_util.py | mathpluscode/DeepReg | 80854094feafec998fa6237199066556c73f31f9 | [
"Apache-2.0"
] | null | null | null | """
Module containing utilities for layer inputs
"""
import itertools
import numpy as np
import tensorflow as tf
def get_reference_grid(grid_size: (tuple, list)) -> tf.Tensor:
"""
Generate a 3D grid with given size.
Reference:
- volshape_to_meshgrid of neuron
https://github.com/adalca/neurite... | 33.423989 | 88 | 0.571917 |
f3437fdf05ac2adaef08bbdcb3bffd59e965cdee | 1,120 | py | Python | client/src/service/send_cheat_state.py | y-yu/qrand | b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf | [
"MIT"
] | 3 | 2020-02-02T09:04:21.000Z | 2020-02-09T07:25:59.000Z | client/src/service/send_cheat_state.py | y-yu/qrand | b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf | [
"MIT"
] | null | null | null | client/src/service/send_cheat_state.py | y-yu/qrand | b041c3c9cccaf20ee24a0ad90c81b89d3dc753bf | [
"MIT"
] | null | null | null | from ..repository import quantum, qrand_api_caller
from random import Random
from qulacs import QuantumState
from qulacs.gate import H
#
| 27.317073 | 72 | 0.63125 |
f347cd2141e29b71f96f81b6d7df95e5fa292a36 | 1,655 | py | Python | ecc_attack_code/ecc_attack.py | gbanegas/SDCECC | 987017be79448b2a0d786b9fe9f5f1b99aa14e1f | [
"Apache-2.0"
] | null | null | null | ecc_attack_code/ecc_attack.py | gbanegas/SDCECC | 987017be79448b2a0d786b9fe9f5f1b99aa14e1f | [
"Apache-2.0"
] | null | null | null | ecc_attack_code/ecc_attack.py | gbanegas/SDCECC | 987017be79448b2a0d786b9fe9f5f1b99aa14e1f | [
"Apache-2.0"
] | null | null | null | import random
import math
from itertools import product
from ecc_types import *
| 27.583333 | 104 | 0.524471 |
f348e79c0bd30dcf3780b2f6b359aaf0f0bfa665 | 2,456 | py | Python | export/usb.py | oudeismetis/missed-moment | 9294340bd4d5fbc5801cc967db70f8c82ea94ef3 | [
"MIT"
] | 5 | 2016-09-06T19:54:38.000Z | 2021-11-04T19:04:08.000Z | export/usb.py | oudeismetis/missed-moment | 9294340bd4d5fbc5801cc967db70f8c82ea94ef3 | [
"MIT"
] | 1 | 2021-11-17T21:08:17.000Z | 2021-11-17T21:08:17.000Z | export/usb.py | oudeismetis/missed-moment | 9294340bd4d5fbc5801cc967db70f8c82ea94ef3 | [
"MIT"
] | 1 | 2016-10-28T15:15:48.000Z | 2016-10-28T15:15:48.000Z | from os import listdir
from os.path import exists, expanduser, isfile
import re
from subprocess import CalledProcessError, check_call
import logging
from pyudev import Context, Monitor
video_pattern = re.compile('missed-moment.*merged.*mp4')
MEDIA_DIR = '/missed_moment_media'
USB_MOUNT_DIR = '/missed_moment_usb'
USB_... | 34.111111 | 77 | 0.644544 |
f349cfad9cec3cea9ca00cc8741bef50c2e3e69b | 1,359 | py | Python | compiled/python/js_signed_right_shift.py | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 4 | 2017-04-08T12:55:11.000Z | 2020-12-05T21:09:31.000Z | compiled/python/js_signed_right_shift.py | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 7 | 2018-04-23T01:30:33.000Z | 2020-10-30T23:56:14.000Z | compiled/python/js_signed_right_shift.py | smarek/ci_targets | c5edee7b0901fd8e7f75f85245ea4209b38e0cb3 | [
"MIT"
] | 6 | 2017-04-08T11:41:14.000Z | 2020-10-30T22:47:31.000Z | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
if parse_version(kaitaistruct.__version__) < parse_version('0.9'):
raise Exception("Incompati... | 35.763158 | 132 | 0.718911 |
f349db6f7d61685b49d49c7f0b47f4281e88cd8e | 2,913 | py | Python | tests/utilities.py | Terrencebosco/lambdata-dspt7-tb | 9a5be4e6e0fea1801393253221fcca0511ded83c | [
"MIT"
] | null | null | null | tests/utilities.py | Terrencebosco/lambdata-dspt7-tb | 9a5be4e6e0fea1801393253221fcca0511ded83c | [
"MIT"
] | null | null | null | tests/utilities.py | Terrencebosco/lambdata-dspt7-tb | 9a5be4e6e0fea1801393253221fcca0511ded83c | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
# helper function for dropping columns with nan values.
def drop_high_nan(df, num_nans):
'''
drop columns with preselected number of nans
df = selected dataframe
num_nans = the number of nans as a threshold t... | 31.663043 | 79 | 0.645726 |
f34a82741807c790a71d945cf37f449008072a15 | 4,963 | py | Python | main.py | Nircek/telnet-communicator-server | 24abe728879225e4a1fa75ef17056f9de38088fb | [
"MIT"
] | null | null | null | main.py | Nircek/telnet-communicator-server | 24abe728879225e4a1fa75ef17056f9de38088fb | [
"MIT"
] | 6 | 2019-04-22T14:08:04.000Z | 2019-06-28T09:10:44.000Z | main.py | Nircek/telnet-communicator-server | 24abe728879225e4a1fa75ef17056f9de38088fb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
# Copyright (c) 2019 Nircek
# 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... | 32.437908 | 85 | 0.574048 |
f34b3398d34130125064588eeea3a67c4b10f9ab | 1,082 | py | Python | apps/accounts/events.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 206 | 2015-10-15T07:05:08.000Z | 2021-02-19T11:48:36.000Z | apps/accounts/events.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 8 | 2017-10-16T10:18:31.000Z | 2022-03-09T14:24:27.000Z | apps/accounts/events.py | goztrk/django-htk | c56bf112e5d627780d2f4288460eae5cce80fa9e | [
"MIT"
] | 61 | 2015-10-15T08:12:44.000Z | 2022-03-10T12:25:06.000Z | # Python Standard Library Imports
# Third Party (PyPI) Imports
import rollbar
# HTK Imports
from htk.utils import htk_setting
from htk.utils.notifications import slack_notify
| 24.590909 | 75 | 0.651571 |
f34bbec477f64d7fdcbedf6ba00cc7919b8e38eb | 2,348 | py | Python | test/test_buttons.py | vallemrv/kivy-component | e6db451c329f8b17a7fee8dee42e2968df116ce5 | [
"Apache-2.0"
] | 2 | 2017-07-15T18:43:05.000Z | 2019-07-02T07:33:24.000Z | test/test_buttons.py | vallemrv/kivy-component | e6db451c329f8b17a7fee8dee42e2968df116ce5 | [
"Apache-2.0"
] | null | null | null | test/test_buttons.py | vallemrv/kivy-component | e6db451c329f8b17a7fee8dee42e2968df116ce5 | [
"Apache-2.0"
] | null | null | null | # @Author: Manuel Rodriguez <valle>
# @Date: 2019-05-05T20:01:27+02:00
# @Email: valle.mrv@gmail.com
# @Last modified by: valle
# @Last modified time: 2019-05-09T01:17:25+02:00
# @License: Apache License v2.0
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
fr... | 24.458333 | 79 | 0.589438 |
f34bef219deb20fe6f67ee4c3842b697e7cda3a6 | 501 | py | Python | Exercícios/ex042.py | JefterV/Cursoemvideo.py | e65ac53a4e38793be3039d360e7127e1c5d51030 | [
"MIT"
] | 3 | 2020-11-24T17:20:34.000Z | 2020-12-03T01:19:31.000Z | Exercícios/ex042.py | JefterV/Cursoemvideo.py | e65ac53a4e38793be3039d360e7127e1c5d51030 | [
"MIT"
] | null | null | null | Exercícios/ex042.py | JefterV/Cursoemvideo.py | e65ac53a4e38793be3039d360e7127e1c5d51030 | [
"MIT"
] | 1 | 2021-01-03T00:48:48.000Z | 2021-01-03T00:48:48.000Z | import playsound
r1 = int(input('Segmento um: '))
r2 = int(input('Segmento dois: '))
r3 = int(input('Segmento trs: '))
if r1 < r2 + r3 and r2 < r1 + r3 and r3 < r1 + r2:
print('Os segmentos acima, PODEM formar um triangulo', end=' ')
if r1 == r2 and r2 == r3:
playsound.playsound('rllx.mp3', tr)
... | 33.4 | 67 | 0.59481 |
f34c12ad843b85b4615c748246bcb5d45ef5266f | 9,584 | py | Python | data_extraction/updatedb.py | amajee11us/driving-data-collection-reference-kit | 92eb839e55c0f0c65992b62aa71c3f63ecad4925 | [
"BSD-3-Clause"
] | 10 | 2019-12-04T06:30:03.000Z | 2022-01-04T23:09:14.000Z | data_extraction/updatedb.py | amajee11us/driving-data-collection-reference-kit | 92eb839e55c0f0c65992b62aa71c3f63ecad4925 | [
"BSD-3-Clause"
] | 6 | 2019-01-24T05:39:52.000Z | 2021-03-16T05:25:00.000Z | data_extraction/updatedb.py | amajee11us/driving-data-collection-reference-kit | 92eb839e55c0f0c65992b62aa71c3f63ecad4925 | [
"BSD-3-Clause"
] | 8 | 2019-02-11T03:11:56.000Z | 2021-08-18T08:00:51.000Z | #!/usr/bin/env python
'''
Updates db will all info.json files found in the provided dir path.
This is gnerally used to update db periodically from all info.json files available in dataset
Params:
dataset_path - dir containing rosbag file to search for corresponding info.json files
Copyright (C) 2019 Intel Corpor... | 36.030075 | 135 | 0.632095 |
f34e8ae9da4353d89753677155c3922a13e63d3a | 336 | py | Python | TPs/TP7/compute_pi.py | Aympab/BigDataHadoopSparkDaskCourse | 42f9e0475cbd7c5db240ccc6dc00c19b9006012a | [
"Apache-2.0"
] | null | null | null | TPs/TP7/compute_pi.py | Aympab/BigDataHadoopSparkDaskCourse | 42f9e0475cbd7c5db240ccc6dc00c19b9006012a | [
"Apache-2.0"
] | null | null | null | TPs/TP7/compute_pi.py | Aympab/BigDataHadoopSparkDaskCourse | 42f9e0475cbd7c5db240ccc6dc00c19b9006012a | [
"Apache-2.0"
] | 1 | 2022-01-31T17:14:27.000Z | 2022-01-31T17:14:27.000Z | import findspark
findspark.init()
import pyspark
import random
sc = pyspark.SparkContext(appName="Pi")
num_samples = 100000000
count = sc.parallelize(range(0, num_samples)).filter(inside).count()
pi = 4 * count / num_samples
print(pi)
sc.stop()
| 16.8 | 68 | 0.696429 |
f34f25a84c269a3d04e4b16d8fc56c5a7bc7f675 | 4,296 | py | Python | utils.py | bmack/example-repository-offline | 2cf9c2c26ef35b60d669d863b8346b8b6213f584 | [
"MIT"
] | null | null | null | utils.py | bmack/example-repository-offline | 2cf9c2c26ef35b60d669d863b8346b8b6213f584 | [
"MIT"
] | null | null | null | utils.py | bmack/example-repository-offline | 2cf9c2c26ef35b60d669d863b8346b8b6213f584 | [
"MIT"
] | null | null | null | # common utilities for other scripts
from tuf import repository_tool as rt
import os
import shutil
# shorthand to create keypairs
# loads keys from the files, should be used whenever someone wants to interact with the
# the repository (e.g. adding a new target)
# shorthand to create full repo with all keys, only d... | 47.208791 | 107 | 0.79027 |
f34f27483532b5547cd067bf3e35e862903166e7 | 10,223 | py | Python | Python/met_brewer/palettes.py | dataspider/MetBrewer | 723d2ed43d0be7f1fde39527be300cc50865020e | [
"CC0-1.0"
] | null | null | null | Python/met_brewer/palettes.py | dataspider/MetBrewer | 723d2ed43d0be7f1fde39527be300cc50865020e | [
"CC0-1.0"
] | null | null | null | Python/met_brewer/palettes.py | dataspider/MetBrewer | 723d2ed43d0be7f1fde39527be300cc50865020e | [
"CC0-1.0"
] | null | null | null | from colour import Color
from matplotlib.colors import LinearSegmentedColormap, to_hex
MET_PALETTES = dict(
Austria=dict(colors=("#a40000", "#16317d", "#007e2f", "#ffcd12", "#b86092", "#721b3e", "#00b7a7"), order=(1, 2, 3, 4, 6, 5, 7), colorblind=False),
Cassatt1=dict(colors=("#b1615c", "#d88782", "#e3aba7", "... | 76.291045 | 252 | 0.577913 |
f34f5a1bf3d1e8af420a24b49d952e59caad3230 | 1,186 | py | Python | utils/util.py | xzhang2016/tfagent | 433df751f0c5cbe3d730d8e912a05a2430dd165b | [
"BSD-2-Clause"
] | null | null | null | utils/util.py | xzhang2016/tfagent | 433df751f0c5cbe3d730d8e912a05a2430dd165b | [
"BSD-2-Clause"
] | 1 | 2020-06-11T17:03:22.000Z | 2020-06-11T17:03:22.000Z | utils/util.py | xzhang2016/tfagent | 433df751f0c5cbe3d730d8e912a05a2430dd165b | [
"BSD-2-Clause"
] | 3 | 2017-04-19T15:38:31.000Z | 2019-05-07T21:18:52.000Z | import urllib.request
import os
def merge_dict_sum(dict1, dict2):
"""
Merge two dictionaries and add values of common keys.
Values of the input dicts can be any addable objects, like numeric, str, list.
"""
dict3 = {**dict1, **dict2}
for key, value in dict3.items():
if key in dict1 and ... | 26.355556 | 82 | 0.598651 |
f350076941ab65f9dd7c2c16db5664edfd92e574 | 1,096 | py | Python | qnn/input/havlicek_data_handler.py | bjader/quantum-neural-network | 3f23e14fac8700d3f48593f0727c6da59af5f77f | [
"MIT"
] | 9 | 2021-06-08T14:02:38.000Z | 2022-03-08T10:14:22.000Z | qnn/input/havlicek_data_handler.py | bjader/quantum-neural-network | 3f23e14fac8700d3f48593f0727c6da59af5f77f | [
"MIT"
] | null | null | null | qnn/input/havlicek_data_handler.py | bjader/quantum-neural-network | 3f23e14fac8700d3f48593f0727c6da59af5f77f | [
"MIT"
] | 1 | 2021-06-12T16:28:53.000Z | 2021-06-12T16:28:53.000Z | import numpy as np
from qiskit import QuantumRegister, QuantumCircuit
from qiskit.circuit import Parameter
from input.data_handler import DataHandler
| 29.621622 | 114 | 0.611314 |
f350d58a0b541e697505f5ba96c2ceb95944d171 | 1,951 | py | Python | prep_cars_data.py | ppik/loxodon | c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac | [
"MIT"
] | null | null | null | prep_cars_data.py | ppik/loxodon | c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac | [
"MIT"
] | 1 | 2018-01-18T09:04:47.000Z | 2018-01-18T14:29:13.000Z | prep_cars_data.py | ppik/loxodon | c9d3148ec70f281ba28b3b39e1d843db2fd9a3ac | [
"MIT"
] | 1 | 2018-01-17T14:14:52.000Z | 2018-01-17T14:14:52.000Z | #!/usr/bin/env python
import os
from os.path import basename, dirname, exists
from glob import glob
from random import seed, sample
from math import ceil
import shutil
from scipy.io import loadmat
DATA_PATH = 'data/'
VALID_RATIO = 0.2
seed(20171111)
info = loadmat(DATA_PATH + 'cars_annos.mat')
class_names = []
fo... | 24.08642 | 129 | 0.650436 |
f3510b1c13e2b0996f72d7df7b7e4d5ce6187252 | 4,318 | py | Python | LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py | liks79/moving-to-serverless-renew | 2f173071ab387654d4cc851a0b39130613906378 | [
"MIT"
] | 6 | 2019-08-21T04:13:34.000Z | 2019-10-29T07:15:39.000Z | LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py | liks79/moving-to-serverless-renew | 2f173071ab387654d4cc851a0b39130613906378 | [
"MIT"
] | 89 | 2019-07-31T02:29:54.000Z | 2022-03-12T01:03:22.000Z | LAB04/02-CloudAlbum-Chalice/cloudalbum/tests/test_photos.py | michaelrishiforrester/moving-to-serverless-renew | 27cbcbde9db3d2bc66212fe4f768563d25f64c19 | [
"MIT"
] | 4 | 2019-08-02T03:00:35.000Z | 2020-02-26T18:44:03.000Z | """
cloudalbum/tests/test_photos.py
~~~~~~~~~~~~~~~~~~~~~~~
Test cases for photos REST API
:description: CloudAlbum is a fully featured sample application for 'Moving to AWS serverless' training course
:copyright: 2019 written by Dayoungle Jun, Sungshik Jou.
:license: MIT, see LICENSE for more... | 37.224138 | 114 | 0.630153 |
f352ff7f4b31c7040c5ea7317ed22c6aa5e813c5 | 932 | py | Python | wav_to_mp3_to_wav/post_mp3_information_retrieval.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | wav_to_mp3_to_wav/post_mp3_information_retrieval.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | wav_to_mp3_to_wav/post_mp3_information_retrieval.py | LiquidFun/stegowav | 89ef0b40c52c834febffeeefba30eccbb0862e29 | [
"Apache-2.0"
] | null | null | null | from pathlib import Path
from tempfile import TemporaryDirectory
from wav_steganography.wav_file import WAVFile
from wav_to_mp3_to_wav.analyze_flipped_bits import find_matching_audio_file, convert_to_file_format_and_back
if __name__ == "__main__":
main()
| 33.285714 | 108 | 0.748927 |
f353b7a18dac9fe20b5fa12a9cc76abc354a1603 | 4,896 | py | Python | Tp2/ej3/FBorrosificador.py | luisemacsel/IA2 | b99e19df3cd689d1c6cb42cd83cd71d6302e89eb | [
"MIT"
] | null | null | null | Tp2/ej3/FBorrosificador.py | luisemacsel/IA2 | b99e19df3cd689d1c6cb42cd83cd71d6302e89eb | [
"MIT"
] | null | null | null | Tp2/ej3/FBorrosificador.py | luisemacsel/IA2 | b99e19df3cd689d1c6cb42cd83cd71d6302e89eb | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
"""
La funcion se encarga de buscar el valor de fuerza que le corresponde para ese valor f en el rango elegido
Buscavalor(max,rango,funcion):
max:valor obtenido de la funcion figual
rango: rango de la funcion de f de la FAM
funcion: es la funcion da... | 26.181818 | 110 | 0.612337 |
f353cc9934915d2b7584b135ed41a08d4e931189 | 2,883 | py | Python | impl/dlsgs/transformer/derived.py | ju-kreber/Transformers-and-GANs-for-LTL-sat | 45fe14815562dd3e0d3705573ce9358bfbdc22b3 | [
"MIT"
] | null | null | null | impl/dlsgs/transformer/derived.py | ju-kreber/Transformers-and-GANs-for-LTL-sat | 45fe14815562dd3e0d3705573ce9358bfbdc22b3 | [
"MIT"
] | null | null | null | impl/dlsgs/transformer/derived.py | ju-kreber/Transformers-and-GANs-for-LTL-sat | 45fe14815562dd3e0d3705573ce9358bfbdc22b3 | [
"MIT"
] | null | null | null | # implementation based on DeepLTL https://github.com/reactive-systems/deepltl
import tensorflow as tf
import dlsgs.transformer.positional_encoding as pe
from dlsgs.transformer.base import Transformer, TransformerEncoder
from dlsgs.transformer.common import create_padding_mask
| 44.353846 | 140 | 0.680194 |
f353dbb565c4d499694168557296ed62d9913084 | 1,687 | py | Python | artifact/gpufwd_image/to_copy/empirical_testing/src/configuration.py | tyler-utah/AlloyForwardProgress | d9c779129f5ff9f678b31d9b7ccb29c184ddb097 | [
"BSD-2-Clause"
] | null | null | null | artifact/gpufwd_image/to_copy/empirical_testing/src/configuration.py | tyler-utah/AlloyForwardProgress | d9c779129f5ff9f678b31d9b7ccb29c184ddb097 | [
"BSD-2-Clause"
] | null | null | null | artifact/gpufwd_image/to_copy/empirical_testing/src/configuration.py | tyler-utah/AlloyForwardProgress | d9c779129f5ff9f678b31d9b7ccb29c184ddb097 | [
"BSD-2-Clause"
] | 2 | 2020-05-02T00:28:27.000Z | 2020-05-12T20:36:49.000Z | # -----------------------------------------------------------------------
# configuration.py
# Author: Hari Raval
# -----------------------------------------------------------------------
# a Configuration object represents the parameters and settings used to generate an Amber test
| 41.146341 | 116 | 0.662715 |
f3547c44193674d72118e17e37edb9312430ced7 | 305 | py | Python | UE4Parse/IoObjects/FNameEntryId.py | zbx911/pyUE4Parse | eb30d27a4341ad68a7104458a0fdfae6a360d153 | [
"MIT"
] | 13 | 2021-06-09T09:21:00.000Z | 2022-03-30T22:13:24.000Z | UE4Parse/IoObjects/FNameEntryId.py | zbx911/pyUE4Parse | eb30d27a4341ad68a7104458a0fdfae6a360d153 | [
"MIT"
] | 3 | 2021-09-04T22:23:02.000Z | 2022-03-04T09:45:45.000Z | UE4Parse/IoObjects/FNameEntryId.py | zbx911/pyUE4Parse | eb30d27a4341ad68a7104458a0fdfae6a360d153 | [
"MIT"
] | 6 | 2021-09-02T10:28:21.000Z | 2022-03-30T22:13:37.000Z | from typing import Union
from UE4Parse.BinaryReader import BinaryStream
| 21.785714 | 57 | 0.665574 |
f354fb51e5ec1448b0f4a58e8768e000570fc5fa | 696 | py | Python | setup.py | Niger-Volta-LTI/iranlowo | 0046b61105ffadfff21dd8b37754b9d95177fbf8 | [
"MIT"
] | 17 | 2019-07-05T20:30:35.000Z | 2022-02-28T10:00:24.000Z | setup.py | Olamyy/iranlowo | 1feb123988a8afac3ac53c7acfb72df862c4bc18 | [
"MIT"
] | 17 | 2019-07-06T09:10:10.000Z | 2020-11-13T08:30:37.000Z | setup.py | ruohoruotsi/iranlowo | 0046b61105ffadfff21dd8b37754b9d95177fbf8 | [
"MIT"
] | 7 | 2019-07-01T01:59:07.000Z | 2020-11-27T17:12:46.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
url: https://github.com/Niger-Volta-LTI
download_url: archive/v{version}.tar.gz
package_data={'iranlowo': ['models/yo_adr_bahdanau_lstm_128_1_1_step_100000_release.pt']}
versioning="distance", # we start from 0.0.0 using v{major}.{minor}.0
"""
from setuptools impo... | 24.857143 | 89 | 0.704023 |
f357486dc273f59930f7e3c9ba8e47b6209add12 | 1,574 | py | Python | pyDipole/particles.py | rakab/pyDipole | 2793db6db951e9e5e79e064430a0faf6636d3a2a | [
"BSD-3-Clause"
] | null | null | null | pyDipole/particles.py | rakab/pyDipole | 2793db6db951e9e5e79e064430a0faf6636d3a2a | [
"BSD-3-Clause"
] | null | null | null | pyDipole/particles.py | rakab/pyDipole | 2793db6db951e9e5e79e064430a0faf6636d3a2a | [
"BSD-3-Clause"
] | null | null | null | __all__ = [
'Particle',
'particles',
]
"""
Style: name: [mass(string),isQCD(bool)]
"""
particle_table = {
'u' : ['0' , True],
'ubar' : ['0' , True],
't' : ['mt', True],
'tbar' : ['mt', True],
'e' : ['0' , False],
'ebar' : ['0' , False],
... | 24.984127 | 85 | 0.527954 |
f357722e828fbb3e6184da8f11524b64bb6365ce | 578 | py | Python | rastervision/data/label_store/label_store.py | aaron8tang/raster-vision | a1af78bafb8f19ccc40c476adb551bdc23a33611 | [
"Apache-2.0"
] | 2 | 2019-04-17T13:04:23.000Z | 2020-10-04T10:28:27.000Z | rastervision/data/label_store/label_store.py | aaron8tang/raster-vision | a1af78bafb8f19ccc40c476adb551bdc23a33611 | [
"Apache-2.0"
] | null | null | null | rastervision/data/label_store/label_store.py | aaron8tang/raster-vision | a1af78bafb8f19ccc40c476adb551bdc23a33611 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
| 21.407407 | 87 | 0.576125 |
f359c6c0485b2afb42cd60a1563a6e6b2a3277bc | 677 | py | Python | shadow.py | luctalatinian/pygame_stealth | 9d7db47ed23621aa038f7c5e06dcab0c6b33de66 | [
"MIT"
] | null | null | null | shadow.py | luctalatinian/pygame_stealth | 9d7db47ed23621aa038f7c5e06dcab0c6b33de66 | [
"MIT"
] | null | null | null | shadow.py | luctalatinian/pygame_stealth | 9d7db47ed23621aa038f7c5e06dcab0c6b33de66 | [
"MIT"
] | 1 | 2018-07-09T20:56:10.000Z | 2018-07-09T20:56:10.000Z | import pygame
| 28.208333 | 63 | 0.5613 |
f35ad558fbc65dfdc480de2f3a5e28959ccae809 | 533 | py | Python | backend/src/util/daos.py | JulianFrattini/todo-list-python | 819e8856b2a8af28b8ffaeb20c024e9704fc635f | [
"Apache-2.0"
] | null | null | null | backend/src/util/daos.py | JulianFrattini/todo-list-python | 819e8856b2a8af28b8ffaeb20c024e9704fc635f | [
"Apache-2.0"
] | null | null | null | backend/src/util/daos.py | JulianFrattini/todo-list-python | 819e8856b2a8af28b8ffaeb20c024e9704fc635f | [
"Apache-2.0"
] | null | null | null | from src.util.dao import DAO
daos = {}
def getDao(collection_name: str):
"""Obtain a data access object of a collection. The purpose of the realization using the singleton pattern is
to avoid multiple data access objects for the same collection
parameters:
collection_name -- the name of the collec... | 33.3125 | 113 | 0.718574 |
f35b316b80ee742d895d827ad178ce7c0ac0048e | 2,125 | py | Python | tinkertest/utils.py | bnmnetp/tinkerer | 46e805e20090a166f5ef83e287dc88561c9c41dc | [
"BSD-2-Clause"
] | 1 | 2020-09-15T14:51:59.000Z | 2020-09-15T14:51:59.000Z | tinkertest/utils.py | mkouhei/tinkerer | 71190b83233342c0a9831b0e4e7547ea3eace03a | [
"BSD-2-Clause"
] | null | null | null | tinkertest/utils.py | mkouhei/tinkerer | 71190b83233342c0a9831b0e4e7547ea3eace03a | [
"BSD-2-Clause"
] | null | null | null | '''
Test utilities
~~~~~~~~~~~~~~
Base test case class inherited by all test cases. Utility functions.
:copyright: Copyright 2011-2018 by Vlad Riscutia and contributors (see
CONTRIBUTORS file)
:license: FreeBSD, see LICENSE file
'''
import os
import shutil
import sys
from sphinx.cmd.build impo... | 23.876404 | 76 | 0.689412 |
f35e15c3e1fa141fb8e013a3abdcb344ad2f4a23 | 4,122 | py | Python | server/views_profile.py | sampsontan/virtual-clinic | 5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34 | [
"MIT"
] | 50 | 2019-02-04T12:33:49.000Z | 2022-03-14T04:56:20.000Z | server/views_profile.py | sampsontan/virtual-clinic | 5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34 | [
"MIT"
] | 7 | 2020-12-01T03:07:37.000Z | 2021-02-24T07:56:17.000Z | server/views_profile.py | sampsontan/virtual-clinic | 5d8cbb199fb7ff1658c8d1245d8756da7d4e2d34 | [
"MIT"
] | 27 | 2018-04-04T03:16:00.000Z | 2022-03-30T11:08:35.000Z | from django.shortcuts import render
from django.contrib.auth import authenticate
from server.forms import PasswordForm, ProfileForm
from server.models import Action, Account, Message
from server import appointment
from server import views
from server import logger
from server import message
| 49.071429 | 121 | 0.715429 |
f35e505927276af6aead2233d5ffc470b867a7a9 | 9,500 | py | Python | ixia_orch/setup/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | ixia_orch/setup/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | ixia_orch/setup/__main__.py | QualiSystemsLab/TechRepo | 5abb0769ad0299ed6bad5d40b0b98c8179eaa030 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cloudshell.helpers.scripts.cloudshell_dev_helpers as dev_helpers
from cloudshell.api.cloudshell_api import InputNameValue
from cloudshell.workflow.orchestration.sandbox import Sandbox
from cloudshell.workflow.orchestration.setup.default_setup_orchestrator import... | 51.075269 | 187 | 0.669368 |
f35f42825e9ec49afa9f00f36718a54a1f778562 | 2,470 | py | Python | src/sparkmon/mlflow_utils.py | stephanecollot/sparkmon | ca7aee915e0f1db2fb82d41e08a0a2d782236e23 | [
"MIT"
] | 11 | 2021-07-05T12:57:54.000Z | 2022-01-30T05:25:27.000Z | src/sparkmon/mlflow_utils.py | stephanecollot/sparkmon | ca7aee915e0f1db2fb82d41e08a0a2d782236e23 | [
"MIT"
] | 83 | 2021-07-12T22:14:16.000Z | 2022-03-28T22:33:13.000Z | src/sparkmon/mlflow_utils.py | stephanecollot/sparkmon | ca7aee915e0f1db2fb82d41e08a0a2d782236e23 | [
"MIT"
] | 2 | 2021-07-13T09:44:39.000Z | 2021-12-01T11:12:37.000Z | # Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
#
# 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, mo... | 38.59375 | 101 | 0.748583 |
f35faf6124800bbcd57e33c69660b190bc9d8905 | 1,854 | py | Python | service/microservice.py | SFDigitalServices/bluebeam-microservice | bb529f291b3399e29b71dd754e77c73f759c7762 | [
"MIT"
] | 1 | 2020-05-28T17:38:12.000Z | 2020-05-28T17:38:12.000Z | service/microservice.py | SFDigitalServices/bluebeam-microservice | bb529f291b3399e29b71dd754e77c73f759c7762 | [
"MIT"
] | 3 | 2021-02-10T02:34:39.000Z | 2022-01-07T23:28:51.000Z | service/microservice.py | SFDigitalServices/bluebeam-microservice | bb529f291b3399e29b71dd754e77c73f759c7762 | [
"MIT"
] | null | null | null | """Main application module"""
import os
import json
import jsend
import sentry_sdk
import falcon
from .resources.db import create_session
from .resources.welcome import Welcome
from .resources.submission import Submission
from .resources.export import Export, ExportStatus
from .resources.login import Login
def start_s... | 33.107143 | 77 | 0.69849 |
f35fc9e10ba11e3ac0a41499770d8ee424ef0361 | 1,458 | py | Python | apps/accounts/serializers/user_serializer.py | vicobits/django-wise | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | [
"MIT"
] | 5 | 2020-04-11T20:11:48.000Z | 2021-03-16T23:58:01.000Z | apps/accounts/serializers/user_serializer.py | victoraguilarc/django-wise | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | [
"MIT"
] | 5 | 2020-04-11T20:17:56.000Z | 2021-06-16T19:18:29.000Z | apps/accounts/serializers/user_serializer.py | victoraguilarc/django-wise | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from rest_framework import serializers
from apps.accounts.models import User
from apps.accounts.api.error_codes import AccountsErrorCodes
from apps.contrib.api.exceptions.base import SerializerFieldExceptionMixin
PASSWORD_MAX_LENGTH = User._meta.get_field('password').max_length # noqa: WPS43... | 26.509091 | 87 | 0.650892 |
f361061823963f88458df17e30230bb3e0fa2a85 | 3,013 | py | Python | biodata/api/views/other.py | znatty22/biodataservice | a3eeb137d2e727a0fc58437b185f2637bc4665ed | [
"Apache-2.0"
] | null | null | null | biodata/api/views/other.py | znatty22/biodataservice | a3eeb137d2e727a0fc58437b185f2637bc4665ed | [
"Apache-2.0"
] | null | null | null | biodata/api/views/other.py | znatty22/biodataservice | a3eeb137d2e727a0fc58437b185f2637bc4665ed | [
"Apache-2.0"
] | null | null | null | """
Views for endpoints that are not part of the biodata CRUD API
"""
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from django.conf import settings
from django.db import models
import django_rq
from rq.job import Job, NoSuchJobError, JobSt... | 26.901786 | 76 | 0.593097 |
f36270ffc910141d9277e13fd2f64f8e20587210 | 1,100 | py | Python | test_clock.py | keldwud/ball-clock | 1f360328fbd5fb10e902fbe7d5cc9739e0f48f83 | [
"MIT"
] | 1 | 2018-12-12T16:49:42.000Z | 2018-12-12T16:49:42.000Z | test_clock.py | keldwud/ball-clock | 1f360328fbd5fb10e902fbe7d5cc9739e0f48f83 | [
"MIT"
] | null | null | null | test_clock.py | keldwud/ball-clock | 1f360328fbd5fb10e902fbe7d5cc9739e0f48f83 | [
"MIT"
] | 1 | 2021-05-28T21:59:42.000Z | 2021-05-28T21:59:42.000Z | #!/usr/bin/env python
import unittest
from clock import how_many_balls
from clock import minute_balls
from clock import five_minute_balls
from clock import hour_balls
from clock import run_ball_queue
if __name__ == '__main__':
unittest.main()
| 24.444444 | 79 | 0.722727 |
f3632472aa4ff867ac9b5926766ce574661402f2 | 220 | py | Python | RoboChrome.roboFontExt/lib/_doc.py | roboDocs/RoboChrome | 8891f7115e16c54cdb2b1452f02731b294b47ff2 | [
"MIT"
] | 12 | 2018-04-26T03:58:35.000Z | 2021-07-05T17:13:55.000Z | RoboChrome.roboFontExt/lib/_doc.py | roboDocs/RoboChrome | 8891f7115e16c54cdb2b1452f02731b294b47ff2 | [
"MIT"
] | 4 | 2019-08-21T14:35:36.000Z | 2020-04-14T19:25:08.000Z | RoboChrome.roboFontExt/lib/_doc.py | roboDocs/RoboChrome | 8891f7115e16c54cdb2b1452f02731b294b47ff2 | [
"MIT"
] | 3 | 2019-08-21T14:38:53.000Z | 2021-03-30T19:54:25.000Z | from colorfont import ColorFont
import pydoc
from mojo.UI import HelpWindow
doc = pydoc.HTMLDoc()
html = doc.document(ColorFont)
HelpWindow(htmlString=html)
html = doc.document(ColorGlyph)
HelpWindow(htmlString=html)
| 18.333333 | 31 | 0.804545 |
f36495e33d596f7361caa6c8ba8d2e5cf0761c52 | 25,617 | py | Python | devops/ops/api/assets_api.py | jinjin123/devops2.0 | 8241aff0c6677cef55c9e13b7d182fb75a814bbe | [
"MIT"
] | null | null | null | devops/ops/api/assets_api.py | jinjin123/devops2.0 | 8241aff0c6677cef55c9e13b7d182fb75a814bbe | [
"MIT"
] | null | null | null | devops/ops/api/assets_api.py | jinjin123/devops2.0 | 8241aff0c6677cef55c9e13b7d182fb75a814bbe | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# _*_ coding:utf-8 _*_
from rest_framework import viewsets, permissions
from ops.serializers import *
from ops.models import *
from rest_framework import status
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framewor... | 43.640545 | 124 | 0.615099 |
f3666df8e2a3d53709ecdedaf5a73aa5a39694e9 | 2,016 | py | Python | tests/test_event_hooks.py | eruvanos/dynafile | 207425b073a963b01c677b697e74842b429c004a | [
"MIT"
] | null | null | null | tests/test_event_hooks.py | eruvanos/dynafile | 207425b073a963b01c677b697e74842b429c004a | [
"MIT"
] | null | null | null | tests/test_event_hooks.py | eruvanos/dynafile | 207425b073a963b01c677b697e74842b429c004a | [
"MIT"
] | null | null | null | from dynafile import Dynafile, Event
| 29.647059 | 83 | 0.579861 |
f36671695f4f2c5246e5dd397946e01a018bb4fe | 251 | py | Python | chat/urls.py | talhaibnmahmud/System-Development-Project | 221ab5856dfcb00aff0fe8838bb9f40c725dbbf6 | [
"MIT"
] | null | null | null | chat/urls.py | talhaibnmahmud/System-Development-Project | 221ab5856dfcb00aff0fe8838bb9f40c725dbbf6 | [
"MIT"
] | null | null | null | chat/urls.py | talhaibnmahmud/System-Development-Project | 221ab5856dfcb00aff0fe8838bb9f40c725dbbf6 | [
"MIT"
] | null | null | null | from django.urls.conf import path
from chat.views import MessageListView, MessageView
app_name = 'chat'
urlpatterns = [
path('', MessageListView.as_view(), name='message-home'),
path('<slug:pk>/', MessageView.as_view(), name='message'),
]
| 20.916667 | 62 | 0.701195 |
f367913e08216490dbf81b44ad9a97732b5bc0a3 | 5,099 | py | Python | tests/test_data_handling.py | LLR-ILD/alldecays | 08e51e99385ae7ca96edefddafd715e1d8cac3d3 | [
"Apache-2.0"
] | null | null | null | tests/test_data_handling.py | LLR-ILD/alldecays | 08e51e99385ae7ca96edefddafd715e1d8cac3d3 | [
"Apache-2.0"
] | null | null | null | tests/test_data_handling.py | LLR-ILD/alldecays | 08e51e99385ae7ca96edefddafd715e1d8cac3d3 | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pytest
from conftest import channel1_path, channel_polarized_path, decay_names
import alldecays
| 35.409722 | 80 | 0.740341 |
f36b2d045e4b5fb8f6739e6b9464ce4f48c00174 | 1,614 | py | Python | elections/forms.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | 2 | 2018-11-16T21:45:17.000Z | 2019-02-03T19:55:46.000Z | elections/forms.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | 13 | 2018-08-17T19:12:11.000Z | 2022-03-11T23:27:41.000Z | elections/forms.py | zinaukarenku/zkr-platform | 8daf7d1206c482f1f8e0bcd54d4fde783e568774 | [
"Apache-2.0"
] | null | null | null | from crispy_forms.helper import FormHelper
from crispy_forms.layout import Layout, Div, Submit
from django import forms
from django.forms.utils import ErrorList
from web.models import Municipality
from django.utils.translation import gettext_lazy as _
| 35.866667 | 120 | 0.672243 |
f36bb2734cf8a06f514d97eb5b2c6edbcf20fc1d | 988 | py | Python | DataBatcher.py | malfusion/furnace | 2d2a31212f0d67a99743a125eee1825da2af2182 | [
"MIT"
] | null | null | null | DataBatcher.py | malfusion/furnace | 2d2a31212f0d67a99743a125eee1825da2af2182 | [
"MIT"
] | 1 | 2021-01-28T20:27:14.000Z | 2021-01-28T20:27:14.000Z | DataBatcher.py | malfusion/furnace | 2d2a31212f0d67a99743a125eee1825da2af2182 | [
"MIT"
] | null | null | null | from collections import deque
| 24.7 | 71 | 0.563765 |
f36c3c469c723fce76cb22904c9662d3e5c20302 | 253 | py | Python | Databases/kw_args.py | BrandonP321/Python-masterclass | fac81fe4f8acfa37076820405d96132f9f23b311 | [
"MIT"
] | null | null | null | Databases/kw_args.py | BrandonP321/Python-masterclass | fac81fe4f8acfa37076820405d96132f9f23b311 | [
"MIT"
] | null | null | null | Databases/kw_args.py | BrandonP321/Python-masterclass | fac81fe4f8acfa37076820405d96132f9f23b311 | [
"MIT"
] | null | null | null |
with open("backwards.txt", 'w') as backwards:
print_backwards("hellow", "all", "of", "my", "friends", file=backwards) | 28.111111 | 75 | 0.600791 |
f36c464ee68faaf7ed9c2d48de3665e5eff18856 | 1,309 | py | Python | Dynamic Programming/chess.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | 1 | 2021-04-17T17:33:30.000Z | 2021-04-17T17:33:30.000Z | Dynamic Programming/chess.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | null | null | null | Dynamic Programming/chess.py | roycek7/operation_research | 37f01b7fcd93494a7de38459c324132516724b99 | [
"MIT"
] | null | null | null | """
Chess Strategy
Vladimir is playing Keith in a two-game chess match. Winning a game scores one match point and drawing a game scores
a half match point. After the two games are played, the player with more match points is declared the champion.
If the two players are tied after two games, they continue playing until... | 42.225806 | 118 | 0.657754 |
f36c635d3951bb07b4912eb1c952f427fda6d438 | 1,329 | py | Python | py.area1.py | pedrorsvalle/python | 88f51ff3135447b3529298e060dd57b15a206130 | [
"MIT"
] | null | null | null | py.area1.py | pedrorsvalle/python | 88f51ff3135447b3529298e060dd57b15a206130 | [
"MIT"
] | null | null | null | py.area1.py | pedrorsvalle/python | 88f51ff3135447b3529298e060dd57b15a206130 | [
"MIT"
] | null | null | null | def retangulo(lado_a,lado_b):
"""calcula a area de um retangulo"""
area= lado_a*lado_b
return area
def triangulo(base,altura):
"""calcula a area de um triangulo"""
area=(base*altura)/2
return area
def circulo(raio):
"""calcula a area de um circulo"""
area=3.14*(raio**2)
... | 20.765625 | 69 | 0.543266 |
f36d640e79dacaedb0c4acb228f021e81749af5f | 4,261 | py | Python | tests/unit/test_book_reads.py | josealobato/go-over | ebc012a4d74a81fc729419f4ea670b9d6b4271bb | [
"MIT"
] | null | null | null | tests/unit/test_book_reads.py | josealobato/go-over | ebc012a4d74a81fc729419f4ea670b9d6b4271bb | [
"MIT"
] | 7 | 2022-02-13T09:21:55.000Z | 2022-03-02T07:56:31.000Z | tests/unit/test_book_reads.py | josealobato/go-over | ebc012a4d74a81fc729419f4ea670b9d6b4271bb | [
"MIT"
] | null | null | null | # More info at: https://vald-phoenix.github.io/pylint-errors/
# pylint: disable=C0114
# pylint: disable=C0116
from datetime import datetime
import pytest
from go_over.goodreads import Book, BookRead, Bookshelf
# pylint: disable=C0301
# Line too long
BOOKS = [
{"Book Id": "00", "Title": "Book 0", "Author": "Cervan... | 32.526718 | 139 | 0.663459 |
f3718eeff96e99b364364254176ffbb225e3ed47 | 993 | py | Python | gym_collision_avoidance/experiments/src/test_pytorch.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | null | null | null | gym_collision_avoidance/experiments/src/test_pytorch.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | null | null | null | gym_collision_avoidance/experiments/src/test_pytorch.py | meghdeepj/Social-Navigation-Simulator | 806d304081bf5ff4fc7a0a58defb050627375865 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
print(torch.cuda.is_available())
device=torch.device("cpu")
# device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
print(device)
Q_policy=PatNet(4, 6)
# Q_policy=DefNet()
print("tested") | 26.837838 | 73 | 0.635448 |
f37405eeefd850d1e3f3acef5be96b619c25c9aa | 11,125 | py | Python | templates/illumraw2call.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 62 | 2016-08-29T11:27:35.000Z | 2022-03-10T17:16:14.000Z | templates/illumraw2call.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 33 | 2016-12-26T13:48:19.000Z | 2021-12-05T13:34:06.000Z | templates/illumraw2call.py | lvclark/h3agwas | 5e42e60123b819d3c331a91b25ee50846e55af3b | [
"MIT"
] | 50 | 2017-04-15T04:17:43.000Z | 2022-03-30T07:26:01.000Z | #! /usr/bin/env python
from __future__ import print_function
import argparse
import os
import sys
import struct
from numpy import empty, uint32,fromfile,uint16
# we avoid the use of backslashes to assist in templatising the code for Nextflow
TAB=unichr(9)
EOL=unichr(10)
FID_nSNPsRead = 1000
FID_IlluminaID ... | 35.657051 | 152 | 0.598382 |
f3756e26ce73e2ba77e2e0abfa79281d0a6b2617 | 18,090 | py | Python | spacy/lang/ru/tokenizer_exceptions.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 1 | 2019-11-27T13:14:04.000Z | 2019-11-27T13:14:04.000Z | spacy/lang/ru/tokenizer_exceptions.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | 2 | 2022-02-21T05:50:08.000Z | 2022-03-15T03:19:49.000Z | spacy/lang/ru/tokenizer_exceptions.py | snosrap/spaCy | 3f68bbcfec44ef55d101e6db742d353b72652129 | [
"MIT"
] | null | null | null | from ..tokenizer_exceptions import BASE_EXCEPTIONS
from ...symbols import ORTH, NORM
from ...util import update_exc
_exc = {}
_abbrev_exc = [
# Weekdays abbreviations
{ORTH: "", NORM: ""},
{ORTH: "", NORM: ""},
{ORTH: "", NORM: ""},
{ORTH: "", NORM: ""},
{ORTH: "", NORM: ""},
{ORTH: "", NO... | 45 | 88 | 0.58513 |
f3769ab6fea4c9708d44e62ffb54dbaaf6ae6c86 | 141 | py | Python | danspeech/audio/__init__.py | la3lma/danspeech | acd9dd1e2b9750292bd27c97ee25cf65edc196f2 | [
"Apache-2.0"
] | 21 | 2019-08-29T07:02:02.000Z | 2022-03-15T08:58:46.000Z | danspeech/audio/__init__.py | la3lma/danspeech | acd9dd1e2b9750292bd27c97ee25cf65edc196f2 | [
"Apache-2.0"
] | 11 | 2019-08-29T06:56:49.000Z | 2022-02-16T15:22:17.000Z | danspeech/audio/__init__.py | la3lma/danspeech | acd9dd1e2b9750292bd27c97ee25cf65edc196f2 | [
"Apache-2.0"
] | 3 | 2020-04-21T13:04:32.000Z | 2021-04-27T10:04:51.000Z | from .resources import load_audio, load_audio_wavPCM, Microphone
from .parsers import SpectrogramAudioParser, InferenceSpectrogramAudioParser | 70.5 | 76 | 0.893617 |
f377176313884cffb6df2a6b11f5b8d6f43556f5 | 638 | py | Python | newcomer/MachineLearning/2-3a.py | yutake27/newcomer-exercise | e4466edd03e5f1803bbc0c1b0be39a475297392a | [
"CC0-1.0"
] | null | null | null | newcomer/MachineLearning/2-3a.py | yutake27/newcomer-exercise | e4466edd03e5f1803bbc0c1b0be39a475297392a | [
"CC0-1.0"
] | null | null | null | newcomer/MachineLearning/2-3a.py | yutake27/newcomer-exercise | e4466edd03e5f1803bbc0c1b0be39a475297392a | [
"CC0-1.0"
] | null | null | null | from sklearn.datasets import load_svmlight_file
from sklearn.svm import SVC
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn import metrics
param_grid = {'C':[0.001,0.01,0.1,1,10,100]}
X,y = load_svmlight_file('MachineLearning/disorder.libsvm.dat')
X_train, X_test, y_train, y_test = tra... | 45.571429 | 98 | 0.791536 |
f37864f533d84e03e2042457fe7404558577ab87 | 13,326 | py | Python | param-net-mst.py | markusMM/Network-Expectation-Truncation | 6b87ed1c5d3da8a6a28f3675390de58061b673d5 | [
"AFL-3.0"
] | null | null | null | param-net-mst.py | markusMM/Network-Expectation-Truncation | 6b87ed1c5d3da8a6a28f3675390de58061b673d5 | [
"AFL-3.0"
] | 1 | 2019-01-26T10:39:35.000Z | 2019-01-26T10:39:35.000Z | param-net-mst.py | markusMM/Network-Expectation-Truncation | 6b87ed1c5d3da8a6a28f3675390de58061b673d5 | [
"AFL-3.0"
] | null | null | null | import numpy as np
import sys
import os
os.stat('pylib')
sys.path.append("pylib")
sys.path.append("pylib/utils")
import argparse
import tables
from pulp.utils.parallel import pprint
from pulp.utils.barstest import generate_bars_dict
from sklearn.neural_network.multilayer_perceptron import MLPClassifier
#%% -- General ... | 26.812877 | 121 | 0.562885 |
f3794b8036c6961209cfd4976b19858f3b884290 | 120 | py | Python | abc/abc076/abc076b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc076/abc076b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc076/abc076b.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N = int(input())
K = int(input())
result = 1
for _ in range(N):
result = min(result * 2, result + K)
print(result)
| 15 | 40 | 0.591667 |
f3798844d976d0deb0b955c5afd70a09e308f441 | 5,869 | py | Python | devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py | AishwaryaANair/DevOpsCI | f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d | [
"MIT"
] | null | null | null | devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py | AishwaryaANair/DevOpsCI | f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d | [
"MIT"
] | null | null | null | devops/lib/python3.6/site-packages/django_jenkins/management/commands/jenkins.py | AishwaryaANair/DevOpsCI | f08e5e33f598b7ebd56ed88b53cb39dab9d88d6d | [
"MIT"
] | null | null | null | import os
import sys
import warnings
from importlib import import_module
from django.apps import apps
from django.conf import settings
from django.core.management.commands.test import Command as TestCommand
from django_jenkins.runner import CITestSuiteRunner
| 39.126667 | 103 | 0.601125 |
f37a64e512fe5cd0afd1ee31d20ccc49f55d4c8d | 2,303 | py | Python | src/gabby/udp_receiver.py | luanguimaraesla/gabby | 93212a83bcde9599a1a42d35d0d9263bf766ff54 | [
"MIT"
] | null | null | null | src/gabby/udp_receiver.py | luanguimaraesla/gabby | 93212a83bcde9599a1a42d35d0d9263bf766ff54 | [
"MIT"
] | null | null | null | src/gabby/udp_receiver.py | luanguimaraesla/gabby | 93212a83bcde9599a1a42d35d0d9263bf766ff54 | [
"MIT"
] | null | null | null | """
Tools to encapsulate generic receive connectors
"""
import logging
import time
import mqttsn.client as mqttsn
from collections import namedtuple
from .settings import UDP_URL, UDP_PORT
from .decorators import ensure_udp_connection
log = logging.getLogger('udpreceiver')
UDPMessage = namedtuple('UDPMessage', ['pay... | 26.77907 | 74 | 0.617455 |
f37b8f5c7b578b839ecbd2fcf931a116c7e5396d | 4,860 | py | Python | misc/marker/map.py | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 70 | 2015-11-16T18:04:01.000Z | 2022-03-05T09:04:02.000Z | misc/marker/map.py | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 1 | 2016-08-03T05:13:19.000Z | 2016-08-03T06:19:39.000Z | misc/marker/map.py | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 34 | 2015-12-15T17:29:23.000Z | 2021-11-18T14:15:12.000Z | #!/usr/bin/env python2
import os, sys, argparse, pylab, json
path = os.path.dirname(os.path.realpath(sys.argv[0]))
parser = argparse.ArgumentParser(description = 'Graphical view of marked locations')
parser.add_argument('--filename', type = str, help = 'File from which to read marks (defaults to marks.json)', default... | 36 | 134 | 0.648148 |
f37bd2d3826f6978ed09b73ecee68d64081a0fa6 | 1,028 | py | Python | src/tox_travis/hacks.py | disconnect3d/tox-travis | 58b594b1b0347e558d660c3089d0ae335c0fcc0c | [
"MIT"
] | null | null | null | src/tox_travis/hacks.py | disconnect3d/tox-travis | 58b594b1b0347e558d660c3089d0ae335c0fcc0c | [
"MIT"
] | null | null | null | src/tox_travis/hacks.py | disconnect3d/tox-travis | 58b594b1b0347e558d660c3089d0ae335c0fcc0c | [
"MIT"
] | null | null | null | import os
try:
from tox.config import default_factors
except ImportError:
default_factors = None
def pypy_version_monkeypatch():
"""Patch Tox to work with non-default PyPy 3 versions."""
# Travis virtualenv do not provide `pypy3`, which tox tries to execute.
# This doesnt affect Travis python ver... | 32.125 | 75 | 0.716926 |
f37e25fcba871387dd039c2c129311d5edc97e58 | 8,072 | py | Python | my_sound.py | comp-physics/bubble-dynamics-with-multiscale-resnets | 409c6b676f5c9b9219c9c6228e3c012382ae3389 | [
"MIT"
] | 1 | 2022-03-15T12:16:01.000Z | 2022-03-15T12:16:01.000Z | my_sound.py | comp-physics/bubble_dynamics_with_multiscale_resnets | 409c6b676f5c9b9219c9c6228e3c012382ae3389 | [
"MIT"
] | null | null | null | my_sound.py | comp-physics/bubble_dynamics_with_multiscale_resnets | 409c6b676f5c9b9219c9c6228e3c012382ae3389 | [
"MIT"
] | 1 | 2022-03-15T12:16:06.000Z | 2022-03-15T12:16:06.000Z |
import numpy as np
# #=========================================================
# # Input Arguments
# #=========================================================
# with open("parameters.yml", 'r') as stream:
# D = yaml.safe_load(stream)
#
# for key in D:
# globals() [str(key)] = D[key]
# print('{}: {}'.for... | 43.869565 | 124 | 0.436447 |
f37ed4232986be023beaaf668d06b5e77ac074e6 | 851 | py | Python | ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py | ragupta-git/ucscentralsdk | 2678008b5fb6b0fafafec388d0874147e95a1086 | [
"Apache-2.0"
] | null | null | null | ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py | ragupta-git/ucscentralsdk | 2678008b5fb6b0fafafec388d0874147e95a1086 | [
"Apache-2.0"
] | null | null | null | ucscentralsdk/methodmeta/LoggingSyncOcnsMeta.py | ragupta-git/ucscentralsdk | 2678008b5fb6b0fafafec388d0874147e95a1086 | [
"Apache-2.0"
] | null | null | null | """This module contains the meta information of LoggingSyncOcns ExternalMethod."""
from ..ucscentralcoremeta import MethodMeta, MethodPropertyMeta
method_meta = MethodMeta("LoggingSyncOcns", "loggingSyncOcns", "Version142b")
prop_meta = {
"cookie": MethodPropertyMeta("Cookie", "cookie", "Xs:string", "Version142b... | 40.52381 | 124 | 0.720329 |
f37ee31cfb8b47e410af4a949e4a6b40e2743fdd | 6,351 | py | Python | karaoke-maker/backend/search/file_search.py | MorsCerta-crypto/KaraokeMaker | 9784daa5595ba675ead83caf3bc94d2d14421495 | [
"MIT"
] | null | null | null | karaoke-maker/backend/search/file_search.py | MorsCerta-crypto/KaraokeMaker | 9784daa5595ba675ead83caf3bc94d2d14421495 | [
"MIT"
] | null | null | null | karaoke-maker/backend/search/file_search.py | MorsCerta-crypto/KaraokeMaker | 9784daa5595ba675ead83caf3bc94d2d14421495 | [
"MIT"
] | null | null | null | """
find song if already downloaded in filesystem
"""
from dataclasses import dataclass
import os
from pathlib import Path
from typing import Optional, Union
import pickle
from utils import Song
| 37.803571 | 110 | 0.571249 |