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
# 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 Foundation, either version 3 of...
Arcanemagus/SickRage
tests/tv_tests.py
Python
gpl-3.0
4,178
# -*- coding: utf-8 -*- import os import sys import unittest import pprint this_dir = os.path.dirname(__file__) sys.path.append(os.path.dirname(this_dir)) import hotstrings_io class Test(unittest.TestCase): def testName(self): """test back and forth conversion""" test_file = os.path.join(this_dir...
ewerybody/a2.modules
HotStrings/test/test_hotstrings.py
Python
gpl-3.0
1,090
import scrapy from spider.items import Genre class GenreSpider(scrapy.Spider): name = "genre" allowed_domains = ["cambridgeshire.libraryebooks.co.uk"] start_urls = ['http://cambridgeshire.libraryebooks.co.uk/site/EB/ebooks/genre.asp'] def parse(self, response): """From the genre selection page...
sneakypete81/camlib
tasks/spider/spiders/genre_spider.py
Python
gpl-3.0
868
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 'stoptfirtro.py' detiene el server y los módulos de FIRtro. Uso: stoptfirtro.py [ core | audio | core+players | all ] (por defecto 'all') core o audio: Jack, Brutefir, Ecasound. core+players: + MPD y otros players all: + contr...
AudioHumLab/FIRtro
bin/stopfirtro.py
Python
gpl-3.0
3,758
import sys from random import randint import math import time import os from src.items import ItemFactory from src.util import Vector2 from src.util import Line from src.entity import MobManager from src.entity import Party from terrain import ChunkManager import terrain class World: def __init__(self, seed, sound...
Greymerk/python-rpg
src/world/world.py
Python
gpl-3.0
3,532
#!/usr/bin/env python # -*- coding: utf-8 -*- # Written by Jason K. MacDuffie # Encrypt files with ccrypt in Caja import os import subprocess import urllib import subprocess from gi.repository import Caja, GObject, Gio from locale import getlocale CCRYPT_SCHEMA = 'org.mate.applications-ccrypt' # No clue what the ri...
jasonmacduffie/ccrypt-caja
ccrypt-caja.py
Python
gpl-3.0
5,454
# JUBE Benchmarking Environment # Copyright (C) 2008-2015 # Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre # http://www.fz-juelich.de/jsc/jube # # 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 Softwar...
edf-hpc/jube
jube2/jubeio.py
Python
gpl-3.0
63,327
# # Test file for HfstTransducer constructors, destructor, operator= # and member functions set_name, get_name and get_type. # import libhfst types = [libhfst.SFST_TYPE, libhfst.TROPICAL_OPENFST_TYPE, libhfst.FOMA_TYPE] for type in types: if not libhfst.HfstTransducer.is_implementation_type_available(type):...
unhammer/hfst3
old_python/test/test_constructors.py
Python
gpl-3.0
2,656
#!/usr/bin/env python from core import core from core import io class strings(object): author_name = 'Robert Baykov' author_email = 'baykovr@gmail.com' version = '1.0' command = 'strings' args = [''] def __init__(self): pass def conf(self,flags): self.args.append(flags) def invocation(self,b...
leolastar/apps
ophiuchus/plugins/utils/strings.py
Python
gpl-3.0
662
from django.apps import AppConfig class CoreConfig(AppConfig): name = 'gerencex.core' def ready(self): import gerencex.core.signals
flavoso/gerencex
gerencex/core/apps.py
Python
gpl-3.0
151
import datetime from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.db import IntegrityError from django.db.models import Q from django.http import HttpResponse, HttpResponseRedirect fr...
tobi2006/mysds
database/views.py
Python
gpl-3.0
77,109
import logging from collections import Counter class CatanTrade(object): """ class CatanTrade provides a mutable trade object for catan The trade relationship is one-to-one, and supports any number of each of the resources going in both directions. Usually, the current player is the giver, and t...
rosshamish/catan-py
catan/trading.py
Python
gpl-3.0
2,547
#!/usr/bin/python3 # -*- coding: utf-8 -*- from batchpath import VerifyPaths import os import unittest class VerifyPathsFilesTestCase(unittest.TestCase): def test_paths_true(self): paths = [] vp = VerifyPaths() status = vp.files(paths) self.assertTrue(status) def test_paths_...
brbsix/python-batchpath
tests/test_VerifyPaths_files.py
Python
gpl-3.0
1,798
# what if you wanted to index an item that was nested or not already in a list and return the last item from the array: # say that x = (1,'b',3','d',5) and you want to return 5 #x[-1] won't work for several items because the function will only accept one. # Instead you can use *args: def last(*args): return args[-1...
Matt-Stammers/Python-Foundations
Simple Functions/Handling_More_Arguments.py
Python
gpl-3.0
1,012
#!/usr/bin/env python # coding: utf-8 # 2.0 - 2.1 Migration: nparray # ============================ # Let's first make sure we have the latest version of PHOEBE 2.1 installed. (You can comment out this line if you don't use pip for your installation or don't want to update to the latest release). # In[ ]: get_ipyt...
phoebe-project/phoebe2-docs
2.1/tutorials/20_21_nparray.py
Python
gpl-3.0
2,902
# Copyright (C) 2011, 2012 Abhijit Mahabal # # 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 distribu...
amahabal/PySeqsee
farg/apps/seqsee/codelet_families/extend_group.py
Python
gpl-3.0
4,902
#coding=UTF-8 from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext from pyspark.sql.types import * from datetime import date, datetime, timedelta import sys, re, os st = datetime.now() conf = SparkConf().setAppName('PROC_M_MID_PER_ASSETS_INSU').setMaster(sys.argv[2]) sc = SparkContext(conf = conf)...
cysuncn/python
spark/crm/PROC_M_MID_PER_ASSETS_INSU.py
Python
gpl-3.0
6,952
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import click from app import create_app, models, views, admin from app.db import db from app.helpers import create_user app = create_app() if app.config.get("LOGGER_ENABLED"): logging.basicConfig( level=getattr(logging, app.config.get("LOGGER_LE...
omaciel/qpd
manage.py
Python
gpl-3.0
2,986
# -*- coding: utf-8 -*- from ..docstring import get_params from ..docstring import get_rtype from ..docstring import parse_type_of class TestGetParams: def test_get_params0(self): params = get_params(""" :rtype: int """) assert params == [] def test_get_params1(self): params = get_pa...
mugwort-rc/py2cpp
py2cpp/tests/test_docstring.py
Python
gpl-3.0
1,823
# -*- coding: utf-8 -*- __author__ = 'Thomas Draper' __email__ = 'draper@idaccr.org' __version__ = '0.1.0' from .tikz2pdf import tikz2tex
SmoothDragon/tikz2pdf
tikz2pdf/__init__.py
Python
gpl-3.0
140
from .loot import *
loot/loot-api-python
python/loot/__init__.py
Python
gpl-3.0
20
from . import utility as rhutil import Rhino.Geometry import scriptcontext import math def DistanceToPlane(plane, point): "Returns the distance from a 3D point to a plane" plane = rhutil.coerceplane(plane, True) point = rhutil.coerce3dpoint(point, True) return plane.DistanceTo(point) def EvaluatePlan...
ksteinfe/decodes
src/decodes/io/rhinoscript/plane.py
Python
gpl-3.0
8,052
#!/usr/bin/env python # -*- coding: utf-8 -*- class Config(object): def __init__(self): self.number_of_decisions = 6 self.number_of_states = 77 # A list of all configs defined for every single state. self.states_configs = ['state', 'letters', 'actions', 'letters_solver', 'actions_so...
BrainTech/openbci
obci/logic/configs/config_speller_nesw.py
Python
gpl-3.0
7,818
# -*- coding: utf-8 -*- # # drawable.py # show all drawable from android.R.drawable # # Copyright (C) 2012-2015 Tommy Alex. All Rights Reserved. # # 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,...
iptux/DroidUi
examples/drawable.py
Python
gpl-3.0
5,280
# pycoast, Writing of coastlines, borders and rivers to images in Python # # Copyright (C) 2011-2018 PyCoast Developers # # 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 ...
pytroll/pycoast
setup.py
Python
gpl-3.0
1,918
#!/usr/bin/env python # # Copyright 2010,2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your opt...
riveridea/gnuradio
gr-digital/examples/narrowband/benchmark_tx_test.py
Python
gpl-3.0
5,418
# -*- coding: utf-8 -*- """ author:liuwenju time:2017-3-30 email:liuwenju0123@gmail.com description:get the ip info of the host """ import requests import os,commands cmd = "ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'" ip = commands.getoutput(cmd) url = "http://freeapi.ipi...
LiuWenJu/python-script
get_ip.py
Python
gpl-3.0
374
from distutils.core import setup from dictlitestore import __version__ setup( name = 'DictLiteStore', py_modules = ['dictlitestore'], version = __version__, description = 'A (Dynamic-Schema) dict -> sqlite3 library', long_description=open('README.rst','r').read(), author = 'Daniel Fairhead', ...
danthedeckie/DictLiteStore
setup.py
Python
gpl-3.0
911
# -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Website', 'category': 'Website/Website', 'sequence': 20, 'summary': 'Enterprise website builder', 'website': 'https://www.odoo.com/app/website', 'version': '1.0', 'description': "...
jeremiahyan/odoo
addons/website/__manifest__.py
Python
gpl-3.0
11,881
def ufo_sightings(): years = [] before1985 = 0 with open('ufo-sightings.csv') as file: for line in file: [year, sightings] = line.split(',') year = int(year) sightings = int(sightings) if year < 1985: before1985 += sightings ...
kunaltyagi/SDES
quiz/python/quiz1.py
Python
gpl-3.0
570
# Copyright (C) 2004-2005 Anthony Baxter # $Id: rtp.py,v 1.40 2004/03/07 14:41:39 anthony Exp $ # Completed by Antoine Collet #utils import random import os import hashlib import socket from time import sleep from time import time import struct #twisted from twisted.internet import reactor from twisted.internet impor...
avsaj/rtpmidi
rtpmidi/protocols/rtp/protocol.py
Python
gpl-3.0
28,489
# -*- coding: utf-8 -*- #+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocol...
nagyistoce/netzob
src/netzob/Common/Functions/Transformation/GZipFunction.py
Python
gpl-3.0
4,003
#!/usr/bin/env python # encoding: utf-8 import sys, os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crime.settings") from reports.models import Building, Location, Incident, Status, CrimeReport try: from BeautifulSoup import BeautifulSoup except: from bs4 import BeautifulSoup import urllib, urllib...
JOUR491-NewsApplications/JOUR491-CrimeOnCampus
data-collection/scraper.py
Python
gpl-3.0
3,112
#!/usr/bin/python3 # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division, unicode_literals ## ## This file is part of MoaT, the Master of all Things. ## ## MoaT is Copyright © 2007-2016 by Matthias Urlichs <matthias@urlichs.de>, ## it is licensed under the GPLv3. See the file `READ...
smurfix/MoaT
irrigation/manage2.py
Python
gpl-3.0
1,618
#!/usr/bin/env python from __future__ import print_function import os import sys def run(): custom_settings = 'tardis.settings' custom_settings_file = custom_settings.replace('.', '/') + '.py' demo_settings = 'tardis.default_settings' if os.path.isfile(custom_settings_file): os.environ.setdefa...
wettenhj/mytardis
manage.py
Python
gpl-3.0
1,468
# -*- coding: utf-8 -*- """ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License 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...
estaban/pyload
module/plugins/hoster/SendspaceCom.py
Python
gpl-3.0
2,931
from sqlalchemy import exc from flask_script import Manager from server import app, init_db_day0 from model import APIUser, Route, Boundary from validate_email import validate_email import json import os manager = Manager(app) db = app.config['db'] model = app.config['model'] @manager.command def reset_db(verified=...
OpenBeta/beta
apiserver/manage.py
Python
gpl-3.0
1,724
# Copyright 2016 Casey Jaymes # This file is part of PySCAP. # # PySCAP 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. # # PySCAP is ...
cjaymes/pyscap
src/scap/model/oval_5/defs/windows/SidSidStateElement.py
Python
gpl-3.0
1,239
# Copyright 2012, 2013 by the Micromagnum authors. # # This file is part of MicroMagnum. # # MicroMagnum 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) a...
MicroMagnum/MicroMagnum
src/magnum/micromagnetics/stephandler/__init__.py
Python
gpl-3.0
1,308
from __future__ import print_function from future.standard_library import install_aliases install_aliases() from flask import Flask, request, make_response import os, json app = Flask(__name__) @app.route('/') def homepage(): import sqlite3 con = sqlite3.connect("sample.db") cur = con.cursor()...
HarshaBiyani/harshaapp
app.py
Python
gpl-3.0
2,295
#!/usr/bin/env python2 import momxml import ephem import sys from numpy import sin, cos, sqrt, arctan2, arcsin def lm_from_ra_dec(ra_angle, dec_angle, ra0_angle, dec0_angle): l_rad = cos(float(dec_angle))*sin(float(ra_angle - ra0_angle)) m_rad = sin(float(dec_angle))*cos(float(dec0_angle)) - cos(float(dec_an...
brentjens/lofar-obs-xml
scripts/ddt003-elais-n1.py
Python
gpl-3.0
6,467
import numpy as np from glotaran.parameter import ParameterGroup from glotaran.builtin.models.kinetic_spectrum import KineticSpectrumModel from glotaran.builtin.models.kinetic_spectrum.kinetic_spectrum_matrix \ import kinetic_spectrum_matrix def test_coherent_artifact(): model = KineticSpectrumModel.from_dic...
glotaran/glotaran
glotaran/builtin/models/kinetic_spectrum/test/test_coherent_artifact.py
Python
gpl-3.0
1,623
#!/usr/bin/python3 # Copyright 2017 Francisco Pina Martins <f.pinamartins@gmail.com> # This file is part of structure_threader. # structure_threader 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 vers...
StuntsPT/Structure_threader
tests/maverick_functions_tests.py
Python
gpl-3.0
6,992
"""Add rank_limit to assignment Revision ID: 17b7bd2e218c Revises: 3f27a2b13b82 Create Date: 2016-08-10 12:39:04.501928 """ # revision identifiers, used by Alembic. revision = '17b7bd2e218c' down_revision = '3f27a2b13b82' from alembic import op import sqlalchemy as sa from compair.models import convention def upg...
ubc/compair
alembic/versions/17b7bd2e218c_add_rank_limit_to_assignment.py
Python
gpl-3.0
577
# encoding:utf-8 # This file is part of domcontrol. # # domcontrol 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. # # domcontrol is di...
david-caro/domcontrol
domcontrol_common/sensors.py
Python
gpl-3.0
9,096
# http://code.activestate.com/recipes/577519-a-star-shortest-path-algorithm/history/1/ # A* Shortest Path Algorithm # http://en.wikipedia.org/wiki/A* # FB - 201012256 from heapq import heappush, heappop # for priority queue import math import time import random class node: # current position xPos = 0 yPos...
district10/homework
2014/Spatial-Analysis/AStar-Algo/other-implementation/AStar-Simplest/astar2.py
Python
gpl-3.0
7,246
# Copyright (C) 2022 Lunatixz # # # This file is part of PseudoTV Live. # # PseudoTV Live 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 vers...
PseudoTV/PseudoTV_Live
plugin.video.pseudotv.live/plugin.py
Python
gpl-3.0
1,024
# -*- coding: utf-8 -*- # # This file is a part of Machette. # # Copyright (C) 2010 Vincent Batoufflet <vincent@batoufflet.info> # # This software is released under the terms of the GNU General Public License # version 3 or any later version. See LICENSE file for further details. # # $Id$ import gtk import pygtk impor...
vbatoufflet/machette
machette/module/split.py
Python
gpl-3.0
3,365
from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext_noop as _ from load import load_object from downloading import DownloadManager, DownloadServer try: SERVER_HOST = settings.SPOTNET_SERVER_HOST except AttributeError: raise Imp...
AJHMvR/django-spotnet
spotnet/settings.py
Python
gpl-3.0
12,793
import os import subprocess import atexit import signal from django.conf import settings from django.contrib.staticfiles.management.commands.runserver import Command as StaticfilesRunserverCommand class Command(StaticfilesRunserverCommand): def inner_run(self, *args, **options): self.start_gulp() return super(...
jacobdein/datawaves
server/utilities/management/commands/gulpserver.py
Python
gpl-3.0
879
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Code from: # https://github.com/alexandreblin/python-can-monitor # import argparse import curses import sys import threading import traceback import serial should_redraw = threading.Event() stop_serial = threading.Event() can_messages = {} can_messages_lock = thre...
l4m3rx/carpino
rpi/opt/carpino/tools/canmonitor.py
Python
gpl-3.0
7,375
""" File Name: data_mining.py Developer: Justin A. Shores Date Last Modified: Fri Oct 24 16:45:01 PDT 2014 Description: In this project, we want to do some preliminary data mining to the prices of some company’s stock. So that we can speak in specifics, let’s look at Google. Your program will calculate the monthly ave...
jsho32/CIS83-python
CH08-More_on_Functions/data_mining.py
Python
gpl-3.0
2,595
from PyQt4.QtCore import * from PyQt4.QtGui import * import fiximportdir from deveba.userinterface import UserInterface class WorkerThread(QThread, UserInterface): logCalled = pyqtSignal(int, QString) def __init__(self, groups): QThread.__init__(self) self.groups = groups def log(self, l...
agateau/deveba
kde/workerthread.py
Python
gpl-3.0
470
import herkulex import time herkulex.connect("/dev/ttyAMA0", 115200) DROP = herkulex.servo(50) ALL = herkulex.servo(0xfe) #power = 1000 power = 1000 init_a = -512 end_a = 512 ALL.torque_on() DROP.set_servo_angle(0, 1, 0x08) time.sleep(1) DROP.set_servo_angle(-95, 1, 0x08) time.sleep(1) DROP.set_servo_speed(1, 0x...
seiji56/rmaze-2016
testes/drop.py
Python
gpl-3.0
342
# Copyright 2014, 2015, 2016, 2017, 2018 Kevin Reid and the ShinySDR contributors # # 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 Licen...
kpreid/shinysdr
shinysdr/i/network/session_http.py
Python
gpl-3.0
3,143
# File names in the locale profile directory import os import geojson import shapely import yaml from pyramid.request import Request from pyramid.testing import DummyRequest from lokp.utils.views import get_current_profile APPLICATION_YAML = 'application.yml' ACTIVITY_YAML = 'activity.yml' NEW_ACTIVITY_YAML = 'new_a...
CDE-UNIBE/lokp
lokp/config/customization.py
Python
gpl-3.0
9,943
#!/env/bin/python A=[-3,1,2,-2,5,6] B=[-3,2,-2,5,6] C=[-1,1,1,-2,-1,6] D=[-3,1,2] E=[-1,0,1] F=[0,1,2] G=[0,3,5,8] def solution(A): A.sort() maxProduct = A[0] * A[1] * A[2] negList = [x for x in A if x < 0] posList = [x for x in A if x >= 0] negLen = len(negList) posLen = len(posList) if ...
ffakhraei/pProj
python/codility/ch6/maxProductOfThree.py
Python
gpl-3.0
926
# Copyright (C) 2014 Daniel Lintott. # # 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 i...
dlintott/gns3-converter
gns3converter/__init__.py
Python
gpl-3.0
693
"""Log to Google Cloud IoT Core.""" import base64 import datetime import json import os import ssl import jwt import paho.mqtt.client as mqtt import requests from . import base_logger SUPPORTED_ALGORITHMS = ['RS256', 'ES256'] DEFAULT_ALG = 'ES256' class CloudIotLogger(base_logger.GCPLogger): """Base class for l...
mtraver/temperature_logger
client_python/loggers/google_iot_core_logger.py
Python
gpl-3.0
10,765
from subprocess import getstatusoutput as _getstatusoutput from subprocess import Popen as _Popen from subprocess import PIPE as _PIPE import codecs as _codecs import locale as _locale import os as _os from pathlib import Path as _Path from npm2deb import templates as _templates DEBUG_LEVEL = 0 # files starting with ...
LeoIannacone/npm2deb
npm2deb/utils.py
Python
gpl-3.0
7,146
default_app_config = 'openwisp_controller.connection.apps.ConnectionConfig'
nemesisdesign/openwisp2
openwisp_controller/connection/__init__.py
Python
gpl-3.0
76
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Canal para Torrentlocura # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import string import os import re import sys import urllib...
Hernanarce/pelisalacarta
python/main-classic/channels/torrentlocura.py
Python
gpl-3.0
51,050
# See also http://www.scipy.org/Cookbook/Reading_mat_files import numpy as np import scipy.io # For old-style Matlab (up to 7.1) files you can use scipy.io R = np.random.rand(100) data = { 'R': R, 'test': 123, } scipy.io.savemat('test.mat', data) data = scipy.io.loadmat('test.mat') print 'Data: %r' % (data,...
AdriaanRol/QTLab-UserFolder
examples/matlab_data.py
Python
gpl-3.0
454
# -*- coding:utf-8 -*- # # Copyright (C) 2005 - 2007, TUBITAK/UEKAE # # 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. # ...
hknyldz/pisitools
pisilinux/pisilinux/cli/searchfile.py
Python
gpl-3.0
2,001
#!/usr/bin/python # vi: ts=4 expandtab # # Distutils magic for ec2-init # Copyright (C) 2009 Canonical Ltd. # # Author: Soren Hansen <soren@canonical.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3, as # pub...
hafiad/Openstack-Condense
setup.py
Python
gpl-3.0
1,999
# This file is part of django-ca (https://github.com/mathiasertl/django-ca). # # django-ca 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...
mathiasertl/django-ca
ca/django_ca/tests/base/testcases.py
Python
gpl-3.0
3,596
""" Tests of the code in uncertainties/unumpy/__init__.py. These tests can be run through the Nose testing framework. (c) 2010-2016 by Eric O. LEBIGOT (EOL). """ from __future__ import division # 3rd-party modules: try: import numpy except ImportError: import sys sys.exit() # There is no reason to test...
fedebell/Laboratorio3
uncertainties/uncertainties-py23/unumpy/test_unumpy.py
Python
gpl-3.0
10,558
# Python 1.4 cgi.py # Bug was in "continue" detection. # 1.4 doesn't have lnotab and our CONTINUE detection is off. def parse_multipart(params, pdict): while params: if params.has_key('name'): params = None else: continue return None
rocky/python-uncompyle6
test/simple_source/bug14/02_continue.py
Python
gpl-3.0
254
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # file: $Id$ # auth: metagriffin <mg.github@metagriffin.net> # date: 2013/10/19 # copy: (C) Copyright 2013-EOT metagriffin -- see LICENSE.txt #-------------------------------------------------------------------------...
metagriffin/fso
fso/api.py
Python
gpl-3.0
1,960
#!/usr/bin/python3 # Eddy's Automated Chicken Coop Door Controller - aka Coopener (Coop Opener) # October 2016 - v1.1.1 alpha - http://www.makeitbreakitfixit.com - https://github.com/Aristocles/coopener # ** Warning: This code is in alpha, don't trust it to do anything right ** # # script.py --help - To see execution ...
Aristocles/coopener
v1.1.1alpha/coopenerv1.1.1alpha.py
Python
gpl-3.0
30,671
# -*- coding: utf-8 -* # Author: Pedro Correia (http://github.com/pedrocorreia/) # Based on pushalot.py by Nic Wolfe <nic@wolfeden.ca> # 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 Genera...
CristianBB/SickRage
sickbeard/notifiers/pushbullet.py
Python
gpl-3.0
4,947
#!/usr/bin/env python3 # -*- coding: utf-8 -*- #__author__ == cvr """ version 0.5.1 * changed new_name_length struktur added variable NUMBER_BLOCK_LENGTH added variable csv_name_length to create new_name_length * """ import os, sys import argparse import time import glob from PIL import Image, ImageOps, ImageFont, Im...
enaught/jakaa
remove_hiddenfiles.py
Python
gpl-3.0
4,146
"""Add plot of high resolution area on castalia """ import pdb import numpy as np import os import h5py import argparse from point_cloud import wavefront from visualization import graphics import utilities view = (0, 25, 3.32, np.array([-0.04, -0.015, -0.029])) # load the bumpy castalia vb_true, fb_true = wavefront.r...
skulumani/asteroid_dumbbell
dissertation/castalia_refinement_plots.py
Python
gpl-3.0
1,489
# -*- encoding: utf-8 -*- """Test class for Content View Filters @Requirement: Contentviewfilter @CaseAutomation: Automated @CaseLevel: Acceptance @CaseComponent: CLI @TestType: Functional @CaseImportance: High @Upstream: No """ from fauxfactory import gen_choice, gen_string from robottelo.cli.base import CLIRe...
Ichimonji10/robottelo
tests/foreman/cli/test_contentviewfilter.py
Python
gpl-3.0
30,941
from django.shortcuts import get_object_or_404 from django.views.generic import ListView, DetailView, UpdateView, CreateView from django.core.urlresolvers import reverse_lazy from django.http import HttpResponseRedirect from braces.views import LoginRequiredMixin, GroupRequiredMixin from .models import Perspective, T...
rlaverde/scorecard_cps
performance_indicators_project/perspectives/views.py
Python
gpl-3.0
7,272
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #Secret key SECRET_KEY = '\xb6\x98|\xba\xf3\x18\x9fk\xae_\xf7\xc6z\xff\x11\xad9\xf8\xe9xcH{e' # SECURITY WARNING: don't run with debug turned on in production! DEBU...
migueib17/IV-PLUCO-MFF
plucoMFF/settings.py
Python
gpl-3.0
349
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, logging, logging.config def make_sure_exists(dirpath): try: os.mkdir(dirpath) except OSError: if not os.path.exists(dirpath): raise if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG, format="%(a...
shaung/ipmsg-pygtk
bin/pyipmsg-applet.py
Python
gpl-3.0
672
#!/usr/bin/env python3 # Example curl command sequence # # $ md5sum tool-data.tar.xz > tool-data.tar.xz.md5 # $ curl -X PUT -H "MD5SUM: $(awk '{print $1}' tool-data.tar.xz.md5)" \ # http://localhost:8080/tool-data/XXX...XXX/perf48.example.com \ # --data-binary @tool-data.tar.xz # Needs daemon, pidfile, an...
ndokos/pbench
lib/pbench/agent/tool_data_sink.py
Python
gpl-3.0
41,836
import argparse import h5py from progressbar import ProgressBar def get_arguments(): parser = argparse.ArgumentParser(description='Convert fingerprint HDF5 file to bitvector csv file') parser.add_argument('hdf5_file_path', type=str, help='Path to the fingerprint HDF5 file') return parser.parse_args() ar...
patrick-winter-knime/deep-learning-on-molecules
custom-fingerprints/fingerprints_to_bitvector_csv.py
Python
gpl-3.0
927
# -*- coding: utf-8 -*- import re import time import urllib from module.network.RequestFactory import getURL as get_url from module.plugins.captcha.ReCaptcha import ReCaptcha from module.plugins.internal.SimpleHoster import SimpleHoster class ShareonlineBiz(SimpleHoster): __name__ = "ShareonlineBiz" __ty...
Guidobelix/pyload
module/plugins/hoster/ShareonlineBiz.py
Python
gpl-3.0
5,996
from setuptools import setup, find_packages setup( name="bouncestudio", version="0.5.0", description="Pythonn wrapper around BoogieTools BounceStudio", author="Dan Nielsen", author_email="dnielsen@reachmail.com", packages=find_packages() )
danielsen/bouncestudio
setup.py
Python
gpl-3.0
265
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import cv2 import os.path img = cv2.imread('server_00000350.png') height , width , layers = img.shape print("height",height) print("width",width) i = 350 count = 700 fourcc = cv2.cv.CV_FOURCC(*'MJPG') video = cv2.VideoWriter('server.avi',fourcc,15,(widt...
wujunnan0929/pedstrain-detection
gstreamer/frame_to_video.py
Python
gpl-3.0
640
# coding=utf-8 # # This file is part of SickGear. # # SickGear 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. # # SickGear is distribu...
jetskijoe/SickGear
sickbeard/providers/bitmetv.py
Python
gpl-3.0
4,971
#script to delete users that are into the space import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "carontepass.settings") import django django.setup() from access.models import Log len_ = len(Log.objects.filter(user_in=True).all()) for i in range(len_): obj = Log.objects.filter(user_in=True).first() o...
torehc/carontepass-v2
web/carontepass/del_users_in.py
Python
gpl-3.0
353
from .owlobject import OWLObject class OWLNaryDataRange(OWLObject): """TODO: implement""" def __init__(self, operands): """ :param operands: a set of owlapy.model.OWLDataRange objects """ super().__init__() self.operands = operands
patrickwestphal/owlapy
owlapy/model/owlnarydatarange.py
Python
gpl-3.0
282
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2020 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...
The-Compiler/qutebrowser
qutebrowser/browser/webkit/network/networkmanager.py
Python
gpl-3.0
17,314
import sys import psutil import os import shutil import logging import time from threading import Thread from PyQt5.QtGui import (QIcon, QFont, QPixmap) from PyQt5.QtCore import (Qt, QTime, QEvent, QRect) from PyQt5.QtWidgets import (QApplication, QWidget, QDesktopWidget, QWizard, QWizardPage, QProgressBar, ...
frankenjoe/pyabp
python/gui_export.py
Python
gpl-3.0
13,429
import man.motion as motion import GaitConstants as constants ODO_CONFIG = constants.ODO_CONFIG ARM_CONFIG = constants.ARM_CONFIG WALKING = constants.WALKING NON_WALKING = constants.NON_WALKING FAST_STANCE = (31.00, # CoM height 1.45, # Forward displacement of CoM 10.0, # Horizontal dist...
northern-bites/nao-man
motion/gaits/FastGait.py
Python
gpl-3.0
2,205
import unittest import os import sys import anydbm import Runtime import Resource from Command import CLIParams class Resource_Storage(unittest.TestCase): """ Test Storage interface. """ class Resource_Descriptor(unittest.TestCase): def test_(self): pass # Descriptor(storage).load_from_storage(path)/dr...
dotmpe/htcache
test/Resource_tests.py
Python
gpl-3.0
933
''' Created on 31/10/2014 @author: Alex Montes Barrios ''' # # adjGraph # # Created by Brad Miller on 2005-02-24. # Copyright (c) 2005 Brad Miller, David Ranum, Luther College. All rights reserved. # import sys import os class Graph: def __init__(self): self.vertices = {} self.numVertices = 0...
pybquillast/xkAddonIDE
adgMesh.py
Python
gpl-3.0
7,409
#!/usr/bin/python2 # -*- coding: utf-8 -*- # Copyright 2015 Michał Nieznański # # This file is part of Tetroll. # # Tetroll 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 Licen...
m-nez/tetroll
tetai.py
Python
gpl-3.0
6,210
""" helper device for test in test_busyresponse.py """ import logging from typedargs.annotate import docannotate, context from iotile.core.hw.proxy import TileBusProxyObject from iotile.core.hw.exceptions import AsynchronousRPCResponse from iotile.core.hw.virtual import tile_rpc from iotile.emulate.virtual import Emul...
iotile/coretools
iotileemulate/test/busyresponse/device.py
Python
gpl-3.0
4,435
from veripy.models import ComplianceTestSuite from veripy.models.decorators import must, should import destination_unreachable_message_generation import erroneous_header_field import error_condition_with_icmpv6_error_messages import error_condition_with_multicast_destination import error_condition_with_non_unique_sour...
mwrlabs/veripy
contrib/rfc4443/__init__.py
Python
gpl-3.0
9,387
from __future__ import unicode_literals from django.conf.urls import url from wiki.core.plugins import registry from wiki.core.plugins.base import BasePlugin from . import settings, views class GlobalHistoryPlugin(BasePlugin): slug = settings.SLUG urlpatterns = {'root': [ url(r'^$', views.GlobalHis...
cXhristian/django-wiki
src/wiki/plugins/globalhistory/wiki_plugin.py
Python
gpl-3.0
499
# Copyright (c) 2008-2009 Junior (Frederic) FLEURIAL MONFILS # # This file is part of PyAnalyzer. # # PyAnalyzer 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...
jffm/pyanalyzer
core/ast/nameresolver.py
Python
gpl-3.0
13,557
# -*- coding: utf-8 -*- """ Module to set *ClearMap's* internal parameter and paths to external programs. Notes: Edit the :func:`setup` routine to point to the ilastik and elastix paths for specific hosts See Also: * :const:`IlastikPath` * :const:`ElastixPath` * :mod:`~ClearMap.Parameter` """ im...
ChristophKirst/ClearMapUnstable
ClearMap/Settings.py
Python
gpl-3.0
4,532
''' Created on Oct 29, 2010 @author: ivan ''' import pango from gi.repository import Gtk from foobnix.helpers.image import ImageBase from foobnix.util import idle_task class TextArea(Gtk.ScrolledWindow): def __init__(self): Gtk.ScrolledWindow.__init__(self) texttagtable = Gtk.TextTagTable() ...
sitexa/foobnix
foobnix/helpers/textarea.py
Python
gpl-3.0
2,725
# -*- coding: utf-8 -*- # Copyright 2015-2020 Tom Furnival # # This file is part of robustpca. # # robustpca 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 optio...
tjof2/robustpca
robustpca/tests/test_rosl.py
Python
gpl-3.0
5,465
############################################################ # DO NOT TOUCH BELOW LINE. # from libs.default_settings import * import os ############################################################ # General settings. # # Site webmaster's mail address. webmaster = 'zhb@iredmail.org' # Default language. default_languag...
adglkh/mail-all-in-one
src/iredadmin/ini/settings.py
Python
gpl-3.0
4,042
""" Clases para generar datos que poner en la tabla """ class Persona: def __init__(self, nombre='', apellido='', edad=0): self.nombre = nombre self.apellidos = apellido self.edad = edad class Modelo: def __init__(self): self.lista_personas = list() self.columnas =...
arkadoel/AprendiendoPython
tablaQT/Datos.py
Python
gpl-3.0
576