code
stringlengths
6
947k
repo_name
stringlengths
5
100
path
stringlengths
4
226
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
6
947k
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Copyright (c) 2016 David Topping. # All Rights Reserved. # This file is part of umansysprop. # # umansysprop 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, eit...
loftytopping/UManSysProp_public
umansysprop/partition_models.py
Python
gpl-3.0
17,483
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-03 14:00 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('restaurant', '0009_permission'), ] operations = [ migrations.AlterModelOptions( ...
PietPtr/FinalProject
backend/restaurant/migrations/0010_auto_20161103_1400.py
Python
gpl-3.0
526
import lxml from lxml.etree import ( XPath, ) from lxml.cssselect import CSSSelector import re from .utils import ( raise_again, generic_translator, preprocess_selector, ) class BaseTermAction(object): in_type = None out_type = None @staticmethod def _...
darfire/screp
screp/termactions.py
Python
gpl-3.0
4,505
#!/usr/bin/python # NOTE!! This code is from the Adafruit Learning System articles on the Raspberry Pi (http://learn.adafruit.com/) # The original version of the code can be found in the Adafruit Raspberry Pi Python Library on Github at https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code import smbus # ==...
tomstokes/redeem
software/Adafruit_I2C.py
Python
gpl-3.0
4,135
import sys, os, json physical_addess = '' node_info = None def getMacAddress(): if sys.platform == 'win32': for line in os.popen("ipconfig /all"): if line.lstrip().startswith('Physical Address'): mac = line.split(':')[1].strip().replace('-',':') break else: ...
rafaelbezerra-dev/PlantMonitoringSystem
monitoring_node/node.py
Python
gpl-3.0
1,138
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-09-17 16:10 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('overseas', '0013_auto_20160914_1706'), ] operations ...
nevermoreluo/privateoverseas
overseas/migrations/0014_auto_20160918_0010.py
Python
gpl-3.0
1,111
# Thanks to Kurt Othmer for BioExplorer design this is translated from from flow import * class Flow(object): def init(self, context): ch1 = context.get_channel('Channel 1') #ch1 = Notch(50, input=ch1) ch1_dc = DCBlock(ch1).ac ch1_raw = BandPass(0.0, 40.0, input=ch1_dc) ch1_theta = BandPass(3.0, 7.0, inpu...
strfry/OpenNFB
protocols/2_ch_c3beta_c4smr_kro.py
Python
gpl-3.0
3,567
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import os from hashlib import md5 from fractions import Fraction mpl.rcParams["text.usetex"] = True mpl.rcParams["text.latex.preamble"] = "\usepackage{bm}" def read_hash(path): if not os.path.isfile(path): return "" with open(...
kingfisher1337/tns
qpotts_groundstate_1d/plot.py
Python
gpl-3.0
12,349
import json import os import pexpect import re import time from behave import step import nmci @step(u'Autocomplete "{cmd}" in bash and execute') def autocomplete_command(context, cmd): bash = context.pexpect_spawn("bash") bash.send(cmd) bash.send('\t') time.sleep(1) bash.send('\r\n') time.sl...
NetworkManager/NetworkManager-ci
features/steps/commands.py
Python
gpl-3.0
19,422
# -*- 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): # Adding field 'Event.photo' db.add_column('events_event', 'photo', self.gf('django.db...
e-Luminate/eluminate_web
eluminate_web/apps/events/migrations/0006_auto__add_field_event_photo.py
Python
gpl-3.0
7,343
#!/usr/bin/env python import time import json import RPi.GPIO as GPIO import sys # Defaults visitors = int(sys.argv[1]) if len(sys.argv) > 1 else 0 # Hardware interface pin = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(pin, GPIO.IN) # Log visitor to console def log(count): print 'Logged visitor #%d' % count # Updat...
code64/stepcounter
examples/json/logger-gpio.py
Python
gpl-3.0
781
from __future__ import absolute_import import time import threading from gi.repository import Gtk from . import gamewidget from pychess.Utils.const import HINT, SPY, BLACK, WHITE from pychess.System import conf, fident from pychess.System import uistuff from pychess.System.idle_add import idle_add from pychess.System...
cajone/pychess
lib/pychess/widgets/analyzegameDialog.py
Python
gpl-3.0
7,913
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' SQLALCHEMY_COMMIT_ON_TEARDOWN = True SQLALCHEMY_TRACK_MODIFICATIONS = False MAIL_SERVER = 'smtp.qq.com' MAIL_PORT = 587 MAIL_USE_TLS = True MAIL_...
ouyangshi/ahpucourses
config.py
Python
gpl-3.0
1,337
## ## This file is part of the sigrok project. ## ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.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...
robacklin/sigrok
decoders/uart_dump/__init__.py
Python
gpl-3.0
881
# ########################################################################### # # Copyright (C) 2019 The Qt Company Ltd. # Contact: https://www.qt.io/licensing/ # # This file is part of the Quality Assurance module of the Qt Toolkit. # # $QT_BEGIN_LICENSE:GPL-EXCEPT$ # Commercial License Usage # Licensees holding valid...
qtproject/qtqa
scripts/lancebot/lancebot.py
Python
gpl-3.0
32,623
from __future__ import unicode_literals from dump import _Dump from utils.vss import _VSS import os class Windows8Dump(_Dump): def __init__(self, params): super(Windows8Dump, self).__init__(params) self.root_reg = os.path.join(_VSS._get_instance(params)._return_root(), 'Windows\System32\con...
SekoiaLab/Fastir_Collector
dump/windows8Dump.py
Python
gpl-3.0
327
#!/usr/bin/env python # -*- coding: utf-8 -*- # Correlating gene expression measures from two experiments # Example, comparing NGS vs microarray data __authors__ = "Eric Normandeau" __program_name__ = "gene_expression_correlation" __version_info__ = ('0', '0', '1') __version__ = '.'.join(__version_info__) __revision_...
wkh124/wkh124
gene_expression_correlation.py
Python
gpl-3.0
6,865
# -*- encoding: utf-8 -*- ################################################################################ # TuiterPy - A Python Command Line Social Network Application # Copyright (C) 2016 Sergio Trujillo (sergiotrujillomartinez@gmail.com) # # This program is free software: you can redistribute it and/or mod...
srgtrujillo/TuiterPy
controller/commands/post_command.py
Python
gpl-3.0
1,367
import sys inFile = open(sys.argv[1],'r') nuc = {'A':'T','T':'A','G':'C','C':'G','K':'M','M':'K','R':'Y','Y':'R','S':'W','W':'W','B':'V','V':'B','H':'G','D':'C','X':'N','N':'N'} def revComp(seq): rev = '' for i in range(len(seq) - 1,-1,-1): rev += nuc[seq[i]] return rev header = '' seq = '' for...
pandeyravi15/SGMBL
script/revcomp.py
Python
gpl-3.0
576
# -*- coding: utf-8 -*- import os from datetime import datetime import six from bs4 import BeautifulSoup from git import InvalidGitRepositoryError, Repo from mock import ANY, call from nose.tools import ( assert_equal, assert_greater, assert_in, assert_less_equal, assert_not_in, assert_raises, ...
OddBloke/sphinx-git
tests/test_git_changelog.py
Python
gpl-3.0
11,748
""" Copyright (C) 2016 Quinn D Granfor <spootdev@gmail.com> 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 program is distributed in the hope that it will be useful, but ...
MediaKraken/MediaKraken_Deployment
source/common/common_metadata_tv_intro.py
Python
gpl-3.0
1,725
#!/usr/bin/env python3 """ test/unit_tests_d/ut_daemon.py: unit test for the MMGen suite's Daemon class """ from subprocess import run,DEVNULL from mmgen.common import * from mmgen.daemon import * from mmgen.protocol import init_proto def test_flags(): d = CoinDaemon('eth') vmsg(f'Available opts: {fmt_list(d.avail...
mmgen/mmgen
test/unit_tests_d/ut_daemon.py
Python
gpl-3.0
4,118
# encoding: utf-8 # 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. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY;...
luisza/dfva
src/person/models.py
Python
gpl-3.0
8,217
from multiprocessing import * from ceng445 import * import json import traceback STATUS_OK = 'OK' STATUS_FAIL = 'FAIL' class ApplicationProcess(Process): def __init__(self, connectionInfo): super(ApplicationProcess, self).__init__() self._conn = connectionInfo[0] self._addr = connectionInf...
mustafa-cosar/ceng445Project
src/ApplicationProcess.py
Python
gpl-3.0
4,252
#!/usr/bin/env python3 """ Justin Tan 2017 Reads parquet file, conducts preprocessing, outputs to TfRecords spark-submit --name spark2tf --jars /home/jtan/gpu/jtan/spark/ecosystem/spark/spark-tensorflow-connector/target/spark-tensorflow-connector-1.0-SNAPSHOT.jar,/home/jtan/gpu/jtan/spark/ecosystem/spark/spark-tensorf...
Justin-Tan/hep-analysis
spark2tfrecords/spark2tfrecords.py
Python
gpl-3.0
6,562
# #################################################################### # # # # FACSIMILE CHECK # # # # Script to check a FACSIMIL...
rs028/mcm-facsimile
facsimile_check.py
Python
gpl-3.0
4,674
# Author: Dennis Lutter <lad1337@gmail.com> # Author: Jonathon Saine <thezoggy@gmail.com> # URL: http://code.google.com/p/sickbeard/ # # 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 S...
normtown/SickRage
sickbeard/webapi.py
Python
gpl-3.0
116,800
import pygtk import gtk import dill pygtk.require('2.0') class TreeStoreFunctions(): def get_children(self, root_iter): children = [] for i in range(0, self.treestore.iter_n_children(root_iter)): children.append(self.treestore.iter_nth_child(root_iter, i)) return children
cboyce93/epitome-xl
src/util/treestore_functions.py
Python
gpl-3.0
316
# -*- coding: utf-8 -*- # # Copyright (C) 2014-2019 khalim19 # # 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 applicab...
khalim19/gimp-plugin-export-layers
export_layers/pygimplib/gui/entries.py
Python
gpl-3.0
31,115
from settings import * import unittest from tethne.model.social import tapmodel from tethne.persistence.hdf5.tapmodel import HDF5TAPModel, from_hdf5, to_hdf5 from tethne.persistence.hdf5.graphcollection import HDF5Graph import numpy import networkx import os import cPickle as pickle with open(picklepath + '/test_TA...
diging/tethne-tests
tests/test_persistence_hdf5_tapmodel.py
Python
gpl-3.0
4,806
# [START all] import argparse from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.client import GoogleCredentials def main(project_id): # [START build_service] # Grab the application's default credentials from the environment. credentials = GoogleCredentials.get...
napsternxg/GenderPrediction
data_download.py
Python
gpl-3.0
1,931
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014, 2015, 2016 Adam.Dybbroe # Author(s): # Adam.Dybbroe <a000680@c14526.ad.smhi.se> # 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 Foun...
adybbroe/pysatsynop-matchup
pps_matchup.py
Python
gpl-3.0
26,919
""" Module with Qt widgets. """ from .debug_info import DebugPanelWidget from .error_tab import ErrorWidget from .info_panel import InfoPanelPage from .tree import TreeWidget from .yaml_editor import YamlEditorWidget
GeoMop/GeoMop
src/ModelEditor/ui/panels/__init__.py
Python
gpl-3.0
218
# coding: utf-8 # # This file is part of mpdav. # # mpdav 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. # # mpdav is distributed in t...
mprochnow/mpdav
mpdav/file_backend.py
Python
gpl-3.0
12,064
# pylint: disable=too-many-public-methods, invalid-name, too-many-arguments from __future__ import (absolute_import, division, print_function) import unittest import os import stresstesting import mantid from sans.state.data import get_data_builder from sans.common.enums import (DetectorType, SANSFacility, IntegralE...
ScreamingUdder/mantid
Testing/SystemTests/tests/analysis/SANSDiagnosticPageTest.py
Python
gpl-3.0
6,474
class Solution: """ @param: nums: A list of integers @return: A integer indicate the sum of max subarray """ def maxSubArray(self, nums): # write your code here if not nums or len(nums) == 0: return 0 cur = res = nums[0] for i in xrange(1, len(nums)): ...
shawncaojob/LC
LINTCODE/41_maximum_subarray.py
Python
gpl-3.0
410
import pygame # Import the android module. If we can't import it, set it to None - this # lets us test it, and check to see if we want android-specific behavior. try: import android except ImportError: android = None # Event constant. TIMEREVENT = pygame.USEREVENT # The FPS the game runs at. FPS = 30 # Colo...
kallimachos/archive
andpygame/android_example.py
Python
gpl-3.0
1,612
#-*- coding: utf-8 -*- ''' python-libtorrent for Kodi (script.module.libtorrent) Copyright (C) 2015-2016 DiMartino, srg70, RussakHH, aisman 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 t...
alfa-jor/addon
plugin.video.alfa/lib/python_libtorrent/python_libtorrent/functions.py
Python
gpl-3.0
9,266
# -*- coding: UTF-8 -*- from django import forms from .models import * class LoginForm(forms.Form): User = forms.CharField(widget=forms.TextInput(attrs={'placeholder': 'User', 'class' : 'form-control'})) Password = forms.URLField(widget=forms.TextInput(attrs={'placeholder': 'Password', 'class' : 'form-control', 'typ...
araluce/NextMedia
NextMedia/forms.py
Python
gpl-3.0
1,632
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Getting Things GNOME! - a personal organizer for the GNOME desktop # Copyright (c) 2008-2012 - Lionel Dricot & Bertrand Rousseau # # This program is free software: you can redistribute it and/or modify it under # t...
parinporecha/backend_gtgonline
GTG/tests/test_datastore.py
Python
gpl-3.0
14,082
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Site Analytics documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # #...
gnuworldman/site-analytics
doc/conf.py
Python
gpl-3.0
12,791
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-03 00:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0001_initial'), ] operations = [ migrations.AlterField( ...
rafaelribeiroo/ensinoDistancia
src/apps/courses/migrations/0002_auto_20171103_0057.py
Python
gpl-3.0
685
# -*- coding: UTF-8 -*- # # (c) 2010 Mandriva, http://www.mandriva.com/ # # This file is part of Mandriva Server Setup # # MSS 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, o...
jfmorcillo/mss
mss/agent/__init__.py
Python
gpl-3.0
844
import bottle from config import app, Session from models.show_follow import ShowFollow @app.get("/rest/show-follow/<show_id>") def get_show_follow(session, show_id): user_id = session.get("user_id") if user_id: sa_session = Session() show_follow = sa_session.query(ShowFollow) \ ...
smtheard/ShowTracker
controllers/show_follow.py
Python
gpl-3.0
1,287
from PyQt5.QtCore import QObject, pyqtProperty class MovieTableItem(QObject): def __init__(self, original_name, new_name, parent=None): super().__init__(parent) self.__original_name = original_name self.__new_name = new_name @pyqtProperty('QString', constant=True) def original_nam...
albemala/almoviesrenamer
src/ui/movie_table_item.py
Python
gpl-3.0
671
from behave import * use_step_matcher("parse") @given('Exists a team created by "{username}"') def step_impl(context, username): from django.contrib.auth.models import User user = User.objects.get(username=username) from sportsBetting.models import Team for row in context.table: team = Team(cr...
Marcelpv96/SITWprac2017
sportsBetting/features/steps/register_teams.py
Python
gpl-3.0
1,654
"""Add tasks and events to the admin interface""" from django.contrib import admin from .models import Task, Event class EventInline(admin.StackedInline): """Create an interface for adding events.""" model = Event extra = 3 class TaskAdmin(admin.ModelAdmin): """Add the interface.""" inlines = [Ev...
alexskc/Fruitydo
profilepage/admin.py
Python
gpl-3.0
369
import serial import sys import time import matplotlib.pyplot as plt import numpy def update_line(h1, x, y): h1.set_xdata(numpy.append(h1.get_xdata(), x)) h1.set_ydata(numpy.append(h1.get_ydata(), y)) plt.draw() ''' __author__ = 'tjd08a' ''' port = None for arg in sys.argv: port = arg ser = serial....
cspang1/4534-08
src/supervisory/test_protocol/test_serial_com.py
Python
gpl-3.0
1,683
# -*- coding: utf-8 -*- # EditXT # Copyright 2007-2015 Daniel Miller <millerdev@gmail.com> # # This file is part of EditXT, a programmer's text editor for Mac OS X, # which can be found at http://editxt.org/. # # EditXT is free software: you can redistribute it and/or modify # it under the terms of the GNU General Publ...
editxt/editxt
editxt/theme.py
Python
gpl-3.0
3,505
#!/usr/bin/env python import sys import math def main(): if len(sys.argv) != 3: print('USAGE: ' + sys.argv[0] + ' <filename> ' + ' <boundary id of interest>') return targetString = 'Moment coefficient for body[' + sys.argv[2] targetTimestep = ': \n' filename = sys.argv[1] t...
ngcurrier/ProteusCFD
tools/extractCM.py
Python
gpl-3.0
990
""" GuARDIANs (packaGe for Ao eRror breakDown estImation And exploitatioN) """ __all__ = ["groot", "gamora", "roket", "drax", "starlord"]
ANR-COMPASS/shesha
guardians/__init__.py
Python
gpl-3.0
138
#!/usr/bin/env python ''' File name: main_ripp_mod.py Author: Guillaume Viejo Date created: 16/08/2017 Python Version: 3.5.2 ''' import sys import numpy as np import pandas as pd import scipy.io from functions import * # from pylab import * from multiprocessing import Pool import os import neurose...
gviejo/ThalamusPhysio
python/main_make_SWS_scalar_product.py
Python
gpl-3.0
14,308
s = "Hello My friend" def printHello(request): return s def printJson(request): return {"items":{"name":"damien", "age":8}} def onconnect(connection): def ondata(): connection.write(data) def onclose(): print 'close' connection.data(ondata) connection.close(onclose) show.rest.get("/pyitems"...
dsolimando/Hot
hot-cli/src/main/resources/examples/example.show.py
Python
gpl-3.0
564
"""Process User Interface and execute commands. License: MCC - Command-Line Instance Control for AWS, Azure, GCP and AliCloud. Copyright (C) 2017-2018 Robert Peteuil This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published...
robertpeteuil/multi-cloud-control
mcc/uimode.py
Python
gpl-3.0
12,295
# TaxiVis product for analyzing trends in taxi trajectories. # Copyright (C) 2012 David Sheets (dsheets4@kent.edu) # # This 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 ...
dsheets4/Trajic
tmt/LdaObjects.py
Python
gpl-3.0
10,779
# Declaring constants for use throughout the program STATE_AUTH = 'AUTH' STATE_CHAT = 'CHAT' SIGN_UP = 'SIGN_UP' LOGIN = 'REGISTER' EXIT = 'EXIT' EXIT_COMMAND = '.quit' # This is what the user types when he/she wants to quit DB_URL = 'storage.db' PORT = 1236 LOG_FILE_URL = 'chatserver.log' TEST_USER_FILE = 'sim_users...
srvasn/basic-chat-server
constants.py
Python
gpl-3.0
513
# postgresql/json.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from __future__ import absolute_import import json import collections from .base...
fernandog/Medusa
ext/sqlalchemy/dialects/postgresql/json.py
Python
gpl-3.0
9,821
from zope.interface import alsoProvides from collective.z3cform.bootstrap.interfaces import IBootstrapLayer def set_bootstrap_layer(request): """Set the IBootstrapLayer on the request. Useful if you don't want to enable the bootstrap layer for your whole site.""" alsoProvides(request, IBootstrapLayer) ...
collective/collective.z3cform.bootstrap
collective/z3cform/bootstrap/utils.py
Python
gpl-3.0
407
#! /usr/bin/env python # encoding:utf-8 import sys reload(sys) sys.setdefaultencoding('utf-8') import logging import random import multiprocessing import numpy as np import sklearn from sklearn.naive_bayes import MultinomialNB from sklearn.cross_validation import train_test_split from sklearn.feature_...
silbertmonaphia/ml
co/20170212/test.py
Python
gpl-3.0
5,721
# Copyright (C) 2014 Adam Schubert <adam.schubert@sg1-game.net> # # 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. # # Th...
Salamek/DwaPython
tests/AllTests.py
Python
gpl-3.0
973
__author__ = "Arseny Lozitsky <manwe64@gmail.com>" __import__('pkg_resources').declare_namespace(__name__)
Baldrs/winerunner
src/baldrs/winerunner/__init__.py
Python
gpl-3.0
108
# -*- coding: utf8 -*- # Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import re import _ast from linting import linter import pyflakes.checker as pyflakes pyflakes.messages.Message.__str__ = ( lambda self: self.message % self.messa...
alexfalcucc/anaconda
anaconda_lib/linting/anaconda_pyflakes.py
Python
gpl-3.0
5,568
import logging import pymongo import settings class Proxy(object): _db = None def __getattr__(self, name): if Proxy._db == None: # lazily connect to the db so we pickup the right environment settings mongo_database = settings.get('mongo_database') print mongo_database logging.info("con...
AlexanderPease/IntroBot
lib/mongo.py
Python
gpl-3.0
653
# -*- coding: utf-8 -*- from module.plugins.internal.DeadCrypter import DeadCrypter, create_getInfo class StealthTo(DeadCrypter): __name__ = "StealthTo" __type__ = "crypter" __version__ = "0.22" __status__ = "stable" __pattern__ = r'http://(?:www\.)?stealth\.to/folder/.+' __config__ ...
fzimmermann89/pyload
module/plugins/crypter/StealthTo.py
Python
gpl-3.0
530
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ${FILENAME} # # Copyright 2015 Anupam Mitra <anupam.mitra@gmail.com> # # 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...
anupam-mitra/PySpikeSort
spikesort/features/spectral.py
Python
gpl-3.0
1,567
### # Copyright (c) 2005, Jeremy Kelley # 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 of conditions...
kg-bot/SupyBot
plugins/Holdem/config.py
Python
gpl-3.0
2,352
from distutils.core import setup packages=['phonostats','phonostats.media'] template_patterns = [ 'templates/*.html', 'templates/*/*.html', 'templates/*/*/*.html', ] setup( name='django-phonological-statistics', version='0.1.20', author='Michael McAuliffe', author_email='michael.e.mcau...
mmcauliffe/django-phonological-statistics
setup.py
Python
gpl-3.0
843
#!/usr/bin/env python """ Patch utility to apply unified diffs Brute-force line-by-line non-recursive parsing Copyright (c) 2008-2012 anatoly techtonik Available under the terms of MIT license Project home: http://code.google.com/p/python-patch/ $Id: patch.py 181 2012-11-23 16:03:05Z techtonik...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/doc/patch.py
Python
gpl-3.0
34,815
import json with open('data/78mm.json', 'r') as _78mm: polygons78 = json.load(_78mm)["features"][0]["geometry"]["geometries"] with open('data/100mm.json', 'r') as _100mm: polygons100 = json.load(_100mm)["features"][0]["geometry"]["geometries"] with open('data/130mm.json', 'r') as _130mm: polygons130 = json...
HackCigriculture/cigriculture-ml
src/polygon.py
Python
gpl-3.0
2,316
""" @package medpy.features Functionality to extract features from images and present/manipulate them. Packages: - histogram: Functions to create and manipulate (fuzzy) histograms. - intensity: Functions to extracts voxel-wise intensity based features from (medical) images. - texture: Run-time optimised fe...
kleinfeld/medpy
medpy/features/__init__.py
Python
gpl-3.0
1,324
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='orgwolf', version='0...
m3wolf/orgwolf
setup.py
Python
gpl-3.0
1,198
import numpy as np from keras import layers from keras.layers import Input, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, Conv2D from keras.layers import AveragePooling2D, MaxPooling2D, Dropout, GlobalMaxPooling2D, GlobalAveragePooling2D from keras.models import Model from keras.preprocessing import im...
jw2100/beginning.github.io
DeepLearning/wuenda/04_ConvolutionalNeuralNetworks/week2-01-Keras-Tutorial.py
Python
gpl-3.0
3,412
# AtHomePowerlineServer - networked server for CM11/CM11A/XTB-232 X10 controllers # Copyright (C) 2014, 2015 Dave Hocker # # 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 3 of the Licen...
dhocker/athomepowerlineserver
helpers/sun_data.py
Python
gpl-3.0
3,610
#!/usr/bin/python # -*- coding: utf-8 -*- # kate: space-indent on; indent-width 4; mixedindent off; indent-mode python; import sys import types import re import os.path import collections def _get_system_language_code(): # Language code for this installation. All choices can be found here: # http://www.i18nguy...
aroth-arsoft/arsoft-web-openvpn
arsoft/web/utils.py
Python
gpl-3.0
46,718
''' Check for primality for both decimal inputs and binary inputs ''' lst = [2, 4, 6, 7, 9, 13, 17, 99, 127, 139] print lst prime = [] def is_composite(n) : for i in range(2, n/2 + 1) : if n % i == 0 : return True return False for n in lst : if is_composite(n) : continue e...
srinivasanmit/all-in-all
puzzles/isprime.py
Python
gpl-3.0
548
#!/usr/bin/python # # This module 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 software is distributed in the hope that it ...
tersmitten/ansible-modules-core
cloud/openstack/os_router.py
Python
gpl-3.0
12,382
#!/usr/bin/env python __doc__ = """ Jingpeng Wu <jingpeng.wu@gmail.com>, 2015 """ import numpy as np import emirt import utils def get_cls(props, lbls, mask=None): """ compute classification error. Parameters ---------- props : dict of array, network propagation output volumes. lbls : dict o...
seung-lab/znn-release
python/cost_fn.py
Python
gpl-3.0
10,672
""" Enums. """ try: from enum import Enum except ImportError: Enum = object class MailTypes(Enum): """ MailTypes enum """ ALL = 0 BEGIN = 1 END = 2 FAIL = 3 REQUEUE = 4 class DependencyTypes(Enum): """ DependencyTypes enum """ # This job can begin execution...
RowleyGroup/pbs-generator
pyqueue/enums.py
Python
gpl-3.0
1,317
#!/usr/bin/python # -*- encoding:iso8859-15 -*- """A module to parse specificaly designed HTML calendars""" # Copyright (C) 2005-2009 Batchyx # # 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 F...
Batchyx/parsethisshit
parsethis.py
Python
gpl-3.0
21,672
from test.support import (TESTFN, run_unittest, import_module, unlink, requires, _2G, _4G) import unittest import os, re, itertools, socket, sys # Skip test if we can't import mmap. mmap = import_module('mmap') PAGESIZE = mmap.PAGESIZE class MmapTests(unittest.TestCase): def setUp(self...
mancoast/CPythonPyc_test
fail/314_test_mmap.py
Python
gpl-3.0
24,117
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2011 ~ 2013 Deepin, Inc. # 2011 ~ 2013 Wang Yong # # Author: Wang Yong <lazycat.manatee@gmail.com> # Maintainer: Wang Yong <lazycat.manatee@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under t...
linuxdeepin/deepin-translator
src/tts_interface.py
Python
gpl-3.0
4,811
# This script is part of pymaid (http://www.github.com/schlegelp/pymaid). # Copyright (C) 2017 Philipp Schlegel # # 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 ...
schlegelp/pymaid
pymaid/cytoscape.py
Python
gpl-3.0
14,485
#!/usr/bin/env python from queue import Queue import threading class DuplicateDataItemError(Exception): """ Class raised when adding the same item in the Data object. """ def __init__(self, message): self.message = message class Data(object): """ Class to define user dataset colle...
ganga-devs/ganga
ganga/GangaCore/Core/GangaThread/MTRunner/Data.py
Python
gpl-3.0
1,817
# 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 program is distributed in the hope that it will be useful, # bu...
vpodzime/lvm-dubstep
lvmdbus/fetch.py
Python
gpl-3.0
1,576
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-28 10:25 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 = [ migratio...
sleepywhiskey/bestoon
web/migrations/0001_initial.py
Python
gpl-3.0
908
#!/usr/bin/env python3 """hello with args""" import sys import os args = sys.argv if len(args) != 2: script = os.path.basename(args[0]) print('Usage: {} NAME'.format(script)) sys.exit(1) name = args[1] print('Hello, {}!'.format(name))
kyclark/metagenomics-book
python/hello/hello_arg3.py
Python
gpl-3.0
251
import numpy as np from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm import os print(os.getcwd()) # Part 1: Load the data and separate it into three arrays; one for each class data = np.loadtxt("MLE1_iris.data") data0 = data[0:50,:] data1 = data[50:100,:] data2 = d...
orhaneee/machineLearning
MLE1.py
Python
gpl-3.0
7,728
import unittest class CrawlTests(unittest.TestCase): def test_something(self): self.assertEqual(True, False) if __name__ == '__main__': unittest.main()
ipazc/oculus-crawl
test/crawler_tests.py
Python
gpl-3.0
172
# -*- coding: utf-8 -*- """package qacode.tests.002_benchmarks"""
netzulo/qacode
tests/002_benchmarks/__init__.py
Python
gpl-3.0
68
from cobra.model.aaa import User, UserDomain from createLocalUser import input_key_args as input_local_user from createMo import * def input_key_args(msg='\nPlease Specify User Domain:'): print msg return input_raw_input("User Domain Name", required=True) def add_user_domain(parent_mo, user_domain): ""...
FibercorpLabs/FibercorpDevops
cisco/aci/addUserDomain.py
Python
gpl-3.0
1,791
# -*- coding: utf-8 -*- #------------------------------------------------------------ # streamondemand - XBMC Plugin # Conector para iguide # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import urlparse,urllib2,urllib,re import os from core impor...
Zanzibar82/streamondemand.test
servers_sports/iguide.py
Python
gpl-3.0
2,410
""" Identify images, upload them to google plus, post in hangouts """ import aiohttp, asyncio, io, logging, os, re import plugins logger = logging.getLogger(__name__) def _initialise(): plugins.register_handler(_watch_image_link, type="message") @asyncio.coroutine def _watch_image_link(bot, event, command):...
johnwiseheart/HangoutsBot
hangupsbot/plugins/image_links.py
Python
gpl-3.0
2,109
import sys #from functools import partial from PyQt4 import QtCore, QtGui from PyQt4.Qt import * from ome_globals import * import ui_histogram_dataselect_page class HistogramDataSelectPage(QWizardPage, ui_histogram_dataselect_page.Ui_WizardPage): def __init__(self, model, prev_hist_var=None, parent=None): ...
gdietz/OpenMEE
common_wizard_pages/histogram_dataselect_page.py
Python
gpl-3.0
1,558
from django.conf.urls import patterns, include, url from .views import RegistrationView, RegistrationComplete, SetEmailAddress, \ SwitchAccount urlpatterns = patterns( '', url(r'^register/$', RegistrationView.as_view(), name='registration_register'), url(r'^register/complete/$', Regist...
MineID/MineID
mineid/accounts/urls.py
Python
gpl-3.0
676
############################################################################### # ilastik: interactive learning and segmentation toolkit # # Copyright (C) 2011-2014, the ilastik developers # <team@ilastik.org> # # This program is free software; you can redistribute it and/or # mod...
ilastikdev/ilastik
tests/test_applets/objectCounting/testObjectCountingMultiImageGui.py
Python
gpl-3.0
31,053
from functools import wraps import json import jsonschema from sanic import exceptions def validate_json(schema_file=None): schema = json.load(open(schema_file)) def factory(f): @wraps(f) def decorated(self, request, *args, **kargs): try: jsonschema.validate(reques...
isitornot/common
isitornot/rest_utils.py
Python
gpl-3.0
710
# -*- coding: utf-8 -*- r""" Advanced: Making Dynamic Decisions and the Bi-LSTM CRF ====================================================== Dynamic versus Static Deep Learning Toolkits -------------------------------------------- Pytorch is a *dynamic* neural network kit. Another example of a dynamic kit is `Dynet <ht...
li-yuntao/SiliconLives
PytorchModels/tutorials/advanced_tutorial.py
Python
gpl-3.0
15,958
from django.urls import url, include, path from rest_framework import routers from users import views # router = routers.DefaultRouter() # router.register(r'users', views.UserViewSet) # router.register(r'groups', views.GroupViewSet) # # # Wire up our API using automatic URL routing. # # Additionally, we include login ...
indrz/indrz
indrz/users/urls.py
Python
gpl-3.0
1,054
# -*- coding: utf-8 -*- ## This is a minimal config file for testing. TESTING=True # this file only works in test mode sql_driver="sqlite" sql_database=":memory:" ## overridden when running tests ## SECRET_KEY="fbfzkar2ihf3ulqhelg8srlzg7resibg748wifgbz478" #TRACE=True #MEDIA_PATH="/var/tmp/pybble" ## set by the tes...
smurfix/pybble
TEST.py
Python
gpl-3.0
466
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = "Stefan Mauerberger" __copyright__ = "Copyright (C) 2017 Stefan Mauerberger" __license__ = "GPLv3" import numpy as np from sys import stdout from matplotlib import pyplot as plt from matplotlib import animation from plotting import prepare_map, lllat, lllon,...
mauimuc/gptt
src/animation.py
Python
gpl-3.0
2,920