repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
tanglei528/horizon
refs/heads/master
openstack_dashboard/dashboards/project/database_backups/__init__.py
12133432
l1ll1/cvl-fabric-launcher
refs/heads/master
pyinstaller-2.1/PyInstaller/loader/rthooks/pyi_rth_babel.py
10
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this softwa...
Thingee/cinder
refs/heads/master
cinder/tests/keymgr/test_mock_key_mgr.py
17
# Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory # 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/...
Khan/werkzeug
refs/heads/master
werkzeug/testsuite/local.py
74
# -*- coding: utf-8 -*- """ werkzeug.testsuite.local ~~~~~~~~~~~~~~~~~~~~~~~~ Local and local proxy tests. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import time import unittest from threading import Thread from werkzeug.testsuite import WerkzeugTestC...
facepalm/kivy-colony-game
refs/heads/master
planetresources.py
1
import random import numpy as np #planetary resource model. # metals silicates hydrates minerals alkalines organics corrosives conductives radioactives nobles # 777777 AAAAAA raw_dist = np.array([ 1.0, 0.1, 0.001, 1.0, 0.01, 0.01, 1.0, 0.1, 0.001]) raw_names = ['metallics', 'rare/alkalis', 'radioactives', 'sili...
sherazkasi/SabreSoftware
refs/heads/master
Lib/distutils/dep_util.py
74
"""distutils.dep_util Utility functions for simple, timestamp-based dependency of files and groups of files; also, function based entirely on such timestamp dependency analysis.""" __revision__ = "$Id$" import os from distutils.errors import DistutilsFileError def newer(source, target): """Tells if the target i...
cpascal/af-cpp
refs/heads/master
apdos/exts/boost_1_53_0/tools/build/v2/build/engine.py
3
# Copyright Pedro Ferreira 2005. # Copyright Vladimir Prus 2007. # Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) bjam_interface = __import__('bjam') import operator import re import b2.build.property_s...
DramaFever/sst
refs/heads/master
src/sst/context.py
1
# # Copyright (c) 2011-2013 Canonical Ltd. # # This file is part of: SST (selenium-simple-test) # https://launchpad.net/selenium-simple-test # # 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 L...
Selameab/opencog
refs/heads/master
opencog/python/spatiotemporal/temporal_events/composition/__init__.py
33
from non_linear_least_squares import DecompositionFitter from depth_first_search_composition import DepthFirstSearchComposition, convert_rail_to_trapezium_event from spatiotemporal.temporal_events.composition.railway_framework import RailwaySystem from spatiotemporal.temporal_events.relation_formulas import TemporalRel...
mitro-co/mitro
refs/heads/master
browser-ext/third_party/firefox-addon-sdk/python-lib/cuddlefish/tests/test_manifest.py
37
# 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 unittest from StringIO import StringIO from cuddlefish.manifest import scan_module class Extra: def failUnl...
artwr/airflow
refs/heads/master
tests/utils/test_trigger_rule.py
6
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
zhakui/QMarkdowner
refs/heads/master
dpkt/radiotap.py
13
'''Radiotap''' import dpkt # Ref: http://www.radiotap.org # Fields Ref: http://www.radiotap.org/defined-fields/all # Present flags _TSFT_MASK = 0x1000000 _FLAGS_MASK = 0x2000000 _RATE_MASK = 0x4000000 _CHANNEL_MASK = 0x8000000 _FHSS_MASK = 0x10000000 _ANT_SIG_MASK ...
dcramer/jinja1-djangosupport
refs/heads/master
jinja/exceptions.py
1
# -*- coding: utf-8 -*- """ jinja.exceptions ~~~~~~~~~~~~~~~~ Jinja exceptions. :copyright: 2007 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ class TemplateError(RuntimeError): pass class SecurityException(TemplateError): """ Raise if the template designer tr...
mano3m/CouchPotatoServer
refs/heads/develop_mano3m
libs/pynma/__init__.py
160
#!/usr/bin/python from pynma import PyNMA
petteyg/intellij-community
refs/heads/master
python/testData/stubs/BuiltinAncestor.py
189
class Foo(object): pass
jamilatta/scielo-manager
refs/heads/master
scielomanager/scielomanager/settings_tests.py
2
# coding: utf-8 """ This module is used by the test runner. """ import os PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) execfile(os.path.join(PROJECT_PATH, 'settings.py')) CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.dummy.DummyCache', 'LOCATION': '', } } INSTA...
heidsoft/VirtualBox
refs/heads/master
src/VBox/Devices/EFI/Firmware/BaseTools/Source/Python/Common/__init__.py
12
## @file # Python 'Common' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the t...
gustavolcorreia/uri
refs/heads/master
iniciante/exerc1043.py
1
# -*- coding: utf-8 -*- def uri(): x ,y ,z = input().split(' ') if((float(x) >= (float(y) + float(z))) | (float(y) >= (float(x) + float(z))) | (float(z) >= (float(y) + float(x)))): print('Area = {:.1f}'.format((((float(x) + float(y)) / 2) * float(z)))) else: print('Perimetro = {:.1f}'...
TotalPanda/Mastercar
refs/heads/master
contrib/spendfrom/setup.py
2104
from distutils.core import setup setup(name='btcspendfrom', version='1.0', description='Command-line utility for bitcoin "coin control"', author='Gavin Andresen', author_email='gavin@bitcoinfoundation.org', requires=['jsonrpc'], scripts=['spendfrom.py'], )
at3560k/fitbit-galileo
refs/heads/at3560k-dev
tests/testNetUtils.py
3
import unittest import xml.etree.ElementTree as ET from io import BytesIO from galileo.net import toXML, tuplesToXML, XMLToTuple class testtoXML(unittest.TestCase): def _testEqual(self, xml, xmlStr): tree = ET.ElementTree(xml) f = BytesIO() tree.write(f) self.assertEqual(f.getval...
rombie/contrail-controller
refs/heads/master
src/config/utils/db-loader/contrail_db_loader/__init__.py
12133432
twhyte/openparliament
refs/heads/master
parliament/search/__init__.py
12133432
lucasrodes/whatstk
refs/heads/main
tests/utils/__init__.py
12133432
fenderglass/Ragout
refs/heads/master
ragout/synteny_backend/__init__.py
12133432
bregman-arie/ansible
refs/heads/devel
lib/ansible/modules/system/gconftool2.py
73
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Kenneth D. Evensen <kevensen@redhat.com> # Copyright: (c) 2017, Abhijeet Kasurde <akasurde@redhat.com> # 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_f...
gautam1858/tensorflow
refs/heads/master
tensorflow/contrib/distributions/python/ops/deterministic.py
21
# 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...
dmccue/ansible
refs/heads/devel
v1/ansible/runner/lookup_plugins/etcd.py
153
# (c) 2013, Jan-Piet Mens <jpmens(at)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) any later ver...
jackjennings/Mechanic
refs/heads/master
Mechanic.roboFontExt/lib/site-packages/requests/packages/urllib3/_collections.py
666
from __future__ import absolute_import from collections import Mapping, MutableMapping try: from threading import RLock except ImportError: # Platform-specific: No threads available class RLock: def __enter__(self): pass def __exit__(self, exc_type, exc_value, traceback): ...
CARocha/sitioreddes
refs/heads/master
publicaciones/__init__.py
12133432
MTG/dunya
refs/heads/master
dashboard/test/__init__.py
12133432
kbase/probabilistic_annotation
refs/heads/master
lib/biokbase/probabilistic_annotation/__init__.py
12133432
srvg/ansible
refs/heads/devel
lib/ansible/errors/__init__.py
6
# (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...
pratikmallya/hue
refs/heads/master
apps/help/src/help/urls.py
33
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
zsiciarz/django
refs/heads/master
tests/forms_tests/__init__.py
12133432
ammaradil/fibonacci
refs/heads/master
Lib/site-packages/pip/_vendor/requests/adapters.py
573
# -*- coding: utf-8 -*- """ requests.adapters ~~~~~~~~~~~~~~~~~ This module contains the transport adapters that Requests uses to define and maintain connections. """ import socket from .models import Response from .packages.urllib3.poolmanager import PoolManager, proxy_from_url from .packages.urllib3.response impo...
vsajip/django
refs/heads/django3
django/contrib/gis/sitemaps/__init__.py
639
# Geo-enabled Sitemap classes. from django.contrib.gis.sitemaps.georss import GeoRSSSitemap from django.contrib.gis.sitemaps.kml import KMLSitemap, KMZSitemap
GbalsaC/bitnamiP
refs/heads/master
venv/lib/python2.7/site-packages/django/contrib/gis/db/backends/adapter.py
458
class WKTAdapter(object): """ This provides an adaptor for Geometries sent to the MySQL and Oracle database backends. """ def __init__(self, geom): self.wkt = geom.wkt self.srid = geom.srid def __eq__(self, other): if not isinstance(other, WKTAdapter): return...
resmo/ansible
refs/heads/devel
lib/ansible/modules/cloud/rackspace/rax.py
37
#!/usr/bin/python # Copyright: 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
t794104/ansible
refs/heads/devel
lib/ansible/modules/cloud/rackspace/rax.py
37
#!/usr/bin/python # Copyright: 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
etherkit/OpenBeacon2
refs/heads/master
client/linux-arm/venv/lib/python3.5/site-packages/PyInstaller/hooks/hook-phonenumbers.py
2
#----------------------------------------------------------------------------- # Copyright (c) 2017-2019, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this s...
bbozhev/flask-test
refs/heads/master
flask/lib/python2.7/site-packages/wtforms/ext/appengine/ndb.py
174
""" Form generation utilities for App Engine's new ``ndb.Model`` class. The goal of ``model_form()`` is to provide a clean, explicit and predictable way to create forms based on ``ndb.Model`` classes. No malabarism or black magic should be necessary to generate a form for models, and to add custom non-model related fi...
ajose01/rethinkdb
refs/heads/next
external/v8_3.30.33.16/build/gyp/test/ninja/normalize-paths-win/gyptest-normalize-paths.py
180
#!/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 paths are normalized with VS macros properly expanded on Windows. """ import TestGyp import sys if sys.platform == 'win32':...
TheTypoMaster/evennia
refs/heads/master
evennia/contrib/talking_npc.py
6
""" Evennia Talkative NPC Contribution - Griatch 2011 This is a simple NPC object capable of holding a simple menu-driven conversation. Create it by creating an object of typeclass contrib.talking_npc.TalkingNPC, For example using @create: @create/drop John : contrib.talking_npc.TalkingNPC Walk up to it and give ...
Thoshh/wapad
refs/heads/master
lib/python2.7/site-packages/django/contrib/gis/db/backends/mysql/operations.py
328
from django.contrib.gis.db.backends.base.adapter import WKTAdapter from django.contrib.gis.db.backends.base.operations import \ BaseSpatialOperations from django.contrib.gis.db.backends.utils import SpatialOperator from django.contrib.gis.db.models import aggregates from django.db.backends.mysql.operations import D...
mercycorps/tola-activity
refs/heads/master
htdocs/activitydb/migrations/0045_auto_20151109_1529.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('activitydb', '0044_auto_20151109_1135'), ] operations = [ migrations.AddField( model_name='projectagreement', ...
sindhus/lastuser
refs/heads/master
lastuser_core/models/notification.py
1
# -*- coding: utf-8 -*- from sqlalchemy.ext.declarative import declared_attr from coaster.utils import LabeledEnum from baseframe import __ from ..registry import OrderedDict from . import db, BaseMixin, BaseScopedNameMixin from .user import User, UserEmail, UserPhone from .client import Client __all__ = ['SMSMessage...
paran0ids0ul/httpie
refs/heads/master
tests/utils.py
49
# coding=utf-8 """Utilities used by HTTPie tests. """ import os import sys import time import json import shutil import tempfile import httpie from httpie.context import Environment from httpie.core import main from httpie.compat import bytes, str TESTS_ROOT = os.path.abspath(os.path.dirname(__file__)) CRLF = '\r...
dischinator/pyload
refs/heads/main
module/plugins/hoster/DataportCz.py
5
# -*- coding: utf-8 -*- from module.plugins.internal.SimpleHoster import SimpleHoster class DataportCz(SimpleHoster): __name__ = "DataportCz" __type__ = "hoster" __version__ = "0.46" __status__ = "testing" __pattern__ = r'http://(?:www\.)?dataport\.cz/file/(.+)' __config__ = [("activ...
nohona/cron-crm
refs/heads/master
usr/local/certbot/certbot/tests/display/completer_test.py
2
"""Test certbot.display.completer.""" import os import readline import string import sys import unittest import mock from six.moves import reload_module # pylint: disable=import-error from certbot.tests.util import TempDirTestCase class CompleterTest(TempDirTestCase): """Test certbot.display.completer.Completer...
denis-pitul/django
refs/heads/master
tests/test_exceptions/__init__.py
12133432
PyBro-JHU/Clue-Less
refs/heads/master
clueless/client/__init__.py
12133432
nju520/django
refs/heads/master
tests/get_earliest_or_latest/__init__.py
12133432
profcturner/WAM
refs/heads/master
loads/migrations/0041_auto_20180915_2257.py
1
# Generated by Django 2.0 on 2018-09-15 22:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('loads', '0040_workpackage_show_percentages'), ] operations = [ migrations.RemoveField( model_name='courseworktracker', name='m...
codeforsanjose/calischools
refs/heads/master
schools/views.py
1
from rest_framework import viewsets from rest_framework.decorators import detail_route from .models import County, District, School from .serializers import CountySerializer, DistrictSerializer, SchoolSerializer from .filters import CountyFilter, DistrictFilter, SchoolFilter from .nested_viewset_responses import ( ...
CiscoSystems/neutron
refs/heads/master
neutron/tests/unit/nec/test_portbindings.py
12
# 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 ...
kdurril/internaljobmarket
refs/heads/master
internaljobmarket/db_create.py
1
#GA PROCESS #DB Create import sqlite3 #sqlite3 db from student records conn = sqlite3.connect("Ga_app_db.db") curs = conn.cursor() ''' clear_table = ['DROP TABLE if exists supervisor;',\ 'DROP TABLE if exists student;',\ 'DROP TABLE if exists position;',\ 'DROP TABLE if exists positionApp;',\ 'Drop TABLE if exists ...
Nschanche/AstroHackWeek2015
refs/heads/master
day3-machine-learning/solutions/train_iris.py
16
from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier from sklearn.cross_validation import train_test_split iris = load_iris() X, y = iris.data, iris.target X_train, X_test, y_train, y_test = train_test_split(X, y) knn = KNeighborsClassifier(n_neighbors=3) knn.fit(X_train, y_train...
qedi-r/home-assistant
refs/heads/dev
homeassistant/components/denonavr/media_player.py
3
"""Support for Denon AVR receivers using their HTTP interface.""" from collections import namedtuple import logging import denonavr import voluptuous as vol from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice from homeassistant.components.media_player.const import ( MEDIA_TYPE_CH...
soasme/wikisensei
refs/heads/master
wikisensei/powerpack/views.py
138
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render # Create your views here.
mattgreene/f5-openstack-lbaasv2-driver
refs/heads/master
test/dev/TestPluginRPC_3.py
5
import datetime import json import netaddr import sys from time import time import uuid from pprint import pprint from oslo_config import cfg import oslo_messaging as messaging from neutron.api.v2 import attributes from neutron.common import constants as q_const from neutron.common import rpc as q_rpc from neutron i...
EBIT-coin/EBIT
refs/heads/master
contrib/seeds/makeseeds.py
753
#!/usr/bin/env python # # Generate pnSeed[] from Pieter's DNS seeder # NSEEDS=600 import re import sys from subprocess import check_output def main(): lines = sys.stdin.readlines() ips = [] pattern = re.compile(r"^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3}):9333") for line in lines: m = patte...
stefanv/scipy3
refs/heads/master
scipy/misc/tests/test_pilutil.py
2
import os.path import numpy as np from numpy.testing import * try: import PIL.Image except ImportError: _have_PIL = False else: _have_PIL = True import scipy.misc.pilutil as pilutil # Function / method decorator for skipping PIL tests on import failure _pilskip = dec.skipif(not _have_PIL, 'Need to im...
RonEld/mbed
refs/heads/master
tools/test/config_test/test17/test_data.py
38
# Build on top of test16 # Adds an invalid macro redefinition in the app expected_results = { "K64F": { "desc": "test invalid macro re-definition in the app", "exception_msg": "Macro 'LIB2_1' defined in both 'library:lib2' and 'application' with incompatible values" } }
kenshay/ImageScript
refs/heads/master
ProgramData/SystemFiles/Python/Lib/site-packages/pygments/lexers/robotframework.py
25
# -*- coding: utf-8 -*- """ pygments.lexers.robotframework ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexer for Robot Framework. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ # Copyright 2012 Nokia Siemens Networks Oyj # # Licensed under the ...
nylar/fora
refs/heads/master
threads/tests/test_views.py
1
from django.core.urlresolvers import reverse from django.test import RequestFactory from fora.tests.base import BaseTestCase from forums.models import Forum from threads.models import Thread from threads.views import NewThreadView, ShowThreadView class NewThreadViewTestCase(BaseTestCase): def setUp(self): ...
PyPlanet/PyPlanet
refs/heads/master
pyplanet/utils/pip.py
1
""" The PIP module contains utilities to upgrade packages in the installation of PyPlanet from the application itself. """ import logging import os import site import subprocess import sys import tempfile class Pip: def __init__(self): self.command = None self.virtual_env = None self.install_dir = None self....
Code4Maine/beehve
refs/heads/master
beehve/apps/homepage/__init__.py
12133432
Gagaro/django
refs/heads/master
tests/admin_docs/__init__.py
12133432
amit0701/rally
refs/heads/master
rally/plugins/common/scenarios/__init__.py
12133432
manumartin/examples
refs/heads/master
ml/mouse_recognition/webapp/chess/migrations/__init__.py
12133432
richardcs/ansible
refs/heads/devel
test/units/parsing/__init__.py
12133432
ProfessionalIT/maxigenios-website
refs/heads/master
sdk/google_appengine/lib/django-1.4/django/contrib/comments/views/comments.py
50
from __future__ import absolute_import from django import http from django.conf import settings from django.contrib import comments from django.contrib.comments import signals from django.contrib.comments.views.utils import next_redirect, confirmation_view from django.core.exceptions import ObjectDoesNotExist, Validat...
immo/pyTOM
refs/heads/master
df/df_flesh.py
1
# coding: utf-8 # # drums-backend a simple interactive audio sampler that plays vorbis samples # Copyright (C) 2009 C.D. Immanuel Albrecht # # 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 Fou...
mbruggmann/luigi
refs/heads/master
test/contrib/bigquery_test.py
4
# -*- coding: utf-8 -*- # # Copyright 2015 Twitter 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 ...
makermade/arm_android-19_arm-linux-androideabi-4.8
refs/heads/master
lib/python2.7/imputil.py
228
""" Import utilities Exported classes: ImportManager Manage the import process Importer Base class for replacing standard import functions BuiltinImporter Emulate the import mechanism for builtin and frozen modules DynLoadSuffixImporter """ from warnings import warnpy3k warnpy3k("the imputil...
archf/ansible
refs/heads/devel
lib/ansible/modules/network/eos/eos_system.py
22
#!/usr/bin/python # # 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) any later version. # # Ansible is distribut...
spatialcollective/MtaaSafi-Web-App
refs/heads/master
base_map/migrations/__init__.py
12133432
arun6582/django
refs/heads/master
tests/test_discovery_sample/__init__.py
12133432
marbindrakon/eve-wspace
refs/heads/develop
evewspace/core/__init__.py
2
default_app_config = 'core.apps.CoreConfig'
gsnbng/erpnext
refs/heads/develop
erpnext/setup/setup_wizard/utils.py
11
from __future__ import unicode_literals import json, os from frappe.desk.page.setup_wizard.setup_wizard import setup_complete from erpnext.setup.setup_wizard import setup_wizard def complete(): with open(os.path.join(os.path.dirname(__file__), 'data', 'test_mfg.json'), 'r') as f: data = json.loads(f.read()) #s...
Kazade/NeHe-Website
refs/heads/master
google_appengine/lib/django-1.3/tests/regressiontests/admin_ordering/tests.py
50
from django.test import TestCase from django.contrib.admin.options import ModelAdmin from models import Band, Song, SongInlineDefaultOrdering, SongInlineNewOrdering class TestAdminOrdering(TestCase): """ Let's make sure that ModelAdmin.queryset uses the ordering we define in ModelAdmin rather that orderin...
beni55/edx-platform
refs/heads/master
lms/djangoapps/verify_student/management/commands/retry_failed_photo_verifications.py
162
""" Django admin commands related to verify_student """ from verify_student.models import SoftwareSecurePhotoVerification from django.core.management.base import BaseCommand class Command(BaseCommand): """ This method finds those PhotoVerifications with a status of MUST_RETRY and attempts to verify them....
bitsanity/rateboard
refs/heads/master
goldticker.py
1
#!/usr/bin/python # -*- coding: utf-8 -*- import os import csv import sys, traceback import threading import time import urllib2 from PyQt4 import QtGui,QtCore from boardlet import Boardlet from modellet import Modellet class GoldTicker(Boardlet): def __init__(self, parent): super(GoldTicker, self).__init__(p...
nhomar/odoo-mirror
refs/heads/8.0
addons/website_event_track/__openerp__.py
323
# -*- coding: utf-8 -*- { 'name': 'Advanced Events', 'category': 'Website', 'summary': 'Sponsors, Tracks, Agenda, Event News', 'website': 'https://www.odoo.com/page/events', 'version': '1.0', 'description': """ Online Advanced Events ====================== Adds support for: - sponsors - dedica...
MSeifert04/astropy
refs/heads/master
astropy/visualization/tests/test_interval.py
3
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest import numpy as np from astropy.utils import NumpyRNGContext from astropy.visualization.interval import (ManualInterval, MinMaxInterval, PercentileInter...
blueburningcoder/nupic
refs/heads/master
tests/unit/nupic/frameworks/opf/clamodel_test.py
3
#!/usr/bin/env python # ---------------------------------------------------------------------- # 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 ...
luser/socorro
refs/heads/master
socorro/unittest/external/statsd/test_stastsd_rule_benchmark.py
2
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from mock import patch, call, Mock from nose.tools import eq_, ok_, assert_raises from socorro.unittest.testbase import ...
rohitwaghchaure/erpnext_develop
refs/heads/develop
erpnext/docs/user/manual/de/accounts/tools/__init__.py
12133432
kisna72/django
refs/heads/master
django/conf/locale/te/__init__.py
12133432
jelugbo/hebs_repo
refs/heads/master
lms/djangoapps/dashboard/management/commands/__init__.py
12133432
Juniper/contrail-horizon
refs/heads/master
openstack_dashboard/api/__init__.py
12133432
dguerri/ansible
refs/heads/devel
test/units/parsing/yaml/__init__.py
12133432
Aaron0927/xen-4.2.1
refs/heads/master
tools/python/xen/xend/XendOptions.py
19
#============================================================================ # This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope th...
mick-d/nipype
refs/heads/master
nipype/interfaces/camino/tests/test_auto_ComputeEigensystem.py
1
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..dti import ComputeEigensystem def test_ComputeEigensystem_inputs(): input_map = dict(args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), ignore_exception=dict(nohash=True, ...
davidmueller13/ZenKernel_Flounder
refs/heads/master
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
12980
# SchedGui.py - Python extension for perf script, basic GUI code for # traces drawing and overview. # # Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com> # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. ...
Gimpneek/exclusive-raid-gym-tracker
refs/heads/master
app/views/view_sets/raid_item_view_set.py
1
# pylint: disable=too-many-ancestors """ View Set for Raid Item Serializer """ from rest_framework import viewsets, permissions from app.models.raid_item import RaidItem from app.serializers.raid_item import RaidItemSerializer class RaidItemViewSet(viewsets.ReadOnlyModelViewSet): """ View Set for Raid Item Se...
flumotion-mirror/flumotion
refs/heads/master
flumotion/test/test_common_avltree.py
3
# -*- Mode: Python; test-case-name:flumotion.test.test_config -*- # vi:si:et:sw=4:sts=4:ts=4 # Flumotion - a streaming media server # Copyright (C) 2004,2005,2006,2007,2008,2009 Fluendo, S.L. # Copyright (C) 2010,2011 Flumotion Services, S.A. # All rights reserved. # # This file may be distributed and/or modified unde...
ericmckean/namebench
refs/heads/master
nb_third_party/dns/rdtypes/txtbase.py
248
# Copyright (C) 2006, 2007, 2009, 2010 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED...
usc-isi/nova
refs/heads/hpc-trunk
nova/block_device.py
6
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Isaku Yamahata <yamahata@valinux co jp> # 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 # # ...
SonyStone/pylib
refs/heads/master
Scripts/expendFromFirst.py
1
# expendFromFirst.py import maya.cmds as cmds selectionList = cmds.ls( orderedSelection=True, type='transform' ) if len( selectionList ) >= 2: transName = selectionList[0] selectionList.remove( targetName ) locatorGroupName = cmds.group( empty=True, name='expansion_locator_grp#' ) maxExpansion = 100 newAttrib...