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
""" This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup setup( app=['ComSkipper.py'], options=dict(py2app=dict( plist=dict( LSBackgroundOnly=True, ), )), )
ramesh130/etv-comskip
src/scripts/ComSkipper/setup.py
Python
gpl-2.0
263
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms.models.pluginmodel import CMSPlugin from django.utils.translation import gettext_lazy as _ from django.db import models from events.models import Event, EventCategory class EventsPluginModel(CMSPlugin): title = models.CharF...
gitsimon/tq_website
events/cms_plugins.py
Python
gpl-2.0
3,686
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2006 Donald N. Allingham # # 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 you...
pmghalvorsen/gramps_branch
gramps/gen/filters/rules/person/_hasnotematchingsubstringof.py
Python
gpl-2.0
1,747
import uuid from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.text import slugify from . import utils class BaseModel(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) created_at = models.DateTimeField(auto_now_add...
mochaoss/inspace
inspace/core/models.py
Python
gpl-3.0
2,617
""" Zip splitter. Status: can read most important headers Authors: Christophe Gisquet and Victor Stinner """ from hachoir_py3.parser import Parser from hachoir_py3.field import (FieldSet, ParserError, Bit, Bits, Enum, TimeDateMSDOS32, SubFile, ...
SickGear/SickGear
lib/hachoir_py3/parser/archive/zip.py
Python
gpl-3.0
18,896
from __future__ import absolute_import from navigation.api import register_top_menu from .links import link_tools_menu #tool_menu = register_top_menu('tools', link=link_tools_menu, position=-3)
commonwealth-of-puerto-rico/lean
paart/apps/project_tools/__init__.py
Python
gpl-3.0
197
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Implements ProcessPoolExecutor. The follow diagram and text describe the data-flow through the system: |======================= In-process =====================|== Out-of-process ==| +----------+ +----------...
Microvellum/Fluid-Designer
win64-vc/2.78/python/lib/concurrent/futures/process.py
Python
gpl-3.0
20,135
# moduleBonusTriageModule # # Used by: # Variations of module: Triage Module I (2 of 2) type = "active" runTime = "early" def handler(fit, src, context): # Remote effect bonuses (duration / amount / range / fallout) for skill, amtAttr, stack in ( ("Capital Remote Armor Repair Systems", "armorDamag...
Ebag333/Pyfa
eos/effects/modulebonustriagemodule.py
Python
gpl-3.0
4,218
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import difflib import re import string import subprocess import sys import tempfile knownpropsets = { "PSETID_PostRss" : "{00062041-0000-0000-C000-000000000046}", "PSETID_Sharing" : "{00062040-0000-0000-C000-000000000046}", "PS_...
Zentyal/openchange
script/makepropslist.py
Python
gpl-3.0
64,957
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2015 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 ...
larryhynes/qutebrowser
qutebrowser/test/keyinput/test_basekeyparser.py
Python
gpl-3.0
11,659
# -*- coding: utf-8 -*- # Copyright (C) 2009 PSchem Contributors (see CONTRIBUTORS for details) # This file is part of PSchem Database # PSchem 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, eithe...
PSchem/PSchem
Database/CellViews.py
Python
gpl-3.0
16,089
# Copyright 2016 Mycroft AI, Inc. # # This file is part of Mycroft Core. # # Mycroft Core 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...
JarbasAI/jarbas-core
mycroft/jarbas-skills/skill_stop/__init__.py
Python
gpl-3.0
1,362
"This module provides functionality for compilation of strings as dolfin SubDomains." # Copyright (C) 2008-2008 Martin Sandve Alnes # # This file is part of DOLFIN. # # DOLFIN 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 Fre...
maciekswat/dolfin_1.3.0
site-packages/dolfin/compilemodules/subdomains.py
Python
gpl-3.0
7,123
import oauth2 as oauth from clatoolkit.models import UnitOffering from common.util import Utility from django.http import HttpResponse, HttpResponseServerError from django.http import HttpResponseRedirect from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.c...
kojiagile/CLAtoolkit
clatoolkit_project/xapi/views.py
Python
gpl-3.0
6,921
'''apport package hook for pxljr (c) 2009 Canonical Ltd. Author: Brian Murray <brian@ubuntu.com> ''' from apport.hookutils import * def add_info(report): attach_hardware(report) attach_printing(report)
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/apport/package-hooks/source_pxljr.py
Python
gpl-3.0
213
# -*- coding: utf-8 -*- # Copyright 2011-2012 Antoine Bertin <diaoulael@gmail.com> # # This file is part of subliminal. # # subliminal 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...
mozvip/Sick-Beard
lib/subliminal/services/subtitulos.py
Python
gpl-3.0
4,934
# coding=utf-8 """ InaSAFE Disaster risk assessment tool developed by AusAid - **Test for Building Exposure Report Mixin** Contact : ole.moller.nielsen@gmail.com .. note:: 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 ...
Jannes123/inasafe
safe/impact_reports/test/test_building_exposure_report_mixin.py
Python
gpl-3.0
13,175
# coding=utf-8 # Author: Dustyn Gibson <miigotu@gmail.com> # # URL: https://sickchill.github.io # # This file is part of SickChill. # # SickChill 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 ...
eleonrk/SickRage
sickbeard/providers/speedcd.py
Python
gpl-3.0
7,217
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Marius Gedminas <marius@pov.lt> # (c) 2016, Matthew Gamble <git@matthewgamble.net> # # 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...
kbrebanov/ansible-modules-extras
source_control/git_config.py
Python
gpl-3.0
7,487
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2015-2017, 2020 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 distribut...
chipaca/snapcraft
snapcraft/__init__.py
Python
gpl-3.0
14,331
# (c) 2013, Jan-Piet Mens <jpmens(at)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) any later ver...
JensRantil/ansible
lib/ansible/runner/lookup_plugins/etcd.py
Python
gpl-3.0
2,083
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
brianmay/karaage
karaage/plugins/kgsoftware/tables.py
Python
gpl-3.0
2,366
# Tests invocation of the interpreter with various command line arguments # All tests are executed with environment variables ignored # See test_cmd_line_script.py for testing of script execution import os import test.support, unittest import os import sys import subprocess def _spawn_python(*args): cmd_line = [s...
mancoast/CPythonPyc_test
fail/314_test_cmd_line.py
Python
gpl-3.0
7,293
# tempfile.py unit tests. import tempfile import errno import io import os import signal import sys import re import warnings import contextlib import weakref import unittest from test import support, script_helper if hasattr(os, 'stat'): import stat has_stat = 1 else: has_stat = 0 has_textmode = (tempf...
mancoast/CPythonPyc_test
fail/335_test_tempfile.py
Python
gpl-3.0
40,804
# Authors: # Rob Crittenden <rcritten@redhat.com> # Pavel Zuna <pzuna@redhat.com> # # Copyright (C) 2008 Red Hat # see file 'COPYING' for use and warranty information # # 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 # th...
redhatrises/freeipa
ipatests/test_xmlrpc/test_automount_plugin.py
Python
gpl-3.0
21,461
from pypom import Region from selenium.webdriver.common.by import By from pages.base import BasePage class DashboardPage(BasePage): URL_TEMPLATE = '/{locale}/dashboards/revisions' _revision_filter_form_locator = (By.ID, 'revision-filter') _revision_page_input = (By.ID, 'revision-page') _notificatio...
yfdyh000/kuma
tests/pages/dashboard.py
Python
mpl-2.0
5,047
from bedrock.redirects.util import (redirect, is_firefox_redirector, platform_redirector, no_redirect) def firefox_mobile_faq(request, *args, **kwargs): qs = request.META.get('QUERY_STRING', '') if 'os=firefox-os' in qs: return 'https://support.mozilla.org/products/...
CSCI-462-01-2017/bedrock
bedrock/firefox/redirects.py
Python
mpl-2.0
26,579
import base64 import hashlib from six.moves.http_client import HTTPConnection import io import json import os import threading import traceback import socket from six.moves.urllib.parse import urljoin, urlsplit, urlunsplit from abc import ABCMeta, abstractmethod from ..testrunner import Stop from .protocol import Prot...
larsbergstrom/servo
tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/base.py
Python
mpl-2.0
23,868
import datetime import hashlib import logging import os from itertools import islice from smtplib import SMTPServerDisconnected from urllib.parse import parse_qsl, ParseResult, urlparse, urlsplit, urlunsplit import requests from babel import dates, localedata from celery import chain, chord from django.conf import set...
Elchi3/kuma
kuma/core/utils.py
Python
mpl-2.0
19,446
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import cstr, flt, cint from frappe import _ import frappe.defaults from erpnext.stock.utils import update_bin from...
gangadhar-kadam/hrerp
erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
Python
agpl-3.0
12,110
# # Copyright (c) 2006, 2007 Canonical # # Written by Gustavo Niemeyer <gustavo@niemeyer.net> # # This file is part of Storm Object Relational Mapper. # # Storm 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 Found...
nwokeo/supysonic
venv/lib/python2.7/site-packages/storm/schema/schema.py
Python
agpl-3.0
4,591
""" This module contains all signals. """ from django.dispatch import Signal # Signal that fires when a user is graded COURSE_GRADE_CHANGED = Signal(providing_args=["user", "course_grade", "course_key", "deadline"]) # Signal that fires when a user is awarded a certificate in a course (in the certificates django app)...
miptliot/edx-platform
openedx/core/djangoapps/signals/signals.py
Python
agpl-3.0
791
#file for building up and organizing the output from collections import defaultdict from datetime import timedelta, datetime from FileQuery import GetTimes class Builder: """ class for building up the data to be displayed by the display class """ def __init__(self): self.GetTimes = GetTimes() ...
adamRogerson/TerminalHours
newHours/old/old-Builder.py
Python
agpl-3.0
2,116
""" This module provides date summary blocks for the Course Info page. Each block gives information about a particular course-run-specific date which will be displayed to the user. """ import datetime import crum from babel.dates import format_timedelta from django.conf import settings from django.urls import revers...
arbrandes/edx-platform
lms/djangoapps/courseware/date_summary.py
Python
agpl-3.0
25,568
""" Views file for the Darklang Django App """ from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import redirect from django.template.loader import render_to_string from django.utils.decorators import method_decorator from django.utils.translation import L...
eduNEXT/edunext-platform
openedx/core/djangoapps/dark_lang/views.py
Python
agpl-3.0
4,169
#!/usr/bin/python2.4 # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://w...
marcellodesales/svnedge-console
ext/solaris/pkg-toolkit/pkg/vendor-packages/pkg/__init__.py
Python
agpl-3.0
947
from django.contrib import messages from django.contrib.auth import logout from django.shortcuts import render_to_response, render from django.http import HttpResponseRedirect from django.template import RequestContext from django.forms import ValidationError from django.core.urlresolvers import reverse from allauth.u...
City-of-Bloomington/green-rental
allauth/socialaccount/helpers.py
Python
agpl-3.0
7,201
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting model 'MailFeedRuleLine' db.delete_table(u'core_mailfeedruleli...
WillianPaiva/1flow
oneflow/core/migrations/0012_auto__del_mailfeedruleline__add_field_mailfeedrule_header_field__add_f.py
Python
agpl-3.0
12,382
# 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 model 'AlertTypes' db.delete_table('frontend_alerttypes') # Deleting model 'Alerts' ...
lkundrak/scraperwiki
web/frontend/migrations/0021_remove_old_alerts_models.py
Python
agpl-3.0
9,945
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe import json from frappe import _ from frappe.model.mapper import get_mapped_doc from frappe.utils import flt, cstr @frappe.whitelis...
njmube/erpnext
erpnext/schools/api.py
Python
agpl-3.0
8,908
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('predict', '0008_auto_20170214_0945'), ] operations = [ migrations.AlterField( m...
IQSS/gentb-site
apps/predict/migrations/0009_auto_20170305_1442.py
Python
agpl-3.0
1,055
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0015_merge'), ] operations = [ migrations.AlterField( model_name='areasoltura', name='distan...
igor-rodrigues01/casv
casv/core/migrations/0016_auto_20151201_1703.py
Python
agpl-3.0
659
############################################################################# # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-647...
tmerrick1/spack
var/spack/repos/builtin/packages/netlib-lapack/package.py
Python
lgpl-2.1
7,557
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class G4ndl(Package): """Geant4 Neutron data files with thermal cross sections """ homepage...
iulian787/spack
var/spack/repos/builtin/packages/g4ndl/package.py
Python
lgpl-2.1
1,363
import sys from services.spawn import MobileTemplate from services.spawn import WeaponTemplate from resources.datatables import WeaponType from resources.datatables import Difficulty from resources.datatables import Options from resources.datatables import FactionStatus from java.util import Vector def addTemplate(co...
ProjectSWGCore/NGECore2
scripts/mobiles/generic/faction/imperial/elite_sand_trooper_commando_87.py
Python
lgpl-3.0
1,453
# Launch it with py ../robotViewerLauncher.py +compensater.py +appli.py import sys import numpy as np from numpy import * from dynamic_graph import plug import dynamic_graph.signal_base as dgsb from dynamic_graph.sot.core import Stack_of_vector, MatrixHomoToPoseUTheta, OpPointModifier, Multiply_matrix_vector, MatrixH...
amifsud/sot-state-observation
src/dynamic_graph/sot/application/state_observation/initializations/hrp2_model_base_flex_estimator_imu_force_encoders.py
Python
lgpl-3.0
15,688
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """ Unit tests for the :class:`iris._data_manager.DataManager`. """ # Import iris.tests first so that some things can be init...
pp-mo/iris
lib/iris/tests/unit/data_manager/test_DataManager.py
Python
lgpl-3.0
21,589
""" WSGI config for simpleform project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
dynamsoftsamples/dwt-django-file-upload
form-upload/simpleform/simpleform/wsgi.py
Python
apache-2.0
397
import gsmlib.GSMC0 as C0 import matplotlib.pyplot as plt import numpy as np import gsmlib.splibs as sp import gsmlib.Burst as Burst import gsmlib.burstfile as burstfile from ctypes import * import constant import gsmlib.clib as clib import gsmlib.SB as SB import gsmlib.NB as NB import gsmlib.convCode as convCode impo...
ruishihan/R7-with-notes
src/host/python/GSMClibTest.py
Python
apache-2.0
5,341
#!/usr/local/bin/python ################################################### #ArXivFetcher.py #Inputs: #1)seeds for calls (can be multiples, contained in one string) #2) a uuid #3) number of results #Outputs: #1) #Attributes to add: #1)accept multiple seed terms # ####### import os, sys, codecs, urllib.request, ur...
fredzannarbor/pagekicker-community
scripts_python_3/bin/ArXivFetcher.py
Python
apache-2.0
1,579
# Copyright 2013 OpenStack Foundation # # 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 ...
mahak/cinder
cinder/api/contrib/scheduler_hints.py
Python
apache-2.0
1,772
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
TakayukiSakai/tensorflow
tensorflow/contrib/quantization/tools/quantize_graph.py
Python
apache-2.0
46,171
from datetime import datetime, date from time import mktime, gmtime def jp_author_uri_old(forename, surname): """Construct the URI of an author so that it will reduce correctly most of the time.""" first_word = forename.replace('.','') second_word = surname.replace('.','') if len(second_word) < 3: base = seco...
usc-isi-i2/dig-alignment
versions/2.0/karma/python/jpl-pdf.py
Python
apache-2.0
3,063
import pytest from share.change import ChangeGraph from share.models import ChangeSet from share.disambiguation import GraphDisambiguator from tests.share.normalize.factories import * class TestPruneChangeGraph: @pytest.mark.parametrize('input', [ [Preprint(0, identifiers=[WorkIdentifier(1)])] ]) ...
zamattiac/SHARE
tests/share/disambiguation/test_prune.py
Python
apache-2.0
2,629
import unittest import sys import os sys.path.append('roomfinder_spark/roomfinder_spark') import spark_bot class FlaskTestCase(unittest.TestCase): def setUp(self): sys.stderr.write('Setup testing.\n') #web_server.data_server = os.getenv("roomfinder_data_server") #web_server.book_url = os.ge...
GuillaumeMorini/roomfinder
testing.py
Python
apache-2.0
1,440
#!/usr/bin/python import sys import os if len(sys.argv) >= 4 : ref_gpd_filename = sys.argv[1] tag_gpd_filename = sys.argv[2] output_filename_suffix = sys.argv[3] else: print("usage:ref_gpd_filename tag_gpd_filename output_filename_suffix") print("or ./") sys.exit(1) def GetPathAndName(pathfil...
jason-weirather/IDP
bin/consective_junlk_filter.py
Python
apache-2.0
3,515
#!/usr/bin/env vpython # Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. from __future__ import print_function import json import sys from google.protobuf import json_format as jsonpb import te...
luci/recipes-py
unittests/autoroll_test.py
Python
apache-2.0
22,416
from io import BytesIO from threading import Lock import contextlib import itertools import os.path import pickle import shutil import tempfile import unittest import sys import numpy as np import pandas as pd import xray from xray import Dataset, open_dataset, open_mfdataset, backends, save_mfdataset from xray.backe...
markelg/xray
xray/test/test_backends.py
Python
apache-2.0
36,295
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
googleads/google-ads-python
google/ads/googleads/v9/services/services/asset_set_asset_service/__init__.py
Python
apache-2.0
690
__ssl = __import__('ssl') from eventlet.patcher import slurp_properties slurp_properties(__ssl, globals(), srckeys=dir(__ssl)) import sys import errno time = __import__('time') from eventlet.support import get_errno from eventlet.hubs import trampoline from eventlet.greenio import set_nonblocking, GreenSocket, SOCKE...
ioram7/keystone-federado-pgid2013
build/eventlet/eventlet/green/ssl.py
Python
apache-2.0
12,519
import nose.tools as nt import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn import canopy fX = theano.config.floatX def test_output_nanguard(): def output_nanguard_fn(a): class CustomNode(treeano.NodeImpl): def compute_output(self, network, ...
diogo149/treeano
canopy/handlers/tests/debug_test.py
Python
apache-2.0
5,452
# # Copyright 2018 Microsoft Corporation # # 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 ...
hglkrijger/WALinuxAgent
azurelinuxagent/common/osutil/arch.py
Python
apache-2.0
1,959
# -*- coding: utf-8 -*- import unittest from copy import deepcopy from openprocurement.api.tests.base import snitch from openprocurement.tender.competitivedialogue.tests.base import ( BaseCompetitiveDialogEUStage2ContentWebTest, test_bids, test_lots, author ) from openprocurement.tender.openeu.tests.qua...
openprocurement/openprocurement.tender.competitivedialogue
openprocurement/tender/competitivedialogue/tests/stage2/qualification.py
Python
apache-2.0
14,465
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Cloudscaling, Inc. # Author: Matthew Hooker <matt@cloudscaling.com> # All Rights Reserved. # # 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...
sacharya/nova
nova/api/validator.py
Python
apache-2.0
3,787
# coding: utf-8 """ OpenAPI spec version: Generated by: https://github.com/swagger-api/swagger-codegen.git 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 ...
detiber/lib_openshift
lib_openshift/models/v1_container.py
Python
apache-2.0
22,330
# -*- coding: utf-8 -*- import random, sys, copy, os, pygame from pygame.locals import * FPS = 30 # frames per second to update the screen WINWIDTH = 800 # width of the program's window, in pixels WINHEIGHT = 600 # height in pixels HALF_WINWIDTH = int(WINWIDTH / 2) HALF_WINHEIGHT = int(WINHEIGHT / 2) # The total width...
Eacaen/Eacaen.github.io
assets/files/Pygame_book/my_starpusherlevels_test.py
Python
apache-2.0
8,133
""" InfluxDB query building. """ from abc import ABCMeta, abstractmethod from logging import getLogger from six import add_metaclass DEFAULT_FIELDS = [ "time", "value", ] def maybe_quote(value): """ Quote a value for InfluxDB if necessary. """ if value[0] == "'" and value[-1] == "'": ...
locationlabs/influxdb-nagios-plugin
influxdbnagiosplugin/query.py
Python
apache-2.0
3,019
# !/usr/bin/python # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Licens...
DadanielZ/incubator-eagle
eagle-external/hadoop_jmx_collector/hadoop_jmx_kafka.py
Python
apache-2.0
4,721
# -*- coding: utf-8 -*- # Copyright (C) 2012 Yahoo! Inc. All Rights Reserved. # Copyright (C) 2013 Rackspace Hosting All Rights Reserved. # # 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 ...
junneyang/taskflow
taskflow/persistence/backends/impl_memory.py
Python
apache-2.0
13,648
import re from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request, HtmlResponse from scrapy.utils.response import get_base_url from scrapy.utils.url import urljoin_rfc from product_spiders.utils import extract_price from product_spiders.items import Product, ...
0--key/lib
portfolio/Python/scrapy/tigerchef/acitydiscount.py
Python
apache-2.0
4,043
# -*- coding: utf-8 -*- """ jinja2htmlcompress ~~~~~~~~~~~~~~~~~~ A Jinja2 extension that eliminates useless whitespace at template compilation time without extra overhead. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import re from jinja2.ext import...
mgp/sharebears
sharebears/jinja2htmlcompress.py
Python
apache-2.0
5,227
#!/usr/bin/env python # coding: utf8 from __future__ import print_function from collections import defaultdict from datetime import datetime import argparse import base64 import eviltransform import json import logging import os import pickle import time import urllib2 # Initialize logging. logging.basicConfig(level=...
bykoianko/omim
tools/python/booking_hotels.py
Python
apache-2.0
9,528
from common import delete_container, docker_client, event_test def test_inspect_by_name(agent): delete_container('/inspect_test') client = docker_client() c = client.create_container('ibuildthecloud/helloworld', name='inspect_test') inspect = docker_client().inspect_co...
StrongMonkey/agent
tests/tests/test_docker_inspect.py
Python
apache-2.0
1,803
import json import os import uuid from socket import socket, AF_INET, SOCK_STREAM from mating.logging import l from mating.network import DEFAULT_PACKET_SIZE, TCP_IP, TCP_PORT MATING_CMD = ('./RobotCrossover parent/{}.txt parent/{}.txt ' 'confs/evolConf-full.txt -/tmp/{}.genome.txt') def run_mating_s...
portaloffreedom/robot-baby
Mating/mating/server/server.py
Python
apache-2.0
1,524
# Copyright (c) 2015 The Johns Hopkins University/Applied Physics Laboratory # All Rights Reserved. # # 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/LICEN...
viktorTarasov/PyKMIP
kmip/pie/exceptions.py
Python
apache-2.0
1,703
import bs4 import requests def select_all_links_from_url(url): """ :param url: a given address :return: """ return select_all_tags_from_url(url, 'a') def select_all_tags_from_url(url, tag): """ :param url: a given address :param tag: a tag to select :return: """ soup = bo...
autodrive/utils3
utils3/url_utils.py
Python
apache-2.0
705
#!/usr/bin/env python from __future__ import absolute_import, print_function import logging from datetime import datetime, timedelta from changes.config import db from changes.db.utils import try_create from changes.lib.flaky_tests import get_flaky_tests from changes.models import FlakyTestStat, Project, TestCase i...
wfxiang08/changes
changes/jobs/flaky_tests.py
Python
apache-2.0
2,351
import cherrypy # TODO: If we add get requests to this, we should add a dictionary lookup for which method to service. See: Datawake scraper from datawake.util.exceptions import datawakeexception def is_in_session(callback): def has_session(**kwargs): if 'user' in cherrypy.session: return c...
Sotera/datawake-prefetch
server/datawake/util/session/helper.py
Python
apache-2.0
1,140
# -*- coding: utf-8 -*- """A resolver for Windows paths to file system specific formats.""" import re from dfvfs.lib import errors from dfvfs.path import factory as path_spec_factory class WindowsPathResolver(object): """Resolver object for Windows paths.""" _PATH_SEPARATOR = u'\\' _PATH_EXPANSION_VARIABLE =...
manashmndl/dfvfs
dfvfs/helpers/windows_path_resolver.py
Python
apache-2.0
9,210
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
Bulochkin/tensorflow_pack
tensorflow/python/ops/array_ops.py
Python
apache-2.0
80,311
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
allenlavoie/tensorflow
tensorflow/contrib/seq2seq/python/ops/decoder.py
Python
apache-2.0
12,173
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Cisco Systems # All Rights Reserved. # # 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/l...
emonty/python-quantumclient
quantum/client/tests/unit/test_clientlib.py
Python
apache-2.0
22,105
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Find lines in files that should be faithful copies, and check that they are. Inside a comment-marked section, any chunk of indented lines should be faithfully c...
hugovk/coveragepy
doc/check_copied_from.py
Python
apache-2.0
3,400
# -*- coding: utf-8 -*- ''' integration.cli_test ~~~~~~~~~~~~~~~~~~~~ CLI related unit testing :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` ''' # Import Python libs from __future__ import absolute_import, print_function # Import salt testing libs from salttesting.unit import skipIf from ...
stephane-martin/salt-debian-packaging
salt-2016.3.3/tests/integration/shell/cloud.py
Python
apache-2.0
3,544
# =============================================================================== # Copyright 2014 Jake Ross # # 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...
USGSDenverPychron/pychron
pychron/core/hierarchy.py
Python
apache-2.0
3,182
# Copyright 2013 OpenStack Foundation # All Rights Reserved. # # 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 requ...
MaximNevrov/neutron
neutron/tests/api/test_security_groups_negative.py
Python
apache-2.0
3,379
# Copyright (c) 2014 Johns Hopkins University Applied Physics Laboratory # # 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 ...
cneill/barbican
barbican/tests/plugin/interface/test_secret_store.py
Python
apache-2.0
8,971
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013 Contributor # # 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...
jrha/aquilon
lib/python2.6/aquilon/worker/formats/resourcegroup.py
Python
apache-2.0
2,143
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
annarev/tensorflow
tensorflow/python/keras/layers/preprocessing/category_encoding_test.py
Python
apache-2.0
15,282
#!/usr/bin/env python # # revert_tests.py: testing 'svn revert'. # # Subversion is a tool for revision control. # See http://subversion.apache.org for more information. # # ==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or mo...
centic9/subversion-ppa
subversion/tests/cmdline/revert_tests.py
Python
apache-2.0
64,202
# Copyright (c) 2010 Citrix Systems, Inc. # # 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 applicab...
cloudbase/nova
nova/tests/unit/virt/xenapi/test_xenapi.py
Python
apache-2.0
177,912
#!/usr/bin/env python # -*- coding: utf-8 -*- # __BEGIN_LICENSE__ # Copyright (c) 2009-2013, United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The NGT platform is licensed under the Apache License, Version 2.0 (the # "Lic...
oleg-alexandrov/StereoPipeline
conda/update_versions.py
Python
apache-2.0
3,360
import unittest from streamlink.plugins.dogus import Dogus class TestPluginDogus(unittest.TestCase): def test_can_handle_url(self): should_match = [ 'http://www.ntvspor.net/canli-yayin', 'http://eurostartv.com.tr/canli-izle', ] for url in should_match: ...
back-to/streamlink
tests/plugins/test_dogus.py
Python
bsd-2-clause
586
__author__ = 'zhengwang' import numpy as np import cv2 import socket class VideoStreamingTest(object): def __init__(self): self.server_socket = socket.socket() self.server_socket.bind(('192.168.1.100', 8000)) self.server_socket.listen(0) self.connection, self.client_address = sel...
Quadrifrons/AutoRCCar
test/stream_server_test.py
Python
bsd-2-clause
1,474
from __future__ import absolute_import, division, print_function import numpy as np from glue.external.echo import (CallbackProperty, SelectionCallbackProperty, delay_callback, ListCallbackProperty) from glue.core.state_objects import StateAttributeLimitsHelper from glue.viewers.common...
astrofrog/glue-vispy-viewers
glue_vispy_viewers/common/viewer_state.py
Python
bsd-2-clause
4,667
from saml2test.check.ec_compare import Result from saml2test.check.ec_compare import EntityCategoryTestResult from saml2test.check.ec_compare import verify_rs_compliance from saml2test.check.ec_compare import verify_coco_compliance from saml2.entity_category import refeds from saml2.entity_category import edugain __au...
identinetics/saml2test2
test/test_ec_compare.py
Python
bsd-2-clause
2,785
import contextlib import imp import os import shutil import subprocess import sys import tempfile from unittest import skip from ctypes import * import numpy as np import llvmlite.binding as ll from numba.core import utils from numba.pycc import main from numba.pycc.decorators import clear_export_registry from numba...
stonebig/numba
numba/tests/test_pycc.py
Python
bsd-2-clause
15,763
# -*- coding: utf-8 -*- """ ============================================================================== MWNT structure class (:mod:`sknano.structures._mwnt`) ============================================================================== .. currentmodule:: sknano.structures._mwnt """ from __future__ import absolute...
androomerrill/scikit-nano
sknano/structures/_mwnt.py
Python
bsd-2-clause
12,635
# # This file is part of pyasn1-modules software. # # Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # import sys import unittest from pyasn1.codec.der import decoder as der_decoder from pyasn1.codec.der import encoder as der_encoder from pyasn1_modules im...
etingof/pyasn1-modules
tests/test_rfc5208.py
Python
bsd-2-clause
2,549
#!/usr/bin/env python import sys from os.path import dirname, abspath from django.conf import settings if not settings.configured: settings.configure( DATABASE_ENGINE='sqlite3', INSTALLED_APPS=[ 'django.contrib.admin', 'django.contrib.sessions', 'django.contrib.contenttypes', ...
yvess/django-linkcheck
runtests.py
Python
bsd-3-clause
788