repo_name stringlengths 5 92 | path stringlengths 4 221 | copies stringclasses 19
values | size stringlengths 4 6 | content stringlengths 766 896k | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 32 997 | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 13.6 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Deledrius/korman | korman/properties/modifiers/region.py | 1 | 15953 | # This file is part of Korman.
#
# Korman is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Korman is distributed i... | gpl-3.0 | -1,248,840,267,233,175,300 | 41.769437 | 134 | 0.603021 | false | 3.92931 | false | false | false |
AuxinJeron/ACS-VRP | src/vrpmain.py | 1 | 1857 | from TsplibParser import parser as tspparser
from ArgParser import parser as argparser
from VRPCenter import VRPCenter
from TspPainter import tspPainter
import logging
# construct the logger
logger = logging.getLogger("logger")
logger.setLevel(logging.INFO)
logFormatter = logging.Formatter("%(asctime)s [%(threadName)s... | apache-2.0 | 7,920,056,264,688,182,000 | 33.407407 | 136 | 0.649435 | false | 3.351986 | false | false | false |
joshu/loan-eval-rabbit | async_logger.py | 1 | 2525 | from pika.adapters.twisted_connection import TwistedProtocolConnection
from pika.connection import ConnectionParameters
from twisted.internet import protocol, reactor, task
from twisted.python import log
import uuid
import json
import os
class Consumer(object):
def on_connected(self, connection):
d = conn... | mit | -1,238,929,204,795,590,700 | 31.371795 | 76 | 0.645545 | false | 3.878648 | false | false | false |
KeepSafe/translation-real-time-validaton | notifier/sync.py | 1 | 2907 | import asyncio
import logging
from . import const, compare
from .model import *
logger = logging.getLogger(__name__)
def _to_dc_items(wti_items, zendesk_items):
return [DynamicContentItem(key, wti_items.get(key), zendesk_item) for key, zendesk_item in zendesk_items.items()]
async def _get_all_translations(zen... | apache-2.0 | 4,294,154,491,269,031,000 | 36.753247 | 118 | 0.675611 | false | 3.255319 | false | false | false |
AnyChart/GraphicsJS | build.py | 1 | 14952 | #!/usr/bin/env python
# coding=utf-8
import os
import sys
import subprocess
import urllib
import zipfile
import platform
import shlex
import time
import json
import datetime
# =======================================================================================================================
# Project pa... | bsd-3-clause | -1,710,062,974,786,245,600 | 33.451613 | 336 | 0.524144 | false | 4.154487 | false | false | false |
evanhenri/memfog | src/database.py | 1 | 1615 | from sqlalchemy import Column, Integer, String, Text, create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
class Database:
def __init__(self, db_fp):
# Create an engine that stores data in db found at db_path
engine... | mit | -738,783,469,334,043,900 | 32.645833 | 96 | 0.643344 | false | 3.79108 | false | false | false |
jeremydw/google-apputils-python | tests/datelib_unittest.py | 1 | 8310 | #!/usr/bin/env python
# Copyright 2002 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | apache-2.0 | 4,097,536,020,298,167,300 | 34.512821 | 80 | 0.676775 | false | 3.494533 | true | false | false |
qbeenslee/Nepenthes-Server | data/db.py | 1 | 8333 | # coding:utf-8
'''
数据库
Author : qbeenslee
Created : 2014/10/10
'''
import time
import datetime
import sqlalchemy
from sqlalchemy import *
from sqlalchemy.orm import sessionmaker, relationship
from config import setting
from data.base_clazz import Base
def get_db():
'''
获取操作对象集合
:re... | gpl-3.0 | 5,364,762,305,518,218,000 | 32.458333 | 99 | 0.634422 | false | 2.653476 | false | false | false |
akarol/cfme_tests | cfme/physical/physical_server.py | 1 | 11597 | # -*- coding: utf-8 -*-
"""A model of an Infrastructure PhysicalServer in CFME."""
import attr
from navmazing import NavigateToSibling, NavigateToAttribute
from cached_property import cached_property
from wrapanapi.lenovo import LenovoSystem
from cfme.common import PolicyProfileAssignable, WidgetasticTaggable
from cfm... | gpl-2.0 | -3,648,648,376,430,438,400 | 36.898693 | 106 | 0.644218 | false | 4.135877 | false | false | false |
symac/wikidata | rugby/01_getListeJoueurs.py | 1 | 1035 | # -*- coding: utf-8 -*-
#!/usr/bin/python
import MySQLdb
import pywikibot
import sys
import re
import mwparserfromhell
from pywikibot import pagegenerators
'''
Ce script va récupérer toutes les pages qui utilisent le template "Infobox Rugbyman"
'''
site = pywikibot.Site("fr", "wikipedia")
def parse(title):
page = p... | gpl-2.0 | -8,651,722,581,256,401,000 | 26.184211 | 123 | 0.710271 | false | 2.923513 | false | false | false |
pirate42/docc | docc/image.py | 1 | 2823 | # coding=utf-8
from docc.exceptions import APIError
class Image(object):
"""Represent an Image object (name and distribution information)"""
def __init__(self, identifier, name, distribution):
self.id = identifier
self.name = name
self.distribution = distribution
def __repr__(se... | mit | 7,968,175,958,036,338,000 | 28.726316 | 77 | 0.57492 | false | 4.502392 | false | false | false |
Unity-Technologies/ml-agents | ml-agents-envs/mlagents_envs/registry/remote_registry_entry.py | 1 | 3260 | from sys import platform
from typing import Optional, Any, List
from mlagents_envs.environment import UnityEnvironment
from mlagents_envs.base_env import BaseEnv
from mlagents_envs.registry.binary_utils import get_local_binary_path
from mlagents_envs.registry.base_registry_entry import BaseRegistryEntry
class RemoteR... | apache-2.0 | 8,832,754,937,924,894,000 | 44.915493 | 87 | 0.647546 | false | 4.496552 | false | false | false |
wq/wq.db | tests/test_router.py | 1 | 2694 | from .base import APITestCase
from django.core.exceptions import ImproperlyConfigured
try:
from django.urls import include
except ImportError:
from django.conf.urls import include
class RestRouterTestCase(APITestCase):
def test_rest_model_conflict(self):
from wq.db import rest
from tests.c... | mit | -4,957,441,498,676,931,000 | 33.538462 | 76 | 0.598367 | false | 4.475083 | true | false | false |
pmitche/it3105-aiprogramming | project3/module6/deeplearning/layer.py | 1 | 1224 | import numpy as np
import theano
import theano.tensor as T
class HiddenLayer(object):
def __init__(self, input, num_in, number_of_nodes, activation):
self.num_in = num_in
self.number_of_nodes = number_of_nodes
self.weights = self.init_weights(activation)
self.output = activation(T... | mit | 273,362,223,681,299,230 | 33 | 100 | 0.596405 | false | 3.589443 | false | false | false |
BlackHole/enigma2-obh10 | lib/python/Tools/Downloader.py | 1 | 2535 | from boxbranding import getMachineBrand, getMachineName
from twisted.web import client
from twisted.internet import reactor, defer
from urlparse import urlparse
class HTTPProgressDownloader(client.HTTPDownloader):
def __init__(self, url, outfile, headers=None):
client.HTTPDownloader.__init__(self, url, outfile, h... | gpl-2.0 | -6,097,105,769,769,699,000 | 32.8 | 169 | 0.737673 | false | 3.318063 | false | false | false |
klocey/DiversityTools | StatPak/ACE.py | 1 | 3982 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
#scikit-bio/skbio/diversity/alpha/_ace.py
#Greg Caporasogregcaporaso on Aug 7, 2014 API: moved base.py to _base.py
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright (... | mit | 2,663,075,253,608,483,000 | 33.626087 | 79 | 0.615018 | false | 3.418026 | false | false | false |
sanjayankur31/pyjigdo | pyJigdo/base.py | 1 | 5381 | #
# Copyright 2007-2009 Fedora Unity Project (http://fedoraunity.org)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2, or (at your option) any
# later version.
#
# This program is di... | gpl-2.0 | 8,769,146,377,141,532,000 | 43.471074 | 90 | 0.584836 | false | 4.027695 | false | false | false |
nlamirault/portefaix | diagrams/certmanager.py | 1 | 3182 | #!/usr/bin/python3
# Copyright (C) 2020 Nicolas Lamirault <nicolas.lamirault@gmail.com>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | -5,073,813,048,137,684,000 | 44.442857 | 95 | 0.621188 | false | 4.512057 | false | false | false |
yunojuno/django-inbound-email | inbound_email/backends/sendgrid.py | 1 | 5539 | import json
import logging
from email.utils import getaddresses
from django.core.mail import EmailMultiAlternatives
from django.http import HttpRequest
from django.utils.datastructures import MultiValueDictKeyError
from django.utils.encoding import smart_text
from ..backends import RequestParser
from ..errors import... | mit | -6,551,924,801,335,674,000 | 36.938356 | 95 | 0.610399 | false | 4.4312 | false | false | false |
Lujeni/ansible | lib/ansible/modules/monitoring/zabbix/zabbix_host_info.py | 1 | 8077 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) me@mimiko.me
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'statu... | gpl-3.0 | -9,156,222,259,647,895,000 | 32.936975 | 142 | 0.604432 | false | 3.767257 | false | false | false |
arbenson/mrtsqr | dumbo/BtA.py | 1 | 2491 | """
Copyright (c) 2012-2014, Austin Benson and David Gleich
All rights reserved.
This file is part of MRTSQR and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
"""
"""
BtA.py
===========
Driver code f... | bsd-2-clause | 7,643,623,938,800,354,000 | 26.076087 | 75 | 0.638298 | false | 3.247718 | false | false | false |
facebookresearch/faiss | benchs/bench_index_flat.py | 1 | 2187 | #!/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.
import time
import os
import numpy as np
import faiss
from faiss.contrib.datasets import SyntheticDataset
os.system... | mit | -6,713,802,029,258,484,000 | 24.114943 | 72 | 0.474142 | false | 3.576105 | false | false | false |
nanomolina/controlDeGastos | Windows/openWindow.py | 1 | 5551 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'new.ui'
#
# Created: Fri Aug 15 21:30:13 2014
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
import sys
from os import getcwd, listdir
from os.path import j... | gpl-2.0 | -6,159,931,926,551,762,000 | 39.518248 | 107 | 0.631057 | false | 3.666446 | false | false | false |
mottosso/mindbender-setup | bin/pythonpath/raven/contrib/django/client.py | 1 | 10355 | # -*- coding: utf-8 -*-
"""
raven.contrib.django.client
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import time
import logging
from django.conf import settings
from dj... | mit | -6,920,952,999,196,945,000 | 33.055921 | 84 | 0.552014 | false | 4.437634 | false | false | false |
JeremyOT/Toto | toto/zmqworkerconnection.py | 1 | 10185 | import toto
import zmq
import cPickle as pickle
import zlib
import logging
from toto.exceptions import *
from toto.workerconnection import WorkerConnection
from threading import Thread
from tornado.options import options
from tornado.gen import Task
from collections import deque
from zmq.eventloop.ioloop import ZMQPoll... | mit | 51,147,384,794,014,200 | 47.5 | 319 | 0.68434 | false | 4.179319 | false | false | false |
coddingtonbear/django-location | location/signals.py | 1 | 1394 | from django.dispatch.dispatcher import Signal
from location.models import LocationSnapshot
location_updated = Signal(providing_args=['user', 'from_', 'to'])
location_changed = Signal(providing_args=['user', 'from_', 'to'])
class watch_location(object):
def __init__(self, user):
self.user = user
de... | mit | -3,250,612,997,930,834,400 | 29.304348 | 65 | 0.537303 | false | 4.646667 | false | false | false |
pck886/kicomav | Engine/plugins/emalware.py | 1 | 12387 | # -*- coding:utf-8 -*-
# Author: Kei Choi(hanul93@gmail.com)
import os
import re
import kernel
import kavutil
import cryptolib
# -------------------------------------------------------------------------
# KavMain 클래스
# -------------------------------------------------------------------------
class KavMain:
# --... | gpl-2.0 | 4,424,197,806,499,684,000 | 41.310861 | 115 | 0.409843 | false | 2.812998 | false | false | false |
DHTC-Tools/logstash-confs | condor/python/split-index.py | 1 | 5102 | #!/usr/bin/env python
import datetime
import argparse
import sys
import logging
import pytz
import elasticsearch
import elasticsearch.helpers
ES_NODES = 'uct2-es-door.mwt2.org'
VERSION = '0.1'
SOURCE_INDEX = 'osg-connect-job-details'
def get_start_week(start_date):
"""
Return a datetime that starts at the ... | apache-2.0 | -7,657,909,026,755,955,000 | 33.945205 | 92 | 0.546844 | false | 4.338435 | false | false | false |
phoebe-project/phoebe2-docs | 2.0/tutorials/irrad_method_horvat.py | 1 | 3065 | #!/usr/bin/env python
# coding: utf-8
# Lambert Scattering (irrad_method='horvat')
# ============================
#
# Setup
# -----------------------------
# Let's first make sure we have the latest version of PHOEBE 2.0 installed. (You can comment out this line if you don't use pip for your installation or don't wa... | gpl-3.0 | -2,983,392,925,752,449,000 | 25.422414 | 203 | 0.675041 | false | 2.987329 | false | false | false |
Bharath-J/Mezzanine | setup.py | 1 | 4939 |
# #import os
# #import sys
# #from setuptools import setup, find_packages
# #from shutil import rmtree
# #from mezzanine import __version__ as version
# #exclude = ["mezzanine/project_template/dev.db",
# # "mezzanine/project_template/project_name/local_settings.py"]
# #if sys.argv == ["setup.py", "test"]:
... | bsd-2-clause | 2,649,597,721,540,508,700 | 34.028369 | 79 | 0.524398 | false | 3.802156 | false | false | false |
mcclurmc/juju | juju/providers/ec2/tests/common.py | 1 | 7904 | from yaml import dump
from twisted.internet.defer import fail, succeed
from txaws.s3.client import S3Client
from txaws.s3.exception import S3Error
from txaws.ec2.client import EC2Client
from txaws.ec2.exception import EC2Error
from txaws.ec2.model import Instance, Reservation, SecurityGroup
from juju.lib.mocker impo... | agpl-3.0 | -6,238,537,517,998,629,000 | 35.762791 | 78 | 0.602859 | false | 3.770992 | false | false | false |
jelmer/python-fastimport | fastimport/processors/filter_processor.py | 1 | 11587 | # Copyright (C) 2009 Canonical Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in ... | gpl-2.0 | -4,424,120,872,560,378,000 | 36.866013 | 77 | 0.586778 | false | 4.387353 | false | false | false |
wgkoro/Countdown-Reader-closing | source/libs/utils.py | 1 | 1190 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import string
import re
import random
import hashlib
from flask import request, session
def generate_csrf_token():
rand_str = randstr(20)
session['_csrf_token'] = get_session_token(rand_str)
return rand_str
def get_session_token(rand_str):
key = 'SaltOfToken... | mit | -7,334,088,037,797,551,000 | 19.517241 | 63 | 0.612605 | false | 3.361582 | false | false | false |
OnroerendErfgoed/skosprovider_heritagedata | setup.py | 1 | 1309 | import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovider>=0.6.0',
... | mit | 516,847,866,655,250,750 | 27.456522 | 83 | 0.662338 | false | 3.616022 | false | true | false |
alexad2/XeRPI | Xe1T_Kr83m_Note/lce_helpers_v2.py | 1 | 8006 | import numpy as np
from collections import defaultdict
import ROOT
from subprocess import call
import pandas as pd
##################################################################################################
def atan(y, x):
phi = np.arctan2(y, x)
for i in range(len(phi)):
if phi[i] < 0:
... | gpl-3.0 | -3,472,338,365,560,601,000 | 36.586854 | 126 | 0.402823 | false | 3.306898 | false | false | false |
adobe-type-tools/robofont-scripts | Anchors/AnchorsOutput.py | 1 | 3389 | from __future__ import print_function
__copyright__ = __license__ = """
Copyright (c) 2013-2019 Adobe Systems Incorporated. All rights reserved.
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 wi... | mit | 5,904,105,215,958,060,000 | 29.258929 | 85 | 0.701682 | false | 3.720088 | false | false | false |
infothrill/python-viscosity-app | viscosity_app/vpn.py | 1 | 4333 | """
This module provides procedures to interact in a programmatic way with the
application "Viscosity" from http://www.sparklabs.com/viscosity/ using the
OS X applescripting interface.
"""
import logging
import time
import applescript
from .observer import Subject
EVT_VPN_STOPPED = 100
EVT_VPN_STARTED = 101
def c... | mit | 6,369,262,081,582,387,000 | 31.825758 | 126 | 0.648973 | false | 4.049533 | false | false | false |
klnusbaum/UDJ-Server | udjserver/udj/views/views07/user_modification.py | 1 | 2613 | import json
import re
from udj.views.views07.decorators import NeedsJSON
from udj.views.views07.decorators import AcceptsMethods
from udj.views.views07.decorators import HasNZJSONParams
from udj.views.views07.authdecorators import NeedsAuth
from udj.views.views07.responses import HttpResponseConflictingResource
from u... | gpl-2.0 | 8,605,335,649,776,238,000 | 29.741176 | 80 | 0.760046 | false | 3.853982 | false | false | false |
StellarCN/py-stellar-base | stellar_sdk/base_transaction_envelope.py | 1 | 5708 | from abc import abstractmethod
from typing import List, Union, Generic, TypeVar
from . import xdr as stellar_xdr
from .exceptions import SignatureExistError
from .keypair import Keypair
from .network import Network
from .utils import hex_to_bytes, sha256
T = TypeVar("T")
class BaseTransactionEnvelope(Generic[T]):
... | apache-2.0 | -428,335,434,075,978,200 | 37.567568 | 123 | 0.658549 | false | 4.298193 | false | false | false |
hail-is/hail | hail/python/hailtop/cleanup_gcr/__main__.py | 1 | 2922 | import sys
import time
import logging
import asyncio
import aiohttp
import hailtop.aiogoogle as aiogoogle
log = logging.getLogger(__name__)
class AsyncIOExecutor:
def __init__(self, parallelism):
self._semaphore = asyncio.Semaphore(parallelism)
async def _run(self, fut, aw):
async with self.... | mit | 2,255,893,551,007,446,000 | 29.123711 | 117 | 0.605065 | false | 3.809648 | false | false | false |
partofthething/home-assistant | tests/components/unifi/conftest.py | 1 | 1068 | """Fixtures for UniFi methods."""
from typing import Optional
from unittest.mock import patch
from aiounifi.websocket import SIGNAL_CONNECTION_STATE, SIGNAL_DATA
import pytest
@pytest.fixture(autouse=True)
def mock_unifi_websocket():
"""No real websocket allowed."""
with patch("aiounifi.controller.WSClient")... | mit | -5,269,824,949,856,575,000 | 29.514286 | 78 | 0.627341 | false | 4.139535 | false | false | false |
DayGitH/Family-Tree | worker.py | 1 | 28764 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'worker.ui'
#
# Created: Tue Jul 12 16:21:50 2016
# by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(se... | cc0-1.0 | -7,275,819,988,399,845,000 | 71.453401 | 163 | 0.742212 | false | 3.918267 | false | false | false |
rasbt/advent-of-code-2016 | python_code/aoc_08_02.py | 1 | 10351 | # Sebastian Raschka, 2016
"""
source: http://adventofcode.com/2016/day/8
DESCRIPTION
You come across a door implementing what you can only assume is an
implementation of two-factor authentication after a long
game of requirements telephone.
To get past the door, you first swipe a keycard (no problem; there was one ... | mit | -4,137,628,623,510,542,300 | 33.274834 | 135 | 0.495314 | false | 4.252671 | false | false | false |
SCUT16K/SmsSender | server/utils/commands.py | 1 | 1286 | # -*- coding: utf-8 -*-
import sys
import gevent.wsgi
import gevent.monkey
from werkzeug.contrib import profiler
from flask_script import Command
class ProfileServer(Command):
"""
Run the server with profiling tools
"""
def __init__(self, host='localhost', port=9000, **options):
self.por... | apache-2.0 | -2,121,802,192,813,314,800 | 26.956522 | 94 | 0.566874 | false | 3.981424 | false | false | false |
matt77hias/Clipping | src/intersection.py | 1 | 1377 | import numpy as np
###############################################################################
## Intersection utilities 2D
###############################################################################
def intersect2D(c_v1, c_v2, p_v1, p_v2):
A1 = c_v2[1] - c_v1[1]
B1 = c_v1[0] - c_v2[0]
C1 = c_v1[0... | gpl-3.0 | 6,211,066,492,931,171,000 | 26 | 79 | 0.335512 | false | 2.257377 | false | false | false |
robmcmullen/peppy | peppy/project/editra/BZR.py | 1 | 9992 | ###############################################################################
# Name: Cody Precord #
# Purpose: SourceControl implementation for Bazaar #
# Author: Cody Precord <cprecord@editra.org> #
... | gpl-2.0 | 5,564,929,580,805,322,000 | 34.942446 | 91 | 0.470877 | false | 4.608856 | false | false | false |
fafaschiavo/lol-api-webapp | lolapiwebapp/stock/views.py | 1 | 17940 | from pprint import pprint
from django.shortcuts import render
from django.http import HttpResponse
from django.conf import settings
from stock.models import Hero, mastery, Rune
import json, requests, grequests
# Create your procedures here.
def searchSummonerStats(summoner_id):
context = {}
if type(summon... | gpl-3.0 | -8,273,637,906,974,307,000 | 39.046875 | 434 | 0.608696 | false | 3.332714 | false | false | false |
cfusting/arctic-browning | utilities/learning_data.py | 1 | 4957 | import os
import ntpath
import re
from functools import partial
import h5py
import design_matrix as dm
class LearningData:
DEFAULT_PREFIX = 'ARG'
CSV = '.csv'
HDF = '.hdf'
def __init__(self):
self.num_variables = None
self.num_observations = None
self.predictors = None
... | gpl-3.0 | 630,932,586,585,630,200 | 32.268456 | 100 | 0.617511 | false | 3.573901 | false | false | false |
nonemaw/Flask_nonemaw | app/science/views.py | 1 | 2703 |
from flask import render_template, request, redirect, url_for
from flask_login import current_user, login_required
from bson import ObjectId
from . import science
from .compute import compute
from .forms import populate_form_from_instance, ComputeForm
from .. import db_s
from ..models_science import Compute
# http... | mit | -692,888,562,903,513,600 | 34.565789 | 79 | 0.616352 | false | 3.637954 | false | false | false |
IanLewis/homepage | homepage/runner.py | 1 | 2657 | # :coding=utf-8:
import os
import argparse
import django
from django.core.management import call_command
from waitress import serve
from homepage import __version__ as VERSION
from homepage.wsgi import application
def start(args):
"""
Starts the homepage application server.
"""
serve(application, ... | mit | 8,793,610,769,817,218,000 | 23.601852 | 87 | 0.641325 | false | 4.04414 | false | false | false |
GoeGaming/lutris | lutris/config.py | 1 | 10735 | #!/usr/bin/python
# -*- coding:Utf-8 -*-
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WA... | gpl-3.0 | 1,786,690,622,427,660,800 | 36.274306 | 78 | 0.606148 | false | 3.993676 | true | false | false |
geophysics/mtpy | mtpy/uofa/bayesian1d.py | 1 | 2126 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on 31.07.2013
@author: LK@UofA
mtpy/uofa/bayesian1d.py
Module for handling the UofA Bayesian 1D inversion/modelling code.
"""
import os
import sys
import os.path as op
import mtpy.utils.filehandling as MTfh
import mtpy.core.edi as EDI
import mtpy.utils.ex... | gpl-3.0 | 2,121,404,373,755,960,000 | 20.049505 | 69 | 0.648636 | false | 2.421412 | false | false | false |
di/vladiate | vladiate/inputs.py | 1 | 2379 | import io
try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from vladiate.exceptions import MissingExtraException
class VladInput(object):
""" A generic input class """
def ... | mit | 376,685,929,278,033,800 | 24.858696 | 87 | 0.565784 | false | 4.087629 | false | false | false |
dagon666/napi | tests/integration_tests/napi/scpmocker.py | 1 | 1963 | import os
import subprocess
class ScpMocker(object):
"""
This class interfaces to scpmocker - a programmable command mock.
"""
def __init__(self, scpMockerPath, sandboxPath):
self.scpMockerPath = scpMockerPath
self.sandboxPath = sandboxPath
self.binPath = os.path.join(self.sand... | gpl-3.0 | -5,285,952,767,629,290,000 | 27.449275 | 73 | 0.55731 | false | 3.543321 | false | false | false |
esrf-bliss/Lima-camera-andor3 | tango/Andor3.py | 1 | 13277 | ############################################################################
# This file is part of LImA, a Library for Image Acquisition
#
# Copyright (C) : 2009-2014
# European Synchrotron Radiation Facility
# BP 220, Grenoble 38043
# FRANCE
#
# This is free software; you can redistribute it and/or modify
# it under ... | gpl-3.0 | -8,108,087,734,343,641,000 | 34.031662 | 139 | 0.442269 | false | 4.386191 | false | false | false |
gadeleon/chromatic_circle | questions.py | 1 | 1751 | '''
Questions generation functions
'''
import random
def degree(note, scale, degree):
'''
What is the <Number> of <Note> <Scale>?
'''
try:
answer = raw_input('What is the {} of {} {}: '.format(str(degree + 1), note, scale.capitalize()))
return answer, degree
except KeyboardInterru... | mit | -1,124,495,998,507,797,200 | 25.530303 | 105 | 0.537978 | false | 3.848352 | false | false | false |
jupyter-widgets/ipywidgets | ipywidgets/widgets/widget_media.py | 1 | 7783 | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import mimetypes
from .widget_core import CoreWidget
from .domwidget import DOMWidget
from .valuewidget import ValueWidget
from .widget import register
from traitlets import Unicode, CUnicode, Bool
from .trait_types i... | bsd-3-clause | -1,439,636,317,653,839,400 | 33.745536 | 132 | 0.620326 | false | 4.009789 | false | false | false |
BorgERP/borg-erp-6of3 | l10n_hr/l10n_hr_account/account_invoice.py | 1 | 8374 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012 Slobodni programi d.o.o. (<http://www.slobodni-programi.com>).
# $Id$
#
# This program is free software: you can redistribute it and/or m... | agpl-3.0 | -3,190,680,389,484,607,500 | 44.759563 | 112 | 0.524242 | false | 3.884045 | false | false | false |
jmpews/torweb | tests/test_blog_load_from_md.py | 1 | 2367 | # coding:utf-8
import sys, os
import os.path
sys.path.append(os.path.dirname(sys.path[0]))
from settings.config import config
from peewee import Model, MySQLDatabase
mysqldb = MySQLDatabase('',
user=config.BACKEND_MYSQL['user'],
password=config.BACKEND_MYSQL['password']... | mit | 728,075,483,062,490,800 | 27.670732 | 81 | 0.553382 | false | 3.53003 | true | false | false |
ageron/tensorflow | tensorflow/python/ops/custom_gradient.py | 1 | 12977 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -7,386,745,741,267,146,000 | 44.059028 | 86 | 0.681282 | false | 3.988015 | false | false | false |
alexsalo/genenetwork2 | wqflask/base/webqtlConfig.py | 1 | 3470 | #########################################'
# Environment Variables - public
#########################################
#Debug Level
#1 for debug, mod python will reload import each time
DEBUG = 1
#USER privilege
USERDICT = {'guest':1,'user':2, 'admin':3, 'root':4}
#minimum number of informative strains
KMININFOR... | agpl-3.0 | -4,796,549,076,374,986,000 | 44.064935 | 148 | 0.711816 | false | 2.441942 | false | false | false |
MisanthropicBit/pygments-sisal | setup.py | 1 | 1494 | """pygments-sisal module setup script for distribution."""
from __future__ import with_statement
import os
import setuptools
def get_version(filename):
with open(filename) as fh:
for line in fh:
if line.startswith('__version__'):
return line.split('=')[-1].strip()[1:-1]
set... | mit | 8,996,431,354,112,685,000 | 32.2 | 71 | 0.613119 | false | 3.973404 | false | false | false |
lmazuel/azure-sdk-for-python | azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/virtual_machine_scale_set_instance_view_py3.py | 1 | 1931 | # 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 ... | mit | -237,297,689,070,112,480 | 39.229167 | 114 | 0.65044 | false | 4.608592 | false | false | false |
larryhq/railguns | railguns/django/generics.py | 1 | 1295 | from django.conf import settings
from django.shortcuts import render
from django.utils.translation import ugettext_lazy as _
from django.views.generic.base import TemplateView
# headers = get_headers(request, ['HTTP_APP_SCHEME', 'HTTP_USER_AGENT', 'HTTP_HOST'])
# print(headers)
def get_headers(request, keys=[]):
... | mit | 7,655,970,432,009,576,000 | 42.166667 | 144 | 0.671042 | false | 3.63764 | false | false | false |
GuLinux/PySpectrum | reference_catalogues.py | 1 | 1870 | from PyQt5.QtCore import QStandardPaths
import os
import json
import urllib.request
import gzip
import collections
class ReferenceCatalogues:
def __init__(self, database):
self.database = database
c = database.cursor()
cats = c.execute('SELECT id, "table", "name", spectra_url, gzipped, file... | gpl-3.0 | -121,556,637,745,708,210 | 45.775 | 183 | 0.605882 | false | 3.610039 | false | false | false |
TemoaProject/temoa | data_processing/GraphVizFormats.py | 1 | 5096 | # SVG Formats
results_dot_fmt = """\
strict digraph model {
label = "Results for %(period)s"
rankdir = "LR" ;
smoothtype = "power_dist" ;
splines = "%(splinevar)s" ;
node [ style="filled" ] ;
edge [ arrowhead="vee" ] ;
subgraph unused_techs {
node [
color = "%(unused_color)s",
fontcolor = "%(un... | gpl-2.0 | -627,595,549,209,957,600 | 16.697917 | 89 | 0.57084 | false | 2.643154 | false | false | false |
GNOME/dia | plug-ins/python/dot2dia.py | 1 | 9213 | # PyDia DOT Import
# Copyright (c) 2009 Hans Breuer <hans@breuer.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later v... | gpl-2.0 | -8,080,859,749,009,912,000 | 31.670213 | 152 | 0.628568 | false | 2.833897 | false | false | false |
EmanueleCannizzaro/scons | test/Interactive/help.py | 1 | 2710 | #!/usr/bin/env python
#
# Copyright (c) 2001 - 2016 The SCons Foundation
#
# 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 us... | mit | -3,640,869,122,940,750,000 | 28.78022 | 98 | 0.675646 | false | 3.594164 | true | false | false |
delattreb/TemperatureHumidityServer | Doc/ssd1306-master/tests/test_sh1106.py | 1 | 2109 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from unittest.mock import call, Mock
except ImportError:
from mock import call, Mock
import pytest
from oled.device import sh1106
from oled.render import canvas
import baseline_data
serial = Mock(unsafe=True)
def setup_function(function):
serial.reset... | gpl-3.0 | -2,187,029,735,590,444,800 | 24.409639 | 72 | 0.626363 | false | 3.379808 | true | false | false |
ICTU/quality-time | docs/src/create_metrics_and_sources_md.py | 1 | 8299 | """Script to convert the data model in a Markdown file."""
import json
import pathlib
import re
import sys
TYPE_DESCRIPTION = dict(
url="URL",
string="String",
multiple_choice="Multiple choice",
password="Password",
integer="Integer",
date="Date",
single_choice="Single choice",
multipl... | apache-2.0 | 7,844,623,377,795,428,000 | 44.56044 | 119 | 0.614689 | false | 4.003863 | true | false | false |
OpenKMIP/PyKMIP | kmip/services/server/monitor.py | 1 | 6822 | # Copyright (c) 2018 The Johns Hopkins University/Applied Physics Laboratory
# 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/LICEN... | apache-2.0 | -7,231,256,344,903,181,000 | 37.982857 | 78 | 0.552331 | false | 4.361893 | false | false | false |
rthallisey/clapper | ansible-tests/mistral/tripleo_validations/actions/load_validations.py | 1 | 2621 | import glob
import logging
import os
import yaml
from mistral.actions import base
LOG = logging.getLogger(__name__)
DEFAULT_METADATA = {
'name': 'Unnamed',
'description': 'No description',
'stage': 'No stage',
'require_plan': True,
'groups': [],
}
VALIDATIONS_DIR = '/usr/share/tripleo-validation... | apache-2.0 | -3,117,070,980,614,347,300 | 30.578313 | 78 | 0.563144 | false | 4.419899 | false | false | false |
mcrav/XDToolkit | src/emailfuncs.py | 1 | 1465 | '''
#####################################################################
#-------------------EMAIL--------------------------------------------
#####################################################################
'''
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEA... | gpl-3.0 | 5,255,107,755,861,065,000 | 30.847826 | 91 | 0.519454 | false | 4.046961 | false | false | false |
tavy14t/tw_project | Testing/Pocket_Testing.py | 1 | 4909 | import os
import sys
import requests
import time
from pocket import Pocket
import webbrowser
import collections
import json
sys.dont_write_bytecode = True
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "trex.settings")
import django
django.setup()
from restapi.models import *
from random import randint
# POCKET_CON... | mit | 6,632,174,290,124,783,000 | 29.302469 | 140 | 0.586881 | false | 3.314652 | false | false | false |
stryku/hb | image_processing/tesseract/trainer.py | 1 | 1576 | from subprocess import call
BUILD_DIR='build'
FONTa='Fake Receipt'
LANG='hb'
OUTPUTBASE = LANG + '.' + FONTa
def call_shell(command):
splitted = command.split()
call(splitted)
print(command)
def text2image(text_file):
splitted = str('text2image --text=' + text_file + ' --fonts_dir ..').split()
... | mit | 1,929,229,213,959,798,300 | 20.013333 | 80 | 0.613579 | false | 3.317895 | false | false | false |
frankyrumple/smc | modules/ednet/sequentialguid.py | 1 | 5058 | ###### SequentialGUID
import os
import datetime
import sys
from binascii import unhexlify, hexlify
import uuid
class SequentialGUID:
SEQUENTIAL_GUID_AS_STRING = 0
SEQUENTIAL_GUID_AS_BINARY = 1
SEQUENTIAL_GUID_AT_END = 2
def __init__(self):
pass
@staticmethod
def NewGUID(guid_type = SE... | mit | 5,169,569,458,561,843,000 | 36.466667 | 111 | 0.574733 | false | 3.522284 | false | false | false |
suttond/MODOI | SimulationClient/SimulationClient.py | 1 | 12355 | from multiprocessing.connection import Client
import time
import logging
import socket
import numpy as np
from SimulationUtilities import Configuration_Processing
from SimulationUtilities.Communication_Codes import comm_code
import LinearAlgebra as la
from CustomBFGS import find_geodesic_midpoint
from MetricValues im... | lgpl-3.0 | 1,447,833,398,627,233,500 | 53.192982 | 120 | 0.637556 | false | 5.071839 | true | false | false |
7sDream/zhihu-py3 | zhihu/topic.py | 1 | 17794 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
from datetime import datetime
from .common import *
from .base import BaseZhihu
class Topic(BaseZhihu):
"""答案类,请使用``ZhihuClient.topic``方法构造对象."""
@class_common_init(re_topic_url)
def __init__(self, url, name=None, session=None):
"""创建话... | mit | -5,743,376,127,175,184,000 | 33.827731 | 79 | 0.495597 | false | 3.359951 | false | false | false |
simonzhangsm/voltdb | tools/kit_tools/build_kits.py | 1 | 13604 | #!/usr/bin/env python
import argparse, datetime, getpass, os, sys, shutil, traceback
from fabric.api import run, cd, local, get, settings, lcd, put
from fabric_ssh_config import getSSHInfoForHost
from fabric.context_managers import shell_env
from fabric.utils import abort
#Login as user test, but build in a directory... | agpl-3.0 | -8,301,504,353,190,448,000 | 38.204611 | 222 | 0.600706 | false | 3.564056 | false | false | false |
boland1992/SeisSuite | bin/SNR_plots.py | 1 | 4053 | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 16 23:34:00 2015
@author: boland
"""
from seissuite.ant import (pscrosscorr)
import glob
import os
import pickle
#PICKLE_PATH = '/storage/ANT/PROGRAMS/ANT_OUTPUT/OUTPUT/CROSS/06.05.2015-15:53:28/XCORR-STACK_01.01.2014-31.12.2014_datalesspaz.pickle'
#PICKLE_PATH = '/home/... | gpl-3.0 | 5,854,662,131,405,317,000 | 33.649573 | 135 | 0.681964 | false | 3.100995 | true | false | false |
fras2560/mlsb-platform | api/basic/bat.py | 1 | 8517 | '''
@author: Dallas Fraser
@date: 2016-04-12
@organization: MLSB API
@summary: The basic bat API
'''
from flask_restful import Resource, reqparse
from flask import Response, request
from json import dumps
from api import DB
from api.model import Bat
from api.authentication import requires_admin
from api.errors import B... | apache-2.0 | -8,683,075,583,298,692,000 | 33.905738 | 79 | 0.480099 | false | 4.352069 | false | false | false |
sani-coop/tinjaca | doc/informe1/_graphviz/fomdes_proc4.py | 1 | 2522 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
BPMN diagram for FOMDES process 1
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from bpmn_pgv import *
import pygraphviz as pgv
__author__ = 'mapologo'
PROCE... | gpl-2.0 | -3,765,425,523,692,363,000 | 36.477612 | 139 | 0.597372 | false | 2.856655 | false | false | false |
shashwat91/Wireless_Networking-ET4394 | GNU_Radio/Output/Output_window.py | 1 | 8961 | #!/usr/bin/env python2
##################################################
# GNU Radio Python Flow Graph
# Title: Output Window
# Generated: Sat Apr 30 16:45:27 2016
##################################################
if __name__ == '__main__':
import ctypes
import sys
if sys.platform.startswith('linux'):
... | gpl-3.0 | -1,901,618,430,034,386,400 | 36.810127 | 148 | 0.579734 | false | 3.224541 | false | false | false |
AMOboxTV/AMOBox.LegoBuild | plugin.video.salts/scrapers/myvideolinks_scraper.py | 1 | 4919 | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | gpl-2.0 | -8,640,232,997,686,215,000 | 37.429688 | 191 | 0.599106 | false | 3.531228 | false | false | false |
IA-MP/KnightTour | libs/IO/txt_generator.py | 1 | 2729 | import os
from time import time
from libs.IO.input_generator import generate_input
def generate_name_file(kind, path):
"""
This function allows to generate sequential input file name
@param kind: int, 0 if input, 1 if output
@param path: string, the path where generate file
@return: string, the n... | mit | 5,538,565,594,786,700,000 | 33.1125 | 123 | 0.512642 | false | 4.048961 | false | false | false |
sbarton272/AcousticBarcodes-Explorations | barcodes/dxfwrite/tests/test_viewport_entity.py | 1 | 1662 | #!/usr/bin/env python
#coding:utf-8
# Created: 10.02.2010
# Copyright (C) 2010, Manfred Moitzi
# License: MIT License
__author__ = "mozman <mozman@gmx.at>"
import unittest
from dxfwrite.entities import Viewport
from dxfwrite import dxfstr, DXFEngine
class TestViewportEntity(unittest.TestCase):
expected = " 0\n... | mit | 3,518,769,548,850,778,000 | 32.24 | 97 | 0.633574 | false | 2.236878 | true | false | false |
raelga/gtav_crew_exporter | gtav_crew_exporter.py | 1 | 10812 | #!/usr/bin/python
#### Import modules
from selenium import selenium
from selenium import webdriver
import sys, time, re, string, getopt
#### Constants
default_crew = 'elotrolado'
login_url = 'https://socialclub.rockstargames.com/profile/signin'
base_crew_url = 'http://socialclub.rockstargames.com/crew'
path_gtav_bas... | gpl-2.0 | 1,753,025,060,716,105,000 | 27.452632 | 122 | 0.515631 | false | 3.616054 | false | false | false |
ActiveState/code | recipes/Python/360698_Extending_pythprolog_syntax/recipe-360698.py | 1 | 8888 | #
# pythologic2.py
#
# Add logic programming (Prolog) syntax and *resolution* into Python.
#
# (c) 2004 Francisco Coelho
# after (c) 2004 Shai Berger
# and AIMA examples
#
import string
import copy
class Struct:
def __init__(self, database, head, subs):
"""
The head and subs are essential - what... | mit | 1,482,748,753,242,608,400 | 27.670968 | 143 | 0.502813 | false | 4.107209 | false | false | false |
adamlwgriffiths/pyfilesystem | fs/watch.py | 1 | 23532 | """
fs.watch
========
Change notification support for FS.
This module defines a standard interface for FS subclasses that support change
notification callbacks. It also offers some WrapFS subclasses that can
simulate such an ability on top of an ordinary FS object.
An FS object that wants to be "watchable" must pro... | bsd-3-clause | -2,816,136,849,653,434,000 | 34.386466 | 130 | 0.581464 | false | 4.07269 | false | false | false |
mudyc/deftity | text.py | 1 | 2784 | # deftity - a tool for interaction architect
#
# Copyright (C) 2011 Matti Katila
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any late... | gpl-2.0 | 6,217,041,692,376,003,000 | 32.95122 | 80 | 0.619253 | false | 3.233449 | false | false | false |
minesense/VisTrails | vistrails/db/versions/v0_8_1/translate/v0_8_0.py | 2 | 4302 | ###############################################################################
##
## Copyright (C) 2014-2016, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | bsd-3-clause | -7,632,964,265,899,056,000 | 48.448276 | 87 | 0.630404 | false | 4.34107 | false | false | false |
bohdan-shramko/learning-python | source/chapter05/geek_translator.py | 1 | 2413 | # Geek Translator
# Demonstrates using dictionaries
geek = {"404": "clueless. From the web error message 404, meaning page not found.",
"Googling": "searching the Internet for background information on a person.",
"Keyboard Plaque" : "the collection of debris found in computer keyboards.",
"Li... | mit | -6,250,750,825,611,069,000 | 31.173333 | 95 | 0.56237 | false | 3.917208 | false | false | false |
kacchan822/django-chatwork | chatwork/utils.py | 1 | 1552 | from django.template.loader import render_to_string
from .api import ChatworkApiClient
client = ChatworkApiClient()
api_account_info = client.get_my_profile()
api_account_id = getattr(api_account_info, 'account_id', '0')
api_room_id = getattr(api_account_info, 'room_id', '0')
def get_rooms(room_type='group'):
... | mit | 5,175,957,696,668,686,000 | 26.764706 | 70 | 0.632768 | false | 2.71785 | false | false | false |
COCS4950G7/COSC4950 | Source/demoCrack2.py | 1 | 6002 | # Chris Bugg
# 10/1/14
# NOTE: Runs on Python 2.7.6
# UPDATE:
# 10/10/14
# -> Now runs with 8 sub-processes using
# the [a-z] alphabet
import hashlib
from time import time
from multiprocessing import Process, Pipe, Lock
import os
class DemoCrack():
algorithm = "sha256"
origHash = '... | gpl-3.0 | -6,494,871,366,440,019,000 | 18.178914 | 74 | 0.489837 | false | 4.147892 | false | false | false |
home-assistant/home-assistant | homeassistant/components/juicenet/__init__.py | 1 | 3040 | """The JuiceNet integration."""
from datetime import timedelta
import logging
import aiohttp
from pyjuicenet import Api, TokenError
import voluptuous as vol
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import CONF_ACCESS_TOKEN
from homeassistant.core import HomeAssistan... | apache-2.0 | 7,707,611,442,826,321,000 | 27.679245 | 82 | 0.694079 | false | 3.753086 | true | false | false |
gt-ros-pkg/hrl-pr2 | hrl_pr2_lib/src/hrl_pr2_lib/pr2.py | 1 | 22369 | import roslib; roslib.load_manifest('hrl_pr2_lib')
import rospy
import actionlib
import actionlib_msgs.msg as amsg
import move_base_msgs.msg as mm
import sensor_msgs.msg as sm
import pr2_controllers_msgs.msg as pm
import trajectory_msgs.msg as tm
import pr2_mechanism_msgs.srv as pmm
import std_msgs.msg as stdm
import ... | bsd-3-clause | 4,273,235,845,285,186,600 | 34.338073 | 137 | 0.589611 | false | 3.146575 | false | false | false |
qenops/dGraph | test/test5.py | 1 | 5488 | #!/usr/bin/python
'''Test for an openGL based stereo renderer - test binocular rendering to a single window
David Dunn
Feb 2017 - created
www.qenops.com
'''
__author__ = ('David Dunn')
__version__ = '1.0'
import OpenGL
OpenGL.ERROR_CHECKING = False # Uncomment for 2x speed up
OpenGL.ERROR_LOGGING = False ... | apache-2.0 | 1,592,792,672,699,302,100 | 35.586667 | 174 | 0.622449 | false | 3.218768 | false | false | false |
taxpon/pyomni | pyomni/pyomni.py | 1 | 5467 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import sys
import io
import zipfile
import logging
import datetime
from pyomni import util
from pyomni.webdav.WebdavClient import CollectionStorer
from pyomni.webdav.WebdavClient import ResourceStorer
from pyomni.webdav.WebdavClient import parseDigestAuthI... | mit | -726,213,792,981,818,500 | 28.235294 | 87 | 0.527529 | false | 4.037666 | false | false | false |
carloderamo/mushroom | mushroom_rl/environments/mujoco_envs/humanoid_gait/_external_simulation/mtc_model.py | 1 | 7802 | import numpy as np
"""
It is created for using MTC in Mujoco. The dynamics in this model is not continuous. The integration error will be
accumulated overtime. And the system might get unstable if the timestep is too large. It is recommended to set the
timestamp lower than 5e-4 to get decent results.
The model is cre... | mit | -4,500,805,567,716,075,500 | 40.721925 | 120 | 0.566265 | false | 2.929778 | false | false | false |
m4nh/roars | scripts/roars/training/meta_trainer.py | 1 | 4030 | from abc import ABCMeta, abstractmethod, abstractproperty
import os
#TODO: li abbiamo da qualche parte questi?
LABEL_FOLDER_NAME = 'labels'
LABEL_FILES_EXTENSION = 'txt'
IMAGE_FOLDER_NAME = 'images'
IMAGE_FILES_EXTENSION = 'jpg'
CLASS_FILE = 'class_list.txt'
class meta_trainer():
"""
Meta class for a generi... | gpl-3.0 | 7,888,146,045,697,104,000 | 29.308271 | 153 | 0.588337 | false | 4.438326 | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.