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
# Copyright (c) 2010 Resolver Systems Ltd. # All Rights Reserved # from functionaltest import FunctionalTest class Test_2595_Throbber(FunctionalTest): def test_spinner_appears_during_recalcs(self): # * Harold likes to know when dirigible is working hard on his calculations # * He ...
jmptrader/dirigible-spreadsheet
dirigible/fts/tests/test_2595_Spinner.py
Python
mit
1,149
#!/usr/bin/env python # coding:utf-8 import select import socket from nbNetUtils import DEBUG, dbgPrint __all__ = ["nbNet"] class STATE: def __init__(self): self.state = "accept" # 定义状态 self.have_read = 0 # 记录读了的字节 self.need_read = 10 # 头文件需要读取10个字节 self.have_write = 0 # 记录读了...
VictorXianwu/Python-Program
net/cpNbnet.py
Python
mit
9,406
''' Created on 20 Sep 2013 @author: jowr ''' # New example with R407F mixture from pyrp.refpropClasses import RefpropSI import CoolProp.CoolProp as cp p = 30000 T = 273.15 ref = False if ref: xkg = [0.473194694453358, 0.205109095413331, 0.321696210133311] names = "R32|R125|R134a" RP = RefpropSI() R...
henningjp/CoolProp
dev/Tickets/SF-89.py
Python
mit
1,217
# PyMM - Python MP3 Manager # Copyright (C) 2000 Pierre Hjalm <pierre.hjalm@dis.uu.se> # # Modified by Alexander Kanavin <ak@sensi.org> # Removed ID tags support and added VBR support # Used http://home.swipnet.se/grd/mp3info/ for information # # This program is free software; you can redistribute it and/or # modify it...
JoeGermuska/worblehat
reference/pyarchive/pyarchive/mp3.py
Python
mit
7,381
# usr/bin/sh # -*- coding:utf8 -*- # @function listDeal # @parma {list} list def listDeal(list): listString = '' for i in range(0,len(list)): print(i) if i!=(len(list)-1): listString += list[i]+','; else: listString += 'and '+list[i] print(listString) spam = ...
liuyepiaoxiang/es6-learning
032-python/chap2/4.9.py
Python
mit
369
#!/usr/bin/python import os,sys,glob,re import numpy as np import scipy from scipy import stats import datetime import time from datetime import timedelta #import matplotlib #matplotlib.use('Agg') #import matplotlib.pyplot as plt #from matplotlib import colors as c #from matplotlib import cm from scipy.stats.kde impor...
sthyme/ZFSchizophrenia
BehaviorAnalysis/mergingbehaviordata/lmmanalysisave_septcut4and2ifsame.py
Python
mit
13,435
import numpy as np import sys import os from utils import * from utils_procs import * # extract letters and spaces, and transform to lower case # how: python proc_txt.py input_file_name # read input args # _, input_fname = 'temp', 'poetry_2' _, input_fname = sys.argv # constant input_path = '../story/' train_test_r...
ProjectSEM/narrative
src/proc_txt.py
Python
mit
1,798
#!/usr/bin/env python # -*- coding: latin-1 -*- import sys import datetime from threading import Thread class ProcPing(Thread): def __init__(self, name, data, qtdMsg): Thread.__init__(self) self.name = name self.data = data self.qtdMsg = qtdMsg self.mailBox = [] def setPeer(self, Peer): self.Pee...
jucimarjr/uarini
examples/MPI_Benchmark/source_code/pingping/python/pingping.py
Python
mit
1,681
import unittest from broca.tokenize import keyword, util, LemmaTokenizer class KeywordTokenizeTests(unittest.TestCase): def setUp(self): self.docs = [ 'This cat dog is running happy.', 'This cat dog runs sad.' ] def test_overkill(self): expected_t_docs = [ ...
frnsys/broca
tests/test_tokenize.py
Python
mit
3,072
from lxml import etree from okcupyd import xpath def test_selected_attribute(): node = xpath.XPathNode(element='element', selected_attribute='value') assert node.xpath == '//element/@value' tree = etree.XML("<top><container><element value='1'>" "</element><element value='2'></elemen...
IvanMalison/okcupyd
tests/xpath_test.py
Python
mit
1,572
import pygame from Game.Shared import GameConstants from Game.Bricks import Brick from Game.Ball import Ball class BallSpawningBrick(Brick): def __init__(self, position, game, points=400, color=(150, 150, 150), sprite=pygame.Surface(GameConstants.BRICK_SIZE)): super(BallSpawningBrick, sel...
msegeya/breakout-clone
Game/Bricks/BallSpawningBrick.py
Python
mit
1,231
from som.interp_type import is_ast_interpreter from som.primitives.primitives import Primitives from som.vm.globals import trueObject, falseObject, nilObject from som.vmobjects.primitive import UnaryPrimitive, BinaryPrimitive, TernaryPrimitive if is_ast_interpreter(): from som.vmobjects.block_ast import AstBlock a...
SOM-st/PySOM
src/som/primitives/true_primitives.py
Python
mit
1,649
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/droid/component/shared_advanced_droid_frame.iff" result.at...
anhstudios/swganh
data/scripts/templates/object/draft_schematic/droid/component/shared_advanced_droid_frame.py
Python
mit
465
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist def callback_function(data): #FILL IN HERE global publisher_name, msg msg.linear.x = -data.linear.x msg.angular.z = -data.angular.z publisher_name.publish(msg) def subscriber_name(): # Initialize node rospy.init_node('...
BARCproject/barc
workspace/src/labs/src/lab1/remapping.py
Python
mit
721
from django.http import HttpRequest from django.conf import settings from django.utils.translation import ugettext_lazy as _ try: from allauth.account import app_settings as allauth_settings from allauth.utils import (email_address_exists, get_username_max_length) from allaut...
saurabhVisie/appserver
rest_auth/registration/serializers.py
Python
mit
6,316
#First parameter is path for binary file containing instructions to be injected #Second parameter is Process Identifier for process to be injected to import binascii import sys from ctypes import * if len(sys.argv) < 3: print("usage inject.py <shellcodefile.bin> <pid>") sys.exit(1) file = open(sys.argv[1],'rb')...
idkwim/snippets
inject.py
Python
mit
956
# Django settings for testautoslug project. import os PROJECT_ROOT = os.path.dirname(__file__) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', ...
Egregors/django-autoslug-field
testautoslug/settings.py
Python
mit
3,357
import zmq class JRPC: def __init__(self): self.id = 0 def make_noti(self, method, params=None): noti = {"jsonrpc":"2.0", "method":method} if params is not None: noti["params"] = params return noti def make_req(self, method, params=None): req = self.make_noti(method, params) req["id"] = self.id s...
pijyoi/jsonrpc
testmethods.py
Python
mit
1,581
""" Discover Cambridge Audio StreamMagic devices. """ from . import SSDPDiscoverable class Discoverable(SSDPDiscoverable): """Add support for discovering Cambridge Audio StreamMagic devices.""" def get_entries(self): """Get all Cambridge Audio MediaRenderer uPnP entries.""" return self.find_b...
balloob/netdisco
netdisco/discoverables/cambridgeaudio.py
Python
mit
473
"""Script to display a collection of paths after inserting one new path Usage: add_to_a_path.py [-U] PATHS PATH add_to_a_path.py [-U] (-s | -i INDEX ) PATHS PATH Options: -h, --help Show this help and exit -v, --version Show version number and exit -s, --start ...
jalanb/jab
src/python/add_to_a_path.py
Python
mit
3,399
import os.path import SCons.Tool import aql #//---------------------------------------------------------------------------// _Warning = aql.Warning _Tool = SCons.Tool.Tool #//---------------------------------------------------------------------------// def generate( env ): toolsets = ( ...
menify/sandbox
tags/aql_working_copy_16022008/tools/aql_deftool_cc.py
Python
mit
880
from setuptools import setup from os import path, environ from sys import argv here = path.abspath(path.dirname(__file__)) try: if argv[1] == "test": environ['PYTHONPATH'] = here except IndexError: pass with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() ...
ya-induhvidual/libfs
setup.py
Python
mit
1,167
#!/usr/bin/env python from __future__ import with_statement #------------------------------------------------------------------------------- import unittest from xml.etree.ElementTree import fromstring #------------------------------------------------------------------------------- from xmlbuilder import XMLBuild...
JDrosdeck/xml-builder-0.9
xmlbuilder/tests/__init__.py
Python
mit
3,828
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-01 23:15 import autoslug.fields import common.utils import datetime from django.conf import settings import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion from django.utils.timezone import utc import...
PersonalGenomesOrg/open-humans
private_sharing/migrations/0001_squashed_0034_auto_20160727_2138.py
Python
mit
14,678
from django.db import models class RiverOutfall(models.Model): name = models.TextField() lat = models.FloatField(null=True) lon = models.FloatField(null=True) class RiverCso(models.Model): river_outfall = models.ForeignKey("RiverOutfall") open_time = models.DateTimeField() close_time = model...
NORCatUofC/rainapp
csos/models.py
Python
mit
694
width = 75 height = 75 data = [ 0x00,0x00,0x00,0x00,0x00,0xe0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0xf0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0xf0,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x03,0xf8,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x07,0xf8,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x0...
DAFRELECTRONICS/IoTprinter
gfx/adalogo.py
Python
cc0-1.0
4,011
import time from pygame.locals import * import gui MOUSE_LEFT_BUTTON = 1 MOUSE_MIDDLE_BUTTON = 2 MOUSE_RIGHT_BUTTON = 3 MOUSE_WHEELUP = 4 MOUSE_WHEELDOWN = 5 class Screen(object): """Base gui screen class every game screen class should inherit from this one """ __triggers = [] ...
pjotrligthart/openmoo2-unofficial
game/gui/screen.py
Python
gpl-2.0
8,413
from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from __future__ import division ''' All things computer vision. ''' import cv2 from mousetrap.i18n import _ from mousetrap.image import Image import mousetrap.plugins.interface as interface import logg...
GNOME-MouseTrap/mousetrap
src/mousetrap/vision.py
Python
gpl-2.0
6,987
# Copyright (C) 2020 Red Hat, 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 2 of the License, or # (at your option) any later version. # # This program is distributed in ...
rpm-software-management/dnf
dnf/transaction_sr.py
Python
gpl-2.0
24,701
# #################################################################### # gofed - set of tools to automize packaging of golang devel codes # Copyright (C) 2014 Jan Chaloupka, jchaloup@redhat.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public Licen...
ingvagabund/gofed
modules/RemoteSpecParser.py
Python
gpl-2.0
2,663
# YWeather by 2boom 2013 v.0.6 # xml from http://weather.yahooapis.com/forecastrss from Components.Converter.Converter import Converter from Components.Element import cached from Tools.Directories import fileExists from Poll import Poll import time import os class YWeather(Poll, Converter, object): weather_ci...
XTAv2/Enigma2
lib/python/Components/Converter/YWeather.py
Python
gpl-2.0
22,223
import time import os try: import enigma from Components.config import config except: print "Cannot import enigma" from Directories import resolveFilename, SCOPE_HDD def getTrashFolder(): # Returns trash folder without symlinks return os.path.realpath(os.path.join(resolveFilename(SCOPE_HDD), ".Trash")) def cre...
openpli-arm/enigma2-arm
lib/python/Tools/Trashcan.py
Python
gpl-2.0
4,571
# -*- coding: utf-8 -*- # # AWL simulator - instructions # # Copyright 2012-2014 Michael Buesch <m@bues.ch> # # 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 ...
gion86/awlsim
awlsim/core/instructions/insn_assert_lt.py
Python
gpl-2.0
1,478
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
dtaht/ns-3-dev-old
src/network/bindings/modulegen__gcc_LP64.py
Python
gpl-2.0
507,731
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2013, 2014, 2015 CERN. # # Invenio 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 optio...
jirikuncar/invenio-formatter
invenio_formatter/registry.py
Python
gpl-2.0
3,187
# ***************************************************************************** # conduct - CONvenient Construction Tool # # 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...
birkenfeld/conduct
conduct/loggers.py
Python
gpl-2.0
10,769
#!/usr/bin/python # -*- coding: utf-8 -*- ## ## # Author: Peter Manev # # peter.manev@openinfosecfoundation.org # ## ## ## !!! IMPORTANT - LATEST DEV Scapy is needed !!! # REMOVE your current scapy installation !!! # th...
pevma/PtP
ProtoIPv4/IPv4_HTTP.py
Python
gpl-2.0
182,209
# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.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 of the License, or # (at your option) any later version. # This prog...
pierg75/pier-sosreport
sos/plugins/maas.py
Python
gpl-2.0
2,550
# -*- coding: utf-8 -*- # # This file is part of kwalitee # Copyright (C) 2014, 2015 CERN. # # kwalitee 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) an...
greut/invenio-kwalitee
kwalitee/cli/prepare.py
Python
gpl-2.0
6,883
# -*- coding: utf-8 -*- import logging from operator import methodcaller from typing import List from django.core.exceptions import ObjectDoesNotExist from kobo.django.xmlrpc.decorators import user_passes_test from tcms.issuetracker.models import Issue from tcms.management.models import TCMSEnvValue, TestTag from tc...
Nitrate/Nitrate
src/tcms/xmlrpc/api/testrun.py
Python
gpl-2.0
23,617
# # Copyright 2013 Red Hat, Inc. # Copyright 2008 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # 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...
giuseppe/virt-manager
virtconv/parsers/virtimage.py
Python
gpl-2.0
8,776
# -*- coding: utf-8 -*- # # This file is part of Zenodo. # Copyright (C) 2016 CERN. # # Zenodo is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later v...
slint/zenodo
zenodo/modules/records/serializers/schemas/json.py
Python
gpl-2.0
8,136
import logging from django.core.management.base import BaseCommand from payment.postfinance_connector import ISO2022Parser log = logging.getLogger('tq') class Command(BaseCommand): help = '(re)parse ISO 20022 files, ignoring duplicates' def add_arguments(self, parser): parser.add_argument( ...
gitsimon/tq_website
payment/management/commands/parse_iso_20022_files.py
Python
gpl-2.0
967
from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import os import xml.etree.ElementTree from xml.etree.cElementTree import ElementTree, Element, SubElement from xml.etree.cElementTree import fromstring, tostring import ...
cnvogelg/fs-uae-gles
launcher/fs_uae_launcher/editor/XMLControl.py
Python
gpl-2.0
2,828
#!/usr/bin/python from ABE_ADCDACPi import ADCDACPi import time import math """ ================================================ ABElectronics ADCDAC Pi 2-Channel ADC, 2-Channel DAC | DAC sine wave generator demo Version 1.0 Created 17/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format run with...
moeskerv/ABElectronics_Python_Libraries
ADCDACPi/demo-dacsinewave.py
Python
gpl-2.0
3,862
#=============================================================================== # # Sanity.py # # This file is part of ANNarchy. # # Copyright (C) 2013-2016 Julien Vitay <julien.vitay@gmail.com>, # Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> # # This program is free software: you can redist...
vitay/ANNarchy
ANNarchy/generator/Sanity.py
Python
gpl-2.0
13,045
# The following has been generated automatically from src/core/qgsmaplayer.h QgsMapLayer.LayerType = QgsMapLayerType # monkey patching scoped based enum QgsMapLayer.VectorLayer = QgsMapLayerType.VectorLayer QgsMapLayer.VectorLayer.__doc__ = "" QgsMapLayer.RasterLayer = QgsMapLayerType.RasterLayer QgsMapLayer.RasterLaye...
rldhont/Quantum-GIS
python/core/auto_additions/qgsmaplayer.py
Python
gpl-2.0
1,706
#! /usr/bin/env python # $Id: setup.py,v 1.2 2002/01/08 07:13:21 jgg Exp $ from distutils.core import setup, Extension from distutils.sysconfig import parse_makefile from DistUtilsExtra.command import * import glob, os, string # The apt_pkg module files = map(lambda source: "python/"+source, string.split(...
zsjohny/python-apt
setup.py
Python
gpl-2.0
1,759
#!/usr/bin/env python """ Script to fetch test status info from sqlit data base. Before use this script, avocado We must be lanuch with '--journal' option. """ import os import sys import sqlite3 import argparse from avocado.core import data_dir from dateutil import parser as dateparser def colour_result(result): ...
CongLi/avocado-vt
scripts/scan_results.py
Python
gpl-2.0
4,423
# Purpose: dxf engine for R2007/AC1021 # Created: 12.03.2011 # Copyright (C) , Manfred Moitzi # License: MIT License from __future__ import unicode_literals __author__ = "mozman <mozman@gmx.at>" from .headervars import VARMAP from ..ac1018 import AC1018Factory class AC1021Factory(AC1018Factory): HEADERVARS = dic...
lautr3k/RepRap-iTopie
odmt/ezdxf/ac1021/__init__.py
Python
gpl-3.0
330
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2010 (ita) # Ralf Habacker, 2006 (rh) # Yinon Ehrlich, 2009 """ clang/llvm detection. """ import os, sys from waflib import Configure, Options, Utils from waflib.Tools import ccroot, ar from waflib.Configure import conf @conf def find_clang(conf): """ ...
Gnomescroll/Gnomescroll
server/waflib/Tools/clang.py
Python
gpl-3.0
4,637
import math import wx import eos.db import gui.mainFrame from gui import globalEvents as GE from gui.fitCommands.calc.cargo.remove import CalcRemoveCargoCommand from gui.fitCommands.helpers import CargoInfo, InternalCommandHistory from service.market import Market class GuiRemoveCargosCommand(wx.Command): def ...
DarkFenX/Pyfa
gui/fitCommands/gui/cargo/remove.py
Python
gpl-3.0
1,273
""" 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, but WITHOUT...
abhishek-archlinux/AnimeWatch
AnimeWatch-PyQt5/Plugins/Nyaa.py
Python
gpl-3.0
5,173
#!/usr/bin/env python # encoding: utf-8 """ Waf tool for ChibiOS build """ from waflib import Errors, Logs, Task, Utils from waflib.TaskGen import after_method, before_method, feature import os import shutil import sys import re import pickle _dynamic_env_data = {} def _load_dynamic_env_data(bld): bldnode = bld...
yonahbox/ardupilot
Tools/ardupilotwaf/chibios.py
Python
gpl-3.0
13,403
#!/usr/bin/python import sys,os from email.Utils import COMMASPACE, formatdate from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.MIMEImage import MIMEImage from email.MIMEImage import MIMEImage from email.MIMEBase import MIMEBase from email import Encoders import smtplib impor...
fcauwe/brother-scan
sendfile.py
Python
gpl-3.0
1,234
# This file is part of Indico. # Copyright (C) 2002 - 2016 European Organization for Nuclear Research (CERN). # # Indico 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 (a...
belokop/indico_bare
indico/MaKaC/common/contextManager.py
Python
gpl-3.0
811
from elan import * #Set_Location_And_Weather_By_Country_City.py Configurator.Start() Configurator.Wait() sleep(3) Configurator.media.Click() Configurator.interfacetemplates.Click() for i in range(100): try: Configurator.ComboBox.Select(0,1) break except: sleep(2) print("Try a...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/elan/onHoldScripts/1_SetIRTemplatesToManual.py
Python
gpl-3.0
383
# =================================================================== # # Copyright (c) 2015, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributio...
hclivess/Stallion
nuitka/Cryptodome/Hash/SHAKE256.py
Python
gpl-3.0
4,663
# Copyright (C) 2011-2014 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # # GNU Mailman is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at you...
trevor/mailman3
src/mailman/utilities/tests/test_templates.py
Python
gpl-3.0
11,539
#------------------------------------------------------------------------------- # Name: /faraday/deviceconfiguration.py # Purpose: Configure the Faraday radio by manipulating relevant INI files # and providing a Flask server to kick off programming with via # proxy. # # Author: ...
FaradayRF/Faraday-Software
faraday/deviceconfiguration.py
Python
gpl-3.0
26,804
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: borja@libcrack.so # Date: Wed Jan 28 16:35:57 CET 2015 import re import os try: from setuptools import setup except ImportError: from distutils.core import setup def read(relpath): """ Return string containing the contents of the file at *relpat...
libcrack/iker
setup.py
Python
gpl-3.0
2,536
""" Python script 'process_NCEI_03_prcp_180d.py' by Matthew Garcia, PhD student Dept. of Forest and Wildlife Ecology University of Wisconsin - Madison matt.e.garcia@gmail.com Copyright (C) 2015-2016 by Matthew Garcia Licensed Gnu GPL v3; see 'LICENSE_GnuGPLv3.txt' for complete terms Send questions, bug reports, any re...
megarcia/GT16_JGRA
source/process_NCEI_03_prcp_180d.py
Python
gpl-3.0
5,554
#!/usr/bin/env python # # Copyright 2020 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import gr, gr_unittest import random, numpy from gnuradio import digital, blocks, channels class qa_linear_equalizer(gr_unittest.TestCase): ...
jdemel/gnuradio
gr-digital/python/digital/qa_linear_equalizer.py
Python
gpl-3.0
5,126
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2012 Zearin <zearin@gonk.net> ...
pymedusa/Medusa
ext/github/Hook.py
Python
gpl-3.0
9,634
def interactiveConsole(a,b=None): ''' Useful function for debugging Placing interactiveConsole(locals(),globals()) into code will drop into an interactive console when run ''' import code d = {} if b: d.update(b) d.update(a) c=code.InteractiveConsole(locals=d)...
UnionGospelMission/UGM-Database
Sandbox/SecureDict.py
Python
gpl-3.0
1,147
# Tests for source4/libnet/py_net_dckeytab.c # # Copyright (C) David Mulder <dmulder@suse.com> 2018 # # 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 yo...
kernevil/samba
python/samba/tests/dckeytab.py
Python
gpl-3.0
2,161
#add by sq.luo import andbug.command, andbug.screed import andbug.vm def stepComplete(t): t = t[0] with andbug.screed.section("Single step complete in %s, suspended." % t): showCallStack(t, 1) def showCallStack(t, count = 0): if count >= len(t.frames) or count <= 0: count = len(t.f...
anbc/AndBug
lib/andbug/cmd/step.py
Python
gpl-3.0
3,688
#!/usr/bin/env python ######################################################################## # File : dirac-admin-proxy-upload.py # Author : Adrian Casajus ######################################################################## from __future__ import print_function import sys from DIRAC.Core.Base import Script ...
fstagni/DIRAC
FrameworkSystem/scripts/dirac-admin-proxy-upload.py
Python
gpl-3.0
650
# weaponUpgradesCpuNeedBonusPostPercentCpuLocationShipModulesRequiringMissileLauncherOperation # # Used by: # Implants named like: Zainou 'Gnome' Launcher CPU Efficiency LE (6 of 6) # Skill: Weapon Upgrades type = "passive" def handler(fit, container, context): level = container.level if "skill" in context else 1...
Ebag333/Pyfa
eos/effects/weaponupgradescpuneedbonuspostpercentcpulocationshipmodulesrequiringmissilelauncheroperation.py
Python
gpl-3.0
517
import mpi4py, petsc4py from petsc4py import PETSc import numpy as np import pytest import gridPy import geometryPy petsc4py.init() petscComm = petsc4py.PETSc.COMM_WORLD comm = petscComm.tompi4py() rank = comm.Get_rank() numProcs = comm.Get_size() PETSc.Sys.Print("Using %d procs" % numProcs) N1 = int(pytest.config....
AFD-Illinois/grim
src/geometry/test_geometry.py
Python
gpl-3.0
31,846
# Speak.activity # A simple front end to the espeak text-to-speech engine on the XO laptop # http://wiki.laptop.org/go/Speak # # Copyright (C) 2008 Joshua Minor # This file is part of Speak.activity # # Parts of Speak.activity are based on code from Measure.activity # Copyright (C) 2007 Arjun Sarwal - arjun@laptop.or...
walterbender/speak
eye.py
Python
gpl-3.0
4,073
# -*- coding: utf-8 -*- # This file is part of emesene. # # emesene 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. # #...
tiancj/emesene
emesene/gui/qt4ui/widgets/ChatOutput.py
Python
gpl-3.0
3,318
#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import (unicode_literals, division, absolute_import, print_function) ''' Created on 29 Jun 2012 @author: charles ''' import socket, select, json, os, traceback, time, sys, random import posixpath from coll...
hazrpg/calibre
src/calibre/devices/smart_device_app/driver.py
Python
gpl-3.0
89,254
# # Copyright © 2012–2022 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <https://weblate.org/> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licens...
nijel/weblate
weblate/vcs/tests/test_gpg.py
Python
gpl-3.0
3,459
import factory from api import models class ClientFactory(factory.DjangoModelFactory): class Meta: model = models.Client name = 'Coaxis' @factory.django.mute_signals(models.post_save) class UserFactory(factory.DjangoModelFactory): class Meta: model = models.MyUser email = factory....
Coaxis-ASP/opt
backend/api/tests/factories.py
Python
gpl-3.0
1,150
# -*- coding: utf-8 -*- import logging import re import salt.client from netaddr import IPNetwork, IPAddress log = logging.getLogger(__name__) def ping(cluster = None, exclude = None, **kwargs): """ Ping all addresses from all addresses on all minions. If cluster is passed, restrict addresses to public...
supriti/DeepSea
srv/modules/runners/net.py
Python
gpl-3.0
8,475
"DiskCache: disk and file backed cache." from .core import Cache, Disk, UnknownFileWarning, EmptyDirWarning, Timeout from .core import DEFAULT_SETTINGS, EVICTION_POLICY from .fanout import FanoutCache from .persistent import Deque, Index __all__ = [ 'Cache', 'Disk', 'UnknownFileWarning', 'EmptyDirWarn...
pymedusa/SickRage
ext/diskcache/__init__.py
Python
gpl-3.0
835
from .models import * from django.contrib import admin from django.db import models from website.base.form import TinyMCEAdminMixin from django.utils.translation import ugettext_lazy as _ from mediastore.admin import ModelAdmin class SessionAdmin(TinyMCEAdminMixin, ModelAdmin): list_display = ('title','day_of_wee...
samsath/skeleton
src/website/clubsessions/admin.py
Python
gpl-3.0
1,156
# -*- coding: utf-8 -*- ##Copyright (C) [2003] [Jürgen Hamel, D-32584 Löhne] ##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 versio...
BackupTheBerlios/cuon-svn
cuon_client/cuon/Proposal/SingleProposalMisc.py
Python
gpl-3.0
1,877
import wx import eos.db import gui.mainFrame from gui import globalEvents as GE from gui.fitCommands.calc.module.projectedAdd import CalcAddProjectedModuleCommand from gui.fitCommands.helpers import InternalCommandHistory, ModuleInfo from service.fit import Fit class GuiAddProjectedModuleCommand(wx.Command): de...
pyfa-org/Pyfa
gui/fitCommands/gui/projectedModule/add.py
Python
gpl-3.0
1,334
from django.conf.urls import patterns, url from . import views urlpatterns = patterns( '', url(r'^$', views.home, name='home'), url(r'^(?P<pk>\d+)/edit/$', views.edit, name='edit'), url(r'^new/$', views.new, name='new'), )
mozilla/peekaboo
peekaboo/locations/urls.py
Python
mpl-2.0
242
'''u413 - an open-source BBS/transmit/PI-themed forum Copyright (C) 2012 PiMaster Copyright (C) 2012 EnKrypt This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Licens...
mwgamera/u413
newmessage.py
Python
agpl-3.0
2,828
# -*- coding: utf-8 -*- # Copyright(C) 2014 Bezleputh # # This file is part of weboob. # # weboob is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your opt...
yannrouillard/weboob
modules/regionsjob/__init__.py
Python
agpl-3.0
805
# ############################################################################ # OSIS stands for Open Student Information System. It's an application # designed to manage the core business of higher education institutions, # such as universities, faculties, institutes and professional schools. # The core business i...
uclouvain/OSIS-Louvain
features/steps/utils/pages.py
Python
agpl-3.0
3,065
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license import unitt...
petrjasek/superdesk-core
superdesk/macros/imperial/volume_cubic_inches_to_metric_test.py
Python
agpl-3.0
1,669
from rest_framework import serializers from models import SurveyDraft from taggit.models import Tag class WritableJSONField(serializers.Field): """ Serializer for JSONField -- required to make field writable""" """ ALSO REQUIRED because the default JSONField serialization includes the `u` prefix on string...
onaio/dkobo
dkobo/koboform/serializers.py
Python
agpl-3.0
2,038
############################################################################## # # Copyright (C) 2019-2020 Compassion CH (http://www.compassion.ch) # @author: Christopher Meier <dev@c-meier.ch> # # The licence is in the file __manifest__.py # ####################################################################...
CompassionCH/compassion-switzerland
website_compassion/controllers/cms_form.py
Python
agpl-3.0
1,098
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('orentapp', '0016_auto_20150422_1803'), ] operations = [ migrations.AddField( model_name='product', n...
0rent/0rent
orentapp/migrations/0017_product_step.py
Python
agpl-3.0
466
from openerp import fields, models,osv from base_olims_model import BaseOLiMSModel from openerp.tools.translate import _ from fields.string_field import StringField from fields.text_field import TextField from fields.widget.widget import TextAreaWidget schema = (StringField('Title', required=1, ...
sciCloud/OLiMS
models/instrumenttype.py
Python
agpl-3.0
794
#!/usr/bin/python # This file is part of OpenHatch. # Copyright (C) 2010 OpenHatch, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your ...
jledbetter/openhatch
mysite/scripts/clean_data_for_academic_analysis.py
Python
agpl-3.0
1,935
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from superde...
petrjasek/superdesk-core
content_api/companies/resource.py
Python
agpl-3.0
963
# -*- coding: utf-8 -*- # © 2016 FactorLibre - Hugo Santos <hugo.santos@factorlibre.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import computed_purchase_order
factorlibre/odoo-addons-cpo
purchase_compute_order_product_filter_season/models/__init__.py
Python
agpl-3.0
197
"""Mercator proposal.""" from adhocracy_core.resources import add_resource_type_to_registry from adhocracy_core.resources import process from adhocracy_core.resources import proposal from adhocracy_core.sheets.geo import IPoint from adhocracy_core.sheets.geo import ILocationReference from adhocracy_core.sheets.image im...
liqd/adhocracy3.mercator
src/adhocracy_meinberlin/adhocracy_meinberlin/resources/kiezkassen.py
Python
agpl-3.0
1,552
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
do/core/makewavemovie.py
Python
agpl-3.0
2,769
import copy from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django_countries import countries import accounts import third_party_auth from edxmako.shortcuts import marketing_li...
angelapper/edx-platform
openedx/core/djangoapps/user_api/api.py
Python
agpl-3.0
35,762
# ############################################################################ # OSIS stands for Open Student Information System. It's an application # designed to manage the core business of higher education institutions, # such as universities, faculties, institutes and professional schools. # The core business i...
uclouvain/OSIS-Louvain
program_management/tests/ddd/service/read/test_get_program_tree_version_from_node_service.py
Python
agpl-3.0
2,219
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license import loggi...
petrjasek/superdesk-core
superdesk/publish/formatters/__init__.py
Python
agpl-3.0
5,788
#!/usr/bin/env python ## \file change_version_number.py # \brief Python script for updating the version number of the SU2 suite. # \author A. Aranake # \version 5.0.0 "Raven" # # SU2 Original Developers: Dr. Francisco D. Palacios. # Dr. Thomas D. Economon. # # SU2 Developers: Prof. Juan J....
pawhewitt/Dev
SU2_PY/change_version_number.py
Python
lgpl-2.1
2,840
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
mfherbst/spack
var/spack/repos/builtin/packages/nwchem/package.py
Python
lgpl-2.1
9,995
############################################################################## # Name: misc/scripts/update_doc_utils.py # Purpose: base utilities for others update_doc_*.py scripts # Created: 2007-08-1 # RCS-ID: $Id$ # Copyright: (c) 2007 Francesco Montorsi # Licence: wxWindows licence #############...
enachb/freetel-code
src/wxWidgets-2.9.4/misc/scripts/update_doc_utils.py
Python
lgpl-2.1
1,788