repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
foodszhang/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/site-packages/pip/_vendor/colorama/ansi.py
527
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. ''' This module generates ANSI character codes to printing colors to terminals. See: http://en.wikipedia.org/wiki/ANSI_escape_code ''' CSI = '\033[' def code_to_chars(code): return CSI + str(code) + 'm' class AnsiCodes(object): def __...
GeassDB/xunlei-lixian
refs/heads/master
lixian_util.py
11
__all__ = [] import re def format_1d(n): return re.sub(r'\.0*$', '', '%.1f' % n) def format_size(n): if n < 1000: return '%sB' % n elif n < 1000**2: return '%sK' % format_1d(n/1000.) elif n < 1000**3: return '%sM' % format_1d(n/1000.**2) elif n < 1000**4: return '%sG' % format_1d(n/1000.**3) def pars...
briancline/softlayer-python
refs/heads/master
SoftLayer/tests/managers/network_tests.py
2
""" SoftLayer.tests.managers.network_tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :license: MIT, see LICENSE for more details. """ import SoftLayer from SoftLayer import fixtures from SoftLayer import testing class NetworkTests(testing.TestCase): def set_up(self): self.network = SoftLayer.Ne...
Syrcon/servo
refs/heads/master
tests/dromaeo/run_dromaeo.py
72
#!/usr/bin/env python # 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/. import os import subprocess import sys import BaseHTTPServer import SimpleHTTPServer import urlpa...
bloyl/mne-python
refs/heads/placeholder
mne/io/diff.py
14
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD Style. import numpy as np from ..utils import logger, verbose @verbose def is_equal(first, second, verbose=None): """Check if 2 python structures are the same. Designed to handle dict, list, np.ndarray etc. """ all_equal = ...
srajag/nova
refs/heads/master
nova/tests/conductor/tasks/__init__.py
12133432
shsingh/ansible
refs/heads/devel
lib/ansible/module_utils/network/iosxr/argspec/lag_interfaces/__init__.py
12133432
ychen820/microblog
refs/heads/master
y/google-cloud-sdk/platform/google_appengine/lib/django-1.5/django/contrib/gis/management/__init__.py
12133432
IPMITMO/statan
refs/heads/master
coala/coalib/processes/__init__.py
12133432
gohin/django
refs/heads/master
tests/expressions/__init__.py
12133432
faun/django_test
refs/heads/master
tests/regressiontests/sites_framework/__init__.py
12133432
heeraj123/oh-mainline
refs/heads/master
vendor/packages/python-social-auth/social/storage/__init__.py
12133432
RJRetro/mame
refs/heads/master
3rdparty/googletest/googlemock/scripts/generator/cpp/__init__.py
12133432
JshWright/home-assistant
refs/heads/dev
homeassistant/helpers/aiohttp_client.py
4
"""Helper for aiohttp webclient stuff.""" import asyncio import sys import aiohttp from aiohttp.hdrs import USER_AGENT, CONTENT_TYPE from aiohttp import web from aiohttp.web_exceptions import HTTPGatewayTimeout, HTTPBadGateway import async_timeout from homeassistant.core import callback from homeassistant.const impor...
gaddman/ansible
refs/heads/devel
lib/ansible/plugins/strategy/__init__.py
2
# (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...
MartinHjelmare/home-assistant
refs/heads/dev
homeassistant/components/ring/binary_sensor.py
7
"""This component provides HA sensor support for Ring Door Bell/Chimes.""" from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.binary_sensor import ( PLATFORM_SCHEMA, BinarySensorDevice) from homeassistant.const import ( ATTR_ATTRIBUTION, CONF_ENTITY_NAMESPACE,...
bb111189/CryptoKnocker
refs/heads/master
CryptoKnocker/mainpage/urls.py
1
__author__ = 'trs' from django.conf.urls import patterns, url urlpatterns = patterns("", url(r"^$", "mainpage.views.index"), )
dudepare/django
refs/heads/master
tests/db_functions/__init__.py
12133432
bryanjjones/pyConsensusFinder
refs/heads/master
modules/__init__.py
12133432
tsuru/postgres-api
refs/heads/master
postgresapi/managers.py
1
# -*- coding: utf-8 -*- from .models import Instance, generate_password, generate_user from .storage import InstanceStorage, InstanceAlreadyExists, InstanceNotFound from flask import current_app as app import psycopg2 import docker import time from urlparse import urlparse class DockerUnexpectedResponse(Exception): ...
quater/calico-containers
refs/heads/master
calicoctl/tests/unit/__init__.py
12133432
edcast-inc/edx-platform-edcast
refs/heads/master
lms/djangoapps/foldit/migrations/__init__.py
12133432
intake/filesystem_spec
refs/heads/master
fsspec/tests/__init__.py
12133432
fafaman/django
refs/heads/master
django/contrib/gis/utils/ogrinfo.py
564
""" This module includes some utility functions for inspecting the layout of a GDAL data source -- the functionality is analogous to the output produced by the `ogrinfo` utility. """ from django.contrib.gis.gdal import DataSource from django.contrib.gis.gdal.geometries import GEO_CLASSES def ogrinfo(data_source, num...
seibert/blaze-core
refs/heads/master
blaze/tests/test_metadata.py
1
'''Tests of blaze.metadata package.''' import blaze def test_metadata_has_prop(): a = blaze.ones(blaze.dshape('20, 20, float64')) c = blaze.NDTable([(1.0, 1.0), (1.0, 1.0)], dshape='2, {x: int32; y: float32}') assert blaze.metadata.has_prop(a, blaze.metadata.arraylike) assert blaze.metadata.has_prop(c...
retomerz/intellij-community
refs/heads/master
python/helpers/pycharm/tcmessages.py
6
import sys class TeamcityServiceMessages: quote = {"'": "|'", "|": "||", "\n": "|n", "\r": "|r", ']': '|]'} def __init__(self, output=sys.stdout, prepend_linebreak=False): self.output = output self.prepend_linebreak = prepend_linebreak self.test_stack = [] """ Names of...
alikins/ansible
refs/heads/devel
lib/ansible/errors/__init__.py
16
# (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...
DmitryOdinoky/sms-tools
refs/heads/master
lectures/08-Sound-transformations/plots-code/stftMorph-orchestra.py
18
import numpy as np import time, os, sys from scipy.signal import hamming, resample import matplotlib.pyplot as plt sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../../software/models/')) sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../../software/transfo...
xuanyuanking/spark
refs/heads/master
python/pyspark/pandas/tests/plot/test_frame_plot_matplotlib.py
14
# # 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...
czgu/opendataexperience
refs/heads/master
env/lib/python2.7/site-packages/django/contrib/formtools/tests/wizard/wizardtests/tests.py
49
from __future__ import unicode_literals import copy import os from django import forms from django.test import TestCase from django.test.client import RequestFactory from django.conf import settings from django.contrib.auth.models import User from django.contrib.auth.tests.utils import skipIfCustomUser from django.co...
2ndQuadrant/ansible
refs/heads/master
lib/ansible/modules/cloud/google/_gcp_backend_service.py
37
#!/usr/bin/python # Copyright 2017 Google 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['deprecated']...
davidsiefert/ansible-modules-extras
refs/heads/devel
monitoring/librato_annotation.py
138
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Seth Edwards, 2014 # # 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 ...
jkenn99/phantomjs
refs/heads/master
src/qt/qtwebkit/Tools/Scripts/webkitpy/thirdparty/mod_pywebsocket/mux.py
636
# Copyright 2012, Google 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 f...
tempbottle/ironpython3
refs/heads/master
Src/StdLib/Lib/ctypes/test/test_parameters.py
11
import unittest, sys class SimpleTypesTestCase(unittest.TestCase): def setUp(self): import ctypes try: from _ctypes import set_conversion_mode except ImportError: pass else: self.prev_conv_mode = set_conversion_mode("ascii", "strict") def te...
fighterlyt/bite-project
refs/heads/master
server/googledocs/docs_gateway.py
17
# Copyright 2010 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 a...
jeremiahyan/odoo
refs/heads/master
addons/sale_management/models/sale_order.py
1
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import timedelta from odoo import api, fields, models, _ from odoo.exceptions import UserError, ValidationError from odoo.tools import is_html_empty class SaleOrder(models.Model): _inherit = 'sale.or...
vishnu-kumar/PeformanceFramework
refs/heads/master
rally_os/plugins/openstack/scenarios/nova/networks.py
17
# Copyright 2015: Mirantis 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...
jstrobl/rts2
refs/heads/master
scripts/u_point/u_point/devices.py
3
# (C) 2016, Markus Wildi, wildi.markus@bluewin.ch # # 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, or (at your option) # any later version. # # This program is distr...
kaushik94/sympy
refs/heads/master
sympy/simplify/powsimp.py
2
from __future__ import print_function, division from collections import defaultdict from sympy.core.function import expand_log, count_ops from sympy.core import sympify, Basic, Dummy, S, Add, Mul, Pow, expand_mul, factor_terms from sympy.core.compatibility import ordered, default_sort_key, reduce from sympy.core.numb...
tarzan0820/odoo
refs/heads/8.0
addons/hr_evaluation/report/hr_evaluation_report.py
313
# -*- 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...
fhe-odoo/odoo
refs/heads/8.0
addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py
340
# -*- 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...
manassolanki/erpnext
refs/heads/develop
erpnext/support/doctype/issue/test_issue.py
112
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest test_records = frappe.get_test_records('Issue') class TestIssue(unittest.TestCase): pass
lucacasagrande/qgis2web
refs/heads/master
writerRegistry.py
1
# -*- coding: utf-8 -*- # Copyright (C) 2017 Nyall Dawson (nyall.dawson@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any l...
jamescway/finagle
refs/heads/master
doc/src/sphinx/_themes/flask_theme_support.py
2228
# flasky extensions. flasky pygments style based on tango style from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal class FlaskyStyle(Style): background_color = "#f8f8f8" default_style = "...
Jgarcia-IAS/localizacion
refs/heads/master
openerp/sql_db.py
39
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you ca...
jwiggins/scikit-image
refs/heads/master
skimage/util/tests/__init__.py
672
from ..._shared.testing import setup_test, teardown_test def setup(): setup_test() def teardown(): teardown_test()
shakamunyi/tensorflow
refs/heads/master
tensorflow/contrib/data/python/ops/sloppy_ops.py
6
# 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...
nlapalu/SDDetector
refs/heads/master
SDDetector/Parser/Blast/BlastTabParser.py
1
#!/usr/bin/env python import logging from SDDetector.Entities.Alignment import Alignment class BlastTabParser(object): def __init__(self, inputBlastTabFile=""): """Constructor""" self.inputBlastTabFile = inputBlastTabFile def getAllAlignments(self): """Return list of all Alignments...
wfxiang08/django190
refs/heads/master
tests/admin_widgets/models.py
99
from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_unicode_compatible class MyFileField(models.FileField): pass @python_2_unicode_compatible class Member(models.Model): name = models.CharField(max_lengt...
DESHONOR/android_kernel_huawei_g620s_Eloy
refs/heads/cm-11.0
tools/perf/tests/attr.py
3174
#! /usr/bin/python import os import sys import glob import optparse import tempfile import logging import shutil import ConfigParser class Fail(Exception): def __init__(self, test, msg): self.msg = msg self.test = test def getMsg(self): return '\'%s\' - %s' % (self.test.path, self.msg)...
yize/grunt-tps
refs/heads/master
tasks/lib/python/Lib/python2.7/telnetlib.py
67
r"""TELNET client class. Based on RFC 854: TELNET Protocol Specification, by J. Postel and J. Reynolds Example: >>> from telnetlib import Telnet >>> tn = Telnet('www.python.org', 79) # connect to finger port >>> tn.write('guido\r\n') >>> print tn.read_all() Login Name TTY Idle When ...
malaterre/serna-free-backup
refs/heads/master
serna/dist/plugins/publishing/XSernaApi/__init__.py
5
## ## Copyright(c) 2009 Syntext, Inc. All Rights Reserved. ## Contact: info@syntext.com, http://www.syntext.com ## ## This file is part of Syntext Serna XML Editor. ## ## COMMERCIAL USAGE ## Licensees holding valid Syntext Serna commercial licenses may use this file ## in accordance with the Syntext Serna Commercial...
InScience/DAMIS-old
refs/heads/master
src/algorithms/preprocess.py
1
import csv from datetime import datetime from os.path import split, splitext, join, exists from os import makedirs from random import random from math import sqrt, fabs def z_factor(source, output, attr=-1, filter=None, update_value=True): # First scan to get mean and deviation attr_sum = 0.0 attr_sq_sum ...
edx/edx-platform
refs/heads/master
cms/djangoapps/contentstore/api/views/course_quality.py
4
# lint-amnesty, pylint: disable=missing-module-docstring import logging import time import numpy as np from edxval.api import get_videos_for_course from rest_framework.generics import GenericAPIView from rest_framework.response import Response from scipy import stats from openedx.core.lib.api.view_utils import Develo...
viggates/nova
refs/heads/master
nova/api/openstack/compute/schemas/v3/flavor_access.py
20
# Copyright 2013 NEC Corporation. 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 ...
mateor/pants
refs/heads/master
tests/python/pants_test/backend/jvm/subsystems/test_incomplete_custom_scala.py
4
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import contextlib im...
youprofit/cobbler
refs/heads/master
cobbler/item_file.py
15
""" Copyright 2006-2009, MadHatter Kelsey Hightower <kelsey.hightower@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version...
dllsf/odootest
refs/heads/master
addons/mail/tests/common.py
125
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (c) 2012-TODAY OpenERP S.A. <http://openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of ...
xbezdick/packstack
refs/heads/master
tests/installer/test_setup_params.py
3
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013, 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/LI...
tpltnt/SimpleCV
refs/heads/master
SimpleCV/examples/detection/dealwithit.py
1
#!/usr/bin/python import time from SimpleCV import * def check_eyes(eyes): return (eyes and len(eyes) >= 2) def process_eyes(image, eyes): dx, dy = eyes[-1].coordinates() - eyes[-2].coordinates() if dx > 0: right_eye = eyes[-2] else: dx = -1*dx right_eye = eyes[-1] if dx...
uts-cic/CLAtoolkit
refs/heads/master
clatoolkit_project/xapi/tests.py
24123
from django.test import TestCase # Create your tests here.
agentfog/qiime
refs/heads/master
qiime/denoiser/make_cluster_jobs.py
15
#!/usr/bin/env python """A simple qsub based cluster submission script.""" __author__ = "Jens Reeder" __copyright__ = "Copyright 2011, The QIIME Project" # remember to add yourself if you make changes __credits__ = ["Jens Reeder", "Rob Knight", "Jai Ram Rideout"] __license__ = "GPL" __version__ = "1.9.1-dev" __mainta...
KaroDievas/audfprint
refs/heads/master
profile_audfprint.py
5
import audfprint import cProfile import pstats argv = ["audfprint", "new", "-d", "tmp.fpdb", "--density", "200", "Nine_Lives/01-Nine_Lives.mp3", "Nine_Lives/02-Falling_In_Love.mp3", "Nine_Lives/03-Hole_In_My_Soul.mp3", "Nine_Lives/04-Taste_Of_India.mp3", "Nine_Lives/05-Full_Circle.mp3", "Nine_Lives/06-Something_s_Gott...
victorzhao/miniblink49
refs/heads/master
v8_4_5/tools/v8heapconst.py
5
# Copyright 2013 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
onshape-public/onshape-clients
refs/heads/master
python/onshape_client/oas/models/btm_parameter_derived864.py
1
# coding: utf-8 """ Onshape REST API The Onshape REST API consumed by all clients. # noqa: E501 The version of the OpenAPI document: 1.113 Contact: api-support@onshape.zendesk.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 im...
armikhael/software-center
refs/heads/master
softwarecenter/backend/weblive.py
2
#!/usr/bin/python # Copyright (C) Canonical # # Author: 2011 Stephane Graber <stgraber@ubuntu.com> # Michael Vogt <mvo@ubuntu.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; ...
sckott/pygbif
refs/heads/master
pygbif/package_metadata.py
1
__version__ = "0.5.3" __title__ = "pygbif" __author__ = "Scott Chamberlain" __license__ = "MIT"
TalShafir/ansible
refs/heads/devel
lib/ansible/modules/cloud/openstack/os_project.py
30
#!/usr/bin/python # Copyright (c) 2015 IBM Corporation # 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': ['prev...
portnov/assethub
refs/heads/master
assethub/assets/serializers.py
1
from django.contrib.auth.models import User from taggit.models import Tag from rest_framework import serializers, viewsets from assets.models import Asset, Application, Component, License class TagsField(serializers.Field): def to_representation(self, obj): return ", ".join([tag.slug for tag in obj.all()...
GoogleCloudPlatform/declarative-resource-client-library
refs/heads/main
python/services/compute/beta/route.py
1
# Copyright 2021 Google 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 by applicable law o...
aminghadersohi/airflow
refs/heads/master
airflow/example_dags/example_trigger_controller_dag.py
45
# -*- coding: utf-8 -*- # # 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 ...
acknapp/checkin
refs/heads/master
tools/populate_db.py
1
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import csv import argparse from models import Base, Member def usage(): """ Command line usage from the program. :return: """ parser = argparse.ArgumentParser(description="ETL for putting csv data into the database") ...
sajuptpm/neutron-ipam
refs/heads/stable/icehouse
neutron/plugins/ibm/sdnve_neutron_plugin.py
4
# Copyright 2014 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 required by a...
zhengyongbo/phantomjs
refs/heads/master
src/breakpad/src/tools/gyp/test/generator-output/gyptest-top-all.py
151
#!/usr/bin/env python # Copyright (c) 2009 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. """ Verifies building a project hierarchy created when the --generator-output= option is used to put the build configuration files in a sepa...
htwenhe/DJOA
refs/heads/master
env/Lib/site-packages/django/conf/locale/es_MX/formats.py
504
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals DATE_FORMAT = r'j \d\e F \d\e Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\a\s H:i' YEAR_MONTH_FORMAT = r'F \d\e Y' MONTH_DAY_FORMAT = r'j \d\e F' SHORT_DATE_...
abaldwin1/tc_aws
refs/heads/master
tc_aws/loaders/__init__.py
1
# coding: utf-8 # Copyright (c) 2015, thumbor-community # Use of this source code is governed by the MIT license that can be # found in the LICENSE file. __all__ = ['_get_bucket_and_key', '_get_bucket', '_get_key', '_validate_bucket', '_use_http_loader'] import urllib2 def _get_bucket_and_key(context, url): """...
ZECTBynmo/notnode-gyp
refs/heads/master
gyp/test/many-actions/gyptest-many-actions-unsorted.py
244
#!/usr/bin/env python # 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. """ Make sure lots of actions in the same target don't cause exceeding command line length. """ import TestGyp test = TestGyp.TestGyp() t...
Servir-Mekong/SurfaceWaterTool
refs/heads/master
lib/google/cloud/_helpers.py
6
# Copyright 2014 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 agreed to in writing, s...
azumimuo/family-xbmc-addon
refs/heads/master
script.module.youtube.dl/lib/youtube_dl/extractor/dumpert.py
36
# coding: utf-8 from __future__ import unicode_literals import base64 import re from .common import InfoExtractor from ..utils import ( qualities, sanitized_Request, ) class DumpertIE(InfoExtractor): _VALID_URL = r'(?P<protocol>https?)://(?:www\.)?dumpert\.nl/(?:mediabase|embed)/(?P<id>[0-9]+/[0-9a-zA-Z...
wardi/datacats
refs/heads/master
datacats/__init__.py
12133432
cparawhore/ProyectoSubastas
refs/heads/master
site-packages/django/conf/locale/es_AR/__init__.py
12133432
kionetworks/openstack-dashboard-havana
refs/heads/master
openstack_dashboard/__init__.py
12133432
mvcsantos/QGIS
refs/heads/master
python/plugins/processing/algs/lidar/lastools/lasview.py
9
# -*- coding: utf-8 -*- """ *************************************************************************** lasview.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com --------------------- D...
resmo/ansible
refs/heads/devel
test/units/modules/network/netvisor/test_pn_snmp_trap_sink.py
23
# Copyright: (c) 2018, Pluribus Networks # 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 from units.compat.mock import patch from ansible.modules.network.netvisor import pn_snmp_trap_si...
adrienbrault/home-assistant
refs/heads/dev
homeassistant/components/zha/switch.py
5
"""Switches on Zigbee Home Automation networks.""" from __future__ import annotations import functools from typing import Any from zigpy.zcl.clusters.general import OnOff from zigpy.zcl.foundation import Status from homeassistant.components.switch import DOMAIN, SwitchEntity from homeassistant.const import STATE_ON,...
stadtgestalten/stadtgestalten
refs/heads/master
grouprise/features/memberships/migrations/0012_application.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-08 14:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('memberships', '0011_auto_20170112_0944'), ] operations = [ migrations.Creat...
jhedev/terraform
refs/heads/master
vendor/github.com/ugorji/go/codec/test.py
1516
#!/usr/bin/env python # This will create golden files in a directory passed to it. # A Test calls this internally to create the golden files # So it can process them (so we don't have to checkin the files). # Ensure msgpack-python and cbor are installed first, using: # sudo apt-get install python-dev # sudo apt-g...
gjaldon/otp
refs/heads/maint
lib/asn1/test/asn1_SUITE_data/SwCDR.py
97
SwCDR DEFINITIONS IMPLICIT TAGS ::= BEGIN EXPORTS SwCDR; SwCDR ::= CHOICE { origSvcCallRecord [0] OrigSvcCallRecord, termSvcCallRecord [1] TermSvcCallRecord } --OrigSvcCallRecord ::= SET OrigSvcCallRecord ::= SEQUENCE { callCorrelationId [0] INTEGER , chargingIndicator [1] ChargingIndicator, ...
nkgilley/home-assistant
refs/heads/dev
tests/components/flume/test_config_flow.py
6
"""Test the flume config flow.""" import requests.exceptions from homeassistant import config_entries, setup from homeassistant.components.flume.const import DOMAIN from homeassistant.const import ( CONF_CLIENT_ID, CONF_CLIENT_SECRET, CONF_PASSWORD, CONF_USERNAME, ) from tests.async_mock import MagicM...
csutherl/sos
refs/heads/master
sos/plugins/systemd.py
8
# Copyright (C) 2012 Red Hat, Inc., Bryn M. Reeves <bmr@redhat.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # ...
nicoboss/Floatmotion
refs/heads/master
OpenGL/GL/SGIX/tag_sample_buffer.py
7
'''OpenGL extension SGIX.tag_sample_buffer This module customises the behaviour of the OpenGL.raw.GL.SGIX.tag_sample_buffer to provide a more Python-friendly API Overview (from the spec) The extensions defines a special purpose fast multisample clear. This clear can be used with some restrictions as a significa...
jhawkesworth/ansible
refs/heads/devel
lib/ansible/plugins/callback/dense.py
34
# (c) 2016, Dag Wieers <dag@wieers.com> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' callback: dense type: stdout short_description: mi...
minhphung171093/GreenERP_V9
refs/heads/master
openerp/addons/procurement/wizard/__init__.py
47
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import schedulers_all
nitin-cherian/Webapps
refs/heads/master
SimpleIsBetterThanComplex.com/myproject/.env/lib/python3.5/site-packages/setuptools/command/install.py
529
from distutils.errors import DistutilsArgError import inspect import glob import warnings import platform import distutils.command.install as orig import setuptools # Prior to numpy 1.9, NumPy relies on the '_install' name, so provide it for # now. See https://github.com/pypa/setuptools/issues/199/ _install = orig.in...
tkaitchuck/nupic
refs/heads/master
external/linux64/lib/python2.6/site-packages/yaml/cyaml.py
538
__all__ = ['CBaseLoader', 'CSafeLoader', 'CLoader', 'CBaseDumper', 'CSafeDumper', 'CDumper'] from _yaml import CParser, CEmitter from constructor import * from serializer import * from representer import * from resolver import * class CBaseLoader(CParser, BaseConstructor, BaseResolver): def __init__(...
jjmleiro/hue
refs/heads/master
desktop/core/ext-py/Paste-2.0.1/paste/__init__.py
49
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php try: import pkg_resources pkg_resources.declare_namespace(__name__) except ImportError: # don't prevent use of paste if pkg_resources isn't...
trabacus-softapps/openerp-8.0-cc
refs/heads/master
openerp/addons/stock_location/__init__.py
68
# -*- 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...
devdelay/home-assistant
refs/heads/dev
homeassistant/components/proximity.py
12
""" Support for tracking the proximity of a device. Component to monitor the proximity of devices to a particular zone and the direction of travel. For more details about this component, please refer to the documentation at https://home-assistant.io/components/proximity/ """ import logging from homeassistant.helpers...
Servir-Mekong/ecodash
refs/heads/master
lib/oauth2client/contrib/gce.py
1
# 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 ...
ojii/django-fixture-shell
refs/heads/master
fixture_shell/management/commands/__init__.py
12133432