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 -*- from time import time from module.common.json_layer import json_loads from module.plugins.Account import Account class MyfastfileCom(Account): __name__ = "MyfastfileCom" __type__ = "account" __version__ = "0.02" __description__ = """Myfastfile.com account plugin""" ...
sebdelsol/pyload
module/plugins/accounts/MyfastfileCom.py
Python
gpl-3.0
1,284
# This file is part of Buildbot. Buildbot 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 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
zozo123/buildbot
master/buildbot/test/unit/test_db_builders.py
Python
gpl-3.0
8,680
# -*- coding: utf-8 -*- import os import pipeline_item class Serialize(pipeline_item.pipeline_stage): def stage(self, pipeline_value): storage_path = "%s/%s" % (self.pipeline_storage_prefix, self.attributes['toFile']) if self.pipeline_storage_prefix is None: storage_path = self.attribut...
Br3nda/docvert
core/pipeline_type/serialize.py
Python
gpl-3.0
422
# This file is part of HamsiManager. # # Copyright (c) 2010 - 2015 Murat Demir <mopened@gmail.com> # # Hamsi Manager 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 yo...
supermurat/hamsi-manager
Databases/BookmarksOfDirectories.py
Python
gpl-3.0
4,852
from iHunterModel.models import DomainObject, Organization from django.db import models # class for specifying different types of EduOrgs. like school, colleges, universities etc. class EducationalOrganizationType(DomainObject): name = models.CharField(max_length=255, null=False, blank=False) description = mod...
kumarsandeep91/Russet.iHunter.Model
iHunterModel/models/EducationalOrganization.py
Python
gpl-3.0
634
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2017 Bitergia # # 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 ...
sduenas/perceval
perceval/backend.py
Python
gpl-3.0
19,497
#!/usr/bin/env python from __future__ import print_function from glob import glob from tempfile import NamedTemporaryFile import sys from alibuild_helpers.log import debug, error, info from os import remove from alibuild_helpers.utilities import format from alibuild_helpers.cmd import execute from alibuild_helpers.uti...
dberzano/alibuild
alibuild_helpers/deps.py
Python
gpl-3.0
3,451
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() from caed import views urlpatterns = patterns('', # Examples: # url(r'^$', 'project.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), ...
julianofischer/caederm
project/urls.py
Python
gpl-3.0
377
#!/usr/bin/env python3 # Version 1.0 # Author Alexis Blanchet-Cohen # Date: 09/06/2014 import argparse import glob import os import subprocess import util # Read the command line arguments. parser = argparse.ArgumentParser(description="Generates Picard target list scripts.") parser.add_argument("-s", "--scriptsDirec...
blancha/abcngspipelines
utils/collectinsertsizemetrics.py
Python
gpl-3.0
2,567
"""Current-flow betweenness centrality measures for subsets of nodes.""" import networkx as nx from networkx.algorithms.centrality.flow_matrix import flow_matrix_row from networkx.utils import not_implemented_for, reverse_cuthill_mckee_ordering __all__ = [ "current_flow_betweenness_centrality_subset", "edge_cu...
SpaceGroupUCL/qgisSpaceSyntaxToolkit
esstoolkit/external/networkx/algorithms/centrality/current_flow_betweenness_subset.py
Python
gpl-3.0
8,195
from ert_gui.models import ErtConnector from ert_gui.models.mixins import SpinnerModelMixin class LocalMaxRunning(ErtConnector, SpinnerModelMixin): def getMaxValue(self): """ @rtype: int """ return 1000 def getMinValue(self): """ @rtype: int """ return 1 def getSpinnerVa...
iLoop2/ResInsight
ThirdParty/Ert/devel/python/python/ert_gui/models/connectors/queue_system/local_max_running.py
Python
gpl-3.0
519
from PyQt5 import QtCore import subprocess from pyconrad import * import numpy as np import jpype import time class forward_project_thread(QtCore.QThread): forward_project_finsihed = QtCore.pyqtSignal(str) def init(self, use_cl, ForwardProj, Phantom): self.use_cl = use_cl self.ForwardProj = Fo...
alPreuhs/InteractiveReconstruction
Threads/forward_projection_thread.py
Python
gpl-3.0
783
#!/usr/bin/env python # encoding: utf-8 # # Copyright 2009 !j Incorporated # # This file is part of Canner. # # Canner 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...
pusateri/canner
taggers/OS--ScreenOS/file--config.netscreen/parse-config.py
Python
gpl-3.0
4,229
# Copyright (C) 2006-2007 Red Hat, Inc. # Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/> # # 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 # ...
sugarlabs/sugar
src/jarabe/model/buddy.py
Python
gpl-3.0
7,314
""" DFO-GN ==================== A derivative-free solver for least squares minimisation with bound constraints. This version has resampling (not part of main package). This file is a modified version of DFOGN which allows resampling and restarts, to better cope with noisy problems. Lindon Roberts, 2017 Call structur...
numericalalgorithmsgroup/dfogn
dfogn/dfogn_resampling.py
Python
gpl-3.0
58,645
# -*- coding: utf-8 -*- # Copyright (C) Duncan Macleod (2014-2020) # # This file is part of GWpy. # # GWpy 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)...
gwpy/gwpy
gwpy/io/ligolw.py
Python
gpl-3.0
22,098
################################################################################# # Copyright 2014 See AUTHORS file. # # Licensed under the GNU General Public License Version 3.0 (the "LICENSE"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www....
blackears/libgdx_blender_g3d_exporter
io_scene_g3d/__init__.py
Python
gpl-3.0
1,616
# # Copyright 2017 Russell Smiley # # This file is part of timetools. # # timetools 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. # #...
blueskyjunkie/timeTools
timetools/synchronization/tests/testIntervals.py
Python
gpl-3.0
2,719
from Collisions.Collidable import Collidable from Collisions.TypeBasedCollision import TypeBasedCollision from Drawing.Drawable import Drawable from Drawing.DrawPlatform import DrawPlatform from Movement.Movable import Movable, Movable2D from Movement.State import State2D from Utility.Entity import Entity ############...
dloman/FiestaMonsterz
Entities/Platform.py
Python
gpl-3.0
1,236
## awg_iq class # two channels of awgs and a local oscillator used to feed a single iq mixer # maximum settings of the current mixer that should not be exceeded import numpy as np import logging from .save_pkl import * from .config import get_config from matplotlib import pyplot as plt class awg_iq: """Interface fo...
ooovector/qtlab_replacement
awg_iq.py
Python
gpl-3.0
12,232
#!/usr/bin/env python # Bootstrap installation of Distribute from importlib import import_module import os, sys from distutils.core import setup from distutils.command.install import install from setuptools.command.develop import develop import subprocess # from subprocess import call # command = partial(subprocess...
lamerzan/public-forms
setup.py
Python
gpl-3.0
3,570
import logging import os import sys from logging import handlers sys.path.append(os.path.dirname(__file__) + '/../src/') sys.path.append(os.path.dirname(__file__) + '/../lib/') from vision import playlist from vision import playout from vision import playoutweb from vision.configuration import configuration def san...
Frikanalen/mltplayout
bin/integrated.py
Python
gpl-3.0
2,450
""" :copyright: (c) 2015 by OpenCredo. :license: GPLv3, see LICENSE for more details. """ import logging import json log = logging.getLogger(__name__) redis_server = None redis_master_server = None def get_redis_slave(): return redis_server def get_redis_master(): return redis_master_server cl...
rusenask/stubo-app
stubo/cache/queue.py
Python
gpl-3.0
3,776
# This file is part of barrioSquare. # # barrioSquare 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. # # barrioSquare is distributed ...
chilitechno/barrioSquare
barrioStyles.py
Python
gpl-3.0
1,574
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 distrib...
elfnor/sverchok
nodes/script/multi_exec.py
Python
gpl-3.0
7,709
import requests import re def request_by_ip(ip): response = {} request = requests.get("http://www.fairplay.ac/lookup/address/{}".format(ip)) assert request.status_code == 200 output = re.findall("Fairplay Guid: ([a-zA-Z0-9]{5})", request.text) if len(output) == 0: return None response["...
ohad258/sof2utils
FairplayRequester.py
Python
gpl-3.0
471
""" """ from __future__ import unicode_literals from django.conf import settings def fikoStatik(request): """ Fiko Statik Adresini(url) Döndürür... Örnek: <script src="{{ FIKO_STATIK_URL }}/pkt/angular/angular.js"></script> Bu İçerik İşleyicinin Aktif Olabilmewsi İçin Aşağıdaki Kodları Sett...
fikri007/django-fikoStatik
fikoStatik/icerikIsleyici/fikoStatik.py
Python
gpl-3.0
1,063
# Copyright (C) 2011-2012 Patrick Totzke <patricktotzke@gmail.com> # This file is released under the GNU GPL, version 3 or a later revision. # For further details see the COPYING file from __future__ import absolute_import import argparse import glob import logging import os import re from ..settings.const import se...
geier/alot
alot/commands/__init__.py
Python
gpl-3.0
6,105
# $Id$ import sys import random import math import numpy from itcc.core import ctools __revision__ = '$Rev$' __all__ = ['length', 'angle', 'torsionangle', 'imptor', 'combinecombine', 'xyzatm', 'minidx', 'maxidx', 'weightedmean', 'weightedsd', 'datafreq', 'random_vector', 'all', 'any', ...
lidaobing/itcc
itcc/core/tools.py
Python
gpl-3.0
4,560
# -*- coding: utf-8 -*- """ Copyright 2008 Serge Matveenko This file is part of PyStarDict. PyStarDict 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 lat...
lig/pystardict
examples/demo.py
Python
gpl-3.0
2,522
#!/usr/bin/env python # -*- coding: utf-8 -*- # FIDATA. Open-source system for analysis of financial and economic data # Copyright © 2012-2013 Basil Peace # This file is part of FIDATA. # # FIDATA is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
FIDATA/database-draft
install.py
Python
gpl-3.0
3,877
# Simple program to add the value of $1 and $5 bills in a wallet ''' Multiple line comments can be placed between triple quotations. ''' nFives = 2 nOnes = 3 total = (nFives * 5) + nOnes print "The total is $" + str(total) # Simple program to calculate how much you should be paid at work rate = 10.00 totalHours ...
geoffmomin/ScratchPad
Python/simplewallet.py
Python
gpl-3.0
479
import csv import requests import pandas as pd from zipfile import ZipFile from io import StringIO URL = 'https://www.quandl.com/api/v3/databases/%(dataset)s/codes' def dataset_url(dataset): return URL % {'dataset': dataset} def download_file(url): r = requests.get(url) if r.status_code == 200: ...
briancappello/PyTradeLib
pytradelib/quandl/metadata.py
Python
gpl-3.0
1,451
# gensim modules from gensim import utils from gensim.models.doc2vec import LabeledSentence from gensim.models import Doc2Vec # numpy import numpy # shuffle from random import shuffle # logging import logging import os.path import sys import cPickle as pickle program = os.path.basename(sys.argv[0]) logger = logging...
vinhqdang/doc2vec_dnn_wikipedia
code/load_pre_train.py
Python
gpl-3.0
3,073
import pytest import nengo def pytest_funcarg__Simulator(request): """the Simulator class being tested. Please use this, and not nengo.Simulator directly, unless the test is reference simulator specific. """ return nengo.Simulator def pytest_generate_tests(metafunc): if "nl" in metafunc.fun...
ZeitgeberH/nengo
nengo/tests/conftest.py
Python
gpl-3.0
1,348
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import os import socket import sys from argparse import ArgumentParser from setproctitle import setproctitle from amavisvt.config import Configuration BUFFER_SIZE = 4096 class AmavisVTClient(object): def __init__(self, socket_path): self.confi...
ercpe/amavisvt
amavisvt/amavisvtc.py
Python
gpl-3.0
2,613
from biot import * # display_wires(N_wires=6, r_wires=r_wires) display_quiver() display_particles(mode_name="boris_exact", colormap="Blues") # display_particles(mode_name="RK4_exact", colormap="Reds") print("Finished display") mlab.show()
StanczakDominik/PythonBiotSavart
plot.py
Python
gpl-3.0
240
#!/usr/bin/env python3 # # Copyright (C) 2016 Canonical, Ltd. # Author: Scott Sweeny <scott.sweeny@canonical.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; version 3. # # This program is...
ssweeny/snaplint
snaplint/_rule.py
Python
gpl-3.0
1,643
# -*- coding: utf-8 -*- import numpy as np import config from feature.feature_multi import FeatureMulti from similarity.similarity_base import SimiliarityBase class SimilarityStyle(SimiliarityBase): def calculate(self, image1, image2): # 获取特征 multi_feature_extractor = FeatureMulti() lumi...
jinyu121/ACACTS
similarity/similarity_style.py
Python
gpl-3.0
1,581
#!/usr/bin/env python3 """ Copyright 2020 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester 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 ...
pwillworth/galaxyharvester
html/getSchematicList.py
Python
gpl-3.0
7,494
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- Python -*- """ @file outTemp.py @brief ModuleDescription @date $Date$ """ import sys import time sys.path.append(".") # Import RTM module import RTC import OpenRTM_aist # Import Service implementation class # <rtc-template block="service_impl"> # </rtc-templ...
max-koara/OutTemp
outTemp.py
Python
gpl-3.0
5,559
# Paperwork - Using OCR to grep dead trees the easy way # Copyright (C) 2014 Jerome Flesch # # Paperwork 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 # ...
kschwank/paperwork
src/paperwork/frontend/labeleditor/__init__.py
Python
gpl-3.0
10,471
""" SicPy """ # __version__ = '0.1' # __author__ = 'disrupts' # __license__ = 'GPLv3' # Cryptobox should only be used to implement ciphers #from sicpy.cryptobox import Cryptobox # Ciphers are imported directly with sicpy #  not requiring an aditional import from sicpy.ciphers.caesar import Caesar from sicpy.cip...
disrupts/SicPy
sicpy/__init__.py
Python
gpl-3.0
557
# Copyright 2014-2020 by Christopher C. Little. # This file is part of Abydos. # # Abydos 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...
chrislit/abydos
tests/distance/test_distance_ncd_bwtrle.py
Python
gpl-3.0
2,159
# -*- coding: utf-8 -*- # This file is part of BBFlux (BackBox XFCE -> FluxBox Menu Automatic Update Daemon). # # Copyright(c) 2010-2011 Simone Margaritelli # evilsocket@gmail.com - evilsocket@backbox.org # http://www.evilsocket.net # http://www.backbox.org # # This file may be licensed under the terms of of the # GNU ...
evilsocket/BBFlux
parsers/IconParser.py
Python
gpl-3.0
2,214
#!/usr/bin/env python # -*- coding: utf-8 -*- """Test thorns.waves module. """ from __future__ import division, absolute_import, print_function __author__ = "Marek Rudnicki" import numpy as np from numpy.testing import assert_equal import thorns.waves as wv def test_electrical_pulse_charge(): durations = ...
timtammittee/thorns
tests/test_waves.py
Python
gpl-3.0
1,056
# -*- coding: utf-8 -*- # Copyright (C) 2005 Osmo Salomaa # # 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 pr...
otsaloma/gaupol
gaupol/dialogs/test/test_position_transform.py
Python
gpl-3.0
1,527
import odoo.tests @odoo.tests.common.at_install(False) @odoo.tests.common.post_install(True) class TestUi(odoo.tests.HttpCase): def test_admin(self): self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('event_buy_tickets', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.event_buy_tickets", ...
ChawalitK/odoo
addons/website_event_sale/tests/test_ui.py
Python
gpl-3.0
731
#!/usr/bin/python # # Copyright 2016 Red Hat | Ansible # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['prev...
Lujeni/ansible
lib/ansible/modules/cloud/docker/docker_container.py
Python
gpl-3.0
143,393
# This file is part of GxSubOS. # Copyright (C) 2014 Christopher Kyle Horton <christhehorton@gmail.com> # GxSubOS 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...
WarriorIng64/GxSubOS
indicatortray.py
Python
gpl-3.0
4,871
# Copyright (C) 2015-2016 Daniel Sel # # 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...
tumi8/sKnock
server/version.py
Python
gpl-3.0
1,225
#!/usr/bin/env python # coding=utf-8 # Copyright (C) 2014 by Serge Poltavski # # serge.poltavski@gmail.com # # # # This program is free software; you can redistribute...
uliss/pddoc
pddoc/pdpainter.py
Python
gpl-3.0
2,655
# SSH proxy forward and remote shell __author__ = "Frederico Martins" __license__ = "GPLv3" __version__ = 1 from getpass import getpass from paramiko import AutoAddPolicy, SSHClient, ssh_exception class SSH(object): proxy = None def __init__(self, host, user, password=None, port=22): self.host = ...
flippym/toolbox
ssh-streaming.py
Python
gpl-3.0
1,573
import os, json, random from utils import * import collections class FileDataBaseException(Exception): pass def update_dict_recursively(d, u): for k, v in u.iteritems(): if isinstance(v, collections.Mapping): r = update_dict_recursively(d.get(k, {}), v) d[k] = r else: ...
makseq/testarium
testarium/filedb.py
Python
gpl-3.0
6,170
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2015-2017 Stephane Caron <stephane.caron@normalesup.org> # # This file is part of fip-walkgen # <https://github.com/stephane-caron/fip-walkgen>. # # fip-walkgen is free software: you can redistribute it and/or modify it under # the terms of the GNU General...
stephane-caron/dynamic-walking
wpg/com_control/__init__.py
Python
gpl-3.0
1,231
# THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE. # Copyright (C) NIWA & British Crown (Met Office) & Contributors. # # 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 Licen...
oliver-sanders/cylc
tests/integration/utils/__init__.py
Python
gpl-3.0
1,157
# Qt library # # Notes: # There's no performance penalty for importing all Qt modules into whichever modules # need access to at least some Qt modules, so for simplicity's sake that's what we'll do. from util import RequiredImportError from constants import PYSIDE, PYQT4 import qt_helper _qtLib = qt_helper.qtLib...
pylonsoflight/kea
qt.py
Python
gpl-3.0
1,023
#!/usr/bin/python -tt # An incredibly simple agent. All we do is find the closest enemy tank, drive # towards it, and shoot. Note that if friendly fire is allowed, you will very # often kill your own tanks with this code. ################################################################# # NOTE TO STUDENTS # This is...
sm-github/bzrflag
bzagents/dumb_agent.py
Python
gpl-3.0
4,903
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2015-2021 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...
fiete201/qutebrowser
tests/unit/misc/test_ipc.py
Python
gpl-3.0
28,342
#!/usr/bin/env python if __name__ == '__main__': from anoisetools.scripts.dispatch import main main()
fhcrc/ampliconnoise
anoise.py
Python
gpl-3.0
111
#!/usr/bin/env python """ Seshat Web App/API framework built on top of gevent modifying decorators for HTTP method functions For more information, see: https://github.com/JoshAshby/ http://xkcd.com/353/ Josh Ashby 2014 http://joshashby.com joshuaashby@joshashby.com """ import json import seshat_addons.utils.patch_js...
JoshAshby/seshat_addons
seshat_addons/seshat/func_mods.py
Python
gpl-3.0
2,354
# -*- coding: utf-8 -*- # XMPPVOX: XMPP client for DOSVOX. # Copyright (C) 2012 Rodolfo Henrique Carvalho # # This file is part of XMPPVOX. # # XMPPVOX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software F...
rhcarvalho/xmppvox
xmppvox/server.py
Python
gpl-3.0
12,781
import urllib import urllib2 import json import time import hmac,hashlib def createTimeStamp(datestr, format="%Y-%m-%d %H:%M:%S"): return time.mktime(time.strptime(datestr, format)) class poloniex: def __init__(self, APIKey, Secret): self.APIKey = APIKey self.Secret = Secret def post_proc...
Vadus/eldo
src/poloniex/poloniex.py
Python
gpl-3.0
6,502
from pygame import USEREVENT # Events SONG_END_EVENT = USEREVENT + 1 ENEMY_DESTROYED_EVENT = USEREVENT + 2 BOSS_BATTLE_EVENT = USEREVENT + 3 DISPLAY_MESSAGE_EVENT = USEREVENT + 4 END_LEVEL_EVENT = USEREVENT + 5 END_GAME_EVENT = USEREVENT + 6 # Constants SCREEN_SIZE = (800, 600) # Colors COLOR_BLACK = (0, 0, 0)
juanjosegzl/learningpygame
constants.py
Python
gpl-3.0
315
""" This is a test of the chain ReportsClient -> ReportsGeneratorHandler -> AccountingDB It supposes that the DB is present, and that the service is running. Also the service DataStore has to be up and running. this is pytest! """ # pylint: disable=invalid-name,wrong-import-position import datetime ...
DIRACGrid/DIRAC
tests/Integration/AccountingSystem/Test_ReportsClient.py
Python
gpl-3.0
2,308
'''Language module, allows the user to change the language on demand''' # -*- 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 v...
emesene/emesene
emesene/Language.py
Python
gpl-3.0
7,488
import os import pytest import perun.utils.helpers as helpers import perun.utils.streams as streams import perun.logic.store as store import perun.logic.index as index import perun.utils.exceptions as exceptions import perun.utils.timestamps as timestamps __author__ = 'Tomas Fiedor' @pytest.mark.usefixtures('cleand...
tfiedor/perun
tests/test_store.py
Python
gpl-3.0
7,270
""" Copied from https://bitcointalk.org/index.php?topic=1026.0 (public domain) """ from hashlib import sha256 if str != bytes: def ord(c): # Python 3.x return c def chr(n): return bytes((n,)) __b58chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' __b58base = len(_...
simplecrypto/cryptokit
cryptokit/base58.py
Python
gpl-3.0
2,723
# -*- coding: utf-8 -*- # # Copyright © 2012 - 2019 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, eith...
dontnod/weblate
weblate/lang/models.py
Python
gpl-3.0
20,870
# -*- coding: utf-8 -*- """ HipparchiaServer: an interface to a database of Greek and Latin texts Copyright: E Gunderson 2016-21 License: GNU GENERAL PUBLIC LICENSE 3 (see LICENSE in the top level directory of the distribution) """ import re from collections import defaultdict try: from rich.progress import tra...
e-gun/HipparchiaServer
server/listsandsession/sessiondicts.py
Python
gpl-3.0
4,686
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import copy,re,os from waflib import Task,Utils,Logs,Errors,ConfigSet,Node feats=Utils.defaultdict(set) class task_gen(object): mappings={} prec=Utils.defaultdict(list) def...
arnov-sinha/sFFT-OpenACC-Library
tools/.waf-1.7.5-47d5afdb5e7e2856f7f46a7101914026/waflib/TaskGen.py
Python
gpl-3.0
11,393
from umlfri2.ufl.components.base.componenttype import ComponentType from umlfri2.types.image import Image from .componentloader import ComponentLoader from ....constants import ADDON_NAMESPACE, ADDON_SCHEMA from .structureloader import UflStructureLoader from umlfri2.ufl.components.valueproviders import ConstantValuePr...
umlfri/umlfri2
umlfri2/datalayer/loaders/addon/metamodel/diagramtypeloader.py
Python
gpl-3.0
3,129
""" sample AWS SQS enqueue an item """ import boto3 # AWS API python module import json # open a connection to the SQS service # (using ~/.aws/credentials for access info) sqs = boto3.resource('sqs') # print queues in existence #for queue in sqs.queues.all(): # print(queue.url) # create (or return existing) qu...
opedroso/aws-python-examples
sqs/sample_post_sqs.py
Python
gpl-3.0
2,736
from Products.CMFCore.utils import getToolByName from cStringIO import StringIO from Products.OpenPlans.Extensions.Install import installZ3Types from Products.OpenPlans.Extensions.setup import migrate_listen_member_lookup from Products.OpenPlans.Extensions.setup import reinstallSubskins def migrate_listen(self): ...
socialplanning/opencore
Products/OpenPlans/Extensions/migrate_listen.py
Python
gpl-3.0
1,938
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-13 09:57 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('db', '0077_auto_20161113_2049'), ] operations = [ migrations.AlterModelOptions( ...
caw/curriculum
db/migrations/0078_auto_20161113_2057.py
Python
gpl-3.0
444
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-21 05:36 from __future__ import unicode_literals import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ...
rubyAce71697/QMS
quiz_system/quiz/migrations/0001_initial.py
Python
gpl-3.0
5,170
#!/usr/bin/env python """ Copyright (C) 2015 Ivan Gregor 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. ...
algbioi/snowball
algbioi/ga/run.py
Python
gpl-3.0
21,873
# deprecated? class HostControlWrapper(object): def __init__(self): self.id = None self.idx = None self.label = None self.btn = None self.tile_bg = None self.host = None
wackerl91/luna
resources/lib/model/hostcontrolwrapper.py
Python
gpl-3.0
222
import requests from requests.auth import HTTPDigestAuth import time import json import sys class IMT550C(): def __init__(self): params = self.configure() self.uri = params["uri"] self.ip = params["IP"] self.user = params["username"] self.password = params["password"] self.sample_rate = param...
SoftwareDefinedBuildings/bw2-contrib
driver/imt550c/smap.py
Python
gpl-3.0
3,893
# nnmware(c)2012-2020 from __future__ import unicode_literals from django import forms from django.contrib.admin.widgets import AdminTimeWidget from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.utils.timezone...
nnmware/nnmware
apps/booking/forms.py
Python
gpl-3.0
9,755
from __future__ import print_function, division INLINE_LABEL_STYLE = { 'display': 'inline-block', } GRAPH_GLOBAL_CONFIG = { 'displaylogo': False, 'modeBarButtonsToRemove': ['sendDataToCloud'], } AXIS_OPTIONS = ({ 'label': 'linear', 'value': 'linear', }, { 'label': 'log', 'value': 'log', }...
lqhuang/SAXS-tools
dashboard/layouts/style.py
Python
gpl-3.0
1,620
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2016-07-01 17:09 from __future__ import unicode_literals from django.db import migrations import django_fsm class Migration(migrations.Migration): dependencies = [ ('invoice', '0002_billordering'), ] operations = [ migrations.AlterF...
Diacamma2/financial
diacamma/invoice/migrations/0003_bill_status.py
Python
gpl-3.0
568
from setuptools import setup, find_packages DESCRIPTION = "Implementation of Huff et. al. (2011) Estimation of Recent Shared Ancestry " LONG_DESCRIPTION = "`ersa` estimates the combined number of generations between pairs of " \ "individuals using a " \ "`Germline <http://www1.cs....
rmunoz12/ersa
setup.py
Python
gpl-3.0
2,290
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2012-6 Met Office. # # This file is part of Rose, a framework for meteorological suites. # # Rose is free software: you can redistribute it and/or modify # it under the terms of the GNU ...
kaday/rose
lib/python/rose/config_editor/nav_panel_menu.py
Python
gpl-3.0
24,642
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-30 03:32 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('administrador', '0011_auto_20171129_2215'), ] operations = [ ...
adbetin/organico-cooperativas
administrador/migrations/0012_auto_20171129_2232.py
Python
gpl-3.0
548
from django.db import models from wagtail.core.models import Page from wagtail.admin.edit_handlers import FieldPanel, StreamFieldPanel from wagtail.core.fields import StreamField from wagtail.core import blocks from wagtail.images.blocks import ImageChooserBlock from test.anotherapp.models import HomePage class Anot...
benjaoming/django-modeltranslation-wagtail
test/transapp/models.py
Python
gpl-3.0
2,238
# daisy-extract # Copyright (C) 2016 James Scholes # This program is free software, licensed under the terms of the GNU General Public License (version 3 or later). # See the file LICENSE for more details. from collections import namedtuple import argparse import glob import logging import os import platform import sh...
jscholes/daisy-extract
extract.py
Python
gpl-3.0
7,728
#!/usr/bin/python # -*- coding: utf-8 -*- """ This file is part of XBMC Mega Pack Addon. Copyright (C) 2014 Wolverine (xbmcmegapack@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 Softwar...
xbmcmegapack/plugin.video.megapack.dev
resources/lib/menus/home_countries_tajikistan.py
Python
gpl-3.0
1,117
from core.testcases import APIModelViewSetTestCase, ModelViewSetTestCase, get_permissions_from_compact from authentication.models import User, UserType class UserViewSetTestCase(APIModelViewSetTestCase): model = User permissions = get_permissions_from_compact({ 'list': '...a', # Only admin can ...
simde-utc/woolly-api
authentication/tests.py
Python
gpl-3.0
999
# from mainsite.models import Web_Region context = {'title': 'my static title', 'description': 'my static description', 'data': 'my static data', } def get_context(request): # region_list = Web_Region.objects.values_list('region_name', flat=True) context.update({'d...
sstacha/uweb-vagrant
files/docroot/files/test.data.py
Python
gpl-3.0
364
#!/usr/bin/python """ DES-CHAN: A Framework for Channel Assignment Algorithms for Testbeds This module provides a class to represent network graphs and conflict graphs. Authors: Matthias Philipp <mphilipp@inf.fu-berlin.de>, Felix Juraschek <fjuraschek@gmail.com> Copyright 2008-2013, Freie Universitaet...
des-testbed/des_chan
graph.py
Python
gpl-3.0
18,151
#!/usr/bin/env python """Publish coverage results online via coveralls.io Puts your coverage results on coveralls.io for everyone to see. It makes custom report for data generated by coverage.py package and sends it to `json API`_ of coveralls.io service. All python files in your coverage analysis are posted to this s...
phimpme/generator
Phimpme/site-packages/coveralls/cli.py
Python
gpl-3.0
1,907
# -*- coding: utf8 -*- from yanntricks import * def UQZooGFLNEq(): pspict,fig = SinglePicture("UQZooGFLNEq") pspict.dilatation_X(1) pspict.dilatation_Y(1) mx=-5 Mx=5 x=var('x') f=phyFunction( arctan(x) ).graph(mx,Mx) seg1=Segment( Point(mx,pi/2),Point(Mx,pi/2) ) seg2=Segment( Poin...
LaurentClaessens/mazhe
src_yanntricks/yanntricksUQZooGFLNEq.py
Python
gpl-3.0
671
## import argparse from plotWheels.helical_wheel import helical_wheel if __name__ == "__main__": parser = argparse.ArgumentParser(description="Generate Helical Wheel") parser.add_argument("--sequence",dest="sequence",type=str) parser.add_argument("--seqRange",dest="seqRange",type=int,default=1) parse...
TAMU-CPT/galaxy-tools
tools/helicalWheel/generateHelicalWheel.py
Python
gpl-3.0
4,144
# -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ from redsolutioncms.models import CMSSettings, BaseSettings, BaseSettingsManager FIELD_TYPES = ( ('BooleanField', _('Checkbox')), ('CharField', _('Character field')), ('Text', _('Text area')), ...
redsolution/django-simple-feedback
feedback/redsolution_setup/models.py
Python
gpl-3.0
1,391
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals """ oauthlib.oauth1.rfc5849 ~~~~~~~~~~~~~~ This module is an implementation of various logic needed for signing and checking OAuth 1.0 RFC 5849 requests. """ import logging log = logging.getLogger("oauthlib") import sys import time try...
raqqun/tweetcommander
packages/oauthlib/oauth1/rfc5849/__init__.py
Python
gpl-3.0
49,724
"""Feat components.""" from component_objects import Component, Element class FeatAddModal(Component): """Definition of feat add modal component.""" modal_div_id = 'addFeat' name_id = 'featAddNameInput' description_id = 'featAddDescriptionTextarea' tracked_id = 'featAddTrackedCheckbox' max_i...
adventurerscodex/uat
components/core/character/feats.py
Python
gpl-3.0
1,902
from datetime import datetime import json import traceback from django.http import HttpResponse from django.template import loader, Context from django.views.decorators.csrf import csrf_exempt from events.models import ScriptEvent, MessageEvent from profiles.models import PhoneNumber, format_phone from sms_messages.m...
audaciouscode/SMSBot
smsbot_django/services/views.py
Python
gpl-3.0
4,783
# -*- coding: utf-8 -*- from ui import ui_elements from ui import ui_handler class my_text(ui_elements.Text): def start(self, args): self.set_text(args["text"]) self.set_pos((100, 100)) self.set_size(60) self.set_color((0, 0, 255)) def mouse_enter(self): self.set_color((255, 0, 0)) def mouse_leave(sel...
c-michi/pygame_ui
test_ui.py
Python
gpl-3.0
722
""" Copyright (c) 2012-2014 RockStor, Inc. <http://rockstor.com> This file is part of RockStor. RockStor 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 la...
schakrava/rockstor-core
src/rockstor/storageadmin/models/netatalk_share.py
Python
gpl-3.0
1,546