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
#!/usr/bin/env python # Copyright 2014 Roland Knall <rknall [AT] gmail.com> # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # a...
sodzawic/tk
doc/extcap_example.py
Python
gpl-2.0
9,150
#!/usr/bin/python # # Author = Andrej Frank, IT-Designers GmbH, STZ Softwaretechnik # Version = 0.0.1 Alpha # GNU GENERAL PUBLIC LICENSE # # what we do: # - read configuration(user,pass,what to save, where to save) # - get the config from switchs # - log in ssh, get the configs/files/dirs # - store it on git( clone i...
rayank77b/saveMyConfigs
smc.py
Python
gpl-2.0
8,718
from django.db import connections from django.db.models.manager import Manager as DJManager from django.db.utils import DatabaseError from bson.objectid import ObjectId import re from .utils import dict_keys_to_str try: from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist except ImportE...
theofilis/elasticsearch-engine
elasticsearch_engine/manager.py
Python
gpl-2.0
20,982
# jack_m3u: generate a m3u playlist - a module for # jack - tag audio from a CD and encode it using 3rd party software # Copyright (C) 1999-2003 Arne Zellentin <zarne@users.sf.net> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publishe...
madarche/jack
jack_m3u.py
Python
gpl-2.0
1,306
# -*- coding: utf-8 -*- # # This tool helps you rebase your package to the latest version # Copyright (C) 2013-2019 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...
rebase-helper/rebase-helper
rebasehelper/helpers/koji_helper.py
Python
gpl-2.0
14,918
class Notifier: """ Base abstract class for different notifiers like EmailNotifier or TextNotifier. """ def __init__(self, client, notified_conf, owner): self.client = client self.owner_name = owner["name"] self.owner_email = owner["email"] self.owner_phone = owner["phone"] ...
balajiiyer-ufl-projects/OpenStackVaccine
notify.py
Python
gpl-2.0
805
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- # This file is part of Guadalinex # # This software 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, ...
gecos-team/gecos-firstboot
firstboot/pages/pcLabel/__init__.py
Python
gpl-2.0
3,149
#!/Users/shreyashirday/Personal/openmdao-0.13.0/bin/python # EASY-INSTALL-SCRIPT: 'docutils==0.10','rst2odt_prepstyles.py' __requires__ = 'docutils==0.10' __import__('pkg_resources').run_script('docutils==0.10', 'rst2odt_prepstyles.py')
HyperloopTeam/FullOpenMDAO
bin/rst2odt_prepstyles.py
Python
gpl-2.0
237
# disk.py # # Copyright (C) 2014-2016 Kano Computing Ltd. # License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2 # # Utilities relating to disk manangement from kano.utils.shell import run_cmd def get_free_space(path="/"): """ Returns the amount of free space in certain location in MB :p...
KanoComputing/kano-toolset
kano/utils/disk.py
Python
gpl-2.0
1,133
from GUIComponent import GUIComponent from VariableText import VariableText from os import statvfs from enigma import eLabel # TODO: Harddisk.py has similiar functions, but only similiar. # fix this to use same code class DiskInfo(VariableText, GUIComponent): FREE = 0 USED = 1 SIZE = 2 def __init__(self, path, t...
bally12345/enigma2
lib/python/Components/DiskInfo.py
Python
gpl-2.0
1,054
"""Emit a message for iteration through dict keys and subscripting dict with key.""" # pylint: disable=line-too-long,missing-docstring,unsubscriptable-object,too-few-public-methods,redefined-outer-name,use-dict-literal,modified-iterating-dict def bad(): a_dict = {1: 1, 2: 2, 3: 3} for k in a_dict: # [con...
PyCQA/pylint
tests/functional/c/consider/consider_using_dict_items.py
Python
gpl-2.0
3,585
# -*- coding: utf-8 -*- # # Copyright (C) 2007,2008,2011,2012 Red Hat, Inc. # # Authors: # Thomas Woerner <twoerner@redhat.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...
hos7ein/firewalld
src/firewall/functions.py
Python
gpl-2.0
17,408
# -*- coding: utf-8 -*- from django.db import models class RssFeed(models.Model): url = models.URLField(unique=True, db_index=True, default='') name = models.CharField(blank=True, default='', max_length=100) lastmodified = models.DateTimeField(editable=False, auto_now=True, ...
jtmitchell/reeder-demo
reeder/rssfeeds/models.py
Python
gpl-2.0
1,244
import logging from threading import RLock from struct import unpack class ReadBuffer(object): """This class receives incoming data, and stores it in a list of extents (also referred to as buffers). It allows us to leisurely pop off sequences of bytes, which we build from the unconsumed extents. As the...
dsoprea/protobufp
protobufp/read_buffer.py
Python
gpl-2.0
4,934
from node import NodeChain from opcode_ import OPCode def node_to_atom(node, iterator): arg_size = node.get_arg_size() atom = NodeChain(node) while arg_size > 0: try: arg = iterator.next() except StopIteration: raise ValueError("Not enough arguments") if is...
TheAnosmic/cheetahs_byte
compile/break_to_atoms.py
Python
gpl-2.0
980
# encoding: utf-8 # module PyQt4.QtCore # from /usr/lib/python3/dist-packages/PyQt4/QtCore.cpython-34m-x86_64-linux-gnu.so # by generator 1.135 # no doc # imports import sip as __sip from .QAnimationGroup import QAnimationGroup class QSequentialAnimationGroup(QAnimationGroup): """ QSequentialAnimationGroup(QObj...
ProfessorX/Config
.PyCharm30/system/python_stubs/-1247971765/PyQt4/QtCore/QSequentialAnimationGroup.py
Python
gpl-2.0
2,169
# profiling_late.py # # Copyright (C) 2015 Kano Computing Ltd. # License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 # # ''' Module to enable profiling timepoints. This module is loaded only if the configuration file exists, see profiling.py for more information ''' import os import sys imp...
rcocetta/kano-toolset
kano/profiling_late.py
Python
gpl-2.0
3,436
# PROBLEM 3 # # Modify the below functions acceleration and # ship_trajectory to plot the trajectory of a # spacecraft with the given initial position # and velocity. Use the Forward Euler Method # to accomplish this. #from udacityplots import * import math import numpy import matplotlib h = 1.0 # ...
rhennigan/code
python/spaceshipTrajectory.py
Python
gpl-2.0
1,346
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------- # Copyright (c) 2009-2019 Jendrik Seipp # # RedNotebook 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...
jendrikseipp/rednotebook
setup.py
Python
gpl-2.0
4,992
""" Module to control libvirtd service. """ import re import logging import aexpect from avocado.utils import path from avocado.utils import process from avocado.utils import wait from virttest import libvirt_version from virttest import utils_split_daemons from . import remote as remote_old from . import utils_misc...
sathnaga/avocado-vt
virttest/utils_libvirtd.py
Python
gpl-2.0
15,212
import json class Student(object): def __init__(self, name, age, score): self.name = name self.age = age self.score = score s = Student('Bob', 20, 88) print(json.dumps(s))
tangming2010/gitRepository
we.py
Python
gpl-2.0
201
from Alignment import Alignment import sys,time,os import pf,func from Var import var from Glitch import Glitch class Data: """All the alignments that you want to work with, in one place. Initialize this with one of - nothing (or None), - a list of Alignment objects, or - a single Alignment...
Linhua-Sun/p4-phylogenetics
p4/Data.py
Python
gpl-2.0
31,372
## -*- mode: python; coding: utf-8; -*- ## ## This file is part of Invenio. ## Copyright (C) 2007, 2008, 2010, 2011, 2012 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 ...
fjorba/invenio
modules/bibformat/lib/bibreformat.py
Python
gpl-2.0
23,401
# -*- coding: utf-8 -*- # # (c) Copyright 2010 Hewlett-Packard Development Company, L.P. # # 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) ...
matrumz/RPi_Custom_Files
Printing/hplip-3.15.2/fax/fax.py
Python
gpl-2.0
32,217
""" Virtualization installation functions. Copyright 2007-2008 Red Hat, Inc. Michael DeHaan <mdehaan@redhat.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...
ssalevan/cobbler
koan/qcreate.py
Python
gpl-2.0
7,315
# IMAP repository support # Copyright (C) 2002 John Goerzen # <jgoerzen@complete.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 2 of the License, or # (at your...
brong/brong-offlineimap
offlineimap/repository/IMAP.py
Python
gpl-2.0
10,516
# GemRB - Infinity Engine Emulator # Copyright (C) 2014 The GemRB Project # # 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 versi...
gemrb/gemrb
gemrb/GUIScripts/iwd2/Spells.py
Python
gpl-2.0
2,996
#! /usr/bin/env python import ppplot import numpy as np from optparse import OptionParser ### TBR by argparse # inputs and options parser = OptionParser() parser.usage = \ ''' asciiplot.py [options] text file(s) -- default is col2 for field and col1 for coord -- this can be set with -x and -y options (or use --swap...
aymeric-spiga/planetoplot
bin/asciiplot.py
Python
gpl-2.0
1,508
import argparse from erv import create_app # Create the flask app. app = create_app() # Run the app if __name__ == '__main__': # Define the arguments. parser = argparse.ArgumentParser() parser.add_argument( '--host', default='0.0.0.0', help='Host to bind to: [%(default)s].') ...
opendatakosovo/election-results-visualizer
runserver.py
Python
gpl-2.0
745
# encoding: utf-8 # module gtk.gdk # from /usr/lib/python2.7/dist-packages/gtk-2.0/pynotify/_pynotify.so # by generator 1.135 # no doc # imports from exceptions import Warning import gio as __gio import gobject as __gobject import gobject._gobject as __gobject__gobject import pango as __pango import pangocairo as __p...
ProfessorX/Config
.PyCharm30/system/python_stubs/-1247972723/gtk/gdk/__init__/Screen.py
Python
gpl-2.0
4,507
# -*- coding: utf-8 -*- #------------------------------------------------------------ # tvalacarta - XBMC Plugin # Canal para Ecuador TV # http://blog.tvalacarta.info/plugin-xbmc/tvalacarta/ #------------------------------------------------------------ import urlparse,re import urllib import os from core import logger...
uannight/reposan
plugin.video.tvalacarta/channels/ecuadortv.py
Python
gpl-2.0
5,395
import os # toolchains options ARCH='sim' #CROSS_TOOL='msvc' or 'gcc' or 'mingw' #'msvc' and 'mingw' are both for windows # 'gcc' is for linux CROSS_TOOL='mingw' # cross_tool provides the cross compiler # EXEC_PATH is the compiler execute path if CROSS_TOOL == 'gcc' or CROSS_TOOL == 'clang-analyze': CPU =...
wzyy2/RTTdev
bsp/simulator/rtconfig.py
Python
gpl-2.0
2,797
import commands import sys import postproc_yt as pp import os import shutil targetdir = sys.argv[1] timestep = float(sys.argv[2]) face = float(sys.argv[3]) level = float(sys.argv[4]) ppdir = os.getenv('PPDIR') outdir = os.getenv('PPOUTDIR') D = pp.FileSetup(targetdir, face=face, level=level, timeste...
low-sky/simscript
postproc/pipeline.py
Python
gpl-2.0
893
# BaseThought.py # This file is part of Labyrinth # # Copyright (C) 2006 - Don Scorgie <DonScorgie@Blueyonder.co.uk> # # Labyrinth 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 Licens...
Boquete/activity-labyrinth
src/BaseThought.py
Python
gpl-2.0
13,410
import os from urllib.error import URLError import pytest from distlib.index import PackageIndex from autopilot import pypi def test_restore_cwd(fake_project_dir): cwd = os.getcwd() with pypi.generate_dist(fake_project_dir.as_posix()) as (metadata, dist_files): pass assert cwd == os.getcwd() ...
jlesquembre/autopilot
tests/pypi_test.py
Python
gpl-2.0
1,650
from django.apps import AppConfig class DataimportConfig(AppConfig): name = "intranet.apps.dataimport"
tjcsl/ion
intranet/apps/dataimport/apps.py
Python
gpl-2.0
109
#!/usr/bin/python3 # vim: set ts=4 et """authprogs unit tests.""" # Copyright (C) 2013 Bri Hatch (daethnir) <bri@ifokr.org> # # This file is part of authprogs. # # Authprogs is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License v2 as published by # ...
daethnir/authprogs
authprogs/tests/test_authprogs.py
Python
gpl-2.0
23,493
""" Advnace 2.0 Terminal system created by DatOneLefty DatOneLefty also develops ForceOS """ f = open("log.adv2", "w") def init(): pass def disp(text): """ use: to display text and to log what is displayed How to: disp(text to display) """ f.write("DISPLAY: " + text) print text def as...
Advance2/ADVANCE-2.0-Terminal
terminal.py
Python
gpl-2.0
690
import pytest @pytest.fixture def create_repo(remote, token): """ Creates a Repository "testrepo0" with a mirror "http://www.sample.com/path/to/some/repo" and the attribute "mirror_locally=0". :param remote: The xmlrpc object to connect to. :param token: The token to authenticate against the remo...
cobbler/cobbler
tests/xmlrpcapi/repo_test.py
Python
gpl-2.0
3,559
# THOR base dir import logging import glob import os import sys # dump a few things into the THOR namespace from .xray import * # list all the files included in THOR __all__ = [os.path.basename(f)[:-3] for f in glob.glob(os.path.dirname(__file__) + "/*.py") if not f.endswith('__init__.py')] # set up the logger logg...
tjlane/thor
src/python/__init__.py
Python
gpl-2.0
581
import sys import os import numpy as nmp # #Lfinite = nmp.isfinite(XF) # #Lshit = nmp.logical_not(Lfinite) # #idx_bad = nmp.where(Lshit) ris2 = 1./nmp.sqrt(2.) def chck4f(cf, script_name=''): cmesg = 'ERROR: File '+cf+' does not exist !!!' if script_name != '': cmesg = 'ERROR in script '+scri...
brodeau/barakuda
python/modules/barakuda_tool.py
Python
gpl-2.0
22,856
# # gPrime - A web-based genealogy program # # Copyright (C) 2010 Doug Blank <doug.blank@gmail.com> # Copyright (C) 2011 Tim G L Lyons # # 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 Foundatio...
sam-m888/gprime
gprime/proxy/referencedbyselection.py
Python
gpl-2.0
23,926
# -*- coding: utf-8 -*- """ (c) 2014-2015 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ import datetime import os import shutil import tempfile import uuid import sqlalchemy import sqlalchemy.schema from datetime import timedelta from sqlalchemy import func from sqlalchemy.orm...
Devyani-Divs/pagure
pagure/lib/__init__.py
Python
gpl-2.0
44,784
# # Copyright (C) 2011-2012 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that it wi...
atodorov/anaconda
pyanaconda/ui/gui/spokes/lib/lang_locale_handler.py
Python
gpl-2.0
7,380
from webplot import p p.use_doc('webplot example') import numpy as np import datetime import time x = np.arange(100) / 6.0 y = np.sin(x) z = np.cos(x) data_source = p.make_source(idx=range(100), x=x, y=y, z=z) p.plot(x, y, 'orange') p.figure() p.plot('x', 'y', color='blue', data_source=data_source, title='sincos') p.pl...
zrhans/python
exemplos/wakari/scripts-examples-webplot_example.py
Python
gpl-2.0
885
from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from ..gro_api.test import APITestCase, run_with_any_layout from ..resources.models import ResourceType, ResourceProperty, ResourceEffect from .models import ActuatorType, ControlProfile, Actuator from .serializers import Actuat...
OpenAgInitiative/gro-api
gro_api/actuators/tests.py
Python
gpl-2.0
7,616
""" .. module:: area_annotation The **Area Annotation** Model. PostgreSQL Definition --------------------- The :code:`area_annotation` table is defined in the MusicBrainz Server as: .. code-block:: sql CREATE TABLE area_annotation ( -- replicate (verbose) area INTEGER NOT NULL, -- PK, references...
marios-zindilis/musicbrainz-django-models
musicbrainz_django_models/models/area_annotation.py
Python
gpl-2.0
1,538
from dbmail.providers.microsoft.base import MPNSBase class MPNSRaw(MPNSBase): NOTIFICATION_CLS = 3 TARGET = 'raw' def payload(self, payload): return payload def send(uri, *_, **kwargs): return MPNSRaw().send(uri, kwargs)
LPgenerator/django-db-mailer
dbmail/providers/microsoft/raw.py
Python
gpl-2.0
250
#! /usr/bin/env python #coding=utf-8 import sys, os, thread from pymongo import Connection from pymongo.errors import ConnectionFailure from import_parameters import ImportParameters from generate_stream_input import GenerateReachTable from find_sites import FindSites from weights_mongo import GenerateWeightInfo impor...
SmileEric/SEIMS
preprocess/build_db.py
Python
gpl-2.0
4,531
""" togePy.pkmn_test This module tests functionality for togePy """ import pokeStructs import cPickle as pickle import random import numpy as np # Load Data with open('pokedex', 'rb') as f: pokedex = pickle.load(f) with open('abilities', 'rb') as f: abilities = pickle.load(f) with open('items...
RK70825/TogePy
pkmn_test.py
Python
gpl-2.0
2,964
from Screen import Screen from ServiceScan import ServiceScan from Components.config import config, ConfigSubsection, ConfigSelection, ConfigYesNo, ConfigInteger, getConfigListEntry, ConfigSlider, ConfigEnableDisable from Components.ActionMap import NumberActionMap, ActionMap from Components.ConfigList import ConfigLis...
OpenLD/enigma2-wetek
lib/python/Screens/ScanSetup.py
Python
gpl-2.0
68,521
"""Provides a number of objects to help with managing certain elements in the CFME UI. Specifically there are two categories of objects, organizational and elemental. * **Organizational** * :py:class:`Region` * :py:mod:`cfme.web_ui.menu` * **Elemental** * :py:class:`AngularCalendarInput` * :py:class:`Angu...
rananda/cfme_tests
cfme/web_ui/__init__.py
Python
gpl-2.0
143,413
# -*- python-mode -*- # -*- coding: UTF-8 -*- ## Copyright (C) 2012-2013 Daniel Pavel ## ## 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 opti...
Lekensteyn/Solaar
lib/logitech_receiver/settings.py
Python
gpl-2.0
12,856
import wpilib from wpilib.command.commandgroup import CommandGroup class Autonomous(CommandGroup): def __init__(self, drive, grabber_lift): super().__init__() self.drive = drive self.grabber_lift = grabber_lift self.addSequential(ClawGrab(grabber_lift)) self.ad...
frc2423/2015
recycle_rush/commands/autonomous.py
Python
gpl-2.0
485
#!/usr/bin/python3 """ This plugin can be use to add ownership and group of a file in a post message (on_post) and change the owner/group of products at destination (on_file) Sample usage: plugin root_chown.py Options ------- If a users/groups differs from the source to the destination, the user can supply a mapp...
petersilva/metpx-sarracenia
sarra/plugins/root_chown.py
Python
gpl-2.0
4,501
""" This module handles the Google Signup for a new user """ from oauth2client import client from django.contrib.auth.models import User from django.shortcuts import redirect from django.shortcuts import render from rest_framework.decorators import api_view, permission_classes from rest_framework.views import APIView...
anshulgarg324/calender
api/google.py
Python
gpl-2.0
2,438
# # # Copyright 2012-2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (ht...
geimer/easybuild-framework
setup.py
Python
gpl-2.0
4,276
#!/usr/bin/env python import freenect import cv from misc.demo import frame_convert cv.NamedWindow('Depth') cv.NamedWindow('RGB') keep_running = True def display_depth(dev, data, timestamp): global keep_running cv.ShowImage('Depth', frame_convert.pretty_depth_cv(data)) if cv.WaitKey(10) == 27: ...
Dining-Engineers/left-luggage-detection
misc/demo/demo_cv_async.py
Python
gpl-2.0
732
# Portions Copyright (c) Meta Platforms, Inc. and affiliates. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2. # hgweb/request.py - An http request from either CGI or the standalone server. # # Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net...
facebookexperimental/eden
eden/scm/edenscm/mercurial/hgweb/request.py
Python
gpl-2.0
5,622
# !/usr/bin/python3 # -*- coding: utf-8 -*- import json import os from typing import Optional, List, Tuple, Dict, Union from models.literalConstants import LiteralConstants class FileProcessing: BASE_PATH: str = os.getcwd() + "/" def __init__(self, path: str, file_type: LiteralConstants.FileType) -> None: ...
gmm96/Txt2SpeechBot
models/fileProcessing.py
Python
gpl-3.0
1,856
# -*- coding: UTF-8 -*- from django import forms from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from registration.forms import RegistrationFormUniqueEmail from django.utils.translation import ugettext_lazy as _ from geonode.maps.models import Co...
mbertrand/cga-worldmap
geonode/register/forms.py
Python
gpl-3.0
2,566
# Version: initial version from tcaxPy import * def tcaxPy_Init(): # some common pre-defined global values global fontSize # as name implies global resX # horizontal resolution global resY # vertical resolution global marginX # horizontal margin global marginY # ve...
milkyjing/TCAX
src/TCAX/tcax/templates/saiyaku_pro_ver/tcaxPy_template_saiyaku_pro_ver.py
Python
gpl-3.0
2,816
from .header_array import HeaderArrayObj from .har_file import HarFileObj from .har_file_io import HarFileIO from .sl4 import SL4 name = "harpy"
GEMPACKsoftware/HARPY
harpy/__init__.py
Python
gpl-3.0
144
# ext/mutable.py # Copyright (C) 2005-2014 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 """Provide support for tracking of in-place changes to scalar values, which are propa...
ncdesouza/bookworm
env/lib/python2.7/site-packages/sqlalchemy/ext/mutable.py
Python
gpl-3.0
23,156
#!/usr/bin/env python # -*- coding: utf-8 -*- from music21 import * import os import sys localcorpus=os.getcwd()+'/localcorpus/' localXML='mikro'+str(sys.argv[1])+'.xml' localfile=localcorpus+localXML MIKRO=converter.parse(localfile) MIKRO.show('lily.pdf')
glerm/ScriptsMusic21
mostrascore.py
Python
gpl-3.0
263
def somaBin(bin1,bin2): resto = 0 for e in range(7, -1, -1): somado[e] = bin1[e] + bin2[e] + resto if somado[e] > 1: if somado[e] == 2: resto = 1 somado[e] -= 2 elif somado[e] == 3: resto = 1 somado...
GuiASousa/Estudos
Minicursopy/SomaBinária.py
Python
gpl-3.0
600
from . import mp2 from .mp2 import RMP2
sunqm/mpi4pyscf
mpi4pyscf/mp/__init__.py
Python
gpl-3.0
40
# -*- coding: utf-8 -*- # # File : echotorch/nn/ESN.py # Description : An Echo State Network module. # Date : 26th of January, 2018 # # This file is part of EchoTorch. EchoTorch 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 Sof...
nschaetti/EchoTorch
echotorch/nn/LiESN.py
Python
gpl-3.0
4,533
# -*- coding: utf-8 -*- # System modules import os import logging import unittest import json from functools import wraps # External modules # Internal modules from .test_data import * # get a logger logger = logging.getLogger(__name__) #################################### ### all tests should import this ### ####...
nobodyinperson/python3-numericalmodel
tests/test_flow.py
Python
gpl-3.0
2,181
# -*- coding: utf-8 -*- ''' Copyright (c) 2014 Jacob Mendt Created on Jul 2, 2015 @author: mendt ''' import logging def createLogger(name, logLevel, logFile=None, formatter=None, handler = None): """ Initialize a logger :param string: name :param int: logLevel :param string: logFile (Default=Non...
slub/vk2-georeference
georeference/utils/logger.py
Python
gpl-3.0
1,115
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2016 Canonical Ltd # # 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 # published by the Free Software Foundation. # # This program is distributed in the h...
snapcore/snapcraft
snapcraft/internal/sources/_script.py
Python
gpl-3.0
1,454
# Copyright 2009, Kovid Goyal <kovid@kovidgoyal.net> # Copyright 2013 Hardcoded Software (http://www.hardcoded.net) # # This software is licensed under the "GPL v3" License as described in the "LICENSE" file, # which should be included with this package. The terms are also available at # http://www.hardcoded.net/lic...
hsoft/pdfmasher
ebooks/epub/output.py
Python
gpl-3.0
3,361
from django.db.models import Model, CharField, DateField, URLField, \ DateTimeField, TextField, ForeignKey, permalink, IntegerField from taggit.managers import TaggableManager from django.contrib.auth.models import User class Conference(Model): title = CharField(max_length=300) start_date = DateField('con...
sinabahram/GrowTheTribe
GrowTheTribe/apps/talks/models.py
Python
gpl-3.0
2,914
import uuid from django.db import models from django.core.mail.message import EmailMessage from django.conf import settings from tendenci.apps.perms.models import TendenciBaseModel from tinymce import models as tinymce_models from tendenci.apps.site_settings.utils import get_setting class Email(TendenciBaseModel): ...
alirizakeles/tendenci
tendenci/apps/emails/models.py
Python
gpl-3.0
6,803
metadata = dict( name='Vermont', abbreviation='vt', capitol_timezone='America/New_York', legislature_name='Vermont General Assembly', legislature_url='http://legislature.vermont.gov/', chambers = { 'upper': {'name': 'Senate', 'title': 'Senator', 'term': 2}, 'lower': {'name': 'Hou...
cliftonmcintosh/openstates
billy_metadata/vt.py
Python
gpl-3.0
2,384
""" La base de données des réponses La clef du dictionnaire est une expression régulière La valeur est une liste des actions dispos (dit_blabla, chante_fichier etc...) """ data = { ".*(coucou|bonjour|salut).*": ["joue:salut", "joue:bonjour", "joue:coucou"], ".*(comment tu t'appelles|comment t'appelles tu|quel est to...
MiloProject/nabaztag
src/bdd.py
Python
gpl-3.0
2,594
# encoding: 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): # Deleting field 'SubscriptionSettings.questions_asked' db.delete_column('forum_subscriptionsettings', 'qu...
CLLKazan/iCQA
qa-engine/forum/migrations/0047_auto__del_field_subscriptionsettings_questions_asked__del_field_subscr.py
Python
gpl-3.0
21,603
from flask_ask import audio, statement, question from flask import request from plexmusicplayer import ask, queue # -------------------------------------------------------------------------------------------- # Amazon Playback - Intents @ask.launch def new_ask(): welcome = "Welcome to the Plex Music Player. What ...
Tyzer34/plexMusicPlayer
plexmusicplayer/intents/amazon_intents.py
Python
gpl-3.0
2,051
''' Copyright 2017 by Alex Mitrevski <aleksandar.mitrevski@h-brs.de> This file is part of delta-execution-models. delta-execution-models 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...
alex-mitrevski/delta-execution-models
rule_learner/utils/conversion.py
Python
gpl-3.0
1,716
""" Map loader for TMX Files bitcraft (leif.theden at gmail.com) v.7 -- for python 3.x If you have any problems, please contact me via email. Tested with Tiled 0.7.1 for Mac. released under the LGPL v3 ====================================================================== Design Goals: Simple api Memory eff...
z9484/ALoMA
pytmx/tmxloader3.py
Python
gpl-3.0
18,775
import wx import sys import IconPys.MASSIVElogoTransparent64x64 class LauncherOptionsDialog(wx.Dialog): def __init__(self, parent, message, title, ButtonLabels=['OK'],onHelp=None,helpEmailAddress="help@massive.org.au",**kw): wx.Dialog.__init__(self, parent, style=wx.DEFAULT_DIALOG_STYLE, **kw) ...
CVL-dev/cvl-fabric-launcher
LauncherOptionsDialog.py
Python
gpl-3.0
4,921
# This file is part of Gajim. # # Gajim 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 only. # # Gajim is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
gajim/gajim
gajim/gtk/chat_list_stack.py
Python
gpl-3.0
11,132
# Copyright (C) 2015 Patrick Happel <patrick.happel@rub.de> # # This file is part of pySICM. # # pySICM 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 ...
patta42/pySICM
pySICM/_runGui.py
Python
gpl-3.0
969
#!/bin/python from urllib import request from pymongo import Connection import argparse import json import pymongo req = request.urlopen('https://blockchain.info/no/api/receive?method=create&address=19J9J4QHDun5YgUTfEU1qb3fSHTbCwcjGj') encoding = req.headers.get_content_charset() obj = json.loads(req.read().decode(enco...
roypur/python-bitcoin-accounting
new.py
Python
gpl-3.0
797
#!/usr/bin/python import apt import logging import unittest from testutils import setup_test_env setup_test_env() from softwarecenter.utils import normalize_package_description class TestAppDescriptionNormalize(unittest.TestCase): """ tests the description noramlization """ def test_description_parser_regr...
pombreda/https-gitorious.org-appstream-software-center
test/test_description_norm.py
Python
gpl-3.0
4,175
## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2018 Raik Gruenberg & Johan Leckner ## ## 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 v...
graik/biskit
archive_biskit2/Biskit/AmberEntropySlave.py
Python
gpl-3.0
3,638
"""Layout provider for Ansible source.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os from ... import types as t from . import ( ContentLayout, LayoutProvider, ) class AnsibleLayout(LayoutProvider): """Layout provider for Ansible source.""" @sta...
amenonsen/ansible
test/lib/ansible_test/_internal/provider/layout/ansible.py
Python
gpl-3.0
1,396
#!/usr/bin/env python # encoding:utf-8 # __author__: huxianglin # date: 2016-09-18 # blog: http://huxianglin.cnblogs.com/ http://xianglinhu.blog.51cto.com/ import os from shop_conf import settings from shop_module import auth from shop_module import encry_passwd from shop_module import db_handler def admin(shop_log):...
huxianglin/pythonstudy
week05-胡湘林/ATM/shop/shop_module/admin.py
Python
gpl-3.0
6,825
import cherrypy, json from bottle import request, get from ring_api.server.api import ring, user class Root(object): def __init__(self, dring): self.dring = dring self.user = user.User(dring) @cherrypy.expose def index(self): return 'todo' @cherrypy.expose def routes(sel...
Bl4ckb0ne/ring-api
ring_api/extra/servers/cherrypy/api/root.py
Python
gpl-3.0
347
# GenCumulativeSkyMtx # # Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari # # This file is part of Ladybug. # # Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com> # Ladybug is free software; you can redistribute it and/or modify # it under the ...
boris-p/ladybug
src/Ladybug_GenCumulativeSkyMtx.py
Python
gpl-3.0
16,430
#!/usr/bin/python #coding:utf-8 import socket HOST,PORT = '',8888 #初始化 listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # 绑定 listen_socket.bind((HOST, PORT)) #监听 listen_socket.listen(1) print 'Serving HTTP on port %s ...'% PORT ...
YUNZHONGTAN/MY_Python_script
test/socket_server.py
Python
gpl-3.0
694
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-04-21 07:08 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
geoenvo/opendims
opendims/automaticweathersystem/migrations/0001_initial.py
Python
gpl-3.0
2,669
from .action_types import GeneratorActionType, ActionStateType from .data_types_tree import Ensemble, Struct, Float, DTT import copy from .code_formater import Formater class VariableGenerator(GeneratorActionType): name = "VariableGenerator" """Display name of action""" description = "Generator for cr...
GeoMop/GeoMop
src/Analysis/pipeline/generator_actions.py
Python
gpl-3.0
11,140
"""Functions for the backend of LetterBoy""" def lb_standardcase(): """Capitalise the first letter of each sentence, and set all others to lowercase.""" pass def lb_uppercase(): """Capitalise each letter.""" pass def lb_lowercase(): """Set all letters to lowercase.""" pass def ...
Moth-Tolias/LetterBoy
LetterBoy_backend.py
Python
gpl-3.0
788
import random import sys class adaptableClass: chance = 0 def __init__(self): self.chance = random.randint(1, 10)/10 def increase(self): if self.chance != 1.0: self.chance = (self.chance * 10 + 1) / 10 def decrease(self): if self.chance != 0.1: self.chance = (self.chance * 10 - 1) / 10 def initgen(...
DavidToroczkai/Game-Theory-Experiments-in-Python
elfarol/Elfarol.py
Python
gpl-3.0
2,400
# display Game information to create a game on a server # import tkinter as TK import client from cmds import warpWarCmds class gamePane(TK.Frame): # PURPOSE: # RETURNS: def __init__(self, master, owner, **kwargs): TK.LabelFrame.__init__(self, master, text="Game Options", **kwargs) self....
ahwmrklas/warpWarp
gamepane.py
Python
gpl-3.0
2,141
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2015 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
eustislab/horton
horton/io/test/test_cp2k.py
Python
gpl-3.0
2,512
# -*- coding: utf-8 -*- """ Copyright (C) 2012 Dariusz Suchojad <dsuch at zato.io> Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ from __future__ import absolute_import, division, print_function, unicode_literals # stdlib from httplib import BAD_REQUEST, CONFLICT, FORBIDDEN, METHOD_NOT_ALLOWED...
alirizakeles/zato
code/zato-server/src/zato/server/connection/http_soap/__init__.py
Python
gpl-3.0
1,596
#!/usr/bin/env python import dbus import dbus.service import dbus.mainloop.glib import sys class ThermalService(dbus.service.Object): def __init__(self, connection): dbus.service.Object.__init__(self, connection, "/moveii/thm") @dbus.service.signal(dbus_interface='moveii.thm', signature='s') def...
move-II/horst
test/dbus/thermal.py
Python
gpl-3.0
634
# !/usr/bin/env python # # Hornet - SSH Honeypot # # Copyright (C) 2015 Aniket Panse <aniketpanse@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 3 of the License, or...
czardoz/hornet
hornet/tests/commands/test_ls.py
Python
gpl-3.0
45,918