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
# =============================================================================== # Copyright 2011 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/licens...
USGSDenverPychron/pychron
pychron/hardware/newport/newport_group.py
Python
apache-2.0
2,866
import re import os 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 urllib import urlencode import hashlib import csv from product_spiders.item...
0--key/lib
portfolio/Python/scrapy/merckgroup/simplysupplements.py
Python
apache-2.0
2,128
# # Copyright 2015 IBM Corp. # # 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 require...
cwolferh/heat-scratch
heat/engine/resources/openstack/neutron/lbaas/listener.py
Python
apache-2.0
7,961
# Copyright (c) 2009 NHN Inc. 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 source code must retain the above copyright # notice, this list of conditions and the follow...
DLR-SC/tigl
thirdparty/nsiqcppstyle/nsiqunittest/nsiqcppstyle_unittestbase.py
Python
apache-2.0
2,439
# Copyright (c) 2013 OpenStack, 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 agreed to in wr...
Triv90/SwiftUml
swift/common/middleware/bulk.py
Python
apache-2.0
17,862
# 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 # #...
ikargis/horizon_fod
horizon/messages.py
Python
apache-2.0
2,969
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
djkonro/client-python
kubernetes/test/test_v1_git_repo_volume_source.py
Python
apache-2.0
911
#!/usr/bin/python # -*- coding: utf-8 -*- # import json # replace with simplejson import simplejson as json import os import time import logging import traceback import sys from oslo_config import cfg from yabgp.common import constants as bgp_cons from yabgp.handler import BaseHandler CONF = cfg.CONF LOG = loggin...
meidli/yabgp
yabgp/handler/default_handler.py
Python
apache-2.0
7,759
# Generated by the pRPC protocol buffer compiler plugin. DO NOT EDIT! # source: service.proto import base64 import zlib from google.protobuf import descriptor_pb2 # Includes description of the service.proto and all of its transitive # dependencies. Includes source code info. FILE_DESCRIPTOR_SET = descriptor_pb2.Fil...
luci/luci-py
appengine/components/components/prpc/discovery/service_prpc_pb2.py
Python
apache-2.0
29,794
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Appier Framework # Copyright (c) 2008-2015 Hive Solutions Lda. # # This file is part of Hive Appier Framework. # # Hive Appier Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
rmoorman/appier
src/appier/export.py
Python
apache-2.0
11,824
# Copyright (c) 2013 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 writin...
Bloomie/murano-repository
muranorepository/api/v1.py
Python
apache-2.0
4,731
# -*- 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...
cloud-fan/spark
python/docs/source/conf.py
Python
apache-2.0
12,894
from a10sdk.common.A10BaseClass import A10BaseClass class Stats(A10BaseClass): """This class does not support CRUD Operations please use parent. :param ip_other_block_alloc: {"optional": true, "size": "8", "type": "number", "oid": "17", "format": "counter"} :param entry_match_drop: {"optional": true...
amwelch/a10sdk-python
a10sdk/core/cgnv6/cgnv6_ddos_protection_stats.py
Python
apache-2.0
4,533
# 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...
mlperf/training_results_v0.7
Google/benchmarks/bert/implementations/bert-cloud-TF2.0-tpu-v3-32/modeling/networks/__init__.py
Python
apache-2.0
1,212
"""This library brings support for forked_daapd to Home Assistant.""" import asyncio from collections import defaultdict import logging from pyforked_daapd import ForkedDaapdAPI from pylibrespot_java import LibrespotJavaAPI from homeassistant.components.media_player import MediaPlayerEntity from homeassistant.compone...
aronsky/home-assistant
homeassistant/components/forked_daapd/media_player.py
Python
apache-2.0
30,898
# 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 # d...
jumpstarter-io/horizon
openstack_dashboard/dashboards/admin/images/properties/forms.py
Python
apache-2.0
3,269
# 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...
NeCTAR-RC/horizon
openstack_dashboard/dashboards/admin/rbac_policies/views.py
Python
apache-2.0
5,711
# Copyright 2014 Red Hat, 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 a...
thomasem/nova
nova/objects/external_event.py
Python
apache-2.0
1,735
# -*- coding: utf-8 -*- ''' FanFilm Add-on Copyright (C) 2015 lambda This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any ...
mrknow/filmkodi
plugin.video.fanfilm/resources/lib/resolvers/sawlive.py
Python
apache-2.0
2,023
import pwsimple # Midas volume rendering ParaviewWeb plugin # Initialize the volume rendering state def InitViewState (cameraFocalPoint, cameraPosition, colorArrayName, colorMap, sofPoints, viewSize): if type(colorArrayName) is unicode: colorArrayName = colorArrayName.encode('ascii', 'ignore') activeView =...
jcfr/Midas
modules/visualize/python/pvw-plugins/midasvr.py
Python
apache-2.0
2,091
# Copyright (c) 2021 PaddlePaddle 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 ap...
PaddlePaddle/Paddle
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_group_norm.py
Python
apache-2.0
6,063
# Copyright 2015 Huawei Technologies India Pvt Ltd. # 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 # # ...
eayunstack/python-neutronclient
neutronclient/tests/unit/qos/test_cli20_rule.py
Python
apache-2.0
1,542
# Copyright 2014 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. import base64 import copy import json import os import sys import threading BOT_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.insert...
luci/luci-py
appengine/swarming/swarming_bot/swarmingserver_bot_fake.py
Python
apache-2.0
4,446
# Copyright (c) 2020 Dell Inc. or its subsidiaries. # 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 # # ...
openstack/cinder
cinder/tests/unit/volume/drivers/dell_emc/powermax/test_powermax_common.py
Python
apache-2.0
235,073
# 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...
hehongliang/tensorflow
tensorflow/python/kernel_tests/signal/mfcc_ops_test.py
Python
apache-2.0
2,543
# 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...
yufeldman/arrow
python/pyarrow/tests/test_types.py
Python
apache-2.0
7,112
# coding: utf-8 #------------------------------------------------------------------------- # Copyright (c) Microsoft. 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 #...
phonnz/azure-storage-python
tests/test_storage_queue.py
Python
apache-2.0
26,556
""" Support for Eneco Slimmer stekkers (Smart Plugs). This provides controls for the z-wave smart plugs Toon can control. """ import logging from homeassistant.components.switch import SwitchDevice import custom_components.toon as toon_main _LOGGER = logging.getLogger(__name__) def setup_platform(hass, config, add...
krocat/ToonHA
toon/switch.py
Python
apache-2.0
2,141
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2015,2016 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
quattor/aquilon
lib/aquilon/worker/commands/unbind_client_cluster.py
Python
apache-2.0
1,222
#!/usr/bin/env python '''====================================================== Created by: D. Spencer Maughan Last updated: May 2015 File name: IRIS_DF_Controller.py Organization: RISC Lab, Utah State University Notes: ======================================================''' import roslib;...
riscmaster/risc_maap
risc_control/src/IRIS_DF_Controller.py
Python
bsd-2-clause
6,110
""" Utilities to simplify the boilerplate for native lowering. """ import collections import contextlib import inspect import functools from enum import Enum from numba.core import typing, types, utils, cgutils from numba.core.typing.templates import BaseRegistryLoader class Registry(object): """ A registr...
sklam/numba
numba/core/imputils.py
Python
bsd-2-clause
14,752
import unittest from ..gwt import GwtIO from ...FileIO import FileIO as psopen from .... import examples as pysal_examples import tempfile import os import warnings class test_GwtIO(unittest.TestCase): def setUp(self): self.test_file = test_file = pysal_examples.get_path('juvenile.gwt') self.obj =...
sjsrey/pysal_core
pysal_core/io/IOHandlers/tests/test_gwt.py
Python
bsd-3-clause
1,656
from __future__ import unicode_literals import os import datetime from django.test import TestCase, Client, override_settings from django.utils import timezone from ..models import Show, Episode, Enclosure try: from django.urls import reverse except ImportError: from django.core.urlresolvers import reverse ...
richardcornish/django-itunespodcast
podcast/tests/__init__.py
Python
bsd-3-clause
5,519
# -*- coding:utf-8 -*- import urlparse from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.http.response import HttpResponseBadRequest from .base import Mixin from .. import strings class SuccessURLAliasViewMixin(Mixin): def get_success_url(self): return revers...
hellhovnd/dentexchange
dentexchange/apps/libs/mixins/views.py
Python
bsd-3-clause
1,114
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ['DJANGO_SETTINGS_MODULE'] = 'lfs_downloads.tests._settings' import django from django.conf import settings from django.test.utils import get_runner django.setup() TestRunner = get_runner(settings) test_runner ...
misaelnieto/lfs_downloads
runtests.py
Python
bsd-3-clause
412
"""private_base will be populated from puppet and placed in this directory""" import logging import os import dj_database_url from lib.settings_base import ( CACHE_PREFIX, ES_INDEXES, KNOWN_PROXIES, LOGGING, CSP_SCRIPT_SRC, CSP_FRAME_SRC) from .. import splitstrip import private_base as private ENGAGE_ROBO...
Joergen/olympia
sites/identitystage/settings_base.py
Python
bsd-3-clause
5,553
""" Test lldb-mi -var-xxx commands. """ from __future__ import print_function import lldbmi_testcase from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class MiVarTestCase(lldbmi_testcase.MiTestCaseBase): mydir = TestBase.compute_mydir(__file__) ...
youtube/cobalt
third_party/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/variable/TestMiVar.py
Python
bsd-3-clause
24,254
from django.test import TestCase from api.models import UsernameSnippet class TestUsernameSnippet(TestCase): @classmethod def setUpTestData(cls): UsernameSnippet.objects.create(available=True) def test_existence(self): u = UsernameSnippet.objects.first() self.assertIsInstance(u, UsernameSnippet) self.ass...
jeremyphilemon/uniqna
api/tests/test_models.py
Python
bsd-3-clause
459
class AjaxTemplateMixin(object): ajax_template_name = '' template_name = '' def dispatch(self, request, *args, **kwargs): if not hasattr(self, 'ajax_template_name'): split = self.template_name.split('.html') split[-1] = '_inner' split.append('.html') ...
savioabuga/phoenix
phoenix/utils/view_utils.py
Python
bsd-3-clause
528
from ..libmp.backend import xrange from .calculus import defun #----------------------------------------------------------------------------# # Polynomials # #----------------------------------------------------------------------------# # XXX: extra preci...
JensGrabner/mpmath
mpmath/calculus/polynomials.py
Python
bsd-3-clause
7,877
from __future__ import division, absolute_import, print_function import sys import gzip import os import threading from tempfile import mkstemp, NamedTemporaryFile import time import warnings import gc from io import BytesIO from datetime import datetime import numpy as np import numpy.ma as ma from numpy.lib._iotool...
larsmans/numpy
numpy/lib/tests/test_io.py
Python
bsd-3-clause
66,065
#!/usr/bin/env python import time,os,re,csv,sys,uuid,joblib from datetime import date import numpy as np from sklearn import svm from sklearn import datasets from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report def train_model(X,y,saved_model): """ function t...
ajrichards/bayesian-examples
python/howto-logging.py
Python
bsd-3-clause
3,052
""" Compatibility helpers for older Python versions. """ import sys PY2 = sys.version_info[0] == 2
praba230890/PYPOWER
pypower/_compat.py
Python
bsd-3-clause
103
I = complex(0,1) ha2ev = 27.211396132 ev2cm1 = 8065.5440044136285 bohr2ang = 0.52917720859 atomic_mass = [ None, 1.00794, 4.002602, 6.941, 9.012182, 10.811, 12.0107, 14.0067, 15.9994, 18.9984032, 20.1797, 22.98976928, 24.305,26.9815386, 28.0855, ...
alexmoratalla/yambopy
yambopy/units.py
Python
bsd-3-clause
2,898
from core_types import IncompatibleTypes, ImmutableT class FnT(ImmutableT): """Type of a typed function""" def __init__(self, input_types, return_type): self.input_types = tuple(input_types) self.return_type = return_type self._hash = hash(self.input_types + (return_type,)) def __str__(self): ...
pombredanne/parakeet
parakeet/ndtypes/fn_type.py
Python
bsd-3-clause
1,204
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (C) 2015 Daniel Standage <daniel.standage@gmail.com> # # This file is part of tag (http://github.com/standage/tag) and is licensed # under the BSD 3-clause license: see LICENSE. # ------------------------...
standage/tag
tag/__init__.py
Python
bsd-3-clause
1,438
#!/usr/bin/env python # # Copyright (C) 2009 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...
dekom/threepress-bookworm-read-only
bookworm/gdata/tests/all_tests_coverage.py
Python
bsd-3-clause
1,805
# 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 test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leopard, snowleopard, lion, mountainlio...
Just-D/chromium-1
content/test/gpu/gpu_tests/gpu_test_expectations.py
Python
bsd-3-clause
3,819
from __future__ import absolute_import, print_function from datetime import timedelta from django.utils import timezone from freezegun import freeze_time from sentry.models import CheckInStatus, Monitor, MonitorCheckIn, MonitorStatus, MonitorType from sentry.testutils import APITestCase @freeze_time("2019-01-01") c...
mvaled/sentry
tests/sentry/api/endpoints/test_monitor_checkins.py
Python
bsd-3-clause
5,664
#!/usr/bin/env python # Copyright Contributors to the Open Shading Language project. # SPDX-License-Identifier: BSD-3-Clause # https://github.com/AcademySoftwareFoundation/OpenShadingLanguage command = testshade("-g 128 128 -od uint8 -o Cout out.tif test") outputs = [ "out.txt", "out.tif" ]
imageworks/OpenShadingLanguage
testsuite/hashnoise/run.py
Python
bsd-3-clause
294
import json from os.path import join from django.conf import settings from django.core.management.base import NoArgsCommand from program.models import ProgramSlot class Command(NoArgsCommand): help = 'checks the automation_ids used by program slots against the exported' def handle_noargs(self, **options): ...
nnrcschmdt/helsinki
program/management/commands/check_automation_ids.py
Python
bsd-3-clause
1,616
#!/usr/bin/env pythonw #from __future__ import print_function import sys import wx import os import matplotlib if matplotlib.get_backend() != "WXAgg": matplotlib.use("WXAgg") import matplotlib.pyplot as plt from pmagpy import pmagplotlib import pmagpy.command_line_extractor as extractor import pmagpy.ipmag as ipm...
lfairchild/PmagPy
programs/core_depthplot.py
Python
bsd-3-clause
8,467
""" .. _sfm-reconst: ============================================== Reconstruction with the Sparse Fascicle Model ============================================== In this example, we will use the Sparse Fascicle Model (SFM) [Rokem2015]_, to reconstruct the fiber Orientation Distribution Function (fODF) in every voxel. ...
FrancoisRheaultUS/dipy
doc/examples/sfm_reconst.py
Python
bsd-3-clause
6,318
import numpy as np from brew.base import Ensemble from brew.metrics.diversity.paired import kuncheva_double_fault_measure from .base import DCS class DSKNN(DCS): """DS-KNN The DS-KNN selects an ensemble of classifiers based on their accuracy and diversity in the neighborhood of the test sample. ...
thypad/brew
skensemble/selection/dynamic/dsknn.py
Python
mit
3,563
# This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild # The source was jpeg.ksy from here - https://github.com/kaitai-io/kaitai_struct_formats/blob/24e2d00048b8084ceec30a187a79cb87a79a48ba/image/jpeg.ksy import array import struct import zlib from enum import Enum from kai...
mosajjal/mitmproxy
mitmproxy/contrib/kaitaistruct/jpeg.py
Python
mit
8,139
import numpy import pandas import statsmodels.api as sm def complex_heuristic(file_path): ''' You are given a list of Titantic passengers and their associating information. More information about the data can be seen at the link below: http://www.kaggle.com/c/titanic-gettingStarted/data For this e...
KellyChan/python-examples
python/data_science/Titanic/complexHeuristic.py
Python
mit
2,546
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "logger.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
h4/fuit-webdev
projects/logger/manage.py
Python
mit
249
import os from holster.enum import Enum from rowboat.types import Model, SlottedModel, Field, DictField, text, raw, rule_matcher CooldownMode = Enum( 'GUILD', 'CHANNEL', 'USER', ) class PluginConfigObj(object): client = None class PluginsConfig(Model): def __init__(self, inst, obj): s...
b1naryth1ef/rowboat
rowboat/types/guild.py
Python
mit
1,573
import logging try: from configparser import ConfigParser except ImportError: # Python 2 support from ConfigParser import ConfigParser logger = logging.getLogger("packges.knightos.org") logger.setLevel(logging.DEBUG) sh = logging.StreamHandler() sh.setLevel(logging.DEBUG) formatter = logging.Formatter("%...
KnightOS/packages.knightos.org
packages/config.py
Python
mit
619
from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.directnotify.DirectNotifyGlobal import directNotify from otp.otpbase import OTPGlobals from otp.avatar.Avatar import teleportNotify from otp.friends import FriendResponseCodes class PlayerFriendsManager(DistributedObjectGlobal):...
Spiderlover/Toontown
otp/friends/PlayerFriendsManager.py
Python
mit
9,425
#!/usr/bin/python import pygame import enemies from core import balloon, bullet, game, gem, particle, player, world from scenes import credits, scene, splashscreen from ui import menu, text from utils import prettyprint, utility, vector from utils.settings import * pygame.init() utility.read_settings() if settings...
JoshuaSkelly/TroubleInCloudLand
main.py
Python
mit
12,372
from django import http from django.conf.urls import patterns from django.contrib import admin from django.db import models from django.forms.models import modelform_factory from django.shortcuts import get_object_or_404 from django.template import loader, Context from django.views.generic import View def get_printab...
SohoTechLabs/django-ajax-changelist
ajax_changelist/admin.py
Python
mit
4,495
#!/usr/bin/env python -Es """ Script to set up a custom genome for bcbio-nextgen """ from __future__ import print_function from argparse import ArgumentParser import collections import gzip import os from Bio import SeqIO import toolz as tz from bcbio.utils import safe_makedir, file_exists, chdir, is_gzipped from bcb...
a113n/bcbio-nextgen
scripts/bcbio_setup_genome.py
Python
mit
15,182
from .ctp_gateway import CtpGateway
bigdig/vnpy
vnpy/gateway/ctp/__init__.py
Python
mit
35
import os from jedi._compatibility import FileNotFoundError, force_unicode, scandir from jedi.api import classes from jedi.api.strings import StringName, get_quote_ending from jedi.api.helpers import match from jedi.inference.helpers import get_str_or_none class PathName(StringName): api_type = u'path' def com...
sserrot/champion_relationships
venv/Lib/site-packages/jedi/api/file_name.py
Python
mit
5,707
# # Copyright (c) 2001 - 2016 The SCons Foundation # # 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 limitation the rights to use, copy, modify, merge...
EmanueleCannizzaro/scons
src/engine/SCons/Tool/mssdk.py
Python
mit
1,834
from django.contrib.auth.models import User from django.contrib.auth.admin import UserAdmin from django.contrib import admin from django.contrib.admin.sites import NotRegistered from models import UserOpenidAssociation class OpenIDInline(admin.StackedInline): model = UserOpenidAssociation class UserAdminWithOpen...
indro/t2c
apps/external_apps/django_openid/admin.py
Python
mit
658
#!/usr/bin/python3 import sys, getpass, urllib.request, urllib.error, json def mgmt(cmd, data=None, is_json=False): # The base URL for the management daemon. (Listens on IPv4 only.) mgmt_uri = 'http://127.0.0.1:10222' setup_key_auth(mgmt_uri) req = urllib.request.Request(mgmt_uri + cmd, urllib.parse.urlencode(d...
Toilal/mailinabox
tools/mail.py
Python
cc0-1.0
4,331
# flags.py # # Copyright (C) 2013 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that...
kellinm/blivet
blivet/flags.py
Python
gpl-2.0
3,954
import os from functools import partial from PyQt4.QtGui import QWidget from PyQt4.QtCore import Qt from qgis.core import QgsMapLayer from qgis.gui import QgsExpressionBuilderDialog from roam.api.utils import layer_by_name from configmanager.models import QgsLayerModel, QgsFieldModel from configmanager.editorwidget...
lmotta/Roam
src/configmanager/editorwidgets/listwidget.py
Python
gpl-2.0
5,997
# -*- coding: utf-8 -*- # # test documentation build configuration file, created by # sphinx-quickstart on Sun Jun 26 00:00:43 2016. # # 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. # # All ...
hanyassasa87/ns3-802.11ad
doc/manual/source/conf.py
Python
gpl-2.0
10,879
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2010, 2011, 2012, 2013 CERN. ## ## Invenio 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 ...
AlbertoPeon/invenio
modules/bibupload/lib/batchuploader_engine.py
Python
gpl-2.0
28,252
# -*- coding: utf-8 -*- # # This file is part of the Shiboken Python Bindings Generator project. # # Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). # # Contact: PySide team <contact@pyside.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Le...
codewarrior0/Shiboken
tests/py3kcompat.py
Python
gpl-2.0
1,372
# Copyright 2004-2005 Joe Wreschnig, Michael Urman, Iñigo Serna # # 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. impor...
Mellthas/quodlibet
quodlibet/qltk/tagsfrompath.py
Python
gpl-2.0
11,346
import socket from pyroute2.common import map_namespace from pyroute2.netlink import nlmsg from pyroute2.netlink import nla # address attributes # # Important comment: # For IPv4, IFA_ADDRESS is a prefix address, not a local interface # address. It makes no difference for normal interfaces, but # for point-to-point on...
jazzmes/pyroute2
pyroute2/netlink/rtnl/ifaddrmsg.py
Python
gpl-2.0
2,709
# -*- Mode: python; coding:utf-8; indent-tabs-mode: nil -*- */ # # This file is part of systemd. # # Copyright 2012 David Strauss <david@davidstrauss.net> # Copyright 2012 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> # Copyright 2012 Marti Raudsepp <marti@juffo.org> # # systemd is free software; you can redist...
pragmatux/systemd
src/python-systemd/journal.py
Python
gpl-2.0
20,273
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
tardyp/buildbot
master/buildbot/db/steps.py
Python
gpl-2.0
7,224
# This file is part of Lurklib. # Copyright (C) 2011 LK- # # Lurklib is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
ElectroCode/lurklib
lurklib/connection.py
Python
gpl-3.0
13,948
# -*- coding: utf-8 -*- """ InaSAFE Disaster risk assessment tool developed by AusAid - **metadata module.** 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 the Free Sof...
Gustry/inasafe
safe/metadata/generic_layer_metadata.py
Python
gpl-3.0
3,730
#! /usr/bin/env python import rospy import actionlib from move_base_msgs.msg import MoveBaseActionGoal from actionlib_msgs.msg import GoalID class ForceCancel(object): def __init__(self, nodename="force_cancel", is_newnode=True, repetition=10): self.repetition = rospy.get_param("~repetition", repetition) ...
ron1818/Singaboat_RobotX2016
robotx_nav/nodes/move_base_force_cancel.py
Python
gpl-3.0
1,191
# Copyright 2015 Rémy Lapeyrade <remy at lapeyrade dot net> # Copyright 2015 LAAS-CNRS # # # This file is part of TouSIX-Manager. # # TouSIX-Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Founda...
Baloc/TouSIX-Manager
tousix_manager/Administration/adminsite.py
Python
gpl-3.0
1,145
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2015-2020 Stephane Caron <stephane.caron@normalesup.org> # # This file is part of pymanoid <https://github.com/stephane-caron/pymanoid>. # # pymanoid is free software: you can redistribute it and/or modify it under the # terms of the GNU General Public Lic...
stephane-caron/pymanoid
pymanoid/ik.py
Python
gpl-3.0
18,284
######################################################################## # # File Name: HTMLStyleElement # # Documentation: http://docs.4suite.com/4DOM/HTMLStyleElement.html # ### This file is automatically generated by GenerateHtml.py. ### DO NOT EDIT! """ WWW: http://4suite.com/4DOM e-mail...
iCarto/siga
extScripting/scripts/jython/Lib/xml/dom/html/HTMLStyleElement.py
Python
gpl-3.0
1,885
#!/usr/bin/python import numpy as np import os import sys from keras.layers import Activation, Dense, Input from keras.layers.normalization import BatchNormalization from keras.models import Model, Sequential from keras.optimizers import RMSprop NUM_OF_HIDDEN_NEURONS = 100 QNETWORK_NAME = 'online_netw...
356255531/SpikingDeepRLControl
code/EnvBo/Q-Learning/Testing_Arm_4points/q_networks.py
Python
gpl-3.0
3,008
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
spbguru/repo1
nupic/support/__init__.py
Python
gpl-3.0
27,136
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
reedloden/ansible
lib/ansible/executor/task_queue_manager.py
Python
gpl-3.0
13,130
# -*- coding: utf-8 -*- # Resource object code # # Created: Sun May 12 18:04:51 2013 # by: The Resource Compiler for PyQt (Qt v5.0.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x03\x54\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\...
DevinDewitt/pyqt5
examples/mainwindows/sdi/sdi_rc.py
Python
gpl-3.0
36,524
# -*- coding: utf-8 -*- __all__ = ["cc"]
MarieVdS/ComboCode
__init__.py
Python
gpl-3.0
42
################################################ # # file moved to own repository: # https://github.com/mozilla/Mozilla-GitHub-Standards # ################################################
mozilla/github-org-scripts
check_CoC.py
Python
mpl-2.0
195
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar) # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Pu...
dvitme/odoo-addons
portal_partner_fix/__openerp__.py
Python
agpl-3.0
1,565
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2010, Eucalyptus Systems, Inc. # All rights reserved. # # 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 res...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/boto/exception.py
Python
agpl-3.0
17,106
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Andrea Cometa. # Email: info@andreacometa.it # Web site: http://www.andreacometa.it # Copyright (C) 2012 Agile Business Group sagl (<http://www.agilebg.com>) # Copyright (C) 2012 ...
abstract-open-solutions/l10n-italy
l10n_it_ricevute_bancarie/models/account_config.py
Python
agpl-3.0
2,038
from __future__ import unicode_literals from django.conf.urls import url from . import views urlpatterns = [ url(r'^upload/election/(?P<election>[^/]+)/post/(?P<post_id>[^/]+)/$', views.CreateDocumentView.as_view(), name='upload_document_view'), url(r'^(?P<pk>\d+)/$', views.DocumentVi...
mysociety/yournextmp-popit
official_documents/urls.py
Python
agpl-3.0
376
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import requests from odoo.addons.microsoft_calendar.models.microsoft_sync import microsoft_calendar_token from datetime import timedelta from odoo import api, fields, models, _ from odoo.exceptions import...
rven/odoo
addons/microsoft_calendar/models/res_users.py
Python
agpl-3.0
5,093
from StringIO import StringIO from sympy.core import symbols, Eq, pi, Catalan, Lambda, Dummy from sympy.utilities.codegen import CCodeGen, Routine, InputArgument, Result, \ CodeGenError, FCodeGen, codegen, CodeGenArgumentListError, OutputArgument, \ InOutArgument from sympy.utilities.pytest import XFAIL, raise...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/sympy/utilities/tests/test_codegen.py
Python
agpl-3.0
39,167
import string from django.utils.text import slugify from django.utils.timezone import now from lxml import html from lxml.html import tostring from lxml.html.clean import Cleaner from cl.lib.string_utils import anonymize, trunc from cl.search.models import OpinionCluster from juriscraper.lib.string_utils import clean_...
voutilad/courtlistener
cl/corpus_importer/dup_helpers.py
Python
agpl-3.0
14,568
# coding: utf-8 import datetime from django.core.management.base import BaseCommand # from django.template.loader import render_to_string from django.db.models import Count from scheduler.models import Need from shiftmailer.models import Mailer from shiftmailer.excelexport import GenerateExcelSheet DATE_FORMAT = '...
FriedrichK/volunteer_planner
shiftmailer/management/commands/mailer.py
Python
agpl-3.0
1,636
''' TBD '''
Phantasus/intelmq
intelmq/bots/collectors/xmpp/collector.py
Python
agpl-3.0
11
from __future__ import unicode_literals from django.apps import AppConfig class SystemConfig(AppConfig): name = 'system'
inteos/IBAdmin
system/apps.py
Python
agpl-3.0
128
import numpy as np import unittest from ..aux_readers import NASA_2DVD_reader class TestNasa2DvdReaderMc3eSubcase(unittest.TestCase): "Test module for the NASA_2DVD_reader class in pydsd.aux_io.NASA_2DVD_reader for mc3e files" def setUp(self): filename = "testdata/nasa_gv_mc3e_2dvd_test.txt" ...
josephhardinee/PyDisdrometer
pydsd/tests/testNasa2DVDReader_mc3e.py
Python
lgpl-2.1
1,716