repo_name
stringlengths
5
100
path
stringlengths
4
294
copies
stringclasses
990 values
size
stringlengths
4
7
content
stringlengths
666
1M
license
stringclasses
15 values
ivaano/zato
code/zato-web-admin/src/zato/admin/web/views/channel/stomp.py
6
2613
# -*- coding: utf-8 -*- """ Copyright (C) 2015 Dariusz Suchojad <dsuch at zato.io> Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ from __future__ import absolute_import, division, print_function, unicode_literals # stdlib import logging # Django from django.http import HttpResponse, HttpRespo...
gpl-3.0
lewisodriscoll/sasview
src/sas/sasgui/perspectives/pr/inversion_state.py
1
18834
""" Handling of P(r) inversion states """ ################################################################################ #This software was developed by the University of Tennessee as part of the #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) #project funded by the US National Science Founda...
bsd-3-clause
avlach/univbris-ocf
expedient/src/python/expedient_geni/utils.py
2
7330
'''Utility functions. Created on Sep 13, 2010 @author: jnaous ''' import os import re from django.conf import settings from geni.util.urn_util import URN from geni.util.cert_util import create_cert from sfa.trust.gid import GID from django.core.urlresolvers import reverse from geni.util import cred_util import uuid d...
bsd-3-clause
tbinjiayou/Odoo
addons/sale/sale.py
15
69231
# -*- 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...
agpl-3.0
kalessin/scrapy
scrapy/selector/unified.py
15
6177
""" XPath selectors based on lxml """ from lxml import etree import six from scrapy.utils.misc import extract_regex from scrapy.utils.trackref import object_ref from scrapy.utils.python import unicode_to_str, flatten, iflatten from scrapy.utils.decorators import deprecated from scrapy.http import HtmlResponse, XmlRes...
bsd-3-clause
0x46616c6b/ansible
lib/ansible/modules/cloud/vmware/vmware_cluster.py
16
9983
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Joseph Callen <jcallen () csc.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 Li...
gpl-3.0
d00d/quantNotebooks
Notebooks/strategies/from quantopian.algorithm import attach_pipeline,.py
1
4644
from quantopian.algorithm import attach_pipeline, pipeline_output from quantopian.pipeline import Pipeline from quantopian.pipeline.data.builtin import USEquityPricing from quantopian.pipeline.factors import CustomFactor, SimpleMovingAverage from quantopian.pipeline.data import morningstar import pandas as pd import n...
unlicense
40223112/w16test
static/Brython3.1.1-20150328-091302/Lib/site-packages/pygame/colordict.py
621
24077
## pygame - Python Game Library ## Copyright (C) 2000-2003 Pete Shinners ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Library General Public ## License as published by the Free Software Foundation; either ## version 2 of the License, or (...
agpl-3.0
RalphBariz/RalphsDotNet
Old/RalphsDotNet.Apps.OptimizationStudio/Resources/PyLib/numpy/distutils/fcompiler/nag.py
94
1332
import sys from numpy.distutils.fcompiler import FCompiler compilers = ['NAGFCompiler'] class NAGFCompiler(FCompiler): compiler_type = 'nag' description = 'NAGWare Fortran 95 Compiler' version_pattern = r'NAGWare Fortran 95 compiler Release (?P<version>[^\s]*)' executables = { 'version_cmd'...
gpl-3.0
uclaros/QGIS
python/console/console.py
19
36846
# -*- coding:utf-8 -*- """ /*************************************************************************** Python Console for QGIS ------------------- begin : 2012-09-10 copyright : (C) 2012 by Salvatore Larosa email : lrssvtml (at) gmail (dot) com ***...
gpl-2.0
cjaymes/pyscap
src/scap/model/xccdf_1_1/ValueType.py
1
5031
# Copyright 2016 Casey Jaymes # This file is part of PySCAP. # # PySCAP 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. # # PySCAP is ...
gpl-3.0
zycdragonball/tensorflow
tensorflow/tools/docs/generate.py
92
1946
# 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...
apache-2.0
bpilania/SDNGini
backend/src/gloader/xml/xslt/XPatternParserBase.py
9
3719
import XPattern from xml.FtCore import get_translator _ = get_translator("xslt") SYNTAX_ERR_MSG = _("Error parsing pattern:\n'%s'\nSyntax error at or near '%s' Line: %d, Production Number: %s") INTERNAL_ERR_MSG = _("Error parsing pattern:\n'%s'\nInternal error in processing at or near '%s', Line: %d, Production Num...
mit
uwafsl/MissionPlanner
Lib/site-packages/numpy/distutils/command/config_compiler.py
101
4288
from distutils.core import Command from numpy.distutils import log #XXX: Linker flags def show_fortran_compilers(_cache=[]): # Using cache to prevent infinite recursion if _cache: return _cache.append(1) from numpy.distutils.fcompiler import show_fcompilers import distutils.core dist = distuti...
gpl-3.0
andymckay/django
django/forms/forms.py
81
22264
""" Form classes """ from __future__ import absolute_import import copy from django.core.exceptions import ValidationError from django.forms.fields import Field, FileField from django.forms.util import flatatt, ErrorDict, ErrorList from django.forms.widgets import Media, media_property, TextInput, Textarea from djan...
bsd-3-clause
simongoffin/website_version
addons/hr_timesheet_sheet/__init__.py
434
1127
# -*- 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...
agpl-3.0
MarcelGerber/brackets-shell
gyp/pylib/gyp/input.py
11
116141
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from compiler.ast import Const from compiler.ast import Dict from compiler.ast import Discard from compiler.ast import List from compiler.ast import Module from co...
mit
shivanikhosa/browserscope
categories/summary/test_set.py
9
2578
#!/usr/bin/python2.4 # # Copyright 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 applicable law or ...
apache-2.0
openshift/openshift-tools
openshift/installer/vendored/openshift-ansible-3.10.0-0.29.0/roles/lib_openshift/src/ansible/oc_adm_csr.py
21
1483
# pylint: skip-file # flake8: noqa def main(): ''' ansible oc module for approving certificate signing requests ''' module = AnsibleModule( argument_spec=dict( kubeconfig=dict(default='/etc/origin/master/admin.kubeconfig', type='str'), state=dict(default='approve', type...
apache-2.0
zendesk/dd-agent
daemon.py
19
9809
""" *** Modified generic daemon class *** Author: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ www.boxedice.com www.datadoghq.com License: http://creativecommons.org/licenses/by-sa/3.0/ """ # Core modules import atexit import e...
bsd-3-clause
doduytrung/odoo-8.0
addons/gamification/models/badge.py
287
13760
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013 OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the ...
agpl-3.0
jamescorsini/Kaggle_Titanic
gendermodel.py
27
3666
""" This simple code is desinged to teach a basic user to read in the files in python, simply find what proportion of males and females survived and make a predictive model based on this Author : AstroDave Date : 18 September 2012 Revised: 28 March 2014 """ import csv as csv import numpy as np csv_file_object = csv...
mit
xguse/ggplot
ggplot/tests/test_theme_mpl.py
12
3907
from __future__ import (absolute_import, division, print_function, unicode_literals) import matplotlib as mpl import six from nose.tools import assert_true from ggplot.tests import image_comparison, cleanup from ggplot import * def _diff(a, b): ret = {} for key, val in a.items(): ...
bsd-2-clause
bhargav2408/python-for-android
python-build/python-libs/gdata/build/lib/atom/url.py
280
4277
#!/usr/bin/python # # Copyright (C) 2008 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 ...
apache-2.0
x75/mavlink
pymavlink/examples/mavtogpx.py
4
2639
#!/usr/bin/env python ''' example program to extract GPS data from a mavlink log, and create a GPX file, for loading into google earth ''' import sys, struct, time, os # allow import from the parent directory, where mavlink.py is sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')) fr...
lgpl-3.0
alphagov/digitalmarketplace-supplier-frontend
tests/app/main/helpers/validation/test_shared_validator.py
1
1259
from app.main.helpers.validation import SharedValidator from app.main import content_loader from .test_dos_declaration import FULL_DOS_SUBMISSION import pytest @pytest.fixture def dos4_submission(): dos4 = FULL_DOS_SUBMISSION.copy() dos4["mitigatingFactors3"] = "" dos4["modernSlaveryTurnover"] = True ...
mit
Natim/sentry
src/sentry/web/frontend/remove_account.py
7
2599
from __future__ import absolute_import import logging from django import forms from django.contrib.auth import logout from sentry.api import client from sentry.models import ( Organization, OrganizationMember, OrganizationMemberType, User ) from sentry.web.frontend.base import BaseView class RemoveAccountForm(...
bsd-3-clause
Sidney84/pa-chromium
tools/find_depot_tools.py
74
1374
# Copyright (c) 2011 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. """Small utility function to find depot_tools and add it to the python path. Will throw an ImportError exception if depot_tools can't be found since it i...
bsd-3-clause
MokaCreativeLLC/XNATImageViewer
utility-scripts/python/MokaUtils.py
4
34154
# python from __future__ import with_statement import os import sys import shutil import gzip import zipfile import inspect import datetime import getopt from collections import OrderedDict class MokaUtils(object): """ MokaUtils is a set of utility classes and methods for python. """ SCRIPT_...
bsd-3-clause
haiwen/pyes
tests/test_filters.py
5
12427
# -*- coding: utf-8 -*- from __future__ import absolute_import import unittest import datetime from pyes.tests import ESTestCase from pyes import filters, Search, utils class ScriptFilterTestCase(ESTestCase): def test_lang(self): f = filters.ScriptFilter( 'name', params={ ...
bsd-3-clause
caot/intellij-community
python/lib/Lib/site-packages/django/template/loaders/cached.py
229
2469
""" Wrapper class that takes a list of template loaders as an argument and attempts to load templates from them in order, caching the result. """ from django.core.exceptions import ImproperlyConfigured from django.template.base import TemplateDoesNotExist from django.template.loader import BaseLoader, get_template_fro...
apache-2.0
kingland/go-v8
v8-3.28/build/gyp/test/win/gyptest-link-pgo.py
239
2993
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Make sure PGO is working properly. """ import TestGyp import os import sys if sys.platform == 'win32': test = TestGyp.TestGyp(forma...
mit
cloud-fan/spark
examples/src/main/python/ml/vector_indexer_example.py
27
1646
# # 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...
apache-2.0
pridemusvaire/youtube-dl
youtube_dl/extractor/vbox7.py
92
2298
# encoding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( compat_urllib_parse, compat_urllib_request, compat_urlparse, ) from ..utils import ( ExtractorError, ) class Vbox7IE(InfoExtractor): _VALID_URL = r'http://(?:www\.)?vbox7\.com/play:(...
unlicense
huihoo/reader
vendor/readability/htmls.py
1
3548
from cleaners import normalize_spaces, clean_attributes from encoding import get_encoding from lxml.html import tostring import logging import lxml.html import re logging.getLogger().setLevel(logging.DEBUG) utf8_parser = lxml.html.HTMLParser(encoding='utf-8') def build_doc(page): if isinstance(page, unicode): ...
mit
hippysurfer/family-camp
Archive/Old Shell Version/gen_invoices.py
1
8056
# coding=utf-8 """Process Family Camp Invoices. Usage: gen_invoices.py [-d] gen_invoices.py (-h | --help) gen_invoices.py --version Options: -d,--debug Turn on debug output. -h,--help Show this screen. --version Show version. """ import os import smtplib import sys import socket from docop...
mit
DerThorsten/nifty
src/python/test/graph/shortest_path/test_shortest_path_dijkstra.py
1
4307
from __future__ import print_function import unittest import numpy import nifty import nifty.graph class TestShortesetPath(unittest.TestCase): def graphAndWeights(self): edges = numpy.array([ [0,1], [1,2], [2,3], [3,4], [0,5], [4,5] ...
mit
bertjwregeer/zonecreate
zonecreate/zone_update_soa.py
1
2588
# File: zone_update_soa.py # Author: Bert JW Regeer <bertjw@regeer.org> # Created: 2013-02-15 import os import os.path import sys import re import datetime soa_regex = re.compile(r"@\s+(?P<record_ttl>[0-9]+[a-z]*)?\s+IN\s+SOA\s+(?P<ns>[\w\.]+)\s+(?P<hostmaster>[\w\.]+)\s+\(\s*(?P<serial>\d+)\D*(?P<refresh>\d+)\D*(?P<...
isc
bluetib/netaddr
runtests.py
4
219438
#! /usr/bin/env python sources = """ eNrsvWuXG9l1KKZ787gxkmv7Jjf5lqwSGLqqSDTYpEa2jDsYmRqRMm1pZtaQY41Wqy9YDVQ3arpQ BVYV2N2RleSf5EfkR+Qf5XP26zzrFIDmPGSvlbHF7gbO2ee1zz77vf/Pf/vHdz9KvvrL7d10UdZX 08WiqIpusXj3b776h/F4HMFnV0V1FT3/4lWUxNumXu2WedPGUVatonhZV+1uQ3/Dr1W+7PJV9L7I ouv87qZuVm0aAZDR6N2//erf4Qhtt3r3X7z5v/7Nj35UbLZ100X...
bsd-3-clause
ecolitan/fatics
venv/lib/python2.7/site-packages/twisted/names/cache.py
42
3804
# -*- test-case-name: twisted.names.test -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ An in-memory caching resolver. """ from __future__ import division, absolute_import from twisted.names import dns, common from twisted.python import failure, log from twisted.internet import defer...
agpl-3.0
thicklizard/AwesomeSauce1_1
tools/perf/scripts/python/sctop.py
11180
1924
# system call top # (c) 2010, Tom Zanussi <tzanussi@gmail.com> # Licensed under the terms of the GNU GPL License version 2 # # Periodically displays system-wide system call totals, broken down by # syscall. If a [comm] arg is specified, only syscalls called by # [comm] are displayed. If an [interval] arg is specified,...
gpl-2.0
cosenal/waterbutler
tests/core/streams/test_stringstream.py
6
1306
import pytest from tests.utils import async from waterbutler.core import streams class TestStringStream: @async def test_works(self): data = b'This here be a string yar' stream = streams.StringStream(data) read = yield from stream.read() assert data == read @async d...
apache-2.0
leo524/7mos-fourm
node_modules/nodebb-plugin-markdown/node_modules/pygmentize-bundled/vendor/pygments/build-2.7/pygments/lexers/jvm.py
193
48876
# -*- coding: utf-8 -*- """ pygments.lexers.jvm ~~~~~~~~~~~~~~~~~~~ Pygments lexers for JVM languages. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, ...
gpl-3.0
JulieWestfall/django-calaccess-raw-data
example/toolbox/management/commands/createcalaccessrawmodeldocs.py
20
1133
import os from django.conf import settings from calaccess_raw import get_model_list from django.template.loader import render_to_string from calaccess_raw.management.commands import CalAccessCommand class Command(CalAccessCommand): help = 'Generate documentation for raw CAL-ACCESS database models' def handle...
mit
rgbconsulting/rgb-pos
pos_cache_enhanced/models/pos_cache.py
2
3407
# -*- coding: utf-8 -*- # See README file for full copyright and licensing details. from ast import literal_eval import json import zlib import base64 from openerp import models, fields, api class PosCache(models.Model): _name = 'pos.cache' cache = fields.Binary() product_domain = fields.Text(required=T...
agpl-3.0
40223102/w110519
static/Brython3.1.1-20150328-091302/Lib/importlib/abc.py
743
14595
"""Abstract base classes related to import.""" from . import _bootstrap from . import machinery try: import _frozen_importlib except ImportError as exc: if exc.name != '_frozen_importlib': raise _frozen_importlib = None import abc import imp import marshal import sys import tokenize import warnings ...
agpl-3.0
eckucukoglu/arm-linux-gnueabihf
arm-linux-gnueabihf/libc/usr/lib/python2.7/ctypes/test/test_unicode.py
81
5101
# coding: latin-1 import unittest import ctypes try: ctypes.c_wchar except AttributeError: pass else: import _ctypes_test dll = ctypes.CDLL(_ctypes_test.__file__) wcslen = dll.my_wcslen wcslen.argtypes = [ctypes.c_wchar_p] class UnicodeTestCase(unittest.TestCase): def setUp(self):...
gpl-2.0
rabimba/p2pScrapper
BitTorrent-5.2.2/BTL/psapi.py
11
2555
# Windows PSAPI function wrappers. # http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/psapi_functions.asp # # The contents of this file are subject to the Python Software Foundation # License Version 2.3 (the License). You may not copy or use this file, in # either source code or executabl...
mit
Spiderlover/Toontown
otp/speedchat/SCObject.py
6
1623
from direct.directnotify import DirectNotifyGlobal from direct.showbase.DirectObject import DirectObject class SCObject(DirectObject): notify = DirectNotifyGlobal.directNotify.newCategory('SpeedChat') def __init__(self): self.settingsRef = None self.__visible = 0 self.__dirty = 1 ...
mit
amjames/psi4
psi4/driver/qcdb/util/mpl.py
1
2263
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
lgpl-3.0
dlazz/ansible
test/units/modules/network/f5/test_bigip_device_trust.py
21
5290
# -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # 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 import os import json import pytest import sys if sys.version_info < (2, ...
gpl-3.0
liberorbis/libernext
env/lib/python2.7/site-packages/werkzeug/security.py
148
8971
# -*- coding: utf-8 -*- """ werkzeug.security ~~~~~~~~~~~~~~~~~ Security related helpers such as secure password hashing tools. :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import os import hmac import hashlib import posi...
gpl-2.0
zsiciarz/django-markitup
tests/test_settings.py
2
1288
from __future__ import unicode_literals from os.path import dirname, abspath, join BASE_DIR = dirname(abspath(__file__)) INSTALLED_APPS = [ "django.contrib.auth", "django.contrib.contenttypes", "markitup", "tests", "tests.test_migration", ] DATABASES = { "default": { "ENGINE": "djang...
bsd-3-clause
TribeMedia/sky_engine
tools/valgrind/asan/third_party/asan_symbolize.py
64
16609
#!/usr/bin/env python #===- lib/asan/scripts/asan_symbolize.py -----------------------------------===# # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. # #===----------------------------------------...
bsd-3-clause
nongxiaoming/rt-thread
bsp/allwinner_tina/rtconfig.py
9
1472
import os # toolchains options ARCH ='arm' CPU ='arm9' CROSS_TOOL ='gcc' if os.getenv('RTT_ROOT'): RTT_ROOT = os.getenv('RTT_ROOT') else: RTT_ROOT = '../..' if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' EXEC_PATH = r'E:\wo...
apache-2.0
Kegbot/kegbot-server
pykeg/util/runner.py
1
4573
from builtins import object import copy import logging import os import pwd import signal import sys import subprocess import time logger = logging.getLogger(__name__) POLL_INTERVAL_SECONDS = 1.0 class Runner(object): """Runs several commands together as a process group, acting as a watchdog while running. ...
gpl-2.0
mcdaniel67/sympy
sympy/assumptions/handlers/matrices.py
71
13732
""" This module contains query handlers responsible for calculus queries: infinitesimal, bounded, etc. """ from __future__ import print_function, division from sympy.logic.boolalg import conjuncts from sympy.assumptions import Q, ask from sympy.assumptions.handlers import CommonHandler, test_closed_group from sympy.ma...
bsd-3-clause
boundlessgeo/suite-qgis-plugin
src/opengeo/geoserver/retry.py
1
1340
from geoserver.catalog import Catalog import httplib2 from urlparse import urlparse def retryMethodDecorator(func): def decorator(*args, **kwargs): try: result = func(*args, **kwargs) except Exception, e: if "Errno 10053" in unicode(e): result = func(*args, *...
gpl-2.0
melviso/phycpp
beatle/app/resources/_project.py
2
7554
# -*- coding: utf-8 -*- _project = [ "24 24 391 2", " c None", ". c #8EFBCA", "+ c #79FCAF", "@ c #5BF7A6", "# c #46FD9A", "$ c #41FE86", "% c #36FE81", "& c #3AFC74", "* c #80D1EE", "= c #6CCEB9", "- c #54CC89", "; c #40E281", "> c #2EFE7D", ", c #1FFF74", "' c #15FC65", ") c #15F362", "! c #11EB5F"...
gpl-2.0
jaap-karssenberg/zim-desktop-wiki
tests/utils.py
1
2773
# Copyright 2012-2013 Jaap Karssenberg <jaap.karssenberg@gmail.com> import tests from copy import copy from zim.utils import * class TestNaturalSorting(tests.TestCase): def runTest(self): input = [ 'a', 'Aa', 'AA', # (these last 2 should be swapped due to case) '1.1 foo', '10.1.1 bar', '2.1 dus', '1.01 ...
gpl-2.0
TradeHero/gitinspector
gitinspector/gitinspector.py
1
7161
#!/usr/bin/python # coding: utf-8 # # Copyright © 2012-2014 Ejwa Software. All rights reserved. # # This file is part of gitinspector. # # gitinspector 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 ve...
gpl-3.0
xwolf12/django
django/core/management/base.py
83
23884
# -*- coding: utf-8 -*- """ Base classes for writing management commands (named commands which can be executed through ``django-admin`` or ``manage.py``). """ from __future__ import unicode_literals import os import sys import warnings from argparse import ArgumentParser from optparse import OptionParser import djang...
bsd-3-clause
morpheyesh/ghostblog
node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/pygments/styles/autumn.py
364
2144
# -*- coding: utf-8 -*- """ pygments.styles.autumn ~~~~~~~~~~~~~~~~~~~~~~ A colorful style, inspired by the terminal highlighting style. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.to...
mit
CMUSV-VisTrails/WorkflowRecommendation
vistrails/gui/mashups/alias_list.py
1
13784
############################################################################### ## ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary forms, with or without ## modification, ...
bsd-3-clause
acsone/acsone-addons
hr_utilization/wizard/__init__.py
1
1429
# -*- coding: utf-8 -*- ############################################################################## # # Authors: Stéphane Bidoul & Olivier Laurent # Copyright (c) 2012 Acsone SA/NV (http://www.acsone.eu) # All Rights Reserved # # WARNING: This program as such is intended to be used by professional # programmers who ...
agpl-3.0
mrts/foodbank-campaign
src/volunteers/admin.py
1
1854
from django.db import models from django.forms.widgets import Textarea from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from volunteers.models import Volunteer from coordinators.models import filter_by_district from campaigns.admin import VolunteerParticipantInlineBase class C...
mit
clalancette/condor-dcloud
src/condor_contrib/condor_pigeon/src/condor_pigeon_client/skype_linux_tools/Skype4Py/Languages/he.py
10
13839
apiAttachAvailable = u'API \u05d6\u05de\u05d9\u05df' apiAttachNotAvailable = u'\u05d0\u05d9\u05e0\u05d5 \u05d6\u05de\u05d9\u05df' apiAttachPendingAuthorization = u'\u05de\u05de\u05ea\u05d9\u05df \u05dc\u05d0\u05d9\u05e9\u05d5\u05e8' apiAttachRefused = u'\u05e0\u05d3\u05d7\u05d4' apiAttachSuccess = u'\u05d4\u05e6\u0...
apache-2.0
asimshankar/tensorflow
tensorflow/tools/docs/parser.py
16
57960
# 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...
apache-2.0
ContinuumIO/chaco
chaco/scales/formatters.py
3
23402
""" Classes for formatting labels for values or times. """ from math import ceil, floor, fmod, log10 from numpy import abs, all, array, asarray, amax, amin from safetime import strftime, time, safe_fromtimestamp, localtime import warnings __all__ = ['NullFormatter', 'BasicFormatter', 'IntegerFormatter', '...
bsd-3-clause
Nick-Hall/gramps
gramps/gen/filters/rules/_matcheseventfilterbase.py
5
2464
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2010 Benny Malengier # # 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)...
gpl-2.0
cloudera/hue
desktop/core/ext-py/Django-1.11.29/django/template/engine.py
59
7687
from django.core.exceptions import ImproperlyConfigured from django.utils import lru_cache, six from django.utils.functional import cached_property from django.utils.module_loading import import_string from .base import Context, Template from .context import _builtin_context_processors from .exceptions import Template...
apache-2.0
ogrisel/numpy
tools/test-installed-numpy.py
9
2385
#!/usr/bin/env python from __future__ import division, absolute_import, print_function # A simple script to test the installed version of numpy by calling # 'numpy.test()'. Key features: # -- convenient command-line syntax # -- sets exit status appropriately, useful for automated test environments # It would be b...
bsd-3-clause
jcurbelo/networkx
networkx/classes/digraph.py
8
43074
"""Base class for directed graphs.""" # Copyright (C) 2004-2015 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. from copy import deepcopy import networkx as nx from networkx.classes.graph import Graph from ne...
bsd-3-clause
Hellowlol/PyTunes
libs/mako/ext/pygmentplugin.py
19
4536
# ext/pygmentplugin.py # Copyright (C) 2006-2012 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from pygments.lexers.web import \ HtmlLexer, XmlLexer, JavascriptLexer, CssLexer from py...
gpl-3.0
anirudhjayaraman/scikit-learn
sklearn/linear_model/tests/test_passive_aggressive.py
169
8809
import numpy as np import scipy.sparse as sp from sklearn.utils.testing import assert_less from sklearn.utils.testing import assert_greater from sklearn.utils.testing import assert_array_almost_equal, assert_array_equal from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import assert_rais...
bsd-3-clause
defance/edx-platform
lms/djangoapps/branding/tests/test_page.py
11
12131
""" Tests for branding page """ import datetime from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.http import HttpResponseRedirect from django.test.utils import override_settings from django.test.client import RequestFactory from pytz import UTC from mock import patch,...
agpl-3.0
arhik/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/dates.py
15
33969
""" Matplotlib provides sophisticated date plotting capabilities, standing on the shoulders of python :mod:`datetime`, the add-on modules :mod:`pytz` and :mod:`dateutils`. :class:`datetime` objects are converted to floating point numbers which represent the number of days since 0001-01-01 UTC. The helper functions :f...
agpl-3.0
crlang/sublime-text---front-end-config
Data/Packages/WakaTime/packages/wakatime/packages/chardet/chardistribution.py
289
9411
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
mit
bgxavier/nova
nova/tests/unit/compute/test_rpcapi.py
1
20783
# Copyright 2012, 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 agr...
apache-2.0
Voyacoin/Voyacoin
qa/rpc-tests/forknotify.py
1
2182
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test -alertnotify # from test_framework import VoyacoinTestFramework from voyacoinrpc.authproxy import A...
mit
ya7lelkom/googleads-python-lib
examples/dfp/v201502/content_metadata_key_hierarchy_service/update_content_metadata_key_hierarchies.py
3
3872
#!/usr/bin/python # # 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 b...
apache-2.0
ksrajkumar/openerp-6.1
openerp/addons/l10n_pl/__init__.py
975
1058
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify #...
agpl-3.0
listamilton/supermilton.repository
plugin.video.sembilhete.tv/resources/lib/requests/sessions.py
165
24544
# -*- coding: utf-8 -*- """ requests.session ~~~~~~~~~~~~~~~~ This module provides a Session object to manage and persist settings across requests (cookies, auth, proxies). """ import os from collections import Mapping from datetime import datetime from .auth import _basic_auth_str from .compat import cookielib, Or...
gpl-2.0
nextgis-extra/tests
lib_gdal/ogr/ogr_htf.py
1
4813
#!/usr/bin/env python ############################################################################### # $Id: ogr_htf.py 33793 2016-03-26 13:02:07Z goatbar $ # # Project: GDAL/OGR Test Suite # Purpose: Test read functionality for OGR HTF driver. # Author: Even Rouault <even dot rouault at mines dash paris dot org> #...
gpl-2.0
moreati/numpy
benchmarks/benchmarks/bench_io.py
29
1642
from __future__ import absolute_import, division, print_function from .common import Benchmark, squares import numpy as np class Copy(Benchmark): params = ["int8", "int16", "float32", "float64", "complex64", "complex128"] param_names = ['type'] def setup(self, typename): dtype = n...
bsd-3-clause
martinhbramwell/CellMergeWorkAround
manage_arguments.py
1
4960
#!/usr/bin/python # -*- coding: utf-8 -*- # import argparse def getArgs() : default_sheet_name = 'meta_patches' # desc = 'A tool for writing a CSV file into a new/existing sheet in a spreadsheet.\nAn OAuth access token is required.' desc = 'A tool for getting the row span, column span & / or border s...
mit
zidel/ktorrent
scripts/kcfg_qobject_gen.py
2
7276
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Script to generate a QObject based class out of a kcfg and kcfgc file which # Can be used as a dbus interface. # import sys import getopt import xml.dom.minidom import traceback license = """/***************************************************************************...
gpl-2.0
miguelgrinberg/heat
heat/engine/resources/openstack/keystone/endpoint.py
3
4890
# # 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 # ...
apache-2.0
rh-s/heat
heat/tests/test_trove_cluster.py
1
6589
# # 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 # ...
apache-2.0
nathanielvarona/airflow
airflow/providers/google/cloud/example_dags/example_gcs_to_gcs.py
3
5632
# # 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...
apache-2.0
dmonner/tweater
py/nltk/corpus/reader/indian.py
4
3044
# Natural Language Toolkit: Indian Language POS-Tagged Corpus Reader # # Copyright (C) 2001-2011 NLTK Project # Author: Steven Bird <sb@ldc.upenn.edu> # Edward Loper <edloper@gradient.cis.upenn.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT """ Indian Language POS-Tagged Corpus C...
gpl-3.0
ahmadiga/min_edx
lms/djangoapps/shoppingcart/context_processor.py
173
1679
""" This is the shoppingcart context_processor module. Currently the only context_processor detects whether request.user has a cart that should be displayed in the navigation. We want to do this in the context_processor to 1) keep database accesses out of templates (this led to a transaction bug with user email change...
agpl-3.0
johanesmikhael/ContinuityAnalysis
ifcmaterials.py
1
10145
class Material(object): reflectance_methods = dict() reflectance_methods[0] = "blinn" # smooth, slightly shiny appearance. reflectance_methods[1] = "flat" # constant colour reflectance_methods[2] = "glass" # glass-like materials reflectance_methods[3] = "matt" # dull matte appearance reflect...
mit
indrajitr/ansible
lib/ansible/modules/reboot.py
7
3617
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, 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 = r''' module: reboot short_description: ...
gpl-3.0
Bulochkin/tensorflow_pack
tensorflow/python/saved_model/loader.py
127
2726
# 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...
apache-2.0
maartenq/ansible
lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py
48
14108
#!/usr/bin/python # # Copyright (c) 2015 CenturyLink # 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['previe...
gpl-3.0
abhijitmamarde/autokey
src/lib/qtui/settingswidget.py
50
4191
#!/usr/bin/env python # coding=UTF-8 # # Generated by pykdeuic4 from settingswidget.ui on Sun Mar 4 11:39:40 2012 # # WARNING! All changes to this file will be lost. from PyKDE4 import kdecore from PyKDE4 import kdeui from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: ...
gpl-3.0
mcgachey/edx-platform
lms/djangoapps/certificates/tests/test_webview_views.py
3
28697
# -*- coding: utf-8 -*- """Tests for certificates views. """ import json import ddt import mock from uuid import uuid4 from nose.plugins.attrib import attr from mock import patch from django.conf import settings from django.core.urlresolvers import reverse from django.test.client import Client from django.test.utils ...
agpl-3.0
smlacombe/sageo
app/model/columns/column_painter_state.py
1
1173
# # Copyright (C) 2013 Savoir-Faire Linux Inc. # # This file is part of Sageo # # Sageo 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 optio...
gpl-3.0
chand3040/sree_odoo
openerp/report/render/rml2html/rml2html.py
438
15438
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2005, Fabien Pinckaers, UCL, FSA # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesse...
agpl-3.0