repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | 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 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
mgh14/470ai | bzagents/Agent.py | 1 | 7556 | import telnetlib
import sys
import time
import random
import math
import GnuplotUtil
from tankUtil import *
class Agent(object):
# constants
SERVER_DELIMITER = "\n"
LIST_START = "start" + SERVER_DELIMITER
LIST_END = "end" + SERVER_DELIMITER
SERVER_CONNECT_ACKNOWLEDGED = "bzrobots 1" + SERVER_DELIMITER
NOT_SET ... | gpl-3.0 | -7,796,457,630,180,964,000 | 27.730038 | 110 | 0.69468 | false |
ssindow/ZMeter | MeterGUI.py | 1 | 29977 | # -*- coding: utf-8 -*-
"""
GUI Code
"""
import LinkGPIB
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
from pyqtgraph.widgets.RemoteGraphicsView import RemoteGraphicsView
import numpy as np
from time import sleep, strftime
## Constants
versionTxt = 'CellShot V2.6.3'
observerModel = 2602 #2461
sourceMo... | mit | -8,308,357,177,591,892,000 | 42.695335 | 122 | 0.598766 | false |
cropleyb/pentai | pentai/ai/t_alpha_beta.py | 1 | 4043 | #!/usr/bin/env python
import unittest
from pentai.ai.alpha_beta import *
class MockState(object):
def __init__(self, name, utility, successors):
self.name = name
self.utility = utility
self.successors = successors
class MockGame:
def __init__(self, states, max_depth=4):
self.... | mit | 712,375,230,146,879,200 | 32.139344 | 73 | 0.531783 | false |
openstack/zaqar | zaqar/tests/unit/hacking/test_hacking.py | 1 | 1160 | # Copyright (c) 2017 OpenStack Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | apache-2.0 | 7,031,336,255,733,594,000 | 41.962963 | 77 | 0.677586 | false |
edx-solutions/api-integration | edx_solutions_api_integration/management/commands/convert_ooyala_to_bcove.py | 1 | 3014 | import datetime
import logging
from optparse import make_option
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
from django.db.models import Q
from edx_solutions_api_integration.tasks import convert_ooyala_to_bcove
from openedx.core.djangoapps.content.cours... | agpl-3.0 | -6,302,106,137,230,728,000 | 35.756098 | 112 | 0.584605 | false |
kamyu104/GoogleCodeJam-2014 | World Finals/aram.py | 1 | 1450 | # Copyright (c) 2015 kamyu. All rights reserved.
#
# Google Code Jam 2014 World Finals - Problem F. ARAM
# https://code.google.com/codejam/contest/7214486/dashboard#s=p5
#
# Time: O(60 * N * R * G)
# Space: O(1)
#
# Can you win at least X fraction of the time?
def CanWin(X):
A = []
last_G_values = 0
# C ... | mit | 4,796,693,524,528,156,000 | 26.377358 | 64 | 0.522759 | false |
Intel-Corporation/tensorflow | tensorflow/python/framework/func_graph.py | 1 | 42379 | # Copyright 2018 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 | -8,036,142,726,043,407,000 | 41.763875 | 97 | 0.676845 | false |
mrcrgl/django_distributed_task | distributed_task/broker/backends/db.py | 1 | 1101 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from ..interface import BrokerInterface
from distributed_task import settings
from distributed_task.core.serializer import serialize, deserialize
from distributed_task.models import Message
import time
class DatabaseMessageBroker(BrokerInterface):
... | mit | 4,212,467,058,290,029,600 | 26.55 | 87 | 0.64396 | false |
gazpachoking/deluge-old | deluge/ui/gtkui/createtorrentdialog.py | 1 | 18151 | #
# createtorrentdialog.py
#
# Copyright (C) 2008 Andrew Resch <andrewresch@gmail.com>
#
# Deluge is free software.
#
# You may 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... | gpl-3.0 | -3,731,345,788,369,979,000 | 37.455508 | 111 | 0.590381 | false |
partofthething/laserComm | laserComm/receiver.py | 1 | 2975 | '''
receiver runs the ADC and photoresistor to receive an input signal.
USes MCP3008 ADC via the hardware SPI interface.
Connections are:
MCP3008 VDD -> 3.3V (red)
MCP3008 VREF -> 3.3V (red)
MCP3008 AGND -> GND (orange)
MCP3008 CLK -> SCLK (yellow)
MCP3008 DOUT -> MISO (green)
MCP3008 DIN -> ... | mit | -8,309,013,175,638,978,000 | 23.791667 | 88 | 0.572437 | false |
gajim/python-nbxmpp | test/unit/test_xml_vulnerability.py | 1 | 2389 | import unittest
from unittest.mock import Mock
from nbxmpp import dispatcher
class XMLVulnerability(unittest.TestCase):
def setUp(self):
self.stream = Mock()
self.stream.is_websocket = False
self.dispatcher = dispatcher.StanzaDispatcher(self.stream)
self._error_handler = Mock()
... | gpl-3.0 | -27,018,462,317,749,748 | 31.283784 | 93 | 0.564253 | false |
mikeh77/mi-instrument | mi/core/instrument/instrument_driver.py | 1 | 46251 | #!/usr/bin/env python
"""
@package ion.services.mi.instrument_driver Instrument driver structures
@file ion/services/mi/instrument_driver.py
@author Edward Hunter
@brief Instrument driver classes that provide structure towards interaction
with individual instruments in the system.
"""
__author__ = 'Steve Foley'
__lic... | bsd-2-clause | 7,355,743,505,821,260,000 | 41.122951 | 144 | 0.632224 | false |
fvbock/gDBPool | gdbpool/connection_pool.py | 1 | 6127 | # -*- coding: utf-8 -*-
# Copyright 2011-2012 Florian von Bock (f at vonbock dot info)
#
# gDBPool - db connection pooling for gevent
__author__ = "Florian von Bock"
__email__ = "f at vonbock dot info"
__version__ = "0.1.3"
import gevent
from gevent import monkey; monkey.patch_all()
import psycopg2
import sys, tra... | mit | -6,869,467,594,450,040,000 | 40.120805 | 273 | 0.610903 | false |
pawelmhm/scrapy | scrapy/contracts/__init__.py | 3 | 6122 | import re
import sys
from functools import wraps
from inspect import getmembers
from typing import Dict
from unittest import TestCase
from scrapy.http import Request
from scrapy.utils.python import get_spec
from scrapy.utils.spider import iterate_spider_output
class Contract:
""" Abstract class for contracts """... | bsd-3-clause | 8,974,094,250,658,661,000 | 33.011111 | 81 | 0.563868 | false |
nachowski/csv2sqlite | csv2sqlite.py | 1 | 3373 | # Converts a CSV file (typically exported from individual .xls sheets) to a sqlite db as a new table
#
# - The CSV filename (without .csv extension) is used as the table name.
# - The columns from the first row are used as column names in the table.
# - You can store multiple tables (from multiple csv files) in the sam... | mit | -521,818,109,497,795,300 | 37.781609 | 124 | 0.636525 | false |
ShaunRW/keyModder | KeycodeTranslator.py | 1 | 2907 | #! /usr/bin/python2.6
# KEYCODE TRANSLATOR
#-----------------------------------------#
# Filename: KeycodeTranslator.py
# Belongs To: keyModder
# Usage: from KeycodeTranslator import KeycodeTranslator
# Description: Offers function to convert key codes to the key name and vice versa.
# Cr... | gpl-2.0 | 7,995,939,785,253,920,000 | 22.443548 | 88 | 0.325421 | false |
razziel89/ManipulateAggregates | ManipulateAggregates/collection/gnuplot/__init__.py | 1 | 33249 | """Class definition to control Gnuplot from Python.
"""
# This file is part of ManipulateAggregates.
#
# Copyright (C) 2016 by Torsten Sachse
#
# ManipulateAggregates 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 Found... | gpl-3.0 | 6,274,585,563,111,448,000 | 36.48478 | 124 | 0.512045 | false |
endthestart/tinsparrow | tinsparrow/tinsparrow/urls.py | 1 | 2739 | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from rest_framework.authtoken.views import obtain_auth_token
from .views import LibraryView, songfile, LayoutView
from .api import api_root, s... | mit | -176,903,586,610,345,180 | 34.571429 | 87 | 0.646951 | false |
relekang/python-semantic-release | semantic_release/settings.py | 1 | 4061 | """Helpers to read settings from setup.cfg or pyproject.toml
"""
import configparser
import importlib
import logging
import os
from collections import UserDict
from functools import wraps
from os import getcwd
from typing import Callable, List
import tomlkit
from tomlkit.exceptions import TOMLKitError
from .errors im... | mit | -702,771,670,662,746,500 | 28.860294 | 90 | 0.628417 | false |
jasuarez/minbif | tests/test.py | 1 | 14535 | # -*- coding: utf-8 -*-
"""
Minbif - IRC instant messaging gateway
Copyright(C) 2009 Romain Bignon
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 of the License.
This program is distribu... | gpl-2.0 | -4,323,576,392,194,958,000 | 30.735808 | 112 | 0.487513 | false |
MITHyperloopTeam/software_core | software/UI/pod_tube_vis.py | 1 | 8129 | #!/usr/bin/env python
#signif reference to http://pastebin.com/k87sfiEf
import sys
import math
import signal
import time
import os
import math, random
import numpy as np
from numpy import linalg
from PIL import Image
#interface stuff
from PyQt4 import QtCore, QtGui, QtOpenGL
import pyqtgraph as pg
#comms stuff
i... | lgpl-3.0 | 106,389,324,820,216,420 | 36.634259 | 159 | 0.62111 | false |
Azure/WALinuxAgent | tests/protocol/mocks.py | 1 | 9717 | # Copyright 2020 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | -2,802,583,881,621,370,000 | 43.573394 | 144 | 0.678605 | false |
Hanaasagi/sorator | orator/query/grammars/postgres_grammar.py | 1 | 4336 | # -*- coding: utf-8 -*-
from .grammar import QueryGrammar
class PostgresQueryGrammar(QueryGrammar):
_operators = [
'=', '<', '>', '<=', '>=', '<>', '!=',
'like', 'not like', 'between', 'ilike',
'&', '|', '#', '<<', '>>'
]
marker = '%s'
def _compile_lock(self, query, value):... | mit | 5,993,220,880,501,831,000 | 23.777143 | 79 | 0.545895 | false |
peckhams/topoflow | topoflow/utils/ncts_files.py | 1 | 27069 |
# This new verion (6/11/10) hasn't been tested yet.
# Can't run unit tests on my MacPro w/o Nio.
#---------------------------------------------------
# S.D. Peckham
# Sept 2014 (new version to use netCDF4)
# May, June 2010
import os
import sys
import time
import numpy as np
import file_utils
import netCDF4 as nc
... | mit | 8,897,951,236,339,802,000 | 38.690616 | 101 | 0.367468 | false |
compiteing/flask-ponypermission | venv/lib/python2.7/site-packages/pony/orm/tests/test_relations_one2one1.py | 1 | 4536 | from __future__ import absolute_import, print_function, division
import unittest
from pony.orm.core import *
db = Database('sqlite', ':memory:')
class Male(db.Entity):
name = Required(unicode)
wife = Optional('Female', column='wife')
class Female(db.Entity):
name = Required(unicode)
hus... | mit | -6,078,875,790,468,676,000 | 31.850746 | 67 | 0.564374 | false |
jianghuaw/nova | nova/tests/unit/api/openstack/compute/test_block_device_mapping.py | 1 | 17244 | # Copyright 2013 OpenStack Foundation
# 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 requ... | apache-2.0 | -440,329,227,146,488,260 | 39.478873 | 79 | 0.587799 | false |
math-a3k/django-ai | tests/apps/bayesian_networks/test_bns.py | 1 | 27510 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_django-ai
------------
Tests for `django-ai` models module.
"""
import random
import numpy as np
from bayespy.nodes import Gaussian
from django.test import (TestCase, )
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions impor... | lgpl-3.0 | 6,808,538,192,501,962,000 | 38.927431 | 79 | 0.564995 | false |
spadae22/odoo | addons/stock_account/wizard/stock_invoice_onshipping.py | 1 | 6916 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -8,529,741,307,361,504,000 | 45.106667 | 143 | 0.590081 | false |
Ecogenomics/GTDBNCBI | scripts_dev/lpsn_scrape/lpsn_to_database.py | 1 | 4370 | #!/usr/bin/env python
###############################################################################
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License... | gpl-3.0 | 6,039,277,418,561,814,000 | 41.019231 | 135 | 0.545538 | false |
openvenues/libpostal | scripts/geodata/osm/definitions.py | 1 | 2511 | import os
import re
import six
from collections import defaultdict
from geodata.graph.topsort import topsort
this_dir = os.path.realpath(os.path.dirname(__file__))
DEFAULT_SCRIPT_PATH = os.path.join(this_dir, 'fetch_osm_address_data.sh')
valid_key_regex = re.compile('VALID_(.*?)_KEYS="(.*)"')
variable_regex = re.c... | mit | -6,333,495,864,088,283,000 | 27.213483 | 86 | 0.571485 | false |
allanlei/django-saas | saas/multidb/models.py | 1 | 4469 | from django.db import models
from django.conf import settings
from django.utils import simplejson as json
from django.db import connections
from django.core.exceptions import ValidationError
from django.db.utils import ConnectionDoesNotExist
import managers
from signals import db_pre_load, db_post_load, db_pre_unload,... | bsd-3-clause | 302,155,965,839,929,400 | 34.188976 | 129 | 0.653166 | false |
opencorato/sayit | speeches/south_migrations/0054__rename_popolospeaker.py | 1 | 19144 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
db.rename_table('speeches_popolospeaker', 'speeches_speaker')
db.alter_column('speeches_recordingtimestamp',... | agpl-3.0 | 8,611,772,012,662,599,000 | 84.464286 | 195 | 0.558765 | false |
RNAcentral/rnacentral-import-pipeline | rnacentral_pipeline/databases/genecards_suite/core/helpers.py | 1 | 1351 | # -*- coding: utf-8 -*-
"""
Copyright [2009-2019] EMBL-European Bioinformatics Institute
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... | apache-2.0 | 924,909,323,599,753,000 | 29.022222 | 72 | 0.723168 | false |
hcs/mailman | src/mailman/core/switchboard.py | 1 | 11246 | # Copyright (C) 2001-2012 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
# GNU Mailman 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 you... | gpl-3.0 | -6,313,387,617,212,159,000 | 40.043796 | 78 | 0.599057 | false |
evanepio/dotmanca | dotmanca/users/tests/test_views.py | 1 | 2027 | from django.test import RequestFactory
from django.test import TestCase
from ..views import (
UserRedirectView,
UserUpdateView
)
from ..models import User
class BaseUserTestCase(TestCase):
def setUp(self):
self.user = User.objects.create_user(username='testuser',
... | mit | -7,667,624,099,219,692,000 | 28.808824 | 76 | 0.593981 | false |
all-of-us/raw-data-repository | rdr_service/services/google_sheets_client.py | 1 | 13026 | import backoff
from googleapiclient import discovery
from googleapiclient.errors import HttpError
from oauth2client.service_account import ServiceAccountCredentials
import socket
from rdr_service.services.gcp_utils import gcp_get_iam_service_key_info
class GoogleSheetsClient:
"""
Allows for interacting with ... | bsd-3-clause | -8,798,723,942,164,269,000 | 45.355872 | 120 | 0.63189 | false |
w0rp/w0rpzone | blog/urls.py | 1 | 2639 | from django.conf.urls import re_path
from django.contrib.auth.decorators import login_required
from w0rplib.url import redir
from .feed import LatestArticleFeed
from .views import (
ArticleBanCommenterView,
ArticleDeleteCommentView,
ArticleDetailView,
ArticleEditPageView,
ArticleMonthArchiveView,
... | bsd-2-clause | -3,337,851,615,868,272,000 | 26.489583 | 72 | 0.558924 | false |
hbenarab/mt-iebkg | run_on_ollie_dataset.py | 1 | 8580 | __author__ = 'heni'
import datetime
import math
import numpy
import pickle
from utils.tools import get_accuracy
from ollie_comparison.utils.training_tools import create_word2ind,create_network,get_labeled_data
from utils.tools import shuffle
def run_on_ollie_dataset(iob_ollie_dataset_path,use_cross_validation):
... | mit | -4,446,617,290,510,862,000 | 44.163158 | 134 | 0.583217 | false |
righetz/pyurl | pyurl.py | 1 | 4354 | #!/usr/bin/python3
"""Simple CUrl porting for Python3
"""
import urllib.request, re
import sys
import argparse
from urllib.parse import urlencode
import gettext
import locale
def main():
""""main method"""
language_set()
parser = argparse.ArgumentParser() #setting possible arguments
parser.add_argumen... | gpl-2.0 | -7,379,587,351,273,032,000 | 32.492308 | 95 | 0.602205 | false |
mstone/vscan | cpplint.py | 1 | 123523 | #!/usr/bin/python2.4
#
# Copyright (c) 2009 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | bsd-3-clause | -166,617,796,872,889,120 | 38.502079 | 86 | 0.64915 | false |
idaholab/raven | plugins/ExamplePlugin/src/SumOfExponential.py | 1 | 5349 | """
Author: A. Alfonsi
Date : 11/17/2017
"""
import numpy as np
import math
from PluginBaseClasses.ExternalModelPluginBase import ExternalModelPluginBase
class SumOfExponential(ExternalModelPluginBase):
# Example External Model plugin class
#################################
#### RAVEN API methods BEGIN ... | apache-2.0 | -1,037,211,517,340,434,800 | 49.462264 | 158 | 0.689849 | false |
jtrain/django-cloud-media | cloud_media/forms.py | 1 | 7970 | """
A collection of forms for adding a new resource in the admin.
"""
from django import forms
from django.conf import settings
from django.contrib.admin.helpers import AdminForm
from django.core.exceptions import ImproperlyConfigured
from django.utils.translation import ugettext_lazy as _
from django.utils.importlib ... | bsd-3-clause | 5,641,450,394,097,979,000 | 33.353448 | 80 | 0.572146 | false |
alfredodeza/execnet | testing/test_serializer.py | 1 | 7330 | # -*- coding: utf-8 -*-
import subprocess
import sys
import tempfile
import execnet
import py
import pytest
MINOR_VERSIONS = {"3": "543210", "2": "76"}
def _find_version(suffix=""):
name = "python" + suffix
executable = py.path.local.sysfind(name)
if executable is None:
if sys.platform == "win32... | mit | 9,194,328,453,528,448,000 | 24.629371 | 77 | 0.557981 | false |
twitter/pants | src/python/pants/task/task.py | 1 | 28963 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import sys
from abc import abstractmethod
from builtins import filter, map, obj... | apache-2.0 | 8,560,133,421,249,656,000 | 38.621067 | 100 | 0.686497 | false |
coderbone/SickRage-alt | setup.py | 1 | 2381 | # -*- coding: utf-8 -*
"""
Use setup tools to install sickchill
"""
import os
from setuptools import find_packages, setup
from requirements.sort import file_to_dict
try:
from babel.messages import frontend as babel
except ImportError:
babel = None
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__... | gpl-3.0 | 890,928,035,765,774,600 | 24.329787 | 70 | 0.582948 | false |
alphagov/notifications-api | tests/app/v2/notifications/test_post_notifications.py | 1 | 48523 | import uuid
from unittest import mock
from unittest.mock import call
import pytest
from boto.exception import SQSError
from flask import current_app, json
from app.dao import templates_dao
from app.dao.service_sms_sender_dao import dao_update_service_sms_sender
from app.models import (
EMAIL_TYPE,
INTERNATION... | mit | 2,010,469,411,737,156,000 | 40.224299 | 120 | 0.655139 | false |
CnPaMeng/WeiboMsgBackupGUI | sina/loginsinacom.py | 1 | 22729 | #!/usr/bin/python
#-*- encoding: utf-8 -*-
# This file is part of the Pameng,
# Pameng website: http://www.cnpameng.com/,
# Sina weibo: http://weibo.com/cnpameng.
# This file is part of WeiboMsgBackup.
# Copyright (C) 2013 Pameng.
# Pameng <pameng.cn@gmail.com>, 2013.
# WeiboMsgBackup is free software; you can red... | gpl-2.0 | -5,311,268,990,533,459,000 | 39.214669 | 186 | 0.492904 | false |
ikvk/imap_tools | tests/messages_data/error_emails/missing_body.py | 1 | 1292 | import datetime
DATA = dict(
subject='REDACTED',
from_='redacted@attglobal.net',
to=('', '@mailman.enron.com'),
cc=(),
bcc=(),
reply_to=(),
date=datetime.datetime(2001, 11, 27, 15, 2, 35, tzinfo=datetime.timezone(datetime.timedelta(-1, 57600))),
date_str='Tue, 27 Nov 2001 15:02:35 -... | apache-2.0 | 5,465,854,428,567,728,000 | 60.571429 | 593 | 0.606037 | false |
FrodeSolheim/fs-uae-launcher | system/tools/filescanner.py | 1 | 9278 | from typing import Optional
import fsui
from fsgamesys.amiga.amiga import Amiga
from fsgamesys.context import fsgs
from fsgamesys.product import Product
from fswidgets.panel import Panel
from fswidgets.widget import Widget
from launcher.i18n import gettext
from launcher.launcher_signal import LauncherSignal
from launc... | gpl-2.0 | -2,840,898,757,939,423,000 | 32.135714 | 78 | 0.598513 | false |
freenas/py-bsd | bsd/pty.py | 1 | 5200 | """Pseudo terminal utilities. (Slightly modified to work on FreeBSD)"""
# Bugs: No signal handling. Doesn't set slave termios and window size.
# Only tested on Linux.
# See: W. Richard Stevens. 1992. Advanced Programming in the
# UNIX Environment. Chapter 19.
# Author: Steen Lumholt -- with additions ... | bsd-3-clause | 6,431,780,181,907,985,000 | 27.571429 | 76 | 0.57 | false |
arrti/proxypooler | tests/test_db.py | 1 | 1559 | import pytest
from proxypooler.errors import ProxyPoolerEmptyError
def test_db(conn):
conn.put('127.0.0.1:80', 15)
conn.put('127.0.0.1:81', 14)
conn.put('127.0.0.1:82', 210)
conn.put('127.0.0.1:83', 2)
conn.put('127.0.0.1:84', 100)
assert conn.size == 5
ip = conn.get()[0].decode('utf-8')
... | apache-2.0 | -7,760,928,809,844,205,000 | 27.87037 | 87 | 0.546504 | false |
xsleonard/wsgisubdomain | wsgisubdomain.py | 1 | 2974 | import socket
from threading import Lock
from __about__ import __version__, __title__, __description__
__all__ = ['__version__', '__title__', '__description__',
'SubdomainDispatcher']
class SubdomainDispatcher(object):
""" A WSGI application that gets or creates other WSGI applications
based on t... | mit | 1,412,791,263,099,934,500 | 34.404762 | 76 | 0.62273 | false |
olysonek/tuned | tests/unit/hardware/test_device_matcher_udev.py | 1 | 1221 | import unittest2
import pyudev
from tuned.hardware.device_matcher_udev import DeviceMatcherUdev
class DeviceMatcherUdevTestCase(unittest2.TestCase):
@classmethod
def setUpClass(cls):
cls.udev_context = pyudev.Context()
cls.matcher = DeviceMatcherUdev()
def test_simple_search(self):
try:
device = pyudev.D... | gpl-2.0 | -4,724,523,557,095,025,000 | 32.916667 | 64 | 0.736282 | false |
TheDSCPL/SSRE_2017-2018_group8 | Projeto/Python/cryptopy/crypto/cipher/arc4.py | 1 | 2710 | # -*- coding: utf-8 -*-
""" crypto.cipher.arc4
A Stream Cipher Encryption Algorithm 'Arcfour'
A few lines of code/ideas borrowed from [PING]
[PING] CipherSaber implementation by Ka-Ping Yee <ping@lfw.org>, 5 May 2000.
Some documentation text and test vectors taken from [IDARC4]
[IDARC... | mit | -4,618,640,495,810,670,000 | 34.657895 | 91 | 0.586716 | false |
lochiiconnectivity/exabgp | lib/exabgp/application/cli.py | 1 | 4426 | #!/usr/bin/env python
# encoding: utf-8
"""
cli.py
Created by Thomas Mangin on 2014-12-22.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
import sys
from exabgp.dep.cmd2 import cmd
from exabgp.version import version
class Completed (cmd.Cmd):
# use_rawinput = False
# prompt = ''
# doc_header =... | bsd-3-clause | 2,480,145,758,677,052,400 | 17.596639 | 113 | 0.604383 | false |
taiwenko/python | acs/acs_cold_start.py | 1 | 7587 | #!/usr/bin/env python
from time import sleep
import twk_utils
import math
import sys
import xpf6020
import tools.utils as tools
import watlowf4
from tools import shell
from blessings import Terminal
t = Terminal()
franz_num = raw_input('How many Franz are you testing? [1,2,3,or 4]: ').strip()
cycle_num = raw_input('... | mit | 3,195,352,635,429,763,000 | 26.791209 | 113 | 0.652827 | false |
SmileyJames/shopify_python_api | setup.py | 1 | 1764 | from setuptools import setup
NAME='ShopifyAPI'
exec(open('shopify/version.py').read())
DESCRIPTION='Shopify API for Python'
LONG_DESCRIPTION="""\
The ShopifyAPI library allows python developers to programmatically
access the admin section of stores using an ActiveResource like
interface similar the ruby Shopify API ge... | mit | -7,996,432,185,524,814,000 | 38.2 | 82 | 0.594671 | false |
MDAnalysis/pyQuteMol | python/OctaMap.py | 1 | 5260 |
import numpy
def Area(a, b, c):
v = numpy.cross(b-a,c-a)
return numpy.sqrt(numpy.dot(v,v))*0.5
class OctaMapSamp:
def __init__(self):
self.size = 0
self.dir = None
self.dirrot = None
self.weight = None
def nsamp(self):
return len(self.dir)
def DuplicateT... | gpl-2.0 | -3,011,985,873,142,060,000 | 28.886364 | 87 | 0.384221 | false |
3ev0/android-whitelist | blackswan/core/modularity.py | 1 | 1286 | __author__ = 'ivo'
import logging
import argparse
from blackswan import config
_log = logging.getLogger(__name__)
class ModuleBase():
argparser = None
def __init__(self):
self.config = {}
@classmethod
def register(cls):
cls.argparser = argparse.ArgumentParser(description=cls.descri... | apache-2.0 | -8,348,951,146,452,041,000 | 26.956522 | 136 | 0.624417 | false |
rbuffat/pyidf | tests/test_surfacecontaminantsourceandsinkgenericboundarylayerdiffusion.py | 1 | 2309 | import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.internal_gains import SurfaceContaminantSourceAndSinkGenericBoundaryLayerDiffusion
log = logging.getLogger(__name__)
class TestSurfaceContaminantSourceAndSinkGenericBoundaryLaye... | apache-2.0 | 6,754,138,350,835,265,000 | 41.777778 | 208 | 0.737982 | false |
drammock/pyeparse | pyeparse/utils.py | 1 | 3374 | # Authors: Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
import numpy as np
from os import path as op
import glob
import tempfile
from shutil import rmtree
import atexit
def create_chunks(sequence, size):
"""Generate chunks from a sequence
Note. copied from MNE-Python
Parameters... | bsd-3-clause | -3,761,224,465,408,458,000 | 24.560606 | 79 | 0.603734 | false |
gzorin/RSXGL | extsrc/mesa/src/mapi/glapi/gen/gl_XML.py | 1 | 25960 | #!/usr/bin/env python
# (C) Copyright IBM Corporation 2004, 2005
# 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 without restriction, including without limitation
# ... | bsd-2-clause | 8,469,495,609,065,517,000 | 24.985986 | 210 | 0.667874 | false |
wesleywerner/conspire | src/const.py | 1 | 7542 | STATE_MENU = 1
STATE_BUILD = 2
STATE_UFO = 3
STATE_FLIGHT = 4
STATE_RESULTS = 5
STATE_END = 100
# parts available for use per level number.
LEVEL_PARTS = {
1: ('tax returns', 'shopping list', 'todo list',
'ludum dare comments', 'bank accounts',
'website passwords', 'IP address scamlist',
),... | gpl-3.0 | 5,350,094,556,457,263,000 | 34.408451 | 82 | 0.609122 | false |
vIiRuS/Lagerregal | devices/migrations/0002_auto_20151105_0513.py | 1 | 5237 | from django.db import migrations, models
import django.db.models.deletion
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('users', '0006_auto_20151105_0513'),
('devices', '0001_initial'),
('devicetypes', '0001_initial'),
migrations.swappab... | bsd-3-clause | 7,381,653,905,418,718,000 | 41.577236 | 160 | 0.596525 | false |
akshaybabloo/Car-ND | Project_5/laneline.py | 1 | 21371 | import cv2
import glob
import pickle
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from sklearn.metrics import mean_squared_error
x_cor = 9 #Number of corners to find
y_cor = 6
# Prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0)
objp = np.zeros((y_cor*x_cor,3), np... | mit | 4,058,978,250,439,783,000 | 36.42732 | 156 | 0.575406 | false |
amir-qayyum-khan/lore | ui/tests/test_learningresources_views.py | 1 | 12408 | """
Test the importer views to make sure they work.
"""
from __future__ import unicode_literals
import json
import logging
import os
from django.conf import settings
from django.core.files.storage import default_storage
from django.core.urlresolvers import resolve
import ui.urls
from learningresources.models import... | agpl-3.0 | -8,293,194,561,384,870,000 | 35.174927 | 79 | 0.590103 | false |
foobacca/django-cms | cms/tests/toolbar.py | 1 | 7223 | from __future__ import with_statement
from cms.api import create_page
from cms.toolbar.toolbar import CMSToolbar
from cms.middleware.toolbar import ToolbarMiddleware
from cms.test_utils.testcases import SettingsOverrideTestCase
from cms.test_utils.util.context_managers import SettingsOverride
from django.contrib.auth.... | bsd-3-clause | 860,474,157,216,884,000 | 37.625668 | 98 | 0.622456 | false |
googlegenomics/gcp-variant-transforms | gcp_variant_transforms/options/variant_transform_options_test.py | 1 | 10813 | # Copyright 2017 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 by applicable law or... | apache-2.0 | -1,461,147,277,719,678,000 | 38.036101 | 78 | 0.622491 | false |
edx/course-discovery | course_discovery/apps/course_metadata/migrations/0068_auto_20171108_1614.py | 1 | 1536 | # Generated by Django 1.11.3 on 2017-11-08 16:14
import django.db.models.deletion
import django_extensions.db.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20171004_1133'),
('course_metadata', '0067_auto_20171108_1432... | agpl-3.0 | 411,203,014,936,770,100 | 44.176471 | 149 | 0.63151 | false |
teodesson/Bookie | bookie/tests/test_auth/test_signup.py | 1 | 6228 | """Test the limited signup process
"""
import logging
from urllib.parse import (
quote,
urlencode,
)
import transaction
from bookie.models import DBSession
from bookie.models.auth import Activation
from bookie.models.auth import User
from bookie.models.auth import UserMgr
from bookie.tests import gen_random_... | agpl-3.0 | 2,664,278,221,227,237,000 | 29.23301 | 78 | 0.580925 | false |
AfricaChess/lichesshub | grandprix/migrations/0002_auto_20171110_0640.py | 1 | 1439 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-10 06:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('grandprix', '0001_initial'),
]
operations = [
... | mit | 9,022,895,200,339,313,000 | 33.261905 | 123 | 0.565671 | false |
satyrius/cmsplugin-articles | cmsplugin_articles/migrations/0001_initial.py | 1 | 1615 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cms', '0003_auto_20140926_2347'),
]
operations = [
migrations.CreateModel(
name='ArticlesPlugin',
fi... | mit | -328,105,361,709,691,460 | 39.375 | 159 | 0.567802 | false |
minlexx/pyevemon | esi_client/models/get_characters_character_id_killmails_recent_200_ok.py | 1 | 4307 | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.4.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class GetCharactersCharacterIdKillmailsRecent200Ok(object):
... | gpl-3.0 | -4,276,356,936,466,362,400 | 28.29932 | 101 | 0.572788 | false |
willprice/arduino-sphere-project | scripts/example_direction_finder/temboo/Library/Dropbox/OAuth/FinalizeOAuth.py | 1 | 5847 | # -*- coding: utf-8 -*-
###############################################################################
#
# FinalizeOAuth
# Completes the OAuth process by retrieving a Dropbox access token and access token secret for a user, after they have visited the authorization URL returned by the InitializeOAuth choreo and click... | gpl-2.0 | -6,594,500,560,399,092,000 | 45.03937 | 245 | 0.683085 | false |
ychaim/explorer | addresses/views.py | 1 | 33766 | from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.contrib import messages
from django.contrib.auth import login
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext_lazy as _
from django.utils.timezone i... | apache-2.0 | 4,320,673,146,313,630,000 | 41.313283 | 185 | 0.572825 | false |
CalebBell/ht | ht/conv_free_immersed.py | 1 | 58245 | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2016, Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... | mit | 6,765,372,046,632,319,000 | 33.813509 | 107 | 0.621733 | false |
thijsmie/imp_flask | imp_flask/extensions.py | 1 | 1038 | """Flask and other extensions instantiated here.
To avoid circular imports with views and create_app(), extensions are instantiated here. They will be initialized
(calling init_app()) in application.py.
"""
from logging import getLogger
from flask_mail import Mail
from flask_sqlalchemy import SQLAlchemy
fr... | mit | 1,401,830,091,470,726,700 | 30.4375 | 120 | 0.728324 | false |
pyinvoke/invocations | invocations/autodoc.py | 1 | 3987 | """
Sphinx autodoc hooks for documenting Invoke-level objects such as tasks.
Unlike most of the rest of Invocations, this module isn't for reuse in the
"import and call functions" sense, but instead acts as a Sphinx extension which
allows Sphinx's `autodoc`_ functionality to see and document
Invoke tasks and similar I... | bsd-2-clause | -2,718,473,051,826,308,000 | 43.3 | 79 | 0.709054 | false |
leonid-shevtsov/ClickableUrls_SublimeText | clickable_urls.py | 1 | 5787 | import sublime
import sublime_plugin
import webbrowser
import threading
class UrlHighlighter(sublime_plugin.EventListener):
# Thanks Jeff Atwood http://www.codinghorror.com/blog/2008/10/the-problem-with-urls.html
# ^ that up here is a URL that should be matched
URL_REGEX = "\\bhttps?://[-A-Za-z0-9+&@#/%?=... | mit | -7,902,812,575,243,236,000 | 38.636986 | 128 | 0.632625 | false |
iniweb/deployCD | app/views.py | 1 | 4840 | from flask import render_template, flash, url_for, request, redirect, session
from flask_login import login_user, logout_user, current_user, login_required
from app import app, db, gitlab, login_manager
from forms import ProjectForm
from models import User, Project, ROLE_USER, ROLE_ADMIN
import copy
import ansible.ru... | mit | 3,487,567,261,366,403,000 | 26.816092 | 120 | 0.66157 | false |
394954369/horizon | openstack_dashboard/dashboards/project/images/images/forms.py | 1 | 11525 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | apache-2.0 | 7,588,015,271,839,535,000 | 43.157088 | 78 | 0.531453 | false |
alexpeattie/wethepeopletoolkit | wethepeopletoolkit/clusterer.py | 1 | 2828 | import pandas
import numpy as np
import click
from bitstring import BitArray
from base58 import b58encode_int, b58decode_int
class Clusterer:
def __init__(self):
pass
def cluster(self, n, state_processor, pca = False, model_type = 'kmeans', z_score_exclude = 0.0, seed = None, quiet = False):
from sklearn.... | mit | -3,378,057,671,160,845,000 | 41.223881 | 323 | 0.642857 | false |
cschnei3/forseti-security | tests/enforcer/enforcer_test.py | 1 | 4766 | #!/usr/bin/env python
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | -2,825,034,318,722,512,400 | 35.945736 | 83 | 0.671842 | false |
bkidwell/wshare | wshare.py | 1 | 4231 | # See https://github.com/bkidwell/wshare
import argparse
import subprocess
import re
import sys
from wshare_config import config
def getConnDict():
txt = subprocess.getoutput('net use')
if re.search(r'There are no entries in the list\.', txt):
return dict()
match = re.search(r'--------.*\n([\w\W]*... | mit | 739,811,618,023,276,800 | 30.81203 | 111 | 0.509572 | false |
wasim21k/pihome | cron/port_scanner.py | 1 | 1392 | #!/usr/bin/env python
#TheZero
#This code is under Public Domain
#ref: https://gist.github.com/TheZ3ro/7255052
from threading import Thread
import socket
import os, re, time, sys, subprocess
class bc:
HEADER = '\033[0;36;40m'
ENDC = '\033[0m'
SUB = '\033[3;30;45m'
WARN = '\033[0;31;40m'
GREEN = '\033[0;32;40m'
o... | gpl-3.0 | -1,480,537,210,011,121,200 | 21.819672 | 63 | 0.623563 | false |
OpenDMM/bitbake | lib/bb/server/xmlrpc.py | 1 | 13971 | #
# BitBake XMLRPC Server
#
# Copyright (C) 2006 - 2007 Michael 'Mickey' Lauer
# Copyright (C) 2006 - 2008 Richard Purdie
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This p... | gpl-2.0 | 7,607,331,998,244,826,000 | 34.549618 | 117 | 0.620643 | false |
datawire/quark | quarkc/backend.py | 1 | 34267 | # Copyright 2015 datawire. 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 applicable law or agr... | apache-2.0 | 6,072,187,217,217,607,000 | 34.181725 | 118 | 0.538857 | false |
heromod/migrid | mig/simulation/user.py | 1 | 2151 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# user - [insert a few words of module description on this line]
# Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the ... | gpl-2.0 | -7,407,505,360,815,817,000 | 24.607143 | 81 | 0.621571 | false |
googleapis/python-pubsublite | google/cloud/pubsublite_v1/services/subscriber_service/transports/grpc_asyncio.py | 1 | 11672 | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -8,276,490,674,875,871,000 | 43.549618 | 87 | 0.620459 | false |
pbvarga1/qimage2ndarray | qimage2ndarray/__init__.py | 1 | 14973 | import sys as _sys
import numpy as _np
from .dynqt import QtGui as _qt
from .dynqt import qt as _qt_driver
if _qt_driver.name() == 'PythonQt':
from .qimageview import QImage2ndarray as _temp
_qimageview = _temp.qimageview
else:
from .qimageview_python import qimageview as _qimageview
__version__ = "1.5"
... | bsd-3-clause | 2,436,135,751,722,920,000 | 36.153846 | 165 | 0.645896 | false |
Backflipz/plugin.video.excubed | addon.py | 1 | 81609 | from whoosh.index import create_in
# from xbmcswift2 import Plugin
from kodiswift import Plugin
import os
import sys
import re
import json
import xbmc
import xbmcaddon
import xbmcplugin
import xbmcgui
import threading
import glob
import shlex
from BeautifulSoup import BeautifulSoup as BS
from whoosh.filedb.filestore im... | gpl-2.0 | 2,370,805,098,750,441,500 | 39.784108 | 141 | 0.451372 | false |
alkurbatov/squirrel | src/convert.py | 1 | 1073 | # This file is a part of Squirrel project
#
# Copyright (C) 2014, Alexander Kurbatov <sir.alkurbatov@yandex.ru>
#
# Squirrel 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
... | gpl-3.0 | 9,016,646,689,706,981,000 | 28.805556 | 70 | 0.657036 | false |
dyermd/legos | scripts/QC/merger.py | 1 | 14082 | #! /usr/bin/env python
# Goal: Merge and run coverage analysis on the two Samples generated.
# Output: A mered bam file, and coverage analysis on the merged bam file.
from optparse import OptionParser
import os
import os.path
import sys
import re
import datetime
import json
from QC_Run import QC_Run
from tools impo... | gpl-2.0 | 7,565,517,798,160,435,000 | 48.066202 | 186 | 0.684704 | false |
taoistly/dec | dec.py | 1 | 11798 | import shutil
import os
import time
import suffixtree
def scan_kmer(read):
global K
offset, seq1, seq2 = read.split("\t")
ret = []
for base in seq1:
if base not in "ACGTN": return ret
for base in seq2:
if base not in "ACGTN": return ret
for idx in range(len(seq1) - K + 1):
... | mit | -735,112,777,300,059,300 | 41.746377 | 136 | 0.515765 | false |
guaq/paikkis | model.py | 1 | 3427 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
0 paikannimi
1 nimen kielikoodi
2 kielen nimi
3 paikkatyypin koodi
4 paikkatyypin selite
5 kkj/pkj pohjoinen
6 kkj/pkj itä
7 kkj/ykj pohjoinen
8 kkj/ykj itä
9 etrs/tm35fin pohjoinen
10 etrs/tm35fin itä
11 kuntakoodi
12 ku... | mit | -5,161,143,840,188,040,000 | 32.821782 | 338 | 0.605679 | false |
yusihao51/Minecraft | views.py | 1 | 24491 | # -*- coding: utf-8 -*-
# Imports, sorted alphabetically.
# Python packages
import os
import socket
import subprocess
import sys
import datetime
from math import sin, pi
# Third-party packages
import pyglet
from pyglet.text import Label
from pyglet.gl import *
# Modules from this project
import globals as G
from gu... | mit | 5,070,663,446,137,972,000 | 37.507862 | 350 | 0.613695 | false |
danieljabailey/inkscape_experiments | share/extensions/fractalize.py | 1 | 3762 | #!/usr/bin/env python
'''
Copyright (C) 2005 Carsten Goetze c.goetze@tu-bs.de
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.
... | gpl-2.0 | 2,135,665,781,079,177,200 | 37.783505 | 99 | 0.542265 | false |
Octonius/boxv2 | boxv2/session.py | 1 | 18801 | from .request import BoxRestRequest
from .upload import MultipartUploadWrapper
from .exceptions import BoxError, BoxHttpResponseError
class BoxSession(object):
"""Manage files and folder from Box.
When you instanciate this class you have to provide at least the Refresh Token (found with :class:`BoxAuthentica... | mit | -432,496,499,673,475,100 | 35.225434 | 294 | 0.55013 | false |
phenoxim/nova | nova/tests/unit/api/openstack/compute/test_agents.py | 1 | 19278 | # Copyright 2012 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | apache-2.0 | -3,498,550,663,633,195,500 | 41.84 | 78 | 0.549746 | false |
GrognardsFromHell/TemplePlus | tpdatasrc/co8infra/scr/Spell307 - Meteor Swarm.py | 1 | 3572 | from toee import *
from utilities import *
def OnBeginSpellCast( spell ):
print "Meteor Swarm OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
game.particles( "sp-evocation-conjure", spell.caster )
def OnSpellEffect( spell )... | mit | -3,126,905,346,155,246,600 | 40.068966 | 177 | 0.69037 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.