repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
aarticianpc/greenpointtrees
refs/heads/master
greenpointtrees/bin/pilprint.py
2
#!/Volumes/SSDATA/www/greenpointtrees/greenpointtrees/bin/python # # The Python Imaging Library. # $Id$ # # print image files to postscript printer # # History: # 0.1 1996-04-20 fl Created # 0.2 1996-10-04 fl Use draft mode when converting. # 0.3 2003-05-06 fl Fixed a typo or two. # from __future__ import ...
WillGuan105/django
refs/heads/master
tests/m2m_multiple/__init__.py
12133432
orwell-int/proxy-simulator
refs/heads/master
orwell/proxy_simulator/beta_tanks.py
1
import ode import orwell.proxy_simulator.tanks as tanks class Tank3(tanks.BaseTank): def __init__(self, robot_descriptor): super(Tank3, self).__init__(robot_descriptor) def create_objects(self, world): print 'chassis' # chassis density = 10 lx, ly, lz = (8, 0.5, 8) ...
drewis/android_kernel_msm
refs/heads/android-msm-mako-3.4-jb-mr1
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. ...
renatoGarcia/tangram
refs/heads/master
tangram/recipes/__init__.py
1
# Copyright 2017 The Tangram Developers. See the AUTHORS file at the # top-level directory of this distribution and at # https://github.com/renatoGarcia/tangram/blob/master/AUTHORS. # # This file is part of Tangram. # # Tangram is free software: you can redistribute it and/or modify # it under the terms of the GNU Less...
bitcommoditiz/Silverz-XAGz
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...
Yukarumya/Yukarum-Redfoxes
refs/heads/master
js/src/gdb/tests/test-GCCellPtr.py
2
# Tests for GCCellPtr pretty-printing assert_subprinter_registered('SpiderMonkey', 'JS::GCCellPtr') run_fragment('GCCellPtr.simple') assert_pretty('nulll', 'JS::GCCellPtr(nullptr)') assert_pretty('object', 'JS::GCCellPtr((JSObject*) )') assert_pretty('string', 'JS::GCCellPtr((JSString*) )') assert_pretty('symbol', '...
leture/sorl-thumbnail
refs/heads/master
tests/settings/imagemagick.py
28
from .default import * THUMBNAIL_ENGINE = 'sorl.thumbnail.engines.convert_engine.Engine' THUMBNAIL_CONVERT = 'convert'
theshadowx/enigma2
refs/heads/master
lib/python/Components/Sources/FrontendInfo.py
35
from enigma import iPlayableService from Source import Source from Components.PerServiceDisplay import PerServiceBase class FrontendInfo(Source, PerServiceBase): def __init__(self, service_source = None, frontend_source = None, navcore = None): self.navcore = None Source.__init__(self) if navcore: PerService...
MaxiNet/netSLS
refs/heads/master
network_emulator/process_manager.py
2
""" Copyright 2015 Malte Splietker 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 ...
firerszd/kbengine
refs/heads/master
kbe/src/lib/python/Lib/plat-darwin/IN.py
109
# Generated by h2py from /usr/include/netinet/in.h # Included from sys/appleapiopts.h # Included from sys/_types.h # Included from sys/cdefs.h def __P(protos): return protos def __STRING(x): return #x def __P(protos): return () def __STRING(x): return "x" def __attribute__(x): return def __COPYRIGHT(s): return ...
CompPhysics/ComputationalPhysics
refs/heads/master
doc/Programs/PythonCodesLectureNotes/ising2dim.py
4
from __future__ import division import matplotlib.pyplot as plt import numpy as np import math, sys def periodic (i, limit, add): """ Choose correct matrix index with periodic boundary conditions Input: - i: Base index - limit: Highest \"legal\" index - add: Number to add or subtract...
PSU-CAPSTONE-BEEEEEES/Tellagence
refs/heads/master
test/jshamcrest/doc/conf.py
1
# -*- coding: utf-8 -*- # # JsHamcrest documentation build configuration file, created by # sphinx-quickstart on Mon Sep 21 23:03:59 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
noxdafox/see
refs/heads/master
plugins/screen.py
2
# Copyright 2015-2017 F-Secure # 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, ...
gcd0318/django
refs/heads/master
django/contrib/gis/maps/__init__.py
12133432
joequery/django
refs/heads/master
tests/migrations/test_migrations_no_changes/__init__.py
12133432
broferek/ansible
refs/heads/devel
lib/ansible/executor/discovery/__init__.py
12133432
zdary/intellij-community
refs/heads/master
python/testData/refactoring/unwrap/whileInWhileUnwrap_after.py
80
while True: # comment x = 1<caret> y = 2
miconof/headphones
refs/heads/master
lib/requests/packages/urllib3/util/url.py
375
from collections import namedtuple from ..exceptions import LocationParseError url_attrs = ['scheme', 'auth', 'host', 'port', 'path', 'query', 'fragment'] class Url(namedtuple('Url', url_attrs)): """ Datastructure for representing an HTTP URL. Used as a return value for :func:`parse_url`. """ s...
nuclear-wizard/moose
refs/heads/devel
python/mooseutils/tests/test_MooseDataFrame.py
12
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
EderSantana/blocks_contrib
refs/heads/master
tests/__init__.py
12133432
jmankiewicz/odooAddons
refs/heads/master
fritzbox/controllers/__init__.py
12133432
gosquadron/squadron
refs/heads/master
squadron/fileio/loghandlers/__init__.py
12133432
Vixionar/django
refs/heads/master
django/core/checks/security/__init__.py
12133432
magic0704/neutron
refs/heads/master
neutron/plugins/ml2/drivers/cisco/nexus/__init__.py
12133432
nmercier/linux-cross-gcc
refs/heads/master
win32/bin/Lib/lib2to3/tests/data/fixers/myfixes/__init__.py
12133432
ibmsoe/ImpalaPPC
refs/heads/Impala2.6-main
tests/benchmark/__init__.py
12133432
endolith/numpy
refs/heads/master
numpy/random/tests/data/__init__.py
12133432
aginor/wesnoth
refs/heads/master
data/tools/unit_tree/helpers.py
13
""" Various helpers for use by the wmlunits tool. """ import sys, os, re, glob, shutil, copy, urllib.request, urllib.error, urllib.parse, subprocess import wesnoth.wmlparser3 as wmlparser3 def get_datadir(wesnoth_exe): p = subprocess.Popen([wesnoth_exe, "--path"], stdout = subprocess.PIPE, stderr = subpro...
linjoahow/w17g
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/xml/sax/saxutils.py
730
"""\ A library of useful helper classes to the SAX classes, for the convenience of application and driver writers. """ import os, urllib.parse, urllib.request import io from . import handler from . import xmlreader def __dict_replace(s, d): """Replace substrings of a string using a dictionary.""" for key, val...
jusdng/odoo
refs/heads/8.0
addons/purchase/res_config.py
357
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms o...
YangChihWei/w16b_test
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/_collections.py
603
# "High performance data structures # " # copied from pypy repo # # Copied and completed from the sandbox of CPython # (nondist/sandbox/collections/pydeque.py rev 1.1, Raymond Hettinger) # # edited for Brython line 558 : catch ImportError instead of AttributeError import operator #try: # from thread import get_i...
ngrudzinski/sentiment_analysis_437
refs/heads/master
scraper.py
1
#Credit to Marco Bonzanini CC-BY 4.0 import tweepy from tweepy import OAuthHandler from tweepy import TweepError consumer_key = 'KGrJyI9GdujKcowMfrheB78dR' consumer_secret = 'TEa81xn0OZOwebVyNccqQFkY2Qe0qPJbHixz1GZQZlJZ55jY2V' access_token = '3021600922-wF6n5jmtjnd6Ip16L3CguHxK4p19OblPXjvJYvF' access_secret = 'fVpGcf...
TheOstrichIO/ostrichlib
refs/heads/master
ostrich/utils/proc.py
1
# -*- coding: utf-8 -*- # pylint: disable=unused-import, too-few-public-methods """ proc utils module An adaptation of Python 3.5 subprocess.run function source: https://github.com/python/cpython/blob/3.5/Lib/subprocess.py """ # Python 2 / Python 3 compatibility fu # http://python-future.org/compatible_idioms.htm...
tommyip/zulip
refs/heads/master
zerver/management/commands/send_test_email.py
1
from typing import Any from django.conf import settings from django.core.mail import mail_admins, mail_managers, send_mail from django.core.management import CommandError from django.core.management.commands import sendtestemail from zerver.lib.send_email import FromAddress class Command(sendtestemail.Command): ...
TemplateVoid/mapnik
refs/heads/master
scons/scons-local-2.3.1/SCons/Platform/sunos.py
11
"""engine.SCons.Platform.sunos Platform-specific initialization for Sun systems. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Platform.Platform() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009...
marcoconstancio/yanta
refs/heads/master
actions/insert_image/insert_image.py
1
# -*- coding: utf-8 -*- import base64 import os from PyQt5.QtWidgets import QFileDialog class insert_image: def __init__(self): pass @staticmethod def process(data, args): image_path, extra = QFileDialog.getOpenFileName(None, 'Sele...
randynobx/ansible
refs/heads/devel
test/integration/targets/module_utils/other_mu_dir/mork.py
294
data = 'mork'
iancrossfield/aries_reduce
refs/heads/master
analysis.py
1
""" My module for various data analysis tasks. :REQUIREMENTS: :doc:`numpy`, :doc:`tools` (for :func:`errxy`) 2008-07-25 16:20 IJC: Created. 2009-12-08 11:31 IJC: Updated transit flag in planet objects and :func:`rveph` function. 2010-02-18 14:06 IJC: Added :func:`medianfilter` 2010-08-03 15...
ndokos/pbench
refs/heads/master
lib/pbench/test/functional/agent/cli/commands/results/test_clear_results.py
3
import pytest def test_pbench_clear_results_help(): command = ["pbench-clear-results", "--help"] out, err, exitcode = pytest.helpers.capture(command) assert b"Usage: pbench-clear-results [OPTIONS]" in out assert exitcode == 0 def test_clear_results(monkeypatch, agent_config, pbench_run, pbench_cfg):...
mglukhikh/intellij-community
refs/heads/master
python/testData/copyPaste/TopLevelIfStatementWithMultilineCondition.after.py
35
if (True or (True or False)): x = 1 y = 2
appsoma/kafka
refs/heads/trunk
system_test/utils/system_test_utils.py
88
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
halostatue/ansible
refs/heads/devel
lib/ansible/module_utils/cloudstack.py
19
# -*- coding: utf-8 -*- # # (c) 2015, René Moser <mail@renemoser.net> # # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the aut...
sodo13/openpli-gls
refs/heads/master
tests/test_timer.py
56
import enigma import sys import time import tests #enigma.reset() def test_timer(repeat = 0, timer_start = 3600, timer_length = 1000, sim_length = 86400 * 7): import NavigationInstance at = time.time() t = NavigationInstance.instance.RecordTimer print t print "old mwt:", t.MaxWaitTime t.MaxWaitTime = 86400 *...
Jeongseob/xen-coboost-sched
refs/heads/master
tools/python/xen/xend/XendVnet.py
52
#============================================================================ # 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...
jessstrap/servotk
refs/heads/master
tests/wpt/web-platform-tests/cors/resources/checkandremove.py
253
def main(request, response): token = request.GET.first("token") if request.server.stash.remove(token) is not None: return "1" else: return "0"
michalliu/OpenWrt-Firefly-Libraries
refs/heads/master
staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python3.4/test/test_sundry.py
84
"""Do a minimal test of all the modules that aren't otherwise tested.""" import importlib import sys from test import support import unittest class TestUntestedModules(unittest.TestCase): def test_untested_modules_can_be_imported(self): untested = ('bdb', 'encodings', 'formatter', 'ntur...
kubeflow/katib
refs/heads/master
test/suggestion/v1beta1/test_hyperopt_service.py
1
# Copyright 2021 The Kubeflow Authors. # # 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 ...
doismellburning/edx-platform
refs/heads/master
lms/tests.py
54
"""Tests for the lms module itself.""" import mimetypes from mock import patch from django.test import TestCase from django.core.urlresolvers import reverse from edxmako import add_lookup, LOOKUP from lms import startup from xmodule.modulestore.tests.factories import CourseFactory from xmodule.modulestore.tests.djan...
adw0rd/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/django/views/generic/date_based.py
65
import datetime import time from django.template import loader, RequestContext from django.core.exceptions import ObjectDoesNotExist from django.core.xheaders import populate_xheaders from django.db.models.fields import DateTimeField from django.http import Http404, HttpResponse def archive_index(request, queryset, d...
houchj/selenium
refs/heads/master
py/selenium/webdriver/safari/__init__.py
2454
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
zhinaonet/sqlmap-z
refs/heads/master
lib/core/target.py
1
#!/usr/bin/env python """ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import codecs import functools import os import re import subprocess import sys import tempfile import time import urlparse from lib.core.common import Backend from lib.core....
BPI-SINOVOIP/BPI-Mainline-kernel
refs/heads/master
toolchains/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabi/share/gdb/python/gdb/FrameDecorator.py
10
# Copyright (C) 2013-2018 Free Software Foundation, Inc. # 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. # # This progr...
surligas/gnuradio
refs/heads/master
gr-analog/python/analog/qa_pwr_squelch.py
47
#!/usr/bin/env python # # Copyright 2012,2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your optio...
grpc/grpc
refs/heads/master
tools/run_tests/xds_k8s_test_driver/framework/rpc/grpc_testing.py
4
# Copyright 2020 gRPC authors. # # 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...
saguziel/incubator-airflow
refs/heads/master
airflow/utils/state.py
55
# -*- 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 ...
charukiewicz/beer-manager
refs/heads/master
venv/lib/python3.4/site-packages/pip/_vendor/html5lib/treewalkers/_base.py
310
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import text_type, string_types import gettext _ = gettext.gettext from xml.dom import Node DOCUMENT = Node.DOCUMENT_NODE DOCTYPE = Node.DOCUMENT_TYPE_NODE TEXT = Node.TEXT_NODE ELEMENT = Node.ELEMENT_NODE COMMENT = Node.COMMENT_N...
pkoutsias/SickRage
refs/heads/master
lib/lockfile/sqlitelockfile.py
45
from __future__ import absolute_import, division import time import os try: unicode except NameError: unicode = str from . import LockBase, NotLocked, NotMyLock, LockTimeout, AlreadyLocked class SQLiteLockFile(LockBase): "Demonstrate SQL-based locking." testdb = None def __init__(self, path, t...
donniexyz/calligra
refs/heads/master
3rdparty/google-breakpad/src/tools/gyp/test/generator-output/actions/subdir2/make-file.py
973
#!/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. import sys contents = "Hello from make-file.py\n" open(sys.argv[1], 'wb').write(contents)
swt30/beets
refs/heads/master
test/test_mediafile.py
2
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 t...
varunarya10/boto
refs/heads/develop
tests/compat.py
115
# Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights ...
BT-jmichaud/bank-statement-reconcile
refs/heads/8.0
account_statement_operation_multicompany/account.py
15
# -*- encoding: utf-8 -*- ############################################################################## # # Account Statement Operation Multi-company module for Odoo # Copyright (C) 2015 Akretion (http://www.akretion.com) # @author Alexis de Lattre <alexis.delattre@akretion.com> # # This program is free so...
eedf/jeito
refs/heads/master
upkeep/admin.py
1
from django.contrib import admin from mptt.admin import MPTTModelAdmin from .models import Issue, Place, Priority, Skill @admin.register(Place) class PlaceAdmin(MPTTModelAdmin): list_display = ('title', ) search_fields = ('title', ) @admin.register(Skill) class SkillAdmin(admin.ModelAdmin): list_display...
smkr/pyclipse
refs/heads/master
plugins/org.python.pydev/tests/pysrc/extendable/help/__init__.py
11
#note: module name MUST be help about = 'test'
nburn42/tensorflow
refs/heads/master
tensorflow/python/summary/summary_test.py
75
# Copyright 2016 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...
nikolay-fedotov/tempest
refs/heads/master
tempest/api_schema/response/compute/v2/servers.py
4
# Copyright 2014 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 ...
Captain-Coder/tribler
refs/heads/devel
Tribler/Test/Community/Market/test_block.py
1
from __future__ import absolute_import from twisted.internet.defer import inlineCallbacks from Tribler.Test.test_as_server import AbstractServer from Tribler.community.market.block import MarketBlock from Tribler.community.market.core.assetamount import AssetAmount from Tribler.community.market.core.assetpair import ...
ErykB2000/home-assistant
refs/heads/master
homeassistant/components/notify/nma.py
10
""" homeassistant.components.notify.nma ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NMA (Notify My Android) notification service. Configuration: To use the NMA notifier you will need to add something like the following to your config/configuration.yaml notify: platform: nma api_key: YOUR_API_KEY VARIABLES: api_key *R...
DmitryYurov/BornAgain
refs/heads/develop
Examples/python/fitting/ex01_BasicExamples/minimizer_settings.py
2
""" Fitting example: running same fit using various minimizer and their settings. """ import bornagain as ba from bornagain import deg, angstrom, nm def get_sample(params): """ Returns a sample with uncorrelated cylinders and prisms on a substrate. """ cylinder_height = params["cylinder_height"] c...
mgax/beancount
refs/heads/master
lib/python/beancount/inventory.py
1
""" Trade inventory. This module provides a very flexible inventory object, used to maintain position and to calculate P+L for a positions, for a single product. In order to compute P+L, we need to book current trades with past trades, and our inventory object supports various booking methods to select which positions...
Mec-iS/semantic-data-chronos
refs/heads/master
lib/longtask/__init__.py
6
from longtask import *
davidvon/pipa-pay-server
refs/heads/master
site-packages/flask/module.py
850
# -*- coding: utf-8 -*- """ flask.module ~~~~~~~~~~~~ Implements a class that represents module blueprints. :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import os from .blueprints import Blueprint def blueprint_is_module(bp): """Used to figure ou...
liorvh/infernal-twin
refs/heads/master
build/pillow/PIL/GdImageFile.py
52
# # The Python Imaging Library. # $Id$ # # GD file handling # # History: # 1996-04-12 fl Created # # Copyright (c) 1997 by Secret Labs AB. # Copyright (c) 1996 by Fredrik Lundh. # # See the README file for information on usage and redistribution. # # NOTE: This format cannot be automatically recognized, so the # cl...
lzambella/Qyoutube-dl
refs/heads/master
youtube_dl/extractor/sztvhu.py
148
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .common import InfoExtractor class SztvHuIE(InfoExtractor): _VALID_URL = r'http://(?:(?:www\.)?sztv\.hu|www\.tvszombathely\.hu)/(?:[^/]+)/.+-(?P<id>[0-9]+)' _TEST = { 'url': 'http://sztv.hu/hirek/cserkeszek-nepszerusitettek-a-kornye...
mseln/klufweb
refs/heads/master
klufweb/static_page/tests.py
24123
from django.test import TestCase # Create your tests here.
nafitzgerald/allennlp
refs/heads/master
allennlp/service/predictors/__init__.py
1
""" A :class:`~allennlp.server.predictors.predictor.Predictor` is a wrapper for an AllenNLP ``Model`` that makes JSON predictions using JSON inputs. If you want to serve up a model through the web service (or using ``allennlp.commands.predict``), you'll need a ``Predictor`` that wraps it. """ from .predictor import Pre...
musically-ut/numpy
refs/heads/master
numpy/distutils/from_template.py
164
#!/usr/bin/python """ process_file(filename) takes templated file .xxx.src and produces .xxx file where .xxx is .pyf .f90 or .f using the following template rules: '<..>' denotes a template. All function and subroutine blocks in a source file with names that contain '<..>' will be replicated according to ...
hainm/scipy
refs/heads/master
scipy/io/netcdf.py
29
""" NetCDF reader/writer module. This module is used to read and create NetCDF files. NetCDF files are accessed through the `netcdf_file` object. Data written to and from NetCDF files are contained in `netcdf_variable` objects. Attributes are given as member variables of the `netcdf_file` and `netcdf_variable` objects...
Agnishom/kabooblydoo
refs/heads/master
lib/flask/testsuite/test_apps/flask_broken/__init__.py
629
import flask.ext.broken.b import missing_module
nyalldawson/QGIS
refs/heads/master
scripts/qgis_fixes/fix_ws_comma.py
77
from lib2to3.fixes.fix_ws_comma import FixWsComma
slevenhagen/odoo-npg
refs/heads/8.0
addons/auth_oauth/controllers/main.py
205
import functools import logging import simplejson import urlparse import werkzeug.utils from werkzeug.exceptions import BadRequest import openerp from openerp import SUPERUSER_ID from openerp import http from openerp.http import request from openerp.addons.web.controllers.main import db_monodb, ensure_db, set_cookie_...
jbeluch/xam
refs/heads/master
tests/test_addon.py
1
import os from unittest import TestCase from xml.etree import ElementTree as ET from xam import Addon try: from collections import OrderedDict except ImportError: from collective.ordereddict import OrderedDict class TestAddon(TestCase): def assert_attrs(self, obj, attrs): for attr_name, expected_...
SnabbCo/neutron
refs/heads/master
neutron/tests/unit/test_common_log.py
22
# Copyright (c) 2013 OpenStack Foundation. # # 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...
pixelrebel/st2
refs/heads/master
st2common/st2common/util/actionalias_matching.py
4
# Licensed to the StackStorm, Inc ('StackStorm') 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 th...
yeyanchao/calibre
refs/heads/master
src/calibre/ebooks/metadata/kdl.py
10
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import re, urllib, urlparse, socket from mechanize import URLError from calibre.ebooks.metadata.book.base import Metadata...
emsrc/daeso-framework
refs/heads/master
lib/daeso/string/number.py
1
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2013 by Erwin Marsi and TST-Centrale # # This file is part of the DAESO Framework. # # The DAESO Framework 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 ...
rchlchang/byte1
refs/heads/master
lib/werkzeug/debug/tbtools.py
311
# -*- coding: utf-8 -*- """ werkzeug.debug.tbtools ~~~~~~~~~~~~~~~~~~~~~~ This module provides various traceback related utility functions. :copyright: (c) 2013 by the Werkzeug Team, see AUTHORS for more details. :license: BSD. """ import re import os import sys import json import inspect import ...
caibo2014/teuthology
refs/heads/master
teuthology/task/tests/test_run.py
10
import logging import pytest from StringIO import StringIO from teuthology.exceptions import CommandFailedError log = logging.getLogger(__name__) class TestRun(object): """ Tests to see if we can make remote procedure calls to the current cluster """ def test_command_failed_label(self, ctx, config...
rnirmal/openstack-dashboard
refs/heads/master
django-openstack/django_openstack/middleware/__init__.py
12133432
gabrielx52/local_harvest
refs/heads/master
local_harvest/__init__.py
12133432
FuzzyHobbit/scrapy
refs/heads/master
tests/test_utils_misc/test_walk_modules/__init__.py
12133432
nzjrs/conduit
refs/heads/master
conduit/modules/EvolutionModule/__init__.py
12133432
Propanu/upm
refs/heads/master
examples/python/ili9341.py
6
#!/usr/bin/env python # Author: Shawn Hymel # Copyright (c) 2016 SparkFun Electronics # # 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...
broadinstitute/gatk
refs/heads/master
src/main/python/org/broadinstitute/hellbender/vqsr_cnn/vqsr_cnn/arguments.py
3
import argparse import numpy as np import keras.backend as K from . import defines def parse_args(): """Parse command line arguments. The args namespace is used promiscuously in this module. Its fields control the tensor definition, dataset generation, training, file I/O and evaluation. Some of the...
open-machine-learning/mldata-utils
refs/heads/master
scripts/validate.py
1
#!/usr/bin/env python """Convert from one supported format to another. Example usage: python validate.py mydata.h5 python validate.py otherdata.arff python validate.py problemdata.h5 output.csv """ import sys import ml2h5.fileformat import ml2h5.converter from ml2h5.converter.h5_csv import H5_CSV from ml2h5.converter...
subramani95/neutron
refs/heads/master
neutron/openstack/common/loopingcall.py
25
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
havatv/QGIS
refs/heads/master
tests/src/python/test_qgsserver_plugins.py
4
# -*- coding: utf-8 -*- """QGIS Unit tests for QgsServer plugins and filters. From build dir, run: ctest -R PyQgsServerPlugins -V .. note:: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ve...
talbrecht/pism_pik
refs/heads/stable1.0
site-packages/siple/opt/linesearchCR.py
3
############################################################################ # # This file is a part of siple. # # Copyright 2010, 2014 David Maxwell # # siple 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 Foundati...
Dino0631/RedRain-Bot
refs/heads/develop
cogs/lib/pip/_vendor/requests/structures.py
615
# -*- coding: utf-8 -*- """ requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. """ import collections from .compat import OrderedDict class CaseInsensitiveDict(collections.MutableMapping): """A case-insensitive ``dict``-like object. Implements all methods and operations of `...
sserrot/champion_relationships
refs/heads/master
venv/Lib/site-packages/setuptools/_vendor/six.py
2715
"""Utilities for writing code that runs on Python 2 and 3""" # Copyright (c) 2010-2015 Benjamin Peterson # # 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 with...