code
stringlengths
2
1.05M
repo_name
stringlengths
5
104
path
stringlengths
4
251
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
''' Created on Jul 10, 2014 @author: jonaswallin ''' import unittest import BayesFlow as bm import numpy.random as npr import numpy as np import scipy.linalg as spl from BayesFlow.PurePython.distribution.wishart import invwishartrand from BayesFlow.PurePython.GMM import mixture class Test(unittest.TestCase): def...
JonasWallin/BayesFlow
tests/test_hier_GMM.py
Python
gpl-2.0
2,194
# Copyright (c) 2020, DjaoDjin inc. # see LICENSE. import logging from django.db.models import Max, Q from pages.models import build_content_tree, PageElement from survey.models import Choice, Unit from survey.utils import get_account_model from .compat import six from .models import Consumption LOGGER = logging.g...
djaodjin/envconnect
envconnect/helpers.py
Python
gpl-2.0
4,064
# Copyright (C) 2005 Joe Wreschnig # Copyright (C) 2005-2010 Bastian Kleineidam # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later...
linkcheck/linkchecker
tests/test_po.py
Python
gpl-2.0
2,262
# -*- coding: utf-8 -*- """ pidsim.core.discretization ~~~~~~~~~~~~~~~~~~~~~~~~~~ Transfer Function discretization methods. This module implements some numerical methods to discretize the Transfer Functions on the time domain. :copyright: 2009-2010 by Rafael Goncalves Martins :lic...
rafaelmartins/pidsim
pidsim/core/discretization.py
Python
gpl-2.0
6,894
import os import yaml if not os.path.exists('../config/'): os.mkdir('../config/') if not os.path.isfile('../config/config.yml'): default = { 'Game': 'The Legend of Zelda: Ocarina of Time', 'Interval': 60, 'Data': '/data/', 'Debug': False, 'Categories': {'Any%': '20:...
Dutchj/pbtweeter
pbtweeter/config.py
Python
gpl-2.0
1,356
# monotone.py - monotone support for the convert extension # # Copyright 2008, 2009 Mikkel Fahnoe Jorgensen <mikkel@dvide.com> and # others # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. import os, re from mercurial import util...
seewindcn/tortoisehg
src/hgext/convert/monotone.py
Python
gpl-2.0
13,222
#!/usr/bin/env python # CPIP is a C/C++ Preprocessor implemented in Python. # Copyright (C) 2008-2017 Paul Ross # # 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...
paulross/cpip
tests/unit/test_util/test_ListGen.py
Python
gpl-2.0
17,149
#!/usr/bin/python import unittest import sys, os sys.path.append(r'/home/jiangyu/github/autorunner/lib') from util.Parser import ArgParser class TestArgsParser(unittest.TestCase): def testPaserWithCaseName(self): inputArgs = ['run.py', '-t', 'basictest'] parser = ArgParser() parser.parse(in...
Jdoing/autorunner
unittest/lib/util/TestParser.py
Python
gpl-2.0
455
import datetime from flask import render_template from keyvalue import SiteKey, check_key_exists, new_key from sql import upsert, doupsert, doquery, Tree from mail import send_mail from memoize import memoize_with_expiry, cache_persist, long_cache_persist from utility import obfuscate, deobfuscate import users import...
cmazuc/scarfage
scarf/core/messages.py
Python
gpl-2.0
6,596
from django.template import loader from django.utils.html import mark_safe from dispatch.theme import register from dispatch.theme.widgets import Zone, Widget from dispatch.theme.fields import CharField, TextField, ArticleField, ImageField, InvalidField from dispatch.models import Article, Image from dispatch.tests.c...
ubyssey/dispatch
dispatch/tests/test_widget_render.py
Python
gpl-2.0
9,178
import os.path def releases(): f = open('releases.txt') releases = [] line = f.readline() while line != "" and line != "\n": releases += [line.strip()] line = f.readline() f.close() return releases releases = releases() f = open('keys.txt', 'a') def keys(): f = open('keys....
lathertonj/RemixNoveltyRanker
Code/helper scripts/input_keys.py
Python
gpl-2.0
970
from nose.tools import * import MyProject def setup(): print "SETUP!" def teardown(): print "TEAR DOWN!" def test_basic(): print "I RAN!"
N9dZ/Projects_LCTHW
MyProject/tests/MyProject_tests.py
Python
gpl-2.0
153
# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University # Copyright (c) 2011, 2012 Open Networking Foundation # Copyright (c) 2012, 2013 Big Switch Networks, Inc. # See the file LICENSE.pyloxi which should have been included in the source distribution # Automatically generated by LOXI from ...
gzamboni/sdnResilience
loxi/of14/const.py
Python
gpl-2.0
36,414
import sys from PyQt4 import QtGui, QtCore import time, socket, json from main import Ui_MainWindow s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM) IP = "localhost" PORT = 8001 class main_menu(QtGui.QMainWindow): def __init__(self): super(main_menu, self).__init__() self.ui=Ui_MainWindow() ...
AnumSheraz/IP-Controlled-Robotic-Car
Manual-IP-Controlled-Robotic-Car/Code.py
Python
gpl-2.0
1,696
#!/usr/bin/env python """ Test of the scripts plugin Copyright 2010 Glencoe Software, Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt """ import unittest, os from omero.cli import Context, BaseControl, CLI, NonZeroReturnCode from omero.config import ConfigXml from omero.pl...
joshmoore/openmicroscopy
components/tools/OmeroPy/test/clitest/prefs.py
Python
gpl-2.0
4,509
#!/usr/bin/python3 # -*- coding: utf-8 -*- # --------------------------------- # Sergio Carro Albarrán # SAT GITT # --------------------------------- import webapp import csv import os from pathlib import Path from urllib.request import urlopen from urllib.parse import unquote class acortadoraUrls(webapp.webApp): ...
Scarro/X-Serv-18.1-Practica1
practica1.py
Python
gpl-2.0
5,700
# =========================================================================== # eXe # Copyright 2004-2006, University of Auckland # Copyright 2004-2008 eXe Project, http://eXeLearning.org/ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
UstadMobile/exelearning-ustadmobile-work
exe/engine/quiztestidevice.py
Python
gpl-2.0
17,092
''' Created on 2017. 3. 25. @author: jongyeob ''' from swpy.base import DataUnit from swpy import solarpack as swsp import numpy as np class SolarImage(DataUnit): pass class SurfaceNorm(): def __init__(self,solar_image): self.image = solar_image def get(self): header = s...
jongyeob/swpy
swpy/solarpack/image.py
Python
gpl-2.0
1,840
## # Copyright 2012-2014 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (htt...
geimer/easybuild-framework
test/framework/utilities.py
Python
gpl-2.0
11,133
# # (c) 2017 Red Hat Inc. # # This file is part of Ansible # # Ansible 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. # # Ansible is d...
pgmillon/ansible
lib/ansible/plugins/cliconf/iosxr.py
Python
gpl-3.0
9,976
from django.db import models from django.utils import timezone from django.contrib.auth.models import Group from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Facility(models.Model): """ Represents a facility that produces data. Each :class:`~tardis.tardis_po...
wettenhj/mytardis
tardis/tardis_portal/models/facility.py
Python
gpl-3.0
1,585
# -*- coding: utf-8 -*- """ This module contains the forms for profile editing by a secretary and als for the manager to search for a secretary. :subtitle:`Class definitions:` """ from django import forms from django.utils.translation import ugettext_lazy as _ from apps.account.forms import BaseProfileEditForm, BaseP...
acesonl/remotecare
remotecare/apps/healthperson/secretariat/forms.py
Python
gpl-3.0
3,853
#!/usr/bin/python3 # -*- coding: utf-8 -*- # -------------------------------------------------------------------------- # Mediathekview auf der Kommandozeile # # Class FilmDB, MtvDB: Alles rund um Datenbanken # # Author: Bernhard Bablok # License: GPL3 # # Website: https://github.com/bablokb/mtv_cli # # ---------------...
bablokb/mtv_cli
files/usr/local/bin/mtv_filmdb.py
Python
gpl-3.0
15,956
# Imperialism remake # Copyright (C) 2014-16 Trilarion # # 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. # # This progra...
Trilarion/imperialism-remake
source/imperialism_remake/lib/qt.py
Python
gpl-3.0
29,752
# discretestats.py # Copyright (C) 2015 Tim Woodford. # Deal with statistics in continuous distributions & discretization of variables. from __future__ import division from math import log, exp def discretize(values, minimum, bucket_size): """ Put each continuous value in values into discrete buckets. >>...
twoodford/mdb
mdb/discretestats.py
Python
gpl-3.0
3,449
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import ipdb # ipdb.set_trace() # NOQA import logging import twitter log = logging.getLogger(__name__) def get_api(consumer_key, consumer_secret, access_token_key, access_token_secret): log.info('Authenticating Twitter API credentials') api = twi...
kejbaly2/comdev
comdev/twitter_api.py
Python
gpl-3.0
596
""" Useful FSX constants """ # FSX data fuel_tank = ('Left', 'Right', 'Center', 'External', 'Tip') # FSX Engine types engine_type = ('piston','jet','none','helo-tubine','rocket','turboprop') # same order as MSDN # Data to exctract from air file data_to_extract = ('CD0','Cd_df','CDg','CL_de','CL_dh','CL_df',\ ...
DarthVeder/FSXstability
preproc/fsxdata.py
Python
gpl-3.0
579
import sys sys.path.append("C:\Program Files\FreeCAD\\bin") import os import math import FreeCAD import Sketcher import Part import Draft def translate(context, text): return text #This file is used to generate an obj file using FreeCAD. The generated file if imported into C# using the helix toolkit. Also a *.F...
FinalFrontierPrototyping/AxialFluxGeneratorDesigner
AxialFluxGeneratorDesigner/Python/3DGenerator.py
Python
gpl-3.0
7,597
import os class Command(): def __init__(self, name, command, type): self.icon = None # TODO mabye some day self.name = name self.command = command self.type = type def get_command(self): return bytes(" " + self.command + "\n", 'utf-8') """ Single project class """ class Project(): def __init__(self, na...
SilverLuke/Projects
src/project.py
Python
gpl-3.0
1,577
#!/usr/bin/env python3 'Unit test for trepan.exception' import unittest from trepan import exception as Mexcept class TestDeguggerExcept(unittest.TestCase): def test_debugger_restart(self): try: raise Mexcept.DebuggerRestart(['a', 'b']) except Mexcept.DebuggerRestart: imp...
rocky/python3-trepan
test/unit/test-except.py
Python
gpl-3.0
530
#!/usr/bin/python ###################################################################### # Name: Architect_Plot_Spectrum2D.py # Author: F Massimo # Date: 2016-02-08 # Purpose: plots 2D spectrum of Architect Particles data # Source: Python ##########################################...
albz/Architect
utils/python_utils/general_plot_utilities/Histograms/Architect_Plot_Spectrum2D.py
Python
gpl-3.0
1,575
from html.parser import HTMLParser import requests import re session = requests.session() def setSession(newSession): session = newSession class GemParser(HTMLParser): pageSize = 2000 def parseLinks(self, html): ''' Parse HTML for product types Returns a list of dictionaries of the form: {"url": "http://w...
clintron/familyjools
parse.py
Python
gpl-3.0
8,002
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'UserProfile.tile_linear_interpolation' db.add_column(u'ca...
aschampion/CATMAID
django/applications/catmaid/migrations/0052_add_tile_linear_interpolation_userprofile_setting.py
Python
gpl-3.0
36,824
import curses import sys import os from time import sleep curses.initscr() ''' for i in range(22): a = (sys.stdin.read(1)) curses.flushinp() sys.stdout.write(str((ord(a))) + '\n' + '\b\b\b\b\b\b') sys.stdout.write('\n\n\n\n\n\n\n') sys.stdout.flush() ''' while True: curses.beep() sleep(0....
Derrior/petris
tes.py
Python
gpl-3.0
489
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url urlpatterns = patterns( '', url(r'^mirror$', 'proxylist.views.mirror', name='proxylist_mirror'), )
gotlium/django-proxylist
proxylist/urls.py
Python
gpl-3.0
176
"""Optimization algorithms. This module provides different algorithms for optimization through (typically) stochastic mini-batch gradient descent. """ import random from collections import OrderedDict import pickle import numpy as np import theano from theano import tensor as T from .fun import function def itera...
robertostling/bnas
bnas/optimize.py
Python
gpl-3.0
12,359
from .configuration import config from .common import Trackpoint, Feature, distance from .db_impl import DB from .map_support import MapTool osm_mapper = MapTool(config.get("Map", "redis_host"))
Eierkopp/triparchive
triptools/__init__.py
Python
gpl-3.0
196
# encoding=utf-8 import time import unittest from wpull.database.sqltable import SQLiteURLTable from wpull.item import Status from wpull.database.base import NotFound class TestDatabase(unittest.TestCase): def test_sqlite_url_table(self): url_table = SQLiteURLTable(':memory:') self._generic_url...
bright-sparks/wpull
wpull/database/sqltable_test.py
Python
gpl-3.0
4,311
#!/usr/bin/env python2.7 # coding=UTF-8 # Author: Dennis Lutter <lad1337@gmail.com> # URL: https://sick-rage.github.io # # This file is part of SickRage. # # SickRage 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 Founda...
Arcanemagus/SickRage
tests/search_tests.py
Python
gpl-3.0
5,740
#! /usr/bin/env python3 ''' Firmware Analysis and Comparison Tool (FACT) Copyright (C) 2015-2021 Fraunhofer FKIE 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 ...
fkie-cad/FACT_core
src/update_statistic.py
Python
gpl-3.0
1,563
#!/usr/bin/env python # # Written by Dougal Scott <dougal.scott@gmail.com> # # Copyright (C) 2017 Dougal Scott # # 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 t...
dwagon/hostinfo_client
bin/hostinfo_addhost.py
Python
gpl-3.0
1,898
#!/usr/bin/env python import ctypes import sys import time import ft81x_def HW_444=1 #HW_444=0 ###################### common APIs #################### def ft81x_write(ch_instance,addr,buf): ''' Writes contents of "buf" which is string type to FT81x address "addr" Args: ch_instance - SPI...
RashmiKare/firstpy
ft81x_api.py
Python
gpl-3.0
29,625
from django.apps import AppConfig class FindfriendsConfig(AppConfig): name = 'findfriends'
mgmacias95/TwitterFriends
TwitterFriends/findfriends/apps.py
Python
gpl-3.0
97
import os from wsgiref import simple_server import rdflib from rdflib import Namespace import message_board_to_sioc from message_board_to_sioc import SIOC, DC, DCTERMS, FOAF, RDFS, MB """ A very simple Linked Open Data server It does not implement content negotiation (among other things) ...and only serves rdf+xml "...
mikel-egana-aranguren/MSc_Bioinformatics_UM_13-14_LSSW
doc/Programming-the-Semantic-Web/chapter7/message_board_LOD_server.py
Python
gpl-3.0
4,005
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-04-11 16:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('storage', '0009_auto_20170410_1141'), ] operations = [ migrations.AddField( ...
ESSolutions/ESSArch_Core
ESSArch_Core/storage/migrations/0010_auto_20170411_1801.py
Python
gpl-3.0
870
# Tulpenmanie, a markets client. # Copyright (C) 2012 Emery Hemingway # # 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....
volak/tulpenmanie
tulpenmanie/network/socket_io.py
Python
gpl-3.0
9,430
# Copyright 2013, 2014, 2015 Kevin Reid <kpreid@switchb.org> # # This file is part of ShinySDR. # # ShinySDR 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 opti...
hofschroeer/shinysdr
shinysdr/plugins/mode_s/__init__.py
Python
gpl-3.0
11,119
from django.db import models from django.utils.translation import ugettext_lazy as _ from tinymce.models import HTMLField class Toolkit(models.Model): """ Provides an external link functionality """ order_by = models.IntegerField(default=0) title = models.CharField(max_length=200) url = models...
mPowering/django-orb
orb/toolkits/models.py
Python
gpl-3.0
849
''' ******************************************************************* * File: readSBML.py * Description: * Author: HarshaRani * E-mail: hrani@ncbs.res.in ********************************************************************/ /**********************************************************...
upibhalla/moose-core
python/moose/SBML/readSBML.py
Python
gpl-3.0
70,787
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
jkthompson/nupic
py/nupic/encoders/logenc.py
Python
gpl-3.0
9,957
import sqlite3 import pytest from clisnips.database.offset_pager import OffsetPager TEST_SCHEMA = ''' CREATE TABLE paging_test( value TEXT, ranking INTEGER ); CREATE VIRTUAL TABLE paging_test_idx USING fts4( content="paging_test", value ); CREATE TRIGGER IF NOT EXISTS test_bu BEFORE UPDATE ON pagin...
ju1ius/clisnips
tests/database/offset_pager_test.py
Python
gpl-3.0
3,985
from bs4 import BeautifulSoup import csvkit #because Unicode import os import wget """ This script downloads all the results pages for UPCAT 2015 and then extracts the results to a csv file. """ def downloadResults(): """Download all the html files of the results""" baseurl = 'http://u...
rukku/upcat2015-data-experiments
upcatresults_dl.py
Python
gpl-3.0
2,518
#! /usr/bin/env python from socket import * from stdwn import impl from StringIO import * import thread import cPickle stayalive = 1 port = 3334 def acceptConnections(arg): s = socket(AF_INET, SOCK_STREAM) s.bind(('', port)) s.listen(1) print "pwynserver listening on port", port print "<return> to stop" while ...
balajeerc/lexiconator
lexiconator-client/src/pywn/pywnserver.py
Python
gpl-3.0
1,347
import sys import mock from mock import patch, call import kiwi from .test_helper import argv_kiwi_tests from kiwi.tasks.image_info import ImageInfoTask from collections import namedtuple class TestImageInfoTask(object): def setup(self): sys.argv = [ sys.argv[0], '--profile', 'vmxFlavour'...
adrianschroeter/kiwi
test/unit/tasks_image_info_test.py
Python
gpl-3.0
5,448
# -*- coding: utf-8 -*- # Generated by Django 1.11.14 on 2018-08-01 03:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('tardi...
wettenhj/mytardis
tardis/apps/openid_migration/migrations/0001_initial.py
Python
gpl-3.0
1,925
from django.db import models class Strategy(models.Model): name = models.CharField(max_length=64) users = models.IntegerField() price = models.FloatField(default=0) def endpayment(self): pass def __unicode__(self): return self.name @classmethod def get_default(cls): ...
qualitio/qualitio
qualitio/payments/models.py
Python
gpl-3.0
1,385
''' Sqlite ORM models ''' import hashlib from orm import Model from app.utils.ascii_checks import ascifiiString from app.utils.stringlists import unrollStringList class AutoModel(Model): def __init__(self, **kwargs): for k,v in kwargs.items(): setattr(self,k,v) # a method to ascifii s...
hemidactylus/flaskbiblio
app/database/models.py
Python
gpl-3.0
5,432
#!/usr/bin/python # -*- coding: utf-8 -*- import flask import notifier from flask import Flask, render_template from flask_googlemaps import GoogleMaps from flask_googlemaps import Map from flask_googlemaps import icons import os import re import sys import struct import json import requests import argparse import get...
jxmorris12/PokemonGo-Finder
main.py
Python
gpl-3.0
31,106
# -*- coding: utf-8 -*- # # Copyright (C) 2015 GNS3 Technologies Inc. # # 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. ...
GNS3/gns3-server
gns3server/handlers/api/compute/network_handler.py
Python
gpl-3.0
2,035
import random import asyncio import trueskill import config from .ladder_game import LadderGame from server.players import Player, PlayerState import server.db as db class LadderService: """ Service responsible for managing the 1v1 ladder. Does matchmaking, updates statistics, and launches the games. ...
madformuse/server
server/games/ladder_service.py
Python
gpl-3.0
3,698
# -*- coding: utf-8 -*- from ..accounts.Keep2ShareCc import Keep2ShareCc class FileboomMe(Keep2ShareCc): __name__ = "FileboomMe" __type__ = "account" __version__ = "0.02" __status__ = "testing" __description__ = """Fileboom.me hoster plugin""" __license__ = "GPLv3" __authors__ = [("igel"...
igel-kun/pyload
module/plugins/accounts/FileboomMe.py
Python
gpl-3.0
381
from flask.ext.login import LoginManager # In order to avoid circular imports we setup the login extension # in its own top-level module named auth: from .users.models import User login_manager = LoginManager() login_manager.login_view = "users.login" @login_manager.user_loader def load_user(user_id): """ W...
RockyRoad29/Flask-know_users
know_users/auth.py
Python
gpl-3.0
599
""" Experiments from [Nygren1998] Charles Houston 2019-10-18 """ from ionchannelABC.experiment import Experiment from ionchannelABC.protocol import recovery import data.ito.Nygren1998.data_Nygren1998 as data import numpy as np import myokit import warnings from scipy.optimize import OptimizeWarning import scipy.optimi...
c22n/ion-channel-ABC
docs/examples/human-atrial/experiments/ito_nygren.py
Python
gpl-3.0
7,380
from heppy.framework.analyzer import Analyzer from heppy_fcc.tools.genbrowser import GenBrowser class UserWarning(Exception): pass class GenAnalyzer(Analyzer): def process(self, event): genptcs = event.gen_particles event.electrons = [ptc for ptc in genptcs if abs(ptc.pdgid())==11 ...
semkiv/heppy_fcc
analyzers/GenAnalyzer.py
Python
gpl-3.0
839
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-27 14:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sshkm', '0001_initial'), ] operations = [ migrations.AddField( ...
sshkm/django-sshkm
sshkm/migrations/0002_host_superuser.py
Python
gpl-3.0
461
# -*- coding: utf-8 -*- import urlparse from module.plugins.internal.Account import Account from module.common.json_layer import json_loads class RapidgatorNet(Account): __name__ = "RapidgatorNet" __type__ = "account" __version__ = "0.12" __status__ = "testing" __description__ = """Rapid...
fayf/pyload
module/plugins/accounts/RapidgatorNet.py
Python
gpl-3.0
2,270
from datamodel.datamodel import SIMessage from battery import Battery from loraradio.LoraRadioMessageCreator import LoraRadioMessageCreator from settings.settings import SettingsClass import logging class SITestTestToLoraTransform(object): DeleteAfterSent = False WiRocLogger = logging.getLogger('WiRoc.Output'...
henla464/WiRoc-Python-2
transforms/sitesttesttoloratransform.py
Python
gpl-3.0
2,946
#!/usr/bin/env python #-*-coding:utf8-*- from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait import unittest import time,random #se crea la clase principal LoginTest class LoginTest(unittest.TestCase): # Se crea la funcion setUp def setUp(self): # Se crea la instancia de webdriv...
yasskate/createUserOL
POO-createUser.py
Python
gpl-3.0
5,539
""" Intercircle is a collection of utilities for intersecting circles, used to get smooth loops around a collection of points and inset & outset loops. """ from __future__ import absolute_import try: import psyco psyco.full() except: pass #Init has to be imported first because it has code to workaround the python ...
tobykurien/MakerDroid
assetsrc/public.mp3/fabmetheus_utilities/intercircle.py
Python
gpl-3.0
24,711
from urllib.parse import urlsplit import pytest import rc_crawler.browser.persist as ps def test_build_concise_url(): for url, expected in [ ("https://www.google.com/search#abc", "/search"), ("https://www.google.com/search/foo=bar#abc", "/search/foo=bar"), ...
kakarukeys/rc_crawler
tests/test_persist.py
Python
gpl-3.0
890
# Generated by Django 2.2.4 on 2019-09-09 16:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion from aklub.migrations.data_migration.old_user_profile_model_hack import Settings as settings class Migration(migrations.Migration): dependencies = [ ...
auto-mat/klub
local_migrations/migrations_admin/0008_auto_20190909_1816.py
Python
gpl-3.0
625
# -*- coding: utf-8 -*- # test_incoming_flow_integration.py # Copyright (C) 2017 LEAP # # 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...
leapcode/soledad
tests/server/test_incoming_flow_integration.py
Python
gpl-3.0
3,848
""" HTTP Web Server Engine with Custom Tornado Adapter that includes websocket support """ ### INCLUDES ### import logging from tornado import web, wsgi, httpserver, ioloop import bottle from .application import WebApplication from .socket import WebsocketHandler ### CONSTANTS ### ## Logger ## LOGGER = logging.get...
Barmaley13/BA-Software
gate/web/__init__.py
Python
gpl-3.0
2,419
# -*- coding: utf-8 -*- from module.plugins.internal.SimpleCrypter import SimpleCrypter class MegaRapidCzFolder(SimpleCrypter): __name__ = "MegaRapidCzFolder" __type__ = "crypter" __version__ = "0.02" __pattern__ = r'http://(?:www\.)?(share|mega)rapid\.cz/slozka/\d+/\w+' __config__ = [("u...
sebdelsol/pyload
module/plugins/crypter/MegaRapidCzFolder.py
Python
gpl-3.0
704
#!/usr/bin/env python3 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * from test_framework.script import * from test_framework.mininode import * from test_framework.address import * from test_framework.berycoin import * import sys import random import time import io cl...
berycoin-project/berycoin
test/functional/berycoin-gas-limit-overflow.py
Python
gpl-3.0
1,311
# encoding: utf-8 # KiPa(KisaPalvelu), tuloslaskentajärjestelmä partiotaitokilpailuihin # Copyright (C) 2010 Espoon Partiotuki ry. ept@partio.fi from models import * from django.contrib import admin from formit import * class SarjaInline(admin.TabularInline): model = Sarja extra = 1 class ParametriInlin...
siimeon/Kipa
web/tupa/admin.py
Python
gpl-3.0
1,231
from django.contrib.auth.models import User from django.test import TestCase from gerencex.core.models import Office class UserDetailTest(TestCase): def setUp(self): Office.objects.create(name='Nenhuma lotação', initials='NL') User.objects.create_user('testuser', 'te...
flavoso/gerencex
gerencex/core/tests/test_userdetail.py
Python
gpl-3.0
1,252
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-01-31 13:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aklub', '0017_auto_20160127_1358'), ] operations = [ migrations.AlterField( ...
auto-mat/klub
apps/aklub/migrations/0018_auto_20160131_1341.py
Python
gpl-3.0
516
# Modules import lxml.etree from sysinfosuite.SysInfoOutputsBase import SysInfoOutputsBase class cimc_mgmt_controller(SysInfoOutputsBase): def __init__(self, pc): self.pce = pc self.description = "Gets the UCS management information" self.author = "Peter Mikus" self.cmd = "mgmtCont...
pmikus/sys-info-suite
sysinfosuite/outputs/cimc_mgmt_controller.py
Python
gpl-3.0
856
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible 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...
ownport/ansiblite
src/ansiblite/modules/system/setup.py
Python
gpl-3.0
5,711
from cell import neutral class Land: def __init__(self, percent): self.percent = percent def isLiving(self): return self.percent >= .05 def canSupport(self, neighbors): if self.percent < .05: return False if self.percent < .25: return neighbors == 2 ...
pikachuchu/id
land.py
Python
gpl-3.0
1,723
import math import random from stamp.metagenomics.plugins.statisticalTests.Fishers import Fishers from stamp.metagenomics.plugins.statisticalTests.ChiSquare import ChiSquare from stamp.metagenomics.plugins.statisticalTests.ChiSquareYates import ChiSquareYates from stamp.metagenomics.plugins.statisticalTests.GTest impo...
dparks1134/STAMP
stamp/metagenomics/simulations/pValueTest.py
Python
gpl-3.0
4,531
# ##################################### Start the webserver ############################################################ import start_server from threading import Thread def start(port, maxlength, timeout): background_thread = Thread(target=start_server.start, args=(port, maxlength, timeout)) background_thre...
hkociemba/RubiksCube-TwophaseSolver
server.py
Python
gpl-3.0
331
from .cmdapps_plugin import CmdOperator, StdoutOperator, AppArgumentOperator, RunCommandOperator, CmdAction
sach1t/dispatch
dispatch/plugins/cmd_apps_plugin/__init__.py
Python
gpl-3.0
107
class HeaderMixin(object): opening = '\\header {\n' closing = '\n } \n' def typed_credit(self, type_, default=''): type_matches = lambda x: x.lily_credit_type == type_ credit = filter(type_matches, self.credit[:]) if credit: return credit[0] else: re...
Philomelos/xml2ly
score_partwise/header.py
Python
gpl-3.0
1,147
from django.contrib import admin from assettypes.models import ( Manufacturer, GenericModel, GenericAccessoryModel, ProjectorLampModel, ProjectorFilterModel, ProjectorLensModel, ProjectorModel, MovingLightLampModel, MovingLightModel, LEDLightModel, CameraLensModel, Video...
nocarryr/AV-Asset-Manager
avam/assettypes/admin.py
Python
gpl-3.0
1,433
#!/usr/bin/env python """ USB communication file for Replicape. Author: Elias Bakken email: elias(dot)bakken(at)gmail(dot)com Website: http://www.thing-printer.com License: GNU GPL v3: http://www.gnu.org/copyleft/gpl.html Redeem is free software: you can redistribute it and/or modify it under the terms of the GNU G...
tomstokes/redeem
software/USB.py
Python
gpl-3.0
2,189
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-01-22 11:02 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ABC', '0029_auto_20180122_1032'), ] ...
arkabytes/abc
ABC/migrations/0030_auto_20180122_1102.py
Python
gpl-3.0
1,153
from webapp2 import Route from app.web import index from app.web.admin import login, dashboard, dances, events from app.web.users import dances as user_dances, events as user_events __all__ = ['get_routes', 'add_routes'] _routes = [ Route('/admin', handler=login.LoginHandler, name='login'), Route(...
Terhands/saskdance
app/routes.py
Python
gpl-3.0
1,250
## Copyright (C) 2010- Alexey Petrov ## Copyright (C) 2009-2010 Pebble Bed Modular Reactor (Pty) Limited (PBMR) ## ## 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 Lic...
asimurzin/foam2vtk
foam2vtk/__init__.py
Python
gpl-3.0
949
from django.test import TestCase from apps.taxonomy.tests import factories from django.contrib.auth.models import User from rest_framework import status class BaseTestMixin(object): """ Base class for testing """ read_list_status = None read_options_status = None read_head_status = None ...
TU-NHM/plutof-taxonomy-module
apps/taxonomy/tests/base.py
Python
gpl-3.0
11,574
"""This script extracts the gold fragments from a corpus. """ import sys import cPickle as pickle import argparse if __name__ == '__main__': def parse_args(): parser = argparse.ArgumentParser( prog='goldset.py', formatter_class=argparse.RawDescriptionHelpFormatter, de...
bootphon/tde
bin/make_goldset.py
Python
gpl-3.0
2,314
#!/usr/bin/env python #-*- coding:utf-8 -*- #__doc__ = "Document" #__version__ = "0.0000001" import os,sys,time from struct import pack,unpack from termcolor import colored import wmf.Records.control class Wmf: metafile = None header = None records = None objects = None def __init__(sel...
LuoZijun/uOffice
lib/WMF/__init__.py
Python
gpl-3.0
1,015
__author__ = 'quentin' from collections import deque from math import log10, sqrt, pi import cv2 try: CV_VERSION = int(cv2.__version__.split(".")[0]) except: CV_VERSION = 2 import numpy as np from scipy import ndimage from ethoscope.core.variables import XPosVariable, YPosVariable, XYDistance, WidthVariabl...
gilestrolab/ethoscope
src/ethoscope/trackers/adaptive_bg_tracker.py
Python
gpl-3.0
17,403
''' matrixFactory.py ''' import os import sys # Configuration of environment sys.path.append('Rollenverteilung/src/lib') os.system('export LD_LIBRARY_PATH=hdf5/1.8.16/lib') from rv.structure.Tensor import Matricisation # Base directory of the project BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__f...
tony-hong/roleo
wsvt/view2D/matrixFactory.py
Python
gpl-3.0
1,412
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2016 Pambudi Satria (<https://github.com/pambudisatria>). # @author Pambudi Satria <pambudi.satria@yahoo.com> # # This program is free software: you can redistribute it and/or modify ...
sumihai-tekindo/account_sicepat
customer_churn_report/models/res_config.py
Python
gpl-3.0
2,372
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2015 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. # # qutebrowser 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 S...
artur-shaik/qutebrowser
qutebrowser/browser/hints.py
Python
gpl-3.0
39,435
"""Operator classes for eval. """ import re import operator as op from functools import partial from itertools import product, islice, chain from datetime import datetime import numpy as np import pandas as pd from pandas.compat import PY3, string_types, text_type import pandas.core.common as com from pandas.core.ba...
alephu5/Soundbyte
environment/lib/python3.3/site-packages/pandas/computation/ops.py
Python
gpl-3.0
14,968
import re import lxml.html from pupa.scrape import Person, Scraper class MOPersonScraper(Scraper): _assumed_address_fmt = "201 West Capitol Avenue {}, " "Jefferson City, MO 65101" # senators_url = 'http://www.senate.mo.gov/{}info/senalpha.htm' # ^^^^^^^^^^^ pre-2013 URL. Keep if we need to scrape old pag...
openstates/openstates
openstates/mo/people.py
Python
gpl-3.0
8,478
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-18 00:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dir', '0007_auto_20161123_1049'), ] operations = [ migrations.AlterField( ...
tompecina/legal
legal/dir/migrations/0008_auto_20161218_0040.py
Python
gpl-3.0
584