repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
indictranstech/reciphergroup-erpnext
refs/heads/master
erpnext/patches/v5_4/__init__.py
12133432
hbutau/dzidzo
refs/heads/master
config/__init__.py
12133432
drewdru/bookExpert
refs/heads/master
bookExpert/__init__.py
12133432
henryfjordan/django
refs/heads/master
tests/timezones/__init__.py
12133432
nzavagli/UnrealPy
refs/heads/master
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/Python-2.7.10/Lib/test/test_re.py
14
# -*- coding: utf-8 -*- from test.test_support import ( verbose, run_unittest, import_module, precisionbigmemtest, _2G, cpython_only, captured_stdout, have_unicode, requires_unicode, u, check_warnings) import locale import re from re import Scanner import sre_constants import sys import string import tr...
Distrotech/mozjs
refs/heads/mozjs-24
js/src/python/mozbuild/dumbmake/__init__.py
12133432
oberlin/django
refs/heads/master
tests/custom_migration_operations/__init__.py
12133432
overtherain/scriptfile
refs/heads/master
software/googleAppEngine/lib/django_1_3/tests/regressiontests/admin_scripts/app_with_import/__init__.py
12133432
groschovskiy/lerigos_music
refs/heads/master
Server/API/lib/google/api/__init__.py
12133432
Edraak/edx-platform
refs/heads/master
pavelib/paver_tests/__init__.py
12133432
th3sys/capsule
refs/heads/master
contracts.py
1
import logging import datetime from dateutil.relativedelta import relativedelta class Futures: VX = 'VX' class SecurityDefinition(object): def __init__(self): self.Logger = logging.getLogger() self.Logger.setLevel(logging.INFO) logging.basicConfig(format='%(asctime)s - %(levelname)s ...
joymarquis/mscc
refs/heads/master
projects/swtec/utils/fwdl/lib-python/pyserial-3.0.1/serial/win32.py
11
#! python # # Constants and types for use with Windows API, used by serialwin32.py # # This file is part of pySerial. https://github.com/pyserial/pyserial # (C) 2001-2015 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause from ctypes import * from ctypes.wintypes import HANDLE from ctypes.wi...
z-fork/scrapy
refs/heads/master
scrapy/cmdline.py
84
from __future__ import print_function import sys import optparse import cProfile import inspect import pkg_resources import scrapy from scrapy.crawler import CrawlerProcess from scrapy.xlib import lsprofcalltree from scrapy.commands import ScrapyCommand from scrapy.exceptions import UsageError from scrapy.utils.misc i...
super7ramp/vertaal
refs/heads/master
common/view/decorators.py
2
from django.http import HttpResponse from django.shortcuts import render_to_response from django.template import RequestContext from django.conf import settings from common.view.renders.json import render_to_json #from common.view.renders.xml import render_to_xml class render: '''Register response engines based on...
pamfilos/data.cern.ch
refs/heads/update-docs
cap/alembic/3d92229a38c5_update_schemas_table.py
4
# # This file is part of Invenio. # Copyright (C) 2016-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Update schemas table.""" import sqlalchemy as sa from alembic import op from cap.types import json_type ...
rghe/ansible
refs/heads/devel
lib/ansible/modules/network/ios/ios_logging.py
48
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # # This file is part of Ansible by Red Hat # # 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...
MaxGuevara/quark-txmsg
refs/heads/master
contrib/pyminer/pyminer.py
385
#!/usr/bin/python # # Copyright (c) 2011 The Bitcoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # import time import json import pprint import hashlib import struct import re import base64 import httplib import...
CamelBackNotation/CarnotKE
refs/heads/master
jyhton/lib-python/2.7/tabnanny.py
394
#! /usr/bin/env python """The Tab Nanny despises ambiguous indentation. She knows no mercy. tabnanny -- Detection of ambiguous indentation For the time being this module is intended to be called as a script. However it is possible to import it into an IDE and use the function check() described below. Warning: The ...
liuzheng712/Misago
refs/heads/master
misago/core/testproject/views.py
8
from django.contrib.auth import get_user_model from django.core.exceptions import PermissionDenied from django.http import Http404, HttpResponse from misago.core import errorpages, mail from misago.core.decorators import require_POST from misago.core.shortcuts import paginate, validate_slug from misago.core.testprojec...
collinprice/titanium_mobile
refs/heads/master
support/common/markdown/extensions/wikilinks.py
123
#!/usr/bin/env python ''' WikiLinks Extension for Python-Markdown ====================================== Converts [[WikiLinks]] to relative links. Requires Python-Markdown 2.0+ Basic usage: >>> import markdown >>> text = "Some text with a [[WikiLink]]." >>> html = markdown.markdown(text, ['wikilinks'])...
LukeC92/iris
refs/heads/latest
lib/iris/tests/unit/util/test_new_axis.py
5
# (C) British Crown Copyright 2013 - 2017, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
varunarya10/heat
refs/heads/master
heat/tests/test_engine_api_utils.py
5
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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...
cleverhans-lab/cleverhans
refs/heads/master
cleverhans_v3.1.0/examples/multigpu_advtrain/utils_svhn.py
1
""" Reading the SVHN dataset. It is derived from CIFAR10 scripts in RevNets code. https://github.com/renmengye/revnet-public/blob/master/resnet/data/cifar_input.py MIT License Copyright (c) 2017 Mengye Ren Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
amorilia/blender_nif_plugin
refs/heads/develop
io_scene_nif/armaturesys/__init__.py
12133432
2013Commons/HUE-SHARK
refs/heads/master
build/env/lib/python2.7/site-packages/Django-1.2.3-py2.7.egg/django/conf/locale/es/__init__.py
12133432
jamielennox/keystone
refs/heads/master
keystone/endpoint_policy/backends/__init__.py
12133432
msporny/node-gyp
refs/heads/master
gyp/pylib/gyp/common.py
497
# 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 __future__ import with_statement import errno import filecmp import os.path import re import tempfile import sys # A minimal memoizing decorator. It'll blo...
gregdek/ansible
refs/heads/devel
lib/ansible/module_utils/facts/network/darwin.py
128
# 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 distributed in the hope that ...
marcoitur/Freecad_test
refs/heads/master
src/Mod/Arch/ArchBuilding.py
18
#*************************************************************************** #* * #* Copyright (c) 2011 * #* Yorik van Havre <yorik@uncreated.net> * #* ...
kriberg/stationspinner
refs/heads/master
stationspinner/corporation/migrations/0024_auto_20151230_1951.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('corporation', '0023_auto_20151230_1948'), ] operations = [ migrations.AlterField( model_name='industryjob', ...
artursmet/django-payments
refs/heads/master
payments/dotpay/test_dotpay.py
1
from __future__ import unicode_literals import hashlib from unittest import TestCase from django.http import HttpResponse, HttpResponseForbidden from mock import MagicMock, Mock from .forms import ACCEPTED, REJECTED from . import DotpayProvider VARIANT = 'dotpay' PIN = '123' PROCESS_POST = { 'status': 'OK', ...
titasakgm/brc-stock
refs/heads/master
openerp/addons/hr_timesheet_invoice/report/__init__.py
433
# -*- 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...
hellotomfan/v8-coroutine
refs/heads/master
deps/v8/tools/testrunner/local/testsuite.py
3
# Copyright 2012 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...
coffenbacher/askbot-devel
refs/heads/master
askbot/deployment/package_utils.py
21
"""utilities that determine versions of packages that are part of askbot versions of all packages are normalized to three-tuples of integers (missing zeroes added) """ import coffin import django def get_coffin_version(): """Returns version of Coffin package as a three integer value tuple """ version ...
davgibbs/django
refs/heads/master
tests/migrations/test_migrations_squashed_complex_multi_apps/__init__.py
12133432
winndows/cinder
refs/heads/master
cinder/db/sqlalchemy/migrate_repo/versions/030_placeholder.py
171
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
korealerts1/sentry
refs/heads/master
src/sentry/migrations/0172_auto__del_field_team_owner.py
34
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Team.owner' db.delete_column(u'sentry_team', 'owner_id'...
ChaosData/iRcbRg
refs/heads/master
args.py
1
''' nick irc(s)://hostname1:port channel1 irc(s)://hostname2:port2 channel2 ''' import argparse def parseArgs(argv): parser = argparse.ArgumentParser(description='Brigde two IRC channels.') parser.add_argument('-n', '--nick', metavar='nickname', default='iRcbRg', type=str, nargs='?', help='Nickname to appear in...
Samuel789/MediPi
refs/heads/master
MedManagementWeb/env/lib/python3.5/site-packages/setuptools/command/upload_docs.py
173
# -*- coding: utf-8 -*- """upload_docs Implements a Distutils 'upload_docs' subcommand (upload documentation to PyPI's pythonhosted.org). """ from base64 import standard_b64encode from distutils import log from distutils.errors import DistutilsOptionError import os import socket import zipfile import tempfile import ...
ywcui1990/nupic
refs/heads/master
external/linux32/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py
69
# Todd Miller jmiller@stsci.edu from __future__ import division import os, sys, math import Tkinter as Tk, FileDialog import tkagg # Paint image to Tk photo blitter extension from backend_agg import FigureCanvasAgg import os.path import matplotlib from matplotlib.cbook import is_string_like from ...
kinow-io/kinow-python-sdk
refs/heads/master
test/test_languages.py
1
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 1.4.41 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import kinow_client from kinow_client.rest import ...
RCOSDP/waterbutler
refs/heads/nii-mergework-201901
waterbutler/providers/figshare/settings.py
4
from waterbutler import settings config = settings.child('FIGSHARE_PROVIDER_CONFIG') BASE_URL = config.get('BASE_URL', 'https://api.figshare.com/v2') VIEW_URL = config.get('VIEW_URL', 'https://figshare.com/') DOWNLOAD_URL = config.get('VIEW_URL', 'https://ndownloader.figshare.com/') VALID_CONTAINER_TYPES = ['projec...
Gravecorp/Gap
refs/heads/master
Gap/Lib/fileinput.py
224
"""Helper class to quickly write a loop over all standard input files. Typical use is: import fileinput for line in fileinput.input(): process(line) This iterates over the lines of all files listed in sys.argv[1:], defaulting to sys.stdin if the list is empty. If a filename is '-' it is also replace...
viewdy/phantomjs2
refs/heads/master
src/qt/qtwebkit/Tools/Scripts/webkitpy/common/checkout/__init__.py
135
# Required for Python to search this directory for module files from .checkout import Checkout
xorstream/unicorn
refs/heads/master
tests/regress/wrong_rip_arm.py
10
#!/usr/bin/python from unicorn import * from unicorn.x86_const import * from unicorn.arm_const import * import regress # adds r1, #0x48 # ldrsb r7, [r7, r7] # ldrsh r7, [r2, r1] # ldr r0, [pc, #0x168] # cmp r7, #0xbf # str r7, [r5, #0x20] # ldr r1, [r5, #0x64] # strb r7, [r5, #0xc] # ldr r0, [pc, #0x1a0]...
darkfeline/pymsmtpq
refs/heads/master
mir/msmtpq/__init__.py
2
# Copyright (C) 2016 Allen Li # # 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,...
sqlalchemy/sqlalchemy
refs/heads/master
test/orm/test_pickled.py
3
import copy import sqlalchemy as sa from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import String from sqlalchemy import testing from sqlalchemy.orm import aliased from sqlalchemy.orm import attributes from sqlalchemy.orm import clear_mappers from sqlalc...
fintech-circle/edx-platform
refs/heads/master
openedx/core/djangoapps/profile_images/views.py
6
""" This module implements the upload and remove endpoints of the profile image api. """ import datetime import itertools import logging from contextlib import closing from django.utils.timezone import utc from django.utils.translation import ugettext as _ from rest_framework import permissions, status from rest_frame...
MilesDuronCIMAT/book_exercises
refs/heads/master
chapter_11/lists/urls.py
2
"""superlists URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class...
antotodd/lab5
refs/heads/master
main/lib/flask_wtf/recaptcha/__init__.py
30
from . import fields from . import validators from . import widgets __all__ = fields.__all__ + validators.__all__ + widgets.__all__
woshilapin/cjdns
refs/heads/master
node_build/dependencies/libuv/build/gyp/test/ios/gyptest-extension.py
74
#!/usr/bin/env python # Copyright (c) 2014 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 that ios app extensions are built correctly. """ import TestGyp import TestMac import sys if sys.platform == 'darwin' and Tes...
mozilla/bugbro
refs/heads/base
apps/examples/models.py
12133432
alxgu/ansible
refs/heads/devel
test/units/utils/test_unsafe_proxy.py
40
# -*- coding: utf-8 -*- # (c) 2018 Matt Martz <matt@sivel.net> # 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 ansible.module_utils.six import PY3 from ansible.utils.unsafe_proxy imp...
Mattie432/deluge-rbb
refs/heads/master
browsebutton/gtkui.py
1
# # gtkui.py # # Copyright (C) 2014 dredkin <dmitry.redkin@gmail.com> # Basic plugin template created by: # Copyright (C) 2008 Martijn Voncken <mvoncken@gmail.com> # Copyright (C) 2007-2009 Andrew Resch <andrewresch@gmail.com> # Copyright (C) 2009 Damien Churchill <damoxc@gmail.com> # # Deluge is free software. # # Yo...
choperlizer/Dojima
refs/heads/master
dojima/model/ot/__init__.py
1
# Dojima, a markets client. # Copyright (C) 2012 Emery Hemingway # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
mikewied/perfrunner
refs/heads/master
perfrunner/workloads/revAB/graph.py
7
import itertools from logger import logger from perfrunner.workloads.revAB.fittingCode import socialModels def generate_graph(users): logger.info('Generating graph') graph = socialModels.nearestNeighbor_mod(users, 0.90, 5) logger.info( 'Done: {} nodes, {} edges.' .format(graph.number_of_...
Seanmcn/WineDB
refs/heads/master
wineDB/urls.py
1
"""djangoPoll URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
mdaniel/intellij-community
refs/heads/master
python/testData/inspections/PyStringFormatInspection/NewStyleMappingKeyWithSubscriptionParenArg.py
29
"{foo[1]}".format(foo=(1, 2, 3)) "{foo[1]}".format(foo=({1: 1})) "{foo[1]}".format(foo=([1, 2, 3])) "{foo[a]}".format(foo=({"a": 1})) <warning descr="Too few arguments for format string">"{foo[3]}"</warning>.format(foo=(1, 2, 3)) <warning descr="Too few arguments for format string">"{foo[3]}"</warning>.format(foo=({1...
jk1/intellij-community
refs/heads/master
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_0/_pkg0_0_1_0_0/_mod0_0_1_0_0_1.py
30
name0_0_1_0_0_1_0 = None name0_0_1_0_0_1_1 = None name0_0_1_0_0_1_2 = None name0_0_1_0_0_1_3 = None name0_0_1_0_0_1_4 = None
miho030/FoxVc
refs/heads/master
versions - 1.3.x/FoxVc Ver 1.3.0/Test Codes for Stabilize!/Code Backup.py
1
# +=======================================================================================+ # 사용자 시스템에 설치되어 있는 파이썬의 버전을 감지하고 각 버전에 최적화된 모듈 임포트함. # +=======================================================================================+ # 파이썬 버전에 따라 버전에 최적화된 모듈을 실행하는 부분 # sys모듈을 사용하여 설치된 파이썬 버전을 변수로 지정. # FoxVc을...
EducationForDevelopment/webapp
refs/heads/master
lib/werkzeug/http.py
317
# -*- coding: utf-8 -*- """ werkzeug.http ~~~~~~~~~~~~~ Werkzeug comes with a bunch of utilities that help Werkzeug to deal with HTTP data. Most of the classes and functions provided by this module are used by the wrappers, but they are useful on their own, too, especially if the response and ...
zyguan/hdfs-raid
refs/heads/master
src/contrib/hod/hodlib/GridServices/__init__.py
182
#Licensed to the Apache Software Foundation (ASF) under one #or more contributor license agreements. See the NOTICE file #distributed with this work for additional information #regarding copyright ownership. The ASF licenses this file #to you under the Apache License, Version 2.0 (the #"License"); you may not use thi...
catapult-project/catapult
refs/heads/master
third_party/gsutil/gslib/third_party/kms_apitools/cloudkms_v1_messages.py
5
"""Generated message classes for cloudkms version v1. Manages encryption for your cloud services the same way you do on-premises. You can generate, use, rotate, and destroy AES256 encryption keys. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages ...
jiwang576/incubator-airflow
refs/heads/master
airflow/operators/generic_transfer.py
46
# -*- 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 ...
amkimian/Rapture
refs/heads/master
Apps/RaptureIntTests/src/test/python/structured.py
6
import raptureAPI import multipart import json import time import base64 # TODO These need to be parameters repo = '//nightly_python' strucRepoUri = 'structured:'+repo site = 'localhost:8665/rapture' username = 'rapture' password = 'rapture' rapture = raptureAPI.raptureAPI(site, username, password) config = "STRUCT...
queria/my-tempest
refs/heads/juno
tempest/api/compute/v3/servers/test_servers.py
2
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
sudheesh001/oh-mainline
refs/heads/master
vendor/packages/mechanize/ez_setup.py
202
#!python """Bootstrap setuptools installation If you want to use setuptools in your package's setup.py, just include this file in the same directory with it, and add this to the top of your setup.py:: from ez_setup import use_setuptools use_setuptools() If you want to require a specific version of setuptools...
superchilli/webapp
refs/heads/master
venv/lib/python2.7/site-packages/alembic/testing/plugin/plugin_base.py
13
# plugin/plugin_base.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Testing extensions. this module is designed to work as a testing-framework-...
yencarnacion/jaikuengine
refs/heads/master
common/test/clean.py
34
# -*- coding: utf-8 -*- # 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 o...
lchu94/classfinder
refs/heads/master
recommender/generate_recs.py
1
import math from django.core.cache import cache from django.db.models import Q from models import CompleteEnrollmentData, SharedClassesByMajor, SubjectInfo import get_new_classes, subject_info """ Create a matrix that records the number of students that took each pair of classes """ def create_shared_classes_table(ma...
mazulo/SGT
refs/heads/master
sgt/cash_register/tests.py
24123
from django.test import TestCase # Create your tests here.
elahejalalpour/ELRyu
refs/heads/master
ryu/lib/packet/stream_parser.py
58
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2013 YAMAMOTO Takashi <yamamoto at valinux co jp> # # 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:...
invisiblek/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/argparse.py
45
# Author: Steven J. Bethard <steven.bethard@gmail.com>. """Command-line parsing library This module is an optparse-inspired command-line parsing library that: - handles both optional and positional arguments - produces highly informative usage messages - supports parsers that dispatch to sub-parsers The...
sassoftware/rbm
refs/heads/master
upsrv/url_sign.py
1
# # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
mohamed--abdel-maksoud/chromium.src
refs/heads/nw12
chrome/test/ispy/common/mock_cloud_bucket.py
122
# Copyright 2013 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. """Subclass of CloudBucket used for testing.""" import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) import ...
vbelakov/h2o
refs/heads/master
py/testdir_single_jvm/test_NN2_mnist.py
9
import unittest, time, sys, random, string sys.path.extend(['.','..','../..','py']) import h2o, h2o_gbm, h2o_cmd, h2o_import as h2i, h2o_browse as h2b class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): h2o.init(java_heap_GB...
rousseab/pymatgen
refs/heads/master
pymatgen/io/cif.py
1
# coding: utf-8 from __future__ import division, unicode_literals """ Wrapper classes for Cif input and output from Structures. """ __author__ = "Shyue Ping Ong, Will Richards" __copyright__ = "Copyright 2011, The Materials Project" __version__ = "3.0" __maintainer__ = "Shyue Ping Ong" __email__ = "shyuep@gmail.com...
Designist/audacity
refs/heads/master
lib-src/lv2/lv2/plugins/eg-fifths.lv2/waflib/Tools/vala.py
276
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file import os.path,shutil,re from waflib import Context,Task,Utils,Logs,Options,Errors from waflib.TaskGen import extension,taskgen_method from waflib.Configure import conf class ...
hal0x2328/neo-python
refs/heads/master
neo/SmartContract/tests/test_sc_debug_events.py
1
import os from boa_test.tests.boa_test import BoaTest from boa.compiler import Compiler from neo.Prompt.Commands.BuildNRun import TestBuild from neo.EventHub import events, SmartContractEvent from neo.Settings import settings class TestNotifyDebugEvents(BoaTest): dispatched_events = [] execution_success = Fa...
aosprey/rose
refs/heads/master
lib/python/rose/apps/rose_arch.py
1
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # (C) British Crown Copyright 2012-8 Met Office. # # This file is part of Rose, a framework for meteorological suites. # # Rose is free software: you can redistribute it and/or modify # it under the terms of the GNU G...
visualputty/Landing-Lights
refs/heads/master
djangotoolbox/fields.py
5
# All fields except for BlobField written by Jonas Haag <jonas@lophus.org> from django.db import models from django.core.exceptions import ValidationError from django.utils.importlib import import_module __all__ = ('RawField', 'ListField', 'DictField', 'SetField', 'BlobField', 'EmbeddedModelField') class ...
invitu/odoomrp-wip
refs/heads/8.0
procurement_plan_mrp/__init__.py
240
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from . import models from . import wizard
peterfpeterson/mantid-usage
refs/heads/master
generate_report.py
1
#!/usr/bin/env python from __future__ import (absolute_import, division, print_function, unicode_literals) import json import matplotlib.pyplot as plt import os import pandas as pd class Report(object): def __init__(self, website, version="0.0", downloads="0"): self.website = websi...
kapadia/usgs
refs/heads/master
setup.py
2
from codecs import open as codecs_open from setuptools import setup, find_packages # Parse the version from the fiona/rasterio module. with open('usgs/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"...
IKholopov/HackUPC2017
refs/heads/master
hackupc/env/lib/python3.5/site-packages/future/moves/tkinter/filedialog.py
94
from __future__ import absolute_import from future.utils import PY3 if PY3: from tkinter.filedialog import * else: try: from FileDialog import * except ImportError: raise ImportError('The FileDialog module is missing. Does your Py2 ' 'installation include tkinter?...
yhe39/crosswalk-test-suite
refs/heads/master
webapi/tct-csp-w3c-tests/csp-py/csp_font-src_cross-origin_allowed-manual.py
30
def main(request, response): import simplejson as json f = file('config.json') source = f.read() s = json.JSONDecoder().decode(source) url1 = "http://" + s['host'] + ":" + str(s['ports']['http'][1]) _CSP = "font-src " + url1 response.headers.set("Content-Security-Policy", _CSP) response....
totalgee/supercollider
refs/heads/master
editors/sced/sced/ConfigurationDialog.py
46
# sced (SuperCollider mode for gedit) # Copyright 2009 Artem Popov and other contributors (see AUTHORS) # # sced 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, ...
SANDEISON/Python
refs/heads/master
03 - Atacando os tipos básicos/02 - Manipulando textos em Python com Strings/01-String.py
2
# Aspas de varios tipos x = 'abacate' y="mecdonald's" #constante multilinha com codigo html form = ''' <html> <head> <title> Teste </title> </head> <body> <p> Testando </p> </body> </html> ''' #Fatiamento de String z = "0123456789"...
FAANG/faang-methylation
refs/heads/master
workflowbs/src/pygraph/algorithms/filters/null.py
26
# Copyright (c) 2008-2009 Pedro Matiello <pmatiello@gmail.com> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, # copy,...
andreparrish/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/test/test_threading.py
47
# Very rudimentary test of threading module import test.support from test.support import verbose, strip_python_stderr, import_module import random import re import sys _thread = import_module('_thread') threading = import_module('threading') import time import unittest import weakref import os from test.script_helper ...
qedi-r/home-assistant
refs/heads/dev
homeassistant/components/heatmiser/__init__.py
36
"""The heatmiser component."""
oluwex/eCaretaker
refs/heads/master
eCaretakerWeb/tests.py
24123
from django.test import TestCase # Create your tests here.
moonbeamxp/ns-3
refs/heads/master
src/lte/bindings/callbacks_list.py
8
callback_classes = [ ['void', 'ns3::Ptr<ns3::Packet const>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['void', 'unsigned short', 'ns3::Ptr<ns3::SpectrumValue>', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::emp...
darksylinc/qt-creator
refs/heads/master
tests/system/suite_qtquick/tst_qtquick_creation3/test.py
1
############################################################################# ## ## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ## Contact: http://www.qt-project.org/legal ## ## This file is part of Qt Creator. ## ## Commercial License Usage ## Licensees holding valid commercial Qt licenses may use this f...
oguz298/FTL-Kernel
refs/heads/New2
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)...
Bachaco-ve/odoo
refs/heads/8.0
addons/website_mail/models/mail_message.py
264
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
zakuro9715/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/tests/regressiontests/forms/models.py
89
# -*- coding: utf-8 -*- import datetime import tempfile from django.db import models from django.core.files.storage import FileSystemStorage temp_storage_location = tempfile.mkdtemp() temp_storage = FileSystemStorage(location=temp_storage_location) class BoundaryModel(models.Model): positive_integer = models.P...
sonicrules1234/sonicbot
refs/heads/sonicbotv4
SonicMail/bbcode.py
1
# -*- coding: UTF-8 -*- """ Post Markup Author: Will McGugan (http://www.willmcgugan.com) """ __version__ = "1.1.0" import re from urllib import quote, unquote, quote_plus from urlparse import urlparse, urlunparse pygments_available = True try: from pygments import highlight from pygments.le...
andymg/androguard
refs/heads/master
demos/apk_format_2.py
63
#!/usr/bin/env python import sys PATH_INSTALL = "./" sys.path.append( PATH_INSTALL ) from androguard.core.bytecodes import dvm, apk TEST = "./apks/crash/mikecc/e0399fdd481992bc049b6e9d765da7f007f89875.apk" a = apk.APK( TEST, zipmodule=2 ) a.show() j = dvm.DalvikVMFormat( a.get_dex() ) # SHOW CLASS (verbose) #j....
fengbaicanhe/intellij-community
refs/heads/master
python/testData/codeInsight/smartEnter/withOnlyColonMissing.py
80
with open('file.txt') as f<caret>