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
from distutils.core import setup setup( name='Statpipe', version='0.1.9', author='Ben Whalley', author_email='benwhalley@gmail.com', packages=['statpipe'], scripts=['bin/statpipe', 'bin/statpipe_image'], url='https://github.com/benwhalley/statpipe', license='LICENSE.txt', descriptio...
benwhalley/statpipe
setup.py
Python
mit
448
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import import os import unittest import mock import nikola import nikola.plugins.command.import_wordpress from .base import BaseTestCase class BasicCommandImportWordpress(BaseTestCase): def setUp(self): self.module = nikola.plugi...
andredias/nikola
tests/test_command_import_wordpress.py
Python
mit
22,852
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
lmazuel/azure-sdk-for-python
azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet_paged.py
Python
mit
922
""" Asyncore-based implementation of the AMP protocol. """ import socket import threading import asyncore, asynchat, socket, struct, sys import defer, ampy class AMP_Server(asyncore.dispatcher): def __init__(self, port, bindHost="0.0.0.0"): self.port = port self.bindHost = bindHost asyncor...
spikeekips/ampy
ampy/async.py
Python
mit
7,935
import unittest class TLTests(unittest.TestCase): """There are no tests yet"""
kyasabu/Telethon
telethon_tests/tl_test.py
Python
mit
85
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "inventory.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
NdagiStanley/inventory
manage.py
Python
mit
807
""" Functions for generating several types of classic networks. Functions: build_star_network build_chain_network build_ring_network build_random_network build_clique_network build_hypercube_network build_grid_network """ import jbnetwork as jbn def build_star_network(size): """Build a star network. Returns Netwo...
jbchouinard/jbnetwork
jbnetworkfactory.py
Python
mit
2,645
#!/usr/bin/env python import unittest from test import support import socket import urllib.request import sys import os import email.message def _open_with_retry(func, host, *args, **kwargs): # Connecting to remote hosts is flaky. Make it more robust # by retrying the connection several times. last_exc...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-3.0/Lib/test/test_urllibnet.py
Python
mit
6,937
import pytest from pytest import raises from tinymce.utils import parse_profile, ConfigurationError def test_convert_urls(): profile = {} P = parse_profile(profile) assert 'convert_urls' not in P profile = {'convert_urls': False} P = parse_profile(profile) assert P['convert_urls'] == False ...
kcsry/django-tinymce
tests/test_url.py
Python
mit
1,553
from django.http import HttpResponse from django.shortcuts import get_object_or_404, render from django.http import Http404 from coverage_score_viewer.models import CoverageBoundary from coverage_score_viewer.models import CoverageScore import pygal from pygal.style import LightStyle from datetime import date import js...
thomaskonrad/osm-austria-building-coverage
coverage_score_viewer/views.py
Python
mit
4,894
#!/usr/bin/env python import numpy as np import healpy as hp import matplotlib.pyplot as plt # create a RA and Dec grid ra_all = [] dec_all = [] for ra in np.arange(0, 360, 0.5): for dec in np.arange(-90, 90, 0.5): ra_all.append(ra) dec_all.append(dec) ra = np.array(ra_all) dec = np....
annayqho/TheCannon
code/lamost/xcalib_5labels/paper_plots/plot_survey_coverage_brani.py
Python
mit
1,291
version = '1.1.0'
g3rd/django-rszio
rszio/__init__.py
Python
mit
18
from myhdl import * class VGA: def __init__(self, color_depth=(10, 10, 10,)): """ color_depth the number of bits per RGB """ self.N = color_depth # the sync signals self.hsync = Signal(bool(1)) self.vsync = Signal(bool(1)) # the RGB signals to the...
cfelton/rhea
rhea/cores/video/vga/vga_intf.py
Python
mit
1,435
#!/usr/bin/env python from setuptools import setup setup(name='sixfour', version='1.3.3', description='base64 Image Encoder and Embedder', author='Christopher Simpkins', author_email='chris@zerolabs.net', maintainer='Christopher Simpkins', maintainer_email='chris@zerolabs.net', ...
Kingside/six-four
setup.py
Python
mit
2,189
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test behavior of headers messages to announce blocks. Setup: - Two nodes: - node0 is the node-und...
Flowdalic/bitcoin
test/functional/p2p_sendheaders.py
Python
mit
26,404
from pyb import Pin p = Pin('X8', Pin.IN) print(p) print(p.name()) print(p.pin()) print(p.port()) p = Pin('X8', Pin.IN, Pin.PULL_UP) p = Pin('X8', Pin.IN, pull=Pin.PULL_UP) p = Pin('X8', mode=Pin.IN, pull=Pin.PULL_UP) print(p) print(p.value()) p.init(p.IN, p.PULL_DOWN) p.init(p.IN, pull=p.PULL_DOWN) p.init(mode=p.IN...
pozetroninc/micropython
tests/pyb/pin.py
Python
mit
554
from .base import * class Banners(ListableApiResource, CreateableApiResource, UpdateableApiResource, DeleteableApiResource, CollectionDeleteableApiResource): resource_name = 'banners'
hockeybuggy/bigcommerce-api-python
bigcommerce/resources/banners.py
Python
mit
218
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-09-09 16:09 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('wagtaildocs', '0007_merge'), ...
terotic/digihel
digi/migrations/0008_auto_20160909_1909.py
Python
mit
3,342
import sys from contextlib import contextmanager # Are we training (or testing) training = False @contextmanager def context(**kwargs): """Temporarily change the values of context variables passed. Enables the `with` syntax: >>> with context(training=True): ... """ current = dict((k, geta...
kadarakos/funktional
funktional/context.py
Python
mit
540
#!/usr/bin/env python # encoding: utf-8 import unittest from ..test import TestCase, Spy from ..http.mocks.presence_subscription_mock import PresenceSubscriptionMock from ..http.mocks.subscription_mock import SubscriptionMock from . import * class TestSubscription(TestCase): def test_presence_decryption(self): ...
RingCentralVuk/ringcentral-python
ringcentral/subscription/__init__test.py
Python
mit
2,725
from .test_fields import * from .test_forms import * from .test_jsonquery import *
DarioGT/docker-carra
src/jsonfield2/tests/__init__.py
Python
mit
91
import json from flask import g, jsonify, request, current_app, url_for from ..models import User from .. import db from . import main from .authentication import auth_user from .errors import bad_request, unauthorized, forbidden, not_found """read all""" @main.route('/<token>/users/', methods=['GET']) ...
andela-bojengwa/team3
monitorbot_api/app/main/users.py
Python
mit
3,988
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
yugangw-msft/azure-cli
src/azure-cli/azure/cli/command_modules/billing/custom.py
Python
mit
1,075
from .req import Req class Records(Req): def __init__(self, url, email, secret): super().__init__(url=url, email=email, secret=secret) def get(self, zone_id, layer='default'): return self.do_get("/zones/{}/{}/records".format(zone_id, layer)) def create(self, zone, layer, name, ttl, rtype...
cloudnsru/PyCloudNS
PyCloudNS/records.py
Python
mit
967
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Task', fields=[ ('id', models.AutoField(auto_cr...
static-code-generators/taskzilla
taskzilla/migrations/0001_initial.py
Python
mit
949
#### 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 = Static() result.template = "object/static/particle/shared_pt_light_streetlamp_green.iff" result.attribute_templat...
anhstudios/swganh
data/scripts/templates/object/static/particle/shared_pt_light_streetlamp_green.py
Python
mit
454
import asposestoragecloud from asposestoragecloud.StorageApi import StorageApi from asposestoragecloud.ApiClient import ApiException from asposestoragecloud.models import FileExistResponse apiKey = "b125f13bf6b76ed81ee990142d841195" # sepcify App Key appSid = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9" # sepcify App SID ...
aspose-total/Aspose.Total-for-Cloud
Examples/Python/files/DownloadAParticularFileExample.py
Python
mit
895
from __future__ import unicode_literals from django.contrib.contenttypes.models import ContentType from django.shortcuts import get_object_or_404 from django.views.generic.list import ListView from taggit.models import Tag, TaggedItem def tagged_object_list(request, slug, queryset, **kwargs): if callable(querys...
tlksio/tlksio
env/lib/python3.4/site-packages/taggit/views.py
Python
mit
1,751
from .nucleicacidpartitemcontroller import NucleicAcidPartItemController from .oligoitemcontroller import OligoItemController from .stranditemcontroller import StrandItemController from .viewrootcontroller import ViewRootController from .virtualhelixitemcontroller import VirtualHelixItemController
scholer/cadnano2.5
cadnano/controllers/__init__.py
Python
mit
298
from django.db import models class AgencyManager(models.Manager): def get_all_by_code(self): agencies = self.all() agency_map = {} for agency in agencies: agency_map[agency.pk] = agency return agency_map
mehtadev17/mapusaurus
mapusaurus/respondents/managers.py
Python
cc0-1.0
254
######## ######## # Hi there, curious student. # # # # This submission script downloads some tests, # # runs the tests against your code, # #and then sends the results to a server for g...
tjctw/PythonNote
matrix/submit.py
Python
cc0-1.0
14,477
import warnings from pyzabbix import ZabbixMetric, ZabbixSender warnings.warn("Module '{name}' was deprecated, use 'pyzabbix' instead." "".format(name=__name__), DeprecationWarning)
blacked/py-zabbix
zabbix/sender.py
Python
gpl-2.0
198
# -*- coding: utf-8 -*- # # Copyright © 2017-2020 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 ...
release-monitoring/anitya
anitya/tests/lib/versions/test_base.py
Python
gpl-2.0
8,780
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2016 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
franciscod/python-telegram-bot
telegram/file.py
Python
gpl-2.0
2,090
"""Integration with Python standard library module urllib2: OpenerDirector class. Copyright 2004-2006 John J Lee <jjl@pobox.com> This code is free software; you can redistribute it and/or modify it under the terms of the BSD or ZPL 2.1 licenses (see the file COPYING.txt included with the distribution). """ import o...
smarthimandrew/FantasyFRC
customMechanize/_opener.py
Python
gpl-2.0
14,890
# -*- coding: utf-8 -*- # # goto.py - goto commander module # # Copyright (C) 2010 - Jesse van den Kieboom # # 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,...
purpleidea/gedit-plugins
plugins/commander/modules/goto.py
Python
gpl-2.0
1,938
# encoding: utf-8 # module PyQt4.QtGui # from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so # by generator 1.135 # no doc # imports import PyQt4.QtCore as __PyQt4_QtCore class QGestureEvent(__PyQt4_QtCore.QEvent): """ QGestureEvent(list-of-QGesture) QGestureEvent(QGestureEvent) """ def accept(s...
ProfessorX/Config
.PyCharm30/system/python_stubs/-1247972723/PyQt4/QtGui/__init__/QGestureEvent.py
Python
gpl-2.0
2,497
# Opus/UrbanSim urban simulation software. # Copyright (C) 2005-2009 University of Washington # See opus_core/LICENSE from urbansim.configs.hlcm_estimation_config import HLCMEstimationConfig from psrc_parcel.configs.baseline_estimation import BaselineEstimation from opus_core.session_configuration import Sessio...
christianurich/VIBe2UrbanSim
3rdparty/opus/src/inprocess/bhylee/hlcm_parcel_estimation.py
Python
gpl-2.0
6,635
# -*- coding: utf-8 -*- #------------------------------------------------------------ # Movie Ultra 7K # Version 0.2 (09.01.2016) #------------------------------------------------------------ # License: GPL (http://www.gnu.org/licenses/gpl-3.0.html) # Gracias a la librería plugintools de Jesús (www.mimediacenter.info) ...
corvorepack/REPOIVAN
plugin.video.movie.ultra.7k/resources/tools/chollotv.py
Python
gpl-2.0
9,416
# -*- coding: utf-8 -*- ## ## This file is part of ES_lab. ## Copyright (C) 2014 RERO. ## ## ES_lab 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...
jma/es_lab
es_lab/__init__.py
Python
gpl-2.0
3,603
# -*- coding: utf-8 -*- # # Copyright © 2014-2019 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...
release-monitoring/anitya
anitya/tests/lib/backends/test_npmjs.py
Python
gpl-2.0
9,246
# GNU Enterprise Common Library - Schema support for MS-SQL # # Copyright 2000-2007 Free Software Foundation # # This file is part of GNU Enterprise. # # GNU Enterprise is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foun...
HarmonyEnterpriseSolutions/harmony-platform
src/gnue/common/datasources/drivers/sql/mssql/Behavior.py
Python
gpl-2.0
1,600
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2016 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
franciscod/python-telegram-bot
telegram/inlinequeryresultcachedvideo.py
Python
gpl-2.0
2,181
#!/usr/bin/env python # -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Copyright (C) 20...
robotpilot/crazyflie-clients-python
lib/cflib/drivers/cfusb.py
Python
gpl-2.0
5,737
# Copyright (c) 2012 Adam Stokes <adam.stokes@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; either version 2 of the License, or # (at your option) any later version. # This pro...
lmiccini/sos
sos/plugins/dpkg.py
Python
gpl-2.0
1,590
import unittest from PyFoam.Basics.TemplateFile import TemplateFile,TemplateFileOldFormat,PyratempPreprocessor from PyFoam.Error import FatalErrorPyFoamException from tempfile import mktemp from PyFoam.ThirdParty.six import PY3 import sys theSuite=unittest.TestSuite() template1="""$$ y = 3+x This should be $x+y$"...
Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder-other-scripting-PyFoam
unittests/Basics/test_TemplateFile.py
Python
gpl-2.0
7,289
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2006-2008 Lukáš Lalinský # Copyright (C) 2008 Hendrik van Antwerpen # Copyright (C) 2008-2009, 2019-2022 Philipp Wolfer # Copyright (C) 2011 Andrew Barnert # Copyright (C) 2012-2013 Michael Wiencek # Copyright (C) 2013 Wieland ...
metabrainz/picard
picard/ui/filebrowser.py
Python
gpl-2.0
9,720
# Opus/UrbanSim urban simulation software. # Copyright (C) 2010-2011 University of California, Berkeley, 2005-2009 University of Washington # See opus_core/LICENSE from numpy import array, int32, concatenate from opus_core.datasets.abstract_dataset import AbstractDataset from opus_core.datasets.dataset_pool im...
christianurich/VIBe2UrbanSim
3rdparty/opus/src/opus_core/datasets/multiple_year_dataset_view.py
Python
gpl-2.0
18,420
import argparse import imp import logging import os.path import sys from twisted.internet import reactor, protocol from twisted.protocols import basic from rose.common import config, message from . import game log = logging.getLogger('main') class Client(basic.LineReceiver): def connectionMade(self): ...
emesika/RaananaTiraProject
rose/client/main.py
Python
gpl-2.0
3,395
# Copyright(c) 2009, Gentoo Foundation # # Licensed under the GNU General Public License, v2 # # $Header: $ """Checks timestamps and MD5 sums for files owned by a given installed package""" from __future__ import print_function __docformat__ = 'epytext' # ======= # Imports # ======= import os import sys from funct...
bacher09/Gentoolkit
pym/gentoolkit/equery/check.py
Python
gpl-2.0
7,056
#!/usr/bin/env python # # Copyright (c) 2014 Apple Inc. All rights reserved. # Copyright (c) 2014 University of Washington. 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. Redistributions of ...
qtproject/qtwebkit
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py
Python
gpl-2.0
4,634
from virttest import storage from virttest import qemu_storage from virttest import data_dir from autotest.client.shared import error import re import logging import time @error.context_aware def run_live_snapshot_chain(test, params, env): """ live_snapshot chain test: Will test snapshot as following ste...
spiceqa/virt-test
qemu/tests/live_snapshot_chain.py
Python
gpl-2.0
6,291
import fauxfactory import pytest from cfme import test_requirements from cfme.base.credential import Credential from cfme.cloud.provider import CloudProvider from cfme.exceptions import ItemNotFound from cfme.infrastructure.provider import InfraProvider from cfme.infrastructure.provider.virtualcenter import VMwareProv...
nachandr/cfme_tests
cfme/tests/cloud_infra_common/test_vm_ownership.py
Python
gpl-2.0
10,161
# # James Laska <jlaska@redhat.com> # # Copyright 2005, 2006, 2007 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. This program is distributed in the hope that it # wi...
bcl/pykickstart
tests/commands/autostep.py
Python
gpl-2.0
2,273
# 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...
pmisik/buildbot
master/buildbot/test/unit/reporters/test_generators_utils.py
Python
gpl-2.0
13,510
""" CheckiOReferee is a base referee for checking you code. arguments: tests -- the dict contains tests in the specific structure. You can find an example in tests.py. cover_code -- is a wrapper for the user function and additional operations before give data in the user func...
CheckiO-Missions/checkio-task-fizz-buzz
verification/referee.py
Python
gpl-2.0
2,378
callback_classes = [ ['void', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'ns3::Ptr<ns3::Packet>', 'unsigned char', 'unsigned int', 'ns3::Ipv4Address', 'ns3::Ipv4Address', 'unsigned char', 'unsigned char', 'bool', 'ns3::...
pgarridounican/ns-3.20-NC
src/network-coding/bindings/callbacks_list.py
Python
gpl-2.0
2,905
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com> # Copyright: (c) 2014, Ahti Kitsik <ak@ahtik.com> # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolu...
jimi-c/ansible
lib/ansible/modules/files/lineinfile.py
Python
gpl-3.0
18,737
from grapetree import app import pytest import os #def test_bsa_asymetric(): #print os.getcwd() #app_test = app.test_client() #with open(os.path.join('examples','simulated_data.profile')) as f: #test_profile = f.read() #with open(os.path.join('examples','simulated_data.global.nwk')) as f: ...
zheminzhou/GrapeTree
tests/test_bsa.py
Python
gpl-3.0
1,304
""" JPEG picture parser. Information: - APP14 documents http://partners.adobe.com/public/developer/en/ps/sdk/5116.DCT_Filter.pdf http://java.sun.com/j2se/1.5.0/docs/api/javax/imageio/metadata/doc-files/jpeg_metadata.html#color - APP12: http://search.cpan.org/~exiftool/Image-ExifTool/lib/Image/ExifTool/TagNames....
SickGear/SickGear
lib/hachoir_py3/parser/image/jpeg.py
Python
gpl-3.0
26,067
# (C) British Crown Copyright 2012 - 2016, Met Office # # This file is part of cartopy. # # cartopy is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option)...
belteshassar/cartopy
lib/cartopy/tests/test_coding_standards.py
Python
gpl-3.0
9,853
# -*- encoding: utf-8 -*- # I Robot? - a dancing robot game for pyweek # # Copyright: 2008 Hugo Ruscitti # License: GPL 3 # Web: http://www.losersjuegos.com.ar import pyglet import common import motion class Level: """Representa una nivel del juego. Conoce al grupo de robots que baila...""" def __init_...
alcemirfernandes/irobotgame
lib/level.py
Python
gpl-3.0
3,108
#!/usr/bin/env python # Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U # # This file is part of FIGWAY software (a set of tools for FIWARE Orion ContextBroker and IDAS2.6). # # FIGWAY is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as #...
Geonovum/sospilot
src/fiware/client/python/UL20/SimulateCommand.py
Python
gpl-3.0
3,074
""" Copyright 2013 Steven Diamond Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
SteveDiamond/cvxpy
examples/extensions/sudoku_admm.py
Python
gpl-3.0
2,414
import shlex from tanner.utils import aiodocker_helper from tanner.utils import patterns class LfiEmulator: def __init__(self): self.helper = aiodocker_helper.AIODockerHelper() async def get_lfi_result(self, file_path): # Terminate the string with NULL byte if "\x00" in file_path: ...
afeena/tanner
tanner/emulators/lfi.py
Python
gpl-3.0
1,097
""" Copyright 2017 Oliver Smith This file is part of pmbootstrap. pmbootstrap 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. pmbootstrap ...
lawl/pmbootstrap
test/test_bootimg.py
Python
gpl-3.0
2,767
# Copyright (c) 2014 Christopher Felton # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser 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 dis...
cfelton/gizflo
gizflo/toolchain/_toolflow.py
Python
gpl-3.0
3,668
import PyOrgMode import time import unittest class TestClockElement(unittest.TestCase): def test_duration_format(self): """Durations are formatted identically to org-mode""" for hour in '0', '1', '5', '10', '12', '13', '19', '23': for minute in '00', '01', '29', '40', '59': ...
elationfoundation/PyOrgMode
build/lib/PyOrgMode/test_clock.py
Python
gpl-3.0
593
# -*- coding: utf-8 -*- ######################################################################### # # Copyright (C) 2018 OSGeo # # 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 ...
francbartoli/geonode
geonode/maps/management/commands/remove_broken_layers.py
Python
gpl-3.0
1,375
###################################################################### # Copyright (C) 2013 Jaakko Luttinen # # This file is licensed under Version 3.0 of the GNU General Public # License. See LICENSE for a text of the license. ###################################################################### ####################...
nipunreddevil/bayespy
bayespy/utils/tests/test_linalg.py
Python
gpl-3.0
6,989
#!/usr/bin/env python try: from pyGCMMA import GCMMA __all__ = ['GCMMA'] except: __all__ = [] #end
svn2github/pyopt
pyOpt/pyGCMMA/__init__.py
Python
gpl-3.0
112
../../../../../../share/pyshared/twisted/internet/iocpreactor/tcp.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/twisted/internet/iocpreactor/tcp.py
Python
gpl-3.0
68
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible 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) an...
alobbs/ansible
test/units/vars/test_variable_manager.py
Python
gpl-3.0
5,400
#!/usr/bin/env python # -*- coding: utf-8 -*- # # python-rrdtool, rrdtool bindings for Python. # Based on the rrdtool Python bindings for Python 2 from # Hye-Shik Chang <perky@fallin.lv>. # # Copyright 2012 Christian Jurk <commx@commx.ws> # # This program is free software; you can redistribute it and/or modify # ...
mce35/agocontrol
devices/rrdtool/RRDtool.py
Python
gpl-3.0
3,622
from openpiv import windef settings = windef.Settings() 'Data related settings' # Folder with the images to process settings.filepath_images = '../data/test1' # Folder for the outputs settings.save_path = '' # Root name of the output Folder for Result Files settings.save_folder_suffix = 'Test_1' # Format and Image ...
alexlib/openpiv-python
openpiv/tutorials/example_windef_run.py
Python
gpl-3.0
4,809
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of Ansible # # Ansible 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. #...
mszel42/Docker-Ansible-MHA-ProxySQL
damp/library/proxysql_manage_config.py
Python
gpl-3.0
8,618
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Conector para Google Video basado en flashvideodownloader.org # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ # ------------------------------------------------------------ import re from co...
neno1978/pelisalacarta
python/main-classic/servers/googlevideo.py
Python
gpl-3.0
2,080
# eliteReconBonusRadarStrength2 # # Used by: # Ship: Chameleon # Ship: Falcon # Ship: Rook type = "passive" def handler(fit, ship, context): fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM", "scanRadarStrengthBonus", ship.getModifiedItemAttr("eliteBonusRecon...
Ebag333/Pyfa
eos/effects/elitereconbonusradarstrength2.py
Python
gpl-3.0
384
#!/usr/bin/env python3 from argparse import ArgumentParser from bottle import abort, route, run, static_file import MySQLdb import calendar import datetime import dateutil.parser import json import logging import os import pathlib import sqlite3 import sys import threading import time APIVER = 0 BACKEND_URL = 'https:...
BunsenLabs/fluxbb-activity
fluxbbactivity/__init__.py
Python
gpl-3.0
6,198
# #START_LICENSE########################################################### # # # This file is part of the Environment for Tree Exploration program # (ETE). http://etetoolkit.org # # ETE is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the...
karrtikr/ete
ete3/clustering/stats.py
Python
gpl-3.0
159,124
from django.contrib.sitemaps import Sitemap from geonode.maps.models import Layer, Map class LayerSitemap(Sitemap): changefreq = "never" priority = 0.5 def items(self): return Layer.objects.all() def lastmod(self, obj): return obj.date class MapSitemap(Sitemap): changefreq = "nev...
cga-harvard/cga-worldmap
geonode/sitemap.py
Python
gpl-3.0
398
# # Vortex OpenSplice # # This software and documentation are Copyright 2006 to TO_YEAR ADLINK # Technology Limited, its affiliated companies and licensors. All rights # reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in ...
PrismTech/opensplice
src/api/dcps/python/test/TestSequence.py
Python
gpl-3.0
2,566
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2016-2018 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 ...
sergiusens/snapcraft
tests/integration/general/test_prime_filter.py
Python
gpl-3.0
1,931
#! /usr/bin/env python from __future__ import print_function from openturns import * TESTPREAMBLE() RandomGenerator.SetSeed(0) try: # Instanciate one distribution object distribution = NegativeBinomial(4.5, 0.7) print("Distribution ", repr(distribution)) print("Distribution ", distribution) # Is...
dubourg/openturns
python/test/t_NegativeBinomial_std.py
Python
gpl-3.0
2,540
__author__ = "Stefan de Konink" __date__ = "$Jun 11, 2011 3:46:27 PM$" """ Naam: bagextract.py Omschrijving: Universe starter voor de applicatie, console Auteurs: Stefan de Konink (initial), Just van den Broecke """ import argparse # apt-get install python-argparse import sys import os f...
opengeogroep/NLExtract
bag/src/bagextract.py
Python
gpl-3.0
8,349
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import re import os import shutil import tempfile import time import traceback from devicemanager import DeviceManager,...
kostaspl/SpiderMonkey38
testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py
Python
mpl-2.0
28,078
#!/usr/bin/python # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Runs the static rooting analysis """ from subprocess import Popen import subprocess import os ...
cstipkovic/spidermonkey-research
js/src/devtools/rootAnalysis/analyze.py
Python
mpl-2.0
10,455
#!/usr/bin/env python # ***** BEGIN LICENSE BLOCK ***** # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** import copy import os import pla...
lissyx/build-mozharness
mozharness/mozilla/testing/testbase.py
Python
mpl-2.0
34,334
# -*- coding: utf-8 -*- import interest import partner import company
levkar/odoo-addons
account_interests/__init__.py
Python
agpl-3.0
71
# This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. from decimal import Decimal import pytest from shuup.utils.numbers import parse_decimal_string @...
hrayr-artunyan/shuup
shuup_tests/utils/test_numbers.py
Python
agpl-3.0
745
"""Juju GUI charm utilities.""" __all__ = [ 'AGENT', 'APACHE', 'API_PORT', 'CURRENT_DIR', 'HAPROXY', 'IMPROV', 'JUJU_DIR', 'JUJU_GUI_DIR', 'JUJU_GUI_SITE', 'JUJU_PEM', 'WEB_PORT', 'bzr_checkout', 'chain', 'cmd_log', 'fetch_api', 'fetch_gui', 'find_mis...
Ubuntu-Solutions-Engineering/glance-simplestreams-sync-charm
hooks/charmhelpers/contrib/jujugui/utils.py
Python
agpl-3.0
20,533
# -*- coding: utf-8 -*- # Test dataset script # Author: Sébastien Combéfis # Date: December 23, 2012 # Problem: Question de Bilan Final : Mission 1 from lib.pythia import * import random class TestDataSetQ1(TestDataSet): def __init__(self): TestDataSet.__init__(self, 'q1', 5) def genTestData(self...
UCL-INGI/Informatique-1
old_pythia/18_java/test/gendataset.py
Python
agpl-3.0
406
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2019, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
numenta/htmresearch
htmresearch/frameworks/pytorch/modules/k_winners.py
Python
agpl-3.0
9,177
# © 2013 Therp BV # © 2014 ACSONE SA/NV # Copyright 2018 Quartile Limited # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "dbfilter_from_header", "summary": "Filter databases with HTTP headers", "version": "11.0.1.0.0", "author": "Therp BV,Odoo Community Association (OC...
bmya/server-tools
dbfilter_from_header/__manifest__.py
Python
agpl-3.0
618
""" Database models for the LTI provider feature. """ from django.db import models from django.dispatch import receiver from courseware.models import SCORE_CHANGED class LtiConsumer(models.Model): """ Database model representing an LTI consumer. This model stores the consumer specific settings, such as t...
antonve/s4-project-mooc
lms/djangoapps/lti_provider/models.py
Python
agpl-3.0
1,249
from django.template import RequestContext from django.shortcuts import render_to_response from django.contrib.auth import authenticate, login, logout from django.http import HttpResponseRedirect, HttpResponse from django.contrib.auth.decorators import login_required from datetime import datetime from hexwick.forms i...
dperconti/hexwick_python
hexwick/views.py
Python
agpl-3.0
3,890
############################################################################## # # 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 ...
uclouvain/OSIS-Louvain
education_group/tests/ddd/factories/domain/campus.py
Python
agpl-3.0
1,589
import os import pytest import responses from datetime import date from datetime import datetime from datetime import timedelta from urllib.parse import parse_qs from urllib.parse import urlparse from django.conf import settings from django.utils import timezone from backend.citeproc import CiteprocError from backe...
wetneb/dissemin
backend/tests/test_citeproc.py
Python
agpl-3.0
26,785
# lint-amnesty, pylint: disable=missing-module-docstring import logging from functools import partial from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import Http404, HttpResponseBadRequest from django.urls import reverse from django.utils.translation import ...
eduNEXT/edunext-platform
cms/djangoapps/contentstore/views/preview.py
Python
agpl-3.0
13,137
# -*- coding: utf-8 -*- import re import time from ..base.account import BaseAccount class FreakshareCom(BaseAccount): __name__ = "FreakshareCom" __type__ = "account" __version__ = "0.21" __status__ = "testing" __description__ = """Freakshare.com account plugin""" __license__ = "GPLv3" ...
vuolter/pyload
src/pyload/plugins/accounts/FreakshareCom.py
Python
agpl-3.0
1,452