code
stringlengths
6
947k
repo_name
stringlengths
5
100
path
stringlengths
4
226
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
6
947k
################################################################# # This file is part of glyr # + a command-line tool and library to download various sort of music related metadata. # + Copyright (C) [2011-2012] [Christopher Pahl] # + Hosted at: https://github.com/sahib/glyr # # glyr is free software: you can redistri...
emillon/glyr-debian
spec/provider/tests/artistphoto.py
Python
gpl-3.0
3,340
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 TÜBİTAK UEKAE # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/copyleft/gpl.txt.
MehmetNuri/ozgurlukicin
beyin2/__init__.py
Python
gpl-3.0
188
# -*- coding: utf-8 -*- from google.appengine.ext import vendor #Para que entienda que las librerías de terceros debe buscarlas en la carpeta lib vendor.add('lib')
ButterFlyDevs/StudentsManagementSystem
SMS-Back-End/tdbms/appengine_config.py
Python
gpl-3.0
166
''' Parse execution data log stream. Allows access to selected parts of program memory at the time of recorded events. ''' # Copyright (c) 2012-2013 Wladimir J. van der Laan # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Softw...
commshare/etna_viv
tools/etnaviv/parse_fdr.py
Python
gpl-3.0
9,109
# #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...
Unode/ete
ete3/clustering/clustertree.py
Python
gpl-3.0
8,555
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Interfaces for Trial. Maintainer: Jonathan Lange """ from __future__ import division, absolute_import import zope.interface as zi from zope.interface import Attribute class ITestCase(zi.Interface): """ The interface that a test ca...
Architektor/PySnip
venv/lib/python2.7/site-packages/twisted/trial/itrial.py
Python
gpl-3.0
6,853
''' Add in /edx/app/edxapp/edx-platform/lms/envs/aws.py: ORA2_SWIFT_URL = AUTH_TOKENS["ORA2_SWIFT_URL"] ORA2_SWIFT_KEY = AUTH_TOKENS["ORA2_SWIFT_KEY"] Add in /edx/app/edxapp/lms.auth.json "ORA2_SWIFT_URL": "https://EXAMPLE", "ORA2_SWIFT_KEY": "EXAMPLE", ORA2_SWIFT_KEY should correspond to Meta Temp-Url-Key configure ...
Stanford-Online/edx-ora2
openassessment/fileupload/backends/swift.py
Python
agpl-3.0
3,388
""" Frinkiac (Images) @website https://www.frinkiac.com @provide-api no @using-api no @results JSON @stable no @parse url, title, img_src """ from json import loads from urllib import urlencode categories = ['images'] BASE = 'https://frinkiac.com/' SEARCH_URL = '{base}api/search?{query}' RESULT...
matejc/searx
searx/engines/frinkiac.py
Python
agpl-3.0
1,303
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Original Module by SIESA (<http://www.siesacr.com>) # Refactored by CLEARCORP S.A. (<http://clearcorp.co.cr>) # # This program is free software: you can redis...
sysadminmatmoz/odoo-clearcorp
TODO-8.0/hr_payroll_pay_commission/hr_payroll_pay_commission.py
Python
agpl-3.0
2,121
# Copyright (c) 2011, 2012 Free Software Foundation # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later vers...
gnowgi/gnowsys-studio
objectapp/urls/add.py
Python
agpl-3.0
3,741
"""Deprecated import support. Auto-generated by import_shims/generate_shims.sh.""" # pylint: disable=redefined-builtin,wrong-import-position,wildcard-import,useless-suppression,line-too-long from import_shims.warn import warn_deprecated_import warn_deprecated_import('discussion.rest_api.tests.test_pagination', 'lms.d...
eduNEXT/edunext-platform
import_shims/lms/discussion/rest_api/tests/test_pagination.py
Python
agpl-3.0
446
#!/usr/bin/python import urllib2 import csv import xml.sax uri = "http://spreadsheets.google.com/tq?tqx=out:csv&key=0AjWA_TWMI4t_dFI5MWRWZkRWbFJ6MVhHQzVmVndrZnc&hl=en_GB" f = urllib2.urlopen(uri) csv_data = f.read() lines = csv_data.split("\n") rows = csv.reader(lines.__iter__(), delimiter=',', quotechar='"') class...
henare/parlparse
pyscraper/gettwittermps.py
Python
agpl-3.0
1,744
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Jason Swails # Contributors: # # This code for reading Amber r...
ctk3b/mdtraj
mdtraj/formats/amberrst.py
Python
lgpl-2.1
33,272
############################################################################## # Copyright (c) 2013-2017, 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...
wscullin/spack
var/spack/repos/builtin/packages/py-sphinxcontrib-programoutput/package.py
Python
lgpl-2.1
1,947
#! /usr/bin/env python # encoding: utf-8 import os,sys,re import TaskGen,Task,Utils,preproc,Logs,Build,Options from Logs import error,debug,warn from Utils import md5 from TaskGen import taskgen,after,before,feature from Constants import* try: from cStringIO import StringIO except ImportError: from io import StringI...
micove/libdesktop-agnostic
wafadmin/Tools/ccroot.py
Python
lgpl-2.1
13,478
import os import time from nose.plugins.skip import SkipTest from nxdrive.client import LocalClient from nxdrive.tests.common import OS_STAT_MTIME_RESOLUTION from nxdrive.client.common import LOCALLY_EDITED_FOLDER_NAME from nxdrive.tests.common_unit_test import UnitTestCase DRIVE_EDIT_XATTR_NAMES = ['ndrive', 'nxdriv...
loopingz/nuxeo-drive
nuxeo-drive-client/nxdrive/tests/test_drive_edit.py
Python
lgpl-2.1
18,778
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
jtopjian/st2
st2common/st2common/util/misc.py
Python
apache-2.0
1,245
# -*- 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 "Lice...
Kami/libcloud
libcloud/test/storage/test_oss.py
Python
apache-2.0
31,715
# 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...
nikesh-mahalka/nova
nova/tests/unit/virt/xenapi/test_vmops.py
Python
apache-2.0
57,400
import glob import os import subprocess import sys from distutils.version import LooseVersion from typing import Iterable, List, Optional, Tuple from scripts.lib.zulip_tools import get_dev_uuid_var_path from version import PROVISION_VERSION ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(...
shubhamdhama/zulip
tools/lib/test_script.py
Python
apache-2.0
3,557
# 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...
kaiping/incubator-singa
python/singa/image_tool.py
Python
apache-2.0
19,335
# Copyright 2011 OpenStack LLC. # 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 b...
30loops/nova
nova/notifier/list_notifier.py
Python
apache-2.0
2,145
"""Support for the Philips Hue sensors as a platform.""" from __future__ import annotations from datetime import timedelta import logging from typing import Any from aiohue import AiohueException, Unauthorized from aiohue.v1.sensors import TYPE_ZLL_PRESENCE import async_timeout from homeassistant.components.sensor i...
home-assistant/home-assistant
homeassistant/components/hue/v1/sensor_base.py
Python
apache-2.0
7,575
import logging import time from collections import OrderedDict, defaultdict from datetime import datetime, timedelta from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union from django.conf import settings from django.db import connection from django.db.models import F from psycopg2.sql import SQL, C...
shubhamdhama/zulip
analytics/lib/counts.py
Python
apache-2.0
29,311
import json import os import subprocess import uuid import passlib.hash import pytest import gen import gen.build_deploy.aws import release from dcos_installer import backend from dcos_installer.config import Config, make_default_config_if_needed, to_config os.environ["BOOTSTRAP_ID"] = "12345" @pytest.fixture(scop...
darkonie/dcos
dcos_installer/test_backend.py
Python
apache-2.0
12,196
# Copyright (c) 2014 Scopely, Inc. # Copyright (c) 2015 Mitch Garnaat # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
ryandub/skew
skew/resources/aws/elb.py
Python
apache-2.0
1,155
# Copyright (c) 2014 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...
ativelkov/murano-api
murano/packages/mpl_package.py
Python
apache-2.0
3,570
#!/usr/bin/env python # Copyright (c) 2010-2012 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 a...
dpgoetz/swift
test/unit/proxy/controllers/test_obj.py
Python
apache-2.0
33,082
# Copyright (c) 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 ...
shahbazn/neutron
neutron/db/l3_dvr_db.py
Python
apache-2.0
31,701
# 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...
kamcpp/tensorflow
tensorflow/python/kernel_tests/constant_op_test.py
Python
apache-2.0
26,533
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. 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 requir...
mapr/impala
tests/stress/test_ddl_stress.py
Python
apache-2.0
3,153
from nose.tools import with_setup, eq_ as eq from common import vim, cleanup from threading import Timer @with_setup(setup=cleanup) def test_interrupt_from_another_thread(): session = vim.session timer = Timer(0.5, lambda: session.threadsafe_call(lambda: session.stop())) timer.start() eq(vim.session.n...
traverseda/python-client
test/test_concurrency.py
Python
apache-2.0
341
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # shablona documentation build configuration file, created by # sphinx-quickstart on Tue Apr 14 10:29:06 2015. # # 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 # a...
neurohackweek/avalanche
doc/conf.py
Python
apache-2.0
9,704
# 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 use ...
pquentin/libcloud
libcloud/test/storage/test_azure_blobs.py
Python
apache-2.0
38,350
# Copyright 2015 Google Inc. 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 applicable law or ag...
KaranToor/MA450
google-cloud-sdk/lib/surface/pubsub/subscriptions/ack.py
Python
apache-2.0
2,299
# -*- 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/feed_item_set_link_service/__init__.py
Python
apache-2.0
694
# Copyright 2016 Hewlett Packard Enterprise Development 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 applicable ...
Juniper/tempest
tempest/tests/lib/common/test_cred_client.py
Python
apache-2.0
3,309
"""Reproduce an Switch state.""" import asyncio import logging from typing import Iterable, Optional from homeassistant.const import ( ATTR_ENTITY_ID, SERVICE_TURN_OFF, SERVICE_TURN_ON, STATE_OFF, STATE_ON, ) from homeassistant.core import Context, State from homeassistant.helpers.typing import Hom...
leppa/home-assistant
homeassistant/components/switch/reproduce_state.py
Python
apache-2.0
1,612
# Copyright 2010 OpenStack LLC. # 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 b...
rcbops/nova-buildpackage
nova/tests/api/openstack/compute/contrib/test_users.py
Python
apache-2.0
5,843
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.cloud.bigquery_datatransfer_v1.proto import datatransfer_pb2 as google_dot_cloud_dot_bigquery_dot_datatransfer__v1_dot_proto_dot_datatransfer__pb2 from google.cloud.bigquery_datatransfer_v1.proto import transfer_pb2 as google...
jonparrott/google-cloud-python
bigquery_datatransfer/google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2_grpc.py
Python
apache-2.0
16,649
# -*- coding: utf-8 -*- import logging import posixpath from collections import defaultdict from seaserv import seafile_api from seahub.base.templatetags.seahub_tags import email2nickname, email2contact_email from seahub.utils.timeutils import timestamp_to_isoformat_timestr from seahub.file_tags.models import FileTag...
miurahr/seahub
seahub/utils/file_tags.py
Python
apache-2.0
2,647
import pytest from opentrons.protocol_api import ProtocolContext from opentrons.protocols.execution import execute, execute_python from opentrons.protocols.parse import parse def test_api2_runfunc(): def noargs(): pass with pytest.raises(SyntaxError): execute_python._runfunc_ok(noargs) d...
Opentrons/labware
api/tests/opentrons/protocols/execution/test_execute_python.py
Python
apache-2.0
2,472
# 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...
DCSaunders/tensorflow
tensorflow/python/debug/cli/curses_ui_test.py
Python
apache-2.0
39,416
# Copyright 2014 PressLabs SRL # # 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,...
ksmaheshkumar/gitfs
gitfs/views/read_only.py
Python
apache-2.0
1,744
from djangorestframework.mixins import ModelMixin, CreateModelMixin, \ UpdateModelMixin from djangorestframework_extensions.utils import user_passes_test __all__ = ['RoleBasedExclusion', 'RestrictedModelMixin', 'RestrictedCreateModelMixin', 'RestrictedUpdateModelMixin'] class RoleBasedExclusion(object): ...
pombredanne/djangorestframework_extensions
djangorestframework_extensions/mixins.py
Python
bsd-2-clause
1,649
from copy import deepcopy from django.test import TestCase from django.core.exceptions import ValidationError from django.core import management from avocado.query import oldparsers as parsers from avocado.models import DataConcept, DataField, DataConceptField from ....models import Employee class DataContextParserTe...
murphyke/avocado
tests/cases/query/tests/parsers.py
Python
bsd-2-clause
19,203
#### PATTERN | NL | PARSER COMMAND-LINE ################################## # Copyright (c) 2010 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). # http://www.clips.ua.ac.be/pages/pattern ##############################################################...
hayd/pattern
pattern/text/nl/__main__.py
Python
bsd-3-clause
521
# -*- coding: utf-8 -*- # # ChatterBot documentation build configuration file, created by # sphinx-quickstart on Mon May 9 14:38:54 2016. import sys import os import sphinx_rtd_theme from datetime import datetime # Insert the project root dir as the first element in the PYTHONPATH. # This lets us ensure that the so...
Gustavo6046/ChatterBot
docs/conf.py
Python
bsd-3-clause
6,225
{ "success": "Embed 5f585b01c81b12ecdf5f40df0382738d0919170639985d3df5e2fc4232865b0c successfully revoked." }
jhotta/documentation
code_snippets/results/result.api-embeds-revoke.py
Python
bsd-3-clause
114
#!/usr/bin/env python # Copyright 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 os import sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, 'tools', 'telemetry')...
patrickm/chromium.src
content/test/gpu/run_gpu_test.py
Python
bsd-3-clause
416
# GUI Application automation and testing library # Copyright (C) 2006-2018 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.readthedocs.io/en/latest/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or with...
vasily-v-ryabov/pywinauto
examples/notepad_slow.py
Python
bsd-3-clause
9,099
"""Test that a forward-declared class works when its complete definition is in a library""" import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class ForwardDeclTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) def setUp...
endlessm/chromium-browser
third_party/llvm/lldb/test/API/lang/objc/forward-decl/TestForwardDecl.py
Python
bsd-3-clause
2,454
import os import sys import time import traceback from optparse import make_option import six from django.conf import settings from django.core.management.base import NoArgsCommand from django_extensions.management.shells import import_objects from django_extensions.management.utils import signalcommand class Comma...
barseghyanartur/django-extensions
django_extensions/management/commands/shell_plus.py
Python
mit
15,982
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import get_request_site_address, encode from frappe.model.document import Document from six.moves.urllib.parse import quote fr...
StrellaGroup/frappe
frappe/website/doctype/website_settings/website_settings.py
Python
mit
4,709
# 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...
denny820909/builder
lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/monkeypatches/sqlalchemy2189.py
Python
mit
4,442
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from datetime import datetime import math import pytest from flexget.utils import json from flexget.utils.tools import parse_filesize, split_title_year def compare_floa...
jawilson/Flexget
flexget/tests/test_utils.py
Python
mit
3,596
from customers.models import Client from django.conf import settings from django.db import utils from django.views.generic import TemplateView from tenant_schemas.utils import remove_www class HomeView(TemplateView): template_name = "index_public.html" def get_context_data(self, **kwargs): context =...
mcanaves/django-tenant-schemas
examples/tenant_tutorial/tenant_tutorial/views.py
Python
mit
1,030
# File: C (Python 2.4) from otp.ai.AIBaseGlobal import * from direct.distributed.ClockDelta import * from direct.fsm import StateData from direct.directnotify import DirectNotifyGlobal import random from direct.task import Task from toontown.toonbase import ToontownGlobals import CCharChatter import CCharPaths class ...
ToonTownInfiniteRepo/ToontownInfinite
toontown/classicchars/CharStateDatasAI.py
Python
mit
14,539
import argparse, json import simpleamt if __name__ == '__main__': parser = argparse.ArgumentParser(parents=[simpleamt.get_parent_parser()]) args = parser.parse_args() mtc = simpleamt.get_mturk_connection_from_args(args) reject_ids = [] if args.hit_ids_file is None: parser.error('Must specify --hit_ids_...
achalddave/simple-amt
reject_assignments.py
Python
mit
970
# # ElementTree # $Id: ElementTree.py 3440 2008-07-18 14:45:01Z fredrik $ # # light-weight XML support for Python 2.3 and later. # # history (since 1.2.6): # 2005-11-12 fl added tostringlist/fromstringlist helpers # 2006-07-05 fl merged in selected changes from the 1.3 sandbox # 2006-07-05 fl removed support for ...
bikashgupta11/javarobot
src/main/resources/jython/Lib/xml/etree/ElementTree.py
Python
gpl-3.0
56,932
from plugins.extension.plugin import PluginTemplate from mitmproxy.models import decoded from PyQt4.QtCore import QObject,pyqtSignal import re """ Description: This program is a core for wifi-pumpkin.py. file which includes functionality plugins for Pumpkin-Proxy. Copyright: Copyright (C) 2015-2016 Marcos...
P0cL4bs/3vilTwinAttacker
plugins/extension/dump_post_data.py
Python
gpl-3.0
4,003
# # Copyright 2014 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import time from gnuradio import gr_unittest, blocks, gr, analog from gnuradio.gr.hier_block2 import _multiple_endpoints, _optional_endpoints import pmt class test_hblk(gr.hier_bloc...
jdemel/gnuradio
gnuradio-runtime/python/gnuradio/gr/qa_hier_block2.py
Python
gpl-3.0
4,084
# 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 # distributed under t...
ctrlaltdel/neutrinator
vendor/openstack/identity/version.py
Python
gpl-3.0
1,236
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import easy_thumbnails.fields from django.conf import settings import zds.utils.models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL...
DevHugo/zds-site
zds/utils/migrations/0001_initial.py
Python
gpl-3.0
8,591
#!/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 ***** """release.py """ import os fr...
lissyx/build-mozharness
mozharness/mozilla/release.py
Python
mpl-2.0
1,945
# 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/. from django.core.exceptions import PermissionDenied from mock import Mock, patch from nose.tools import eq_, raises fro...
bobsilverberg/oneanddone
oneanddone/users/tests/test_mixins.py
Python
mpl-2.0
2,289
# 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): # Adding field 'SurveyUser.oneuser' db.add_column('survey_surveyuser', 'oneuser', self.gf('django.db.model...
sbfnk/epiwork-website
apps/survey/migrations/0006_auto__add_field_surveyuser_oneuser.py
Python
agpl-3.0
12,365
# Copyright 2013-2021 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 PerlSubIdentify(PerlPackage): """Retrieve names of code references""" homepage = "htt...
LLNL/spack
var/spack/repos/builtin/packages/perl-sub-identify/package.py
Python
lgpl-2.1
547
# Copyright 2013-2021 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 Openslide(AutotoolsPackage): """OpenSlide reads whole slide image files.""" homepage ...
LLNL/spack
var/spack/repos/builtin/packages/openslide/package.py
Python
lgpl-2.1
803
# (C) British Crown Copyright 2010 - 2017, Met Office # # This file is part of Iris. # # Iris 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 l...
LukeC92/iris
lib/iris/tests/test_cube_to_pp.py
Python
lgpl-3.0
14,217
""" Core classes for the XBlock family. This code is in the Runtime layer, because it is authored once by edX and used by all runtimes. """ import inspect import pkg_resources import warnings from collections import defaultdict from xblock.exceptions import DisallowedFileError from xblock.fields import String, List,...
nagyistoce/edx-XBlock
xblock/core.py
Python
apache-2.0
9,923
# # 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...
ChugR/qpid-dispatch
tests/router_policy_test.py
Python
apache-2.0
17,771
# # 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 us...
lukecwik/incubator-beam
sdks/python/apache_beam/dataframe/transforms_test.py
Python
apache-2.0
14,277
""" Sends specified registrations to SHARE """ import argparse import json import logging import django django.setup() from osf.models import AbstractNode from scripts import utils as script_utils from website import settings from website.app import setup_django from website.project.tasks import update_node_share lo...
pattisdr/osf.io
scripts/send_specific_registration_data_to_share.py
Python
apache-2.0
1,537
#!/usr/bin/env python import datetime from run_utils import * class TestSuite(object): def __init__(self, options, cache): self.options = options self.cache = cache self.nameprefix = "opencv_" + self.options.mode + "_" self.tests = self.cache.gatherTests(self.nameprefix + "*", self...
DamianPilot382/Rubiks-Cube-Solver
opencv/sources/modules/ts/misc/run_suite.py
Python
apache-2.0
6,541
# Copyright 2016 Google 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,...
axbaretto/beam
sdks/python/.tox/py27gcp/lib/python2.7/site-packages/google/oauth2/flow.py
Python
apache-2.0
9,887
""" Test breakpoint command for different options. """ from __future__ import print_function import lldb from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil class BreakpointOptionsTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) def test(self): """Test bre...
llvm-mirror/lldb
packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_options/TestBreakpointOptions.py
Python
apache-2.0
3,765
import vtrace.tests as vt_tests breakpoints = { 'windows': 'ntdll.NtTerminateProcess', 'linux': 'libc.exit', 'freebsd': 'libc.exit', } class VtraceExpressionTest(vt_tests.VtraceProcessTest): def test_vtrace_sym(self): plat = self.trace.getMeta('Platform') symname = breakpoints.get(pla...
bat-serjo/vivisect
vtrace/tests/test_expressions.py
Python
apache-2.0
851
#!/usr/bin/python # # Copyright 2014 Google Inc. 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 b...
wubr2000/googleads-python-lib
examples/dfp/v201411/audience_segment_service/get_all_audience_segments.py
Python
apache-2.0
1,845
# Copyright (c) 2016-present, Facebook, 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...
Yangqing/caffe2
caffe2/python/crf.py
Python
apache-2.0
15,115
# Copyright 2014 Google Inc. 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 applicable law or agr...
gablg1/PerfKitBenchmarker
perfkitbenchmarker/errors.py
Python
apache-2.0
3,525
metadata = { "abbreviation": "ex", "capitol_timezone": "Etc/UTC", "legislature_name": "Example Legislature", "lower_chamber_name": "House of Representatives", "lower_chamber_term": 2, "lower_chamber_title": "Representative", "upper_chamber_name": "Senate", "upper_chamber_term": 6, "u...
mileswwatkins/billy
billy/tests/fixtures/ex/__init__.py
Python
bsd-3-clause
1,554
""" test_rdf_header.py -- show the rdf_header Version 0.1 MC 2013-12-27 -- Initial version. """ __author__ = "Michael Conlon" __copyright__ = "Copyright 2013, University of Florida" __license__ = "BSD 3-Clause license" __version__ = "0.1" import vivotools as vt from datetime import dateti...
mconlon17/vivo-1.6-upgrade
tools/test_rdf_header.py
Python
bsd-3-clause
407
from django import forms from models import FormDataGroup import re # On this page, users can upload an xsd file from their laptop # Then they get redirected to a page where they can download the xsd class RegisterXForm(forms.Form): file = forms.FileField() form_display_name= forms.CharField(max_length=128, l...
commtrack/commtrack-core
apps/xformmanager/forms.py
Python
bsd-3-clause
1,428
#------------------------------------------------------------------------------ # Name: pychrono example # Purpose: # # Author: Alessandro Tasora # # Created: 1/01/2019 # Copyright: (c) ProjectChrono 2019 #------------------------------------------------------------------------------ print ("First tu...
projectchrono/chrono
src/demos/python/core/demo_CH_coords.py
Python
bsd-3-clause
2,825
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
QingChenmsft/azure-cli
src/command_modules/azure-cli-consumption/azure/cli/command_modules/consumption/__init__.py
Python
mit
704
# -*- coding: utf-8 -*- """ Kay framework. :Copyright: (c) 2009 Accense Technology, Inc. Takashi Matsuo <tmatsuo@candit.jp>, Ian Lewis <IanMLewis@gmail.com> All rights reserved. :license: BSD, see LICENSE for more details. """ import os import sys impor...
yosukesuzuki/kay-template
project/kay/__init__.py
Python
mit
4,770
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import sys import logging from warnings import warn import six from scss.ast import Literal from scss.cssdefs import _expr_glob_re, _interpolate_re from scss.errors import SassError, SassEvaluationErr...
cpfair/pyScss
scss/calculator.py
Python
mit
6,935
"""Perform realignment of BAM files around indels using the GATK toolkit. """ import os import shutil from contextlib import closing import pysam from bcbio import bam, broad from bcbio.bam import ref from bcbio.log import logger from bcbio.utils import file_exists from bcbio.distributed.transaction import file_trans...
Cyberbio-Lab/bcbio-nextgen
bcbio/variation/realign.py
Python
mit
4,077
"""SCons.Tool.sunf95 Tool-specific initialization for sunf95, the Sun Studio F95 compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 20...
qewerty/moto.old
tools/scons/engine/SCons/Tool/sunf95.py
Python
gpl-2.0
2,167
# -*- coding: utf-8 -*- # Natural Language Toolkit: Transformation-based learning # # Copyright (C) 2001-2015 NLTK Project # Author: Marcus Uneson <marcus.uneson@gmail.com> # based on previous (nltk2) version by # Christopher Maloof, Edward Loper, Steven Bird # URL: <http://nltk.org/> # For license information, see...
Reagankm/KnockKnock
venv/lib/python3.4/site-packages/nltk/tbl/demo.py
Python
gpl-2.0
14,715
# -*- coding: utf-8 -* # # Test links: # https://www.androidfilehost.com/?fid=95916177934518197 import re from module.plugins.internal.SimpleHoster import SimpleHoster class AndroidfilehostCom(SimpleHoster): __name__ = "AndroidfilehostCom" __type__ = "hoster" __version__ = "0.05" __status__ ...
Guidobelix/pyload
module/plugins/hoster/AndroidfilehostCom.py
Python
gpl-3.0
2,454
from itertools import repeat from xmodule.course_module import CourseDescriptor from .exceptions import (ItemNotFoundError, NoPathToItem) from . import Location def path_to_location(modulestore, course_id, location): ''' Try to find a course_id/chapter/section[/position] path to location in modulestore....
abhinavp13/IITBX-edx-platform-dev
common/lib/xmodule/xmodule/modulestore/search.py
Python
agpl-3.0
4,563
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from ..mode...
amagdas/superdesk
server/apps/item_lock/components/item_lock.py
Python
agpl-3.0
5,241
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('grades', '0012_computegradessetting'), ] operations = [ migrations.CreateModel( name='PersistentSubsectionGradeOverride', fields=[ ...
cpennington/edx-platform
lms/djangoapps/grades/migrations/0013_persistentsubsectiongradeoverride.py
Python
agpl-3.0
1,154
from UM.Scene.SceneNodeDecorator import SceneNodeDecorator class GCodeListDecorator(SceneNodeDecorator): def __init__(self): super().__init__() self._gcode_list = [] def getGCodeList(self): return self._gcode_list def setGCodeList(self, list): self._gcode_list = list
alephobjects/Cura2
cura/Scene/GCodeListDecorator.py
Python
lgpl-3.0
316
"""Support for Climate devices of (EMEA/EU-based) Honeywell evohome systems.""" from datetime import datetime, timedelta import logging import requests.exceptions from homeassistant.components.climate import ClimateDevice from homeassistant.components.climate.const import ( STATE_AUTO, STATE_ECO, STATE_MANUAL, SU...
jnewland/home-assistant
homeassistant/components/evohome/climate.py
Python
apache-2.0
20,045
"""Tests for tensorflow.ops.tf.Cholesky.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow.python.platform import numpy as np from six.moves import xrange # pylint: disable=redefined-builtin import tensorflow as tf class CholeskyOpTest...
arunhotra/tensorflow
tensorflow/python/kernel_tests/cholesky_op_test.py
Python
apache-2.0
2,904
from temboo.Library.Zendesk.Search.SearchAll import SearchAll, SearchAllInputSet, SearchAllResultSet, SearchAllChoreographyExecution from temboo.Library.Zendesk.Search.SearchAnonymous import SearchAnonymous, SearchAnonymousInputSet, SearchAnonymousResultSet, SearchAnonymousChoreographyExecution
jordanemedlock/psychtruths
temboo/core/Library/Zendesk/Search/__init__.py
Python
apache-2.0
296
from troveclient import base from troveclient.common import check_for_exceptions from troveclient.common import limit_url from troveclient.common import Paginated import urlparse class Database(base.Resource): """ According to Wikipedia, "A database is a system intended to organize, store, and retrieve ...
cp16net/python-troveclient
troveclient/v1/databases.py
Python
apache-2.0
2,840