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 django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.conf import settings from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'isucdc2.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/...
ISEAGE-ISU/cdc2-2015-www
isucdc2/urls.py
Python
mit
469
"""Init for `cltk.tokenize`.""" from .processes import *
kylepjohnson/cltk
src/cltk/stem/__init__.py
Python
mit
61
# -*- coding: utf-8 -*- # ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # Angelos Tzotsos <tzotsos@gmail.com> # # Copyright (c) 2015 Tom Kralidis # Copyright (c) 2015 Angelos Tzotsos # # Permission is hereby granted, free of charge, to any p...
tomkralidis/pycsw
pycsw/ogc/fes/fes2.py
Python
mit
19,080
# 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. import os from tests import TestCase, mkstemp from .helper import temp_...
ptitjes/quodlibet
tests/test_util_config.py
Python
gpl-2.0
11,883
# -*- coding: UTF-8 -*- # CCcam Info by AliAbdul from base64 import encodestring from os import listdir, remove, rename, system, path from enigma import eListboxPythonMultiContent, eTimer, gFont, loadPNG, RT_HALIGN_RIGHT, getDesktop from Components.ActionMap import ActionMap, NumberActionMap from Components.config im...
kingvuplus/PKT-gui2
lib/python/Screens/CCcamInfo.py
Python
gpl-2.0
51,455
#!/usr/bin/python # -*- coding: utf-8 -*- """ Set/get passwords for MSMTP or MPOP in Gnome Keyring Copyright (C) 2009 Gaizka Villate 2010 Emmanuel Bouthenot Original author: Gaizka Villate <gaizkav@gmail.com> Other author(s): Emmanuel Bouthenot <kolter@openics.org> URL: http://github.com/gaizka/misc-s...
tpn/msmtp
scripts/msmtp-gnome-tool/msmtp-gnome-tool.py
Python
gpl-3.0
6,270
# (c) 2016 Red Hat Inc. # (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 (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ --- author: Ansible Networking Team connection: netconf short_desc...
onitake/ansible
lib/ansible/plugins/connection/netconf.py
Python
gpl-3.0
11,419
############################################################################ # Copyright (c) 2011-2014 Saint-Petersburg Academic University # All Rights Reserved # See file LICENSE for details. ############################################################################ """ Fast cryptographic hash of Python objects, w...
fw1121/Pandoras-Toolbox-for-Bioinformatics
src/SPAdes/ext/src/python_libs/joblib2/hashing.py
Python
gpl-3.0
6,526
# Copyright 2015 Internap. # # 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, so...
internap/netman
netman/core/objects/backward_compatible_switch_operations.py
Python
apache-2.0
3,375
# -*- coding: utf-8 -*- # # pyspark documentation build configuration file, created by # sphinx-quickstart on Thu Aug 28 15:17:47 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
chenc10/Spark-PAF
python/docs/conf.py
Python
apache-2.0
10,462
# vim: tabstop=4 shiftwidth=4 softtabstop=4 from django.conf.urls.defaults import * from django.conf import settings INSTANCES = r'^(?P<tenant_id>[^/]+)/instances/(?P<instance_id>[^/]+)/%s$' IMAGES = r'^(?P<tenant_id>[^/]+)/images/(?P<image_id>[^/]+)/%s$' KEYPAIRS = r'^(?P<tenant_id>[^/]+)/keypairs/%s$' urlpatterns ...
termie/openstack-dashboard
django-openstack/src/django_openstack/dash/urls.py
Python
apache-2.0
1,070
from django.core.checks.compatibility.django_1_10 import ( check_duplicate_middleware_settings, ) from django.test import SimpleTestCase from django.test.utils import override_settings class CheckDuplicateMiddlwareSettingsTest(SimpleTestCase): @override_settings(MIDDLEWARE=[], MIDDLEWARE_CLASSES=['django.mid...
kawamon/hue
desktop/core/ext-py/Django-1.11.29/tests/check_framework/tests_1_10_compatibility.py
Python
apache-2.0
688
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from tapi_server.models.base_model_ import Model from tapi_server.models.tapi_oam_deleteoamservice_input import TapiOamDeleteoamserviceInput # noqa: F401,E501 from tap...
OpenNetworkingFoundation/ONFOpenTransport
RI/flask_server/tapi_server/models/inline_object10.py
Python
apache-2.0
1,738
import pytest import pytz import numpy as np from datetime import timedelta import pandas as pd from pandas import offsets import pandas.util.testing as tm from pandas._libs import tslib, lib from pandas._libs.tslib import OutOfBoundsDatetime from pandas import (DatetimeIndex, Index, Timestamp, datetime, date_range, ...
NixaSoftware/CVis
venv/lib/python2.7/site-packages/pandas/tests/indexes/datetimes/test_construction.py
Python
apache-2.0
25,835
# 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 # "License"); you may not u...
apache/incubator-airflow
airflow/api_connexion/schemas/provider_schema.py
Python
apache-2.0
1,452
"""The tests for the generic_thermostat.""" import asyncio import datetime import pytz import unittest from unittest import mock import homeassistant.core as ha from homeassistant.core import callback from homeassistant.setup import setup_component, async_setup_component from homeassistant.const import ( ATTR_UNIT...
MungoRae/home-assistant
tests/components/climate/test_generic_thermostat.py
Python
apache-2.0
30,816
import pytest, copy from .common import * # NOQA RANCHER_VSPHERE_USERNAME = os.environ.get("RANCHER_VSPHERE_USERNAME", "") RANCHER_VSPHERE_PASSWORD = os.environ.get("RANCHER_VSPHERE_PASSWORD", "") RANCHER_VSPHERE_VCENTER = os.environ.get("RANCHER_VSPHERE_VCENTER", "") RANCHER_VSPHERE_VCENTER_PORT = \ os.environ.g...
cjellick/rancher
tests/validation/tests/v3_api/test_vmwarevsphere_driver.py
Python
apache-2.0
7,582
# Copyright 2014 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 requi...
devendermishrajio/nova
nova/network/base_api.py
Python
apache-2.0
14,354
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import pytest from p...
jtrobec/pants
tests/python/pants_test/bin/test_goal_runner.py
Python
apache-2.0
756
# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # # 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 re...
lewixliu/git-repo
subcmds/init.py
Python
apache-2.0
20,047
# (c) Copyright 2015 Hewlett Packard Enterprise Development Company LP # # 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...
coreycb/horizon
openstack_dashboard/enabled/_9020_resource_browser.py
Python
apache-2.0
799
# 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...
ppwwyyxx/tensorflow
tensorflow/python/kernel_tests/bias_op_base.py
Python
apache-2.0
11,357
#!/usr/bin/python # -*- coding: utf-8 -*- # ===--- compare_perf_tests.py -------------------------------------------===// # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library...
IngmarStein/swift
benchmark/scripts/compare_perf_tests.py
Python
apache-2.0
13,004
''' Provide a base class for all Bokeh Server Protocol message types. Boker messages are comprised of a sequence of JSON fragments. Specified as Python JSON-like data, messages have the general form: .. code-block:: python [ # these are required b'{header}', # serialized header dict ...
Karel-van-de-Plassche/bokeh
bokeh/protocol/message.py
Python
bsd-3-clause
8,782
# Generated by Django 3.2.6 on 2021-08-23 12:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ratings', '0003_auto_20210813_0941'), ] operations = [ migrations.AlterField( model_name='rating', name='ip_address'...
wagnerand/addons-server
src/olympia/ratings/migrations/0004_auto_20210823_1255.py
Python
bsd-3-clause
573
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2004-2008,2012 Zuza Software Foundation # # This file is part of translate. # # translate 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 vers...
staranjeet/fjord
vendor/packages/translate-toolkit/translate/storage/versioncontrol/darcs.py
Python
bsd-3-clause
4,465
# # Author: Henrique Pereira Coutada Miranda # Example script to plot the weigth of the atomic species in the bandstructure # from qepy import * import sys import argparse import matplotlib.pyplot as plt folder = 'bands' npoints = 20 p = Path([ [[0.0, 0.0, 0.0],'G'], [[0.5, 0.0, 0.0],'M'], [[1....
palful/yambopy
tutorial/mos2/proj_mos2.py
Python
bsd-3-clause
2,375
from urllib import urlencode from twisted.internet.defer import inlineCallbacks from twisted.web import http from vumi.tests.helpers import VumiTestCase from vumi.transports.netcore import NetcoreTransport from vumi.transports.tests.helpers import TransportHelper from vumi.utils import http_request_full def request...
TouK/vumi
vumi/transports/netcore/tests/test_netcore.py
Python
bsd-3-clause
4,145
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of so...
hradec/gaffer
python/GafferArnold/__init__.py
Python
bsd-3-clause
2,708
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """App Engine config. This module is loaded before others and can be used to set up the App Engine environment. See: https://cloud.google.com/appengine/do...
catapult-project/catapult
trace_processor/trace_uploader/appengine_config.py
Python
bsd-3-clause
1,441
class VectorizableBackedModel(object): r""" Mixin for models constructed from a set of :map:`Vectorizable` objects. Supports models for which visualizing the meaning of a set of components is trivial. Requires that the following methods are implemented: 1. `component_vector(index)` 2. `in...
yuxiang-zhou/menpo
menpo/model/vectorizable.py
Python
bsd-3-clause
6,200
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import codecs import argparse import os import sys import py_vulcanize import tracing_project def Main(args): parser = argparse.ArgumentParser(usag...
catapult-project/catapult
tracing/tracing_build/generate_about_tracing_contents.py
Python
bsd-3-clause
1,914
from django.contrib.auth import get_user from django.utils.importlib import import_module from corehq.apps.domain.decorators import login_and_domain_required from django.conf import settings from corehq.apps.users.models import CouchUser def login_with_permission_from_post(login_decorator=login_and_domain_required): ...
gmimano/commcaretest
corehq/apps/hqmedia/decorators.py
Python
bsd-3-clause
1,354
# -*- coding: utf-8 -*- import json import unittest from django import VERSION as DJANGO_VERSION from django.core import mail from django.core.checks import Info from django.test import TestCase, override_settings from wagtail.contrib.forms.models import FormSubmission from wagtail.contrib.forms.tests.utils import ( ...
zerolab/wagtail
wagtail/contrib/forms/tests/test_models.py
Python
bsd-3-clause
28,754
"""DistributedSmoothNode module: contains the DistributedSmoothNode class""" from panda3d.core import * from panda3d.direct import * from .ClockDelta import * from . import DistributedNode from . import DistributedSmoothNodeBase from direct.task.Task import cont from direct.showbase import DConfig as config # This nu...
chandler14362/panda3d
direct/src/distributed/DistributedSmoothNode.py
Python
bsd-3-clause
22,204
#!/usr/bin/env python import random import re import time import datetime import sqlite3 import os import itertools import requests import eveapi from bs4 import BeautifulSoup conn = sqlite3.connect(os.path.expanduser("~/eve.sqlite")) HOME = "PR-8CA" def calc_jumps(system, start): url = "http://evemaps.dotlan.net/ro...
atwardowski/Dramiel
src/twisted/mod/range.py
Python
mit
4,384
from braintree.exceptions.unexpected_error import UnexpectedError class ConfigurationError(UnexpectedError): pass
DiptoDas8/Biponi
lib/python2.7/site-packages/braintree/exceptions/configuration_error.py
Python
mit
119
# Copyright (c) 2015, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals, absolute_import, print_function import sys import click import cProfile import pstats import frappe import frappe.utils from functools import wraps from six import StringIO c...
bohlian/frappe
frappe/commands/__init__.py
Python
mit
1,535
#!/usr/bin/env python # -*- coding: UTF-8 -*- # QR Code Generator plug-in for Blender 2.5.7+ # plug-in version: 1.1b # provided by Esponce team # http://www.esponce.com/ # ***** BEGIN MIT LICENSE BLOCK ***** # # Copyright (C) 2013 Esponce d.o.o. # # Permission is hereby granted, free of charge, to any pe...
BackupGGCode/qr-code-plugins
blender/add_mesh_qrcode.py
Python
mit
17,496
from typing import Any, Generic, List, Optional, TextIO, TypeVar, Union, overload from . import get_console from .console import Console from .text import Text, TextType PromptType = TypeVar("PromptType") DefaultType = TypeVar("DefaultType") class PromptError(Exception): """Exception base class for prompt relat...
sbidoul/pip
src/pip/_vendor/rich/prompt.py
Python
mit
11,307
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.event import event try: from flexget.plugins.api_tvdb import lookup_series, lookup_episode, get_mirror except ImportError: raise plugin.DependencyError(issued_by='thetvdb_lookup', missing=...
protomouse/Flexget
flexget/plugins/metainfo/thetvdb_lookup.py
Python
mit
6,614
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-22 23:35 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('corputils', '0002_migrate_permissions'), ] operations = [ migrations.AlterModelOpti...
Kaezon/allianceauth
allianceauth/corputils/migrations/0003_granular_permissions.py
Python
gpl-2.0
908
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2010 Benny Malengier # Copyright (C) 2011 Tim G L Lyons # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either versio...
beernarrd/gramps
gramps/gen/filters/rules/_matchessourcefilterbase.py
Python
gpl-2.0
2,456
from twisted.internet import threads from config import config from enigma import eDBoxLCD, eTimer, iPlayableService import NavigationInstance from Tools.Directories import fileExists from Components.ParentalControl import parentalControl from Components.ServiceEventTracker import ServiceEventTracker from Components.Sy...
idrogeno/IdroMips
lib/python/Components/VfdSymbols.py
Python
gpl-2.0
4,865
import xbmcgui import urllib def download(url, dest, dp = None): if not dp: dp = xbmcgui.DialogProgress() dp.create("Elmore...Maintenance","Downloading & Copying File",' ', ' ') dp.update(0) urllib.urlretrieve(url,dest,lambda nb, bs, fs, url=url: _pbhook(nb,bs,fs,url,dp)) def _p...
airpoint/script.gb.wiz
downloader.py
Python
gpl-2.0
618
from Screen import Screen from Components.ActionMap import ActionMap from Components.Language import language from Components.config import config from Components.Sources.List import List from Components.Label import Label from Components.Pixmap import Pixmap from Components.language_cache import LANG_TEXT def _cache...
BlackPole/bp-dvbapp
lib/python/Screens/LanguageSelection.py
Python
gpl-2.0
2,862
#!/bin/env python import bottle import pymongo from pymongo.objectid import ObjectId import datetime @bottle.route('/') def index(): return bottle.static_file('/index.html', root = '.') @bottle.route('/machinetable') def machinetable(): machines = db.machines.find() rows = [] categories = [] reports = {} for m...
honeynet/ghost-usb-honeypot
win7/Webadmin/serve.py
Python
gpl-3.0
1,528
""" Lib/ctypes.util.find_library() support for AIX Similar approach as done for Darwin support by using separate files but unlike Darwin - no extension such as ctypes.macholib.* dlopen() is an interface to AIX initAndLoad() - primary documentation at: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_61/com.ibm.a...
kenshay/ImageScript
Script_Runner/PYTHON/Lib/ctypes/_aix.py
Python
gpl-3.0
12,565
""" Copyright (c) 2012-2013 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...
nkhare/rockstor-core
src/rockstor/storageadmin/urls/users.py
Python
gpl-3.0
1,027
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import re import markupsafe from werkzeug import urls, utils from odoo import api, models, tools class MailRenderMixin(models.AbstractModel): _inherit = "mail.render.mixin" # --------------------------------...
jeremiahyan/odoo
addons/link_tracker/models/mail_render_mixin.py
Python
gpl-3.0
3,440
import logging import urllib2 import simplejson as json from django.conf import settings from treeherder import celery_app from treeherder.client import (TreeherderArtifactCollection, TreeherderClient) from treeherder.credentials.models import Credentials from treeherder.log_parser.arti...
wlach/treeherder
treeherder/log_parser/utils.py
Python
mpl-2.0
4,995
# -*- coding: utf-8 -*- ############################################################################## # # Author: Yannick Vaucher # Copyright 2013 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pub...
OCA/carrier-delivery
delivery_carrier_label_dispatch/__init__.py
Python
agpl-3.0
988
""" Tests for pavelib/utils/test/utils """ import unittest from unittest.mock import patch import pytest from pavelib.utils.envs import Env from pavelib.utils.test.utils import MINIMUM_FIREFOX_VERSION, check_firefox_version @unittest.skipIf(Env.USING_DOCKER, 'Firefox version check works differently under Docker D...
eduNEXT/edx-platform
pavelib/paver_tests/test_utils.py
Python
agpl-3.0
1,586
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
Chuban/moose
python/chigger/tests/chigger/test_chigger.py
Python
lgpl-2.1
2,346
# fMBT, free Model Based Testing tool # Copyright (c) 2013-2016, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU Lesser General Public License, # version 2.1, as published by the Free Software Foundation. # # This program is dist...
yoonkiss/fMBT
utils/fmbtx11.py
Python
lgpl-2.1
26,132
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/font-micro-misc/package.py
Python
lgpl-2.1
2,102
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
krafczyk/spack
var/spack/repos/builtin/packages/libfs/package.py
Python
lgpl-2.1
1,873
# 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...
tillahoffmann/tensorflow
tensorflow/python/framework/constant_op.py
Python
apache-2.0
9,632
from __future__ import absolute_import from pprint import pprint # pylint: disable=import-error from twisted.internet import defer, threads, reactor from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver @defer.inlineCallbacks def create_node(name): node = yield threads.de...
StackPointCloud/libcloud
docs/examples/misc/twisted_create_node.py
Python
apache-2.0
898
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect 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 Licen...
AlexCatarino/Lean
Algorithm.Python/DelistingEventsAlgorithm.py
Python
apache-2.0
3,448
from temboo.Library.Nexmo.Voice.CaptureTextToSpeechPrompt import CaptureTextToSpeechPrompt, CaptureTextToSpeechPromptInputSet, CaptureTextToSpeechPromptResultSet, CaptureTextToSpeechPromptChoreographyExecution from temboo.Library.Nexmo.Voice.ConfirmTextToSpeechPrompt import ConfirmTextToSpeechPrompt, ConfirmTextToSpeec...
jordanemedlock/psychtruths
temboo/core/Library/Nexmo/Voice/__init__.py
Python
apache-2.0
565
# 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...
horance-liu/tensorflow
tensorflow/python/keras/_impl/keras/utils/generic_utils.py
Python
apache-2.0
12,658
# -*- test-case-name: twisted.test.test_task,twisted.test.test_cooperator -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Scheduling utility methods and classes. @author: Jp Calderone """ __metaclass__ = type import time from zope.interface import implements from twisted.python imp...
nlloyd/SubliminalCollaborator
libs/twisted/internet/task.py
Python
apache-2.0
24,837
# Eve W-Space # Copyright 2014 Andrew Austin and contributors # # 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 requi...
marbindrakon/eve-wspace
evewspace/search/registry.py
Python
apache-2.0
3,019
# Copyright 2018 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...
hfp/tensorflow-xsmm
tensorflow/python/framework/auto_control_deps_test.py
Python
apache-2.0
9,675
# -*- coding: UTF-8 -*- from django.conf import settings as dsettings from django.contrib.syndication.views import Feed, FeedDoesNotExist from django.core.urlresolvers import reverse from microblog import models from microblog import settings import os.path class FeedsDict(dict): """ dict custom che solleva ...
malemburg/epcon
microblog/feeds.py
Python
bsd-2-clause
2,027
import olympia.core.logger from olympia.amo.celery import task from olympia.amo.decorators import use_primary_db from olympia.translations.models import NoURLsTranslation log = olympia.core.logger.getLogger('z.task') @task @use_primary_db def reclean_collection_descriptions(ids, **kw): log.info('Recleaning tran...
bqbn/addons-server
src/olympia/translations/tasks.py
Python
bsd-3-clause
504
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..tracks import StreamlineTractography def test_StreamlineTractography_inputs(): input_map = dict(gfa_thresh=dict(mandatory=True, usedefault=True, ), ignore_exception=dict(nohash=True, usedefault=Tru...
mick-d/nipype
nipype/interfaces/dipy/tests/test_auto_StreamlineTractography.py
Python
bsd-3-clause
1,430
from django.conf.urls import patterns, url, include from .views import empty_view, empty_view_partial, empty_view_wrapped, absolute_kwargs_view other_patterns = patterns('', url(r'non_path_include/$', empty_view, name='non_path_include'), url(r'nested_path/$', 'urlpatterns_reverse.views.nested_view'), ) url...
oscaro/django
tests/urlpatterns_reverse/urls.py
Python
bsd-3-clause
3,830
#!/usr/bin/python # # Copyright (c) 2016, The OpenThread Authors. # 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 source code must retain the above copyright # not...
Zolertia/openthread
tests/scripts/thread-cert/Cert_5_5_01_LeaderReset.py
Python
bsd-3-clause
3,068
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re from telemetry.story import shared_state as shared_state_module _next_story_id = 0 class Story(object): """A class styled on unittest.TestCas...
sahiljain/catapult
telemetry/telemetry/story/story.py
Python
bsd-3-clause
4,429
"""An example of persistence for a directed graph structure. The graph is stored as a collection of edges, each referencing both a "lower" and an "upper" node in a table of nodes. Basic persistence and querying for lower- and upper- neighbors are illustrated:: n2 = Node(2) n5 = Node(5) n2.add_neighbor(n...
graingert/sqlalchemy
examples/graphs/__init__.py
Python
mit
378
# Configuration file for ipython. # pylint: disable=E0602 c = get_config() # ----------------------------------------------------------------------------- # InteractiveShellApp configuration # ----------------------------------------------------------------------------- # A Mixin for applications that start Interac...
jalanb/jab
ipython/profile_jalanb/ipython_config.py
Python
mit
18,065
#!/usr/bin/python import h5py import matplotlib.pylab as plt import matplotlib as mpl import sys import numpy as np; plt.rcParams.update({'font.size': 28}) # set tick width mpl.rcParams['xtick.major.size'] = 10 mpl.rcParams['xtick.major.width'] = 5 mpl.rcParams['xtick.minor.size'] = 10 mpl.rcParams['xtick.minor.width...
BorisJeremic/Real-ESSI-Examples
analytic_solution/test_cases/Contact/Stress_Based_Contact_Verification/SoftContact_NonLinHardSoftShear/Area/Normalized_Shear_Stress_Plot.py
Python
cc0-1.0
6,112
# 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...
seankelly/buildbot
master/buildbot/test/unit/test_mq_wamp.py
Python
gpl-2.0
7,469
# coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is een SQL-expressie zoals "field1=\'newvalue\'". U kunt de resultaten van een JOIN niet updaten of wissen', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S'...
danisuke0781/instant-press
languages/nl.py
Python
gpl-2.0
14,840
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt, getdate, formatdate, cstr from erpnext.accounts.report.financial_statements import filter_accou...
Zlash65/erpnext
erpnext/accounts/report/profitability_analysis/profitability_analysis.py
Python
gpl-3.0
5,970
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2010 Camptocamp SA (http://www.camptocamp.com) # All Right Reserved # # Author : Nicolas Bessi (Camptocamp) # # WARNING: This program as such is intended to be used by professional # programmers who ...
jeffery9/mixprint_addons
report_webkit/__openerp__.py
Python
agpl-3.0
3,813
"""Websocekt API handlers for the hassio integration.""" import logging import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.components.websocket_api.connection import ActiveConnection from homeassistant.core import HomeAssistant, callback import homeassistant.helpers.config_...
aronsky/home-assistant
homeassistant/components/hassio/websocket_api.py
Python
apache-2.0
3,538
# 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 # "License"); you may not u...
apache/incubator-airflow
tests/providers/google/cloud/transfers/test_azure_fileshare_to_gcs_system.py
Python
apache-2.0
2,824
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, 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 # # ...
Havate/havate-openstack
proto-build/gui/horizon/Horizon_GUI/horizon/workflows/base.py
Python
apache-2.0
33,334
# -*- coding: utf-8 -*- # # 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 #...
adamhaney/airflow
airflow/executors/dask_executor.py
Python
apache-2.0
3,521
# Copyright (c) 2015 Mirantis 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 applicable law or agreed to in writing, so...
japaniel/CloudFerry
cloudferrylib/scheduler/signal_handler.py
Python
apache-2.0
1,884
# Copyright 2017 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...
dyoung418/tensorflow
tensorflow/python/estimator/export/export.py
Python
apache-2.0
14,219
# Copyright 2019 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...
tensorflow/tensorflow
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/shapes_for_arguments.py
Python
apache-2.0
1,730
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str import logging from copy import copy from indra.databases import get_identifiers_url from indra.statements import * from indra.util import write_unicode_csv logger = logging.getLogger(__name__) class TsvAssembler...
johnbachman/indra
indra/assemblers/tsv/assembler.py
Python
bsd-2-clause
8,109
"""Test queues inspection SB APIs.""" from __future__ import print_function import unittest2 import os import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestQueues(TestBase): mydir = TestBase.compute_mydir(__file__) @skipUn...
endlessm/chromium-browser
third_party/llvm/lldb/test/API/macosx/queues/TestQueues.py
Python
bsd-3-clause
17,019
from __future__ import division, print_function, unicode_literals # This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # # total time duration * action multiplier testinfo = "s, t 2.0, s, t 4.0, s, t 6.1, s, q" ...
vyscond/cocos
test/test_camera_orbit_reuse.py
Python
bsd-3-clause
1,290
# -*- coding: utf-8 -*- # This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)
stephenrjones/geoq
geoq/mgrs/__init__.py
Python
mit
230
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
fireduck64/electrum
lib/dnssec.py
Python
mit
10,409
from __future__ import unicode_literals SEQUENCE = [ 'bugzilla_url_charfield', 'repository_raw_file_url', 'repository_visible', 'repository_path_length_255', 'localsite', 'repository_access_control', 'group_site', 'repository_hosting_accounts', 'repository_extra_data_null', 'un...
custode/reviewboard
reviewboard/scmtools/evolutions/__init__.py
Python
mit
433
# -*- coding: utf-8 -*- #----------------------------------------------------------- # # fTools # Copyright (C) 2008-2011 Carson Farmer # EMAIL: carson.farmer (at) gmail.com # WEB : http://www.ftools.ca/fTools.html # # A collection of data management and analysis tools for vector data # #-----------------------------...
kiith-sa/QGIS
python/plugins/fTools/tools/doMeanCoords.py
Python
gpl-2.0
8,830
# Copyright (C) 2007 Red Hat, Inc., Kent Lamb <klamb@redhat.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # Thi...
alexandrujuncu/sos
sos/plugins/ipa.py
Python
gpl-2.0
3,272
#!/usr/bin/env python """ get_character.py Usage: get_character "characterID" Show some info about the character with the given characterID (e.g. '0000001' for "Jesse James", using 'http' or 'mobile'). Notice that characterID, using 'sql', are not the same IDs used on the web. """ import sys # Import the IMDbPY pac...
nashve/mythbox
resources/lib/IMDbPY/bin/get_character.py
Python
gpl-2.0
1,570
# Copyright (C) 2012,2013,2016 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms...
kkreis/espressopp
src/interaction/ReactionFieldGeneralizedTI.py
Python
gpl-3.0
11,247
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
addition-it-solutions/project-all
addons/account_analytic_default/__openerp__.py
Python
agpl-3.0
1,764
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_str, ) from ..utils import ( determine_ext, ExtractorError, fix_xml_ampersands, orderedSet, parse_duration, qualities, strip_jsonp, unified_strdat...
coreynicholson/youtube-dl
youtube_dl/extractor/npo.py
Python
unlicense
21,110
"""Test the Dyson 360 eye robot vacuum component.""" import unittest from unittest import mock from libpurecool.const import Dyson360EyeMode, PowerMode from libpurecool.dyson_360_eye import Dyson360Eye from homeassistant.components.dyson import vacuum as dyson from homeassistant.components.dyson.vacuum import Dyson36...
jnewland/home-assistant
tests/components/dyson/test_vacuum.py
Python
apache-2.0
6,611
# -*- coding: utf-8 -*- # # This file is part of PyBuilder # # Copyright 2011-2015 PyBuilder Team # # 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...
Danielweber7624/pybuilder
src/main/python/pybuilder/plugins/python/pep8_plugin.py
Python
apache-2.0
1,506
# -*- coding: utf-8 -*- ''' This module defines :class:`Event`, an event occuring at a particular point in time. :class:`Event` derives from :class:`BaseNeo`, from :module:`neo.core.baseneo`. ''' # needed for python 3 compatibility from __future__ import absolute_import, division, print_function import quantities as...
amchagas/python-neo
neo/core/event.py
Python
bsd-3-clause
1,955