repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
40223212/2015cdbg4_6-22
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/threading.py
730
"""Thread module emulating a subset of Java's threading model.""" import sys as _sys import _thread from time import sleep as _sleep try: from time import monotonic as _time except ImportError: from time import time as _time from traceback import format_exc as _format_exc from _weakrefset import WeakSet # No...
retomerz/intellij-community
refs/heads/master
python/testData/refactoring/move/moveNamespacePackage1/before/src/nspkg/empty.py
12133432
rhertzog/django
refs/heads/master
django/contrib/sitemaps/management/__init__.py
12133432
napkindrawing/ansible
refs/heads/devel
lib/ansible/modules/network/iosxr/__init__.py
12133432
MDNukem/gudid-parser
refs/heads/master
logger.py
1
import logging log_level = logging.DEBUG logging.root.setLevel(log_level) stream = logging.StreamHandler() stream.setLevel(log_level) logger = logging.getLogger('gudid_parser') logger.addHandler(stream)
selfcommit/gaedav
refs/heads/master
pyxml/unicode/__init__.py
14
"""This package exists for compatibility with PyXML 0.5.x. Its functionality is superceded by the Python 2.0 Unicode type; it should be used only by 4DOM."""
signed/intellij-community
refs/heads/master
python/lib/Lib/encodings/base64_codec.py
528
""" Python 'base64_codec' Codec - base64 content transfer encoding Unlike most of the other codecs which target Unicode, this codec will return Python string objects for both encode and decode. Written by Marc-Andre Lemburg (mal@lemburg.com). """ import codecs, base64 ### Codec APIs def base64_encode(i...
Edu-Glez/Bank_sentiment_analysis
refs/heads/master
env/lib/python3.6/site-packages/pip/_vendor/distlib/_backport/misc.py
1428
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Backports for individual classes and functions.""" import os import sys __all__ = ['cache_from_source', 'callable', 'fsencode'] try: from imp import cache_from_source except ImportError: ...
adrienbrunet/drinks
refs/heads/master
bottle/settings.py
1
""" Django settings for bottle project. Generated by 'django-admin startproject' using Django 1.8.2. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths...
kapiziak/mtasa-blue
refs/heads/master
vendor/google-breakpad/src/tools/gyp/test/standalone/gyptest-standalone.py
314
#!/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. """ Verifies that a project hierarchy created with the --generator-output= option can be built even when it's relocated to a different path....
erichlf/ASP
refs/heads/master
solverbase.py
1
__author__ = 'Erich L Foster <erichlf@gmail.com>' __date__ = '2018-12-26' __license__ = 'GNU GPL version 3 or any later version' # # adapted from solverbase.py in nsbench originally developed by # Anders Logg <logg@simula.no> # from dolfin import * try: from dolfin_adjoint import * parameters['adjoint"]["...
kivymd/KivyMD
refs/heads/master
demos/shrine/libs/baseclass/product_screen.py
1
import os from kivy.animation import Animation from kivy.properties import ListProperty, StringProperty from kivy.utils import get_color_from_hex from kivymd.color_definitions import colors from kivymd.theming import ThemableBehavior from kivymd.uix.behaviors import MagicBehavior from kivymd.uix.boxlayout import MDBo...
brianhouse/biophony
refs/heads/master
audification.py
1
#!/usr/bin/env python3 import pickle from housepy import config, log, drawing, util, sound import signal_processing as sp ts = [] values = [] # log.info("Loading data...") # with open("data.txt") as f: # for line in f: # tokens = line.split(',') # dt = util.parse_date(tokens[0].strip(), tz="Amer...
da1z/intellij-community
refs/heads/master
python/lib/Lib/encodings/utf_16_le.py
860
""" Python 'utf-16-le' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import codecs ### Codec APIs encode = codecs.utf_16_le_encode def decode(input, errors='strict'): return codecs.utf_16_le_decode(input, errors, True) class IncrementalEncod...
gavinfish/leetcode-share
refs/heads/master
python/009 Palindrome Number.py
1
''' Determine whether an integer is a palindrome. Do this without extra space. Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to string, note the restriction of using extra space. You could also try reversing an integer. However, if you have solved the problem "Reverse...
eayunstack/fuel-web
refs/heads/master
nailgun/nailgun/test/unit/test_assignment_validator.py
6
# Copyright 2014 Mirantis, 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 ...
dehann/RoME.jl
refs/heads/master
examples/tcpstrings/JLSLAMInterf.py
1
import socket import sys import numpy as np from numpy import linalg as npla from bot_geometry.rigid_transform import RigidTransform, Pose from bot_geometry.quaternion import Quaternion from bot_externals.draw_utils import publish_pose_list, publish_sensor_frame, publish_cloud, \ publish_line_segments def trigger...
GoogleCloudPlatform/PerfKitBenchmarker
refs/heads/master
tests/cloud_harmony_util_test.py
1
"""Tests for perfkitbenchmarker.cloud_harmony_util.""" import os import unittest from absl import flags # Imported for cloud flag from perfkitbenchmarker import benchmark_spec # pylint: disable=unused-import from perfkitbenchmarker import cloud_harmony_util # Imported for machine_type and zones flag from perfkitbench...
walidham/iws2
refs/heads/master
tests/__init__.py
36
# __init__.py is a special Python file that allows a directory to become # a Python package so it can be accessed using the 'import' statement. # Intentionally left empty
Smarsh/django
refs/heads/master
django/core/management/commands/syncdb.py
18
from optparse import make_option import sys from django.conf import settings from django.core.management.base import NoArgsCommand from django.core.management.color import no_style from django.core.management.sql import custom_sql_for_model, emit_post_sync_signal from django.db import connections, router, transaction,...
openstates/billy
refs/heads/master
billy2pupa/ny.py
2
from openstatesapi.jurisdiction import make_jurisdiction J = make_jurisdiction('ny') J.url = 'http://ny.gov'
m-ober/byceps
refs/heads/master
byceps/blueprints/core/__init__.py
12133432
sgzsh269/django
refs/heads/master
tests/i18n/patterns/urls/__init__.py
12133432
sublime1809/django
refs/heads/master
tests/db_typecasts/__init__.py
12133432
catacgc/ansible-modules-core
refs/heads/devel
cloud/digital_ocean/__init__.py
12133432
davisein/jitsudone
refs/heads/master
django/contrib/gis/db/backends/postgis/adapter.py
94
""" This object provides quoting for GEOS geometries into PostgreSQL/PostGIS. """ from psycopg2 import Binary from psycopg2.extensions import ISQLQuote class PostGISAdapter(object): def __init__(self, geom): "Initializes on the geometry." # Getting the WKB (in string form, to allow easy pickling ...
condor-the-bird/tarantool
refs/heads/master
test/replication/cluster.test.py
7
import os import sys import re import yaml import uuid import glob from lib.tarantool_server import TarantoolServer ## Get cluster uuid cluster_uuid = '' try: cluster_uuid = yaml.load(server.admin("box.space._schema:get('cluster')", silent = True))[0][1] uuid.UUID('{' + cluster_uuid + '}') print 'o...
raincoatrun/basemap
refs/heads/master
examples/panelplot.py
3
from mpl_toolkits.basemap import Basemap from matplotlib import rcParams from matplotlib.ticker import MultipleLocator import numpy as np import matplotlib.pyplot as plt # read in data on lat/lon grid. hgt = np.loadtxt('500hgtdata.gz') lons = np.loadtxt('500hgtlons.gz') lats = np.loadtxt('500hgtlats.gz') lons, lats ...
isabernardes/Heriga
refs/heads/master
Herigaenv/lib/python2.7/site-packages/django/utils/translation/trans_null.py
467
# These are versions of the functions in django.utils.translation.trans_real # that don't actually do anything. This is purely for performance, so that # settings.USE_I18N = False can use this module rather than trans_real.py. from django.conf import settings from django.utils.encoding import force_text def ngettext...
django-nonrel/django
refs/heads/nonrel-1.6
tests/utils_tests/models.py
265
from django.db import models class Category(models.Model): name = models.CharField(max_length=100) def next(self): return self class Thing(models.Model): name = models.CharField(max_length=100) category = models.ForeignKey(Category)
dialounke/pylayers
refs/heads/master
pylayers/antprop/coverage.py
1
""" .. currentmodule:: pylayers.antprop.coverage .. autosummary:: :members: """ from pylayers.util.project import * #from pylayers.measures.mesuwb import * from pylayers.simul.radionode import * import pylayers.util.pyutil as pyu from pylayers.util.utilnet import str2bool from pylayers.gis.layout import Layout imp...
corngood/ycmd
refs/heads/master
ycmd/completers/completer_utils.py
17
#!/usr/bin/env python # # Copyright (C) 2013 Google Inc. # # This file is part of YouCompleteMe. # # YouCompleteMe 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 you...
ifduyue/django
refs/heads/master
tests/template_tests/filter_tests/test_truncatewords_html.py
40
from django.template.defaultfilters import truncatewords_html from django.test import SimpleTestCase class FunctionTests(SimpleTestCase): def test_truncate_zero(self): self.assertEqual(truncatewords_html('<p>one <a href="#">two - three <br>four</a> five</p>', 0), '') def test_truncate(self): ...
keithroe/vtkoptix
refs/heads/master
ThirdParty/Twisted/twisted/internet/iocpreactor/setup.py
84
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Distutils file for building low-level IOCP bindings from their Pyrex source """ from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup(name='iocpsupport', ext_modules=[...
telwertowski/Books-Mac-OS-X
refs/heads/master
Versions/Books_3.0b3/OPAC SBN.plugin/Contents/Resources/PyZ3950/CQLParser.py
30
#!/usr/bin/python # Author: Rob Sanderson (azaroth@liv.ac.uk) # Distributed and Usable under the GPL # Version: 1.7 # Most Recent Changes: contexts, new modifier style for 1.1 # # With thanks to Adam from IndexData and Mike Taylor for their valuable input from shlex import shlex from xml.sax.saxutils import escape ...
tastynoodle/django
refs/heads/master
tests/wsgi/tests.py
6
from __future__ import unicode_literals import unittest from django.core.exceptions import ImproperlyConfigured from django.core.servers.basehttp import get_internal_wsgi_application from django.core.signals import request_started from django.core.wsgi import get_wsgi_application from django.db import close_old_conne...
gggeng/Photo_Gallery
refs/heads/master
gallery/migrations/0001_initial.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(verbose...
kleins11/intdatasci-byte2
refs/heads/master
jmankoff-mobile/lib/httplib2/test/functional/test_proxies.py
305
import unittest import errno import os import signal import subprocess import tempfile import nose import httplib2 from httplib2 import socks from httplib2.test import miniserver tinyproxy_cfg = """ User "%(user)s" Port %(port)s Listen 127.0.0.1 PidFile "%(pidfile)s" LogFile "%(logfile)s" MaxClients 2 StartServers 1...
mjtamlyn/archery-scoring
refs/heads/master
olympic/migrations/0003_add_ranking_round_m2m.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-02-27 14:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('entries', '0020_auto_20160212_2223'), ('olympic', '0...
spiderbit/canta-ng
refs/heads/master
menus/item_group.py
1
#! /usr/bin/python -O # -*- coding: utf-8 -*- # # CANTA - A free entertaining educational software for singing # Copyright (C) 2007 S. Huchler, A. Kattner, F. Lopez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published b...
patricklaw/pants
refs/heads/java_dep_inf
tests/python/pants_test/pantsd/pantsd_integration_test.py
3
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import glob import os import shutil import signal import sys import threading import time import unittest from pathlib import Path from textwrap import ...
xsynergy510x/android_external_chromium_org
refs/heads/cm-12.1
chrome/browser/test_presubmit.py
25
#!/usr/bin/env python # Copyright (c) 2012 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. """Unit tests for Web Development Style Guide checker.""" import os import re import sys import unittest test_dir = os.path.dirna...
joaduo/mepinta
refs/heads/master
plugins/c_and_cpp/basic/plugins/c_and_cpp/__init__.py
12133432
frankvdp/django
refs/heads/master
tests/postgres_tests/array_default_migrations/__init__.py
12133432
artefactual/archivematica-storage-service
refs/heads/stable/0.15.x
storage_service/storage_service/settings/__init__.py
12133432
syphar/django
refs/heads/master
tests/properties/__init__.py
12133432
anryko/ansible
refs/heads/devel
lib/ansible/modules/network/onyx/onyx_igmp_vlan.py
63
#!/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'], ...
Hitechverma/zamboni
refs/heads/master
lib/video/utils.py
44
import subprocess def check_output(*popenargs, **kwargs): # Tell thee, check_output was from Python 2.7 untimely ripp'd. # check_output shall never vanquish'd be until # Marketplace moves to Python 2.7. if 'stdout' in kwargs: raise ValueError('stdout argument not allowed, it will be overridden...
darkoc/clowdflows
refs/heads/master
workflows/subgroup_discovery/SubgroupDiscovery/xmlMaker.py
7
import xml.dom.minidom as dom #import xml.dom.ext.reader.Sax2 #from xml.dom.ext import PrettyPrint import os import sys class XMLCreator(object): def __init__(self): self.DOMTreeRoot = None self.DOMTreeTop = None # attributes is a list od tuples: [(attrName, attrValue), ...] ...
Softmotions/edx-platform
refs/heads/master
lms/djangoapps/teams/tests/test_views.py
4
# -*- coding: utf-8 -*- """Tests for the teams API at the HTTP request level.""" import json import pytz from datetime import datetime from dateutil import parser import ddt from elasticsearch.exceptions import ConnectionError from mock import patch from search.search_engine_base import SearchEngine from django.core.u...
drpaneas/linuxed.gr
refs/heads/master
lib/python2.7/site-packages/Crypto/Cipher/PKCS1_OAEP.py
123
# -*- coding: utf-8 -*- # # Cipher/PKCS1_OAEP.py : PKCS#1 OAEP # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone is granted a worldwide, perpetual, ro...
Endika/server-tools
refs/heads/8.0
base_report_auto_create_qweb/tests/test_base_report_auto_create_qweb.py
28
# -*- coding: utf-8 -*- # (c) 2015 Oihane Crucelaegui - AvanzOSC # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html import openerp.tests.common as common from openerp import exceptions class TestBaseReportAutoQwebCreate(common.TransactionCase): def setUp(self): super(TestBaseReportAutoQweb...
Qalthos/ansible
refs/heads/devel
lib/ansible/modules/network/onyx/onyx_l3_interface.py
77
#!/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'], ...
etzhou/edx-platform
refs/heads/master
common/lib/xmodule/xmodule/contentstore/utils.py
235
from xmodule.contentstore.content import StaticContent from .django import contentstore def empty_asset_trashcan(course_locs): ''' This method will hard delete all assets (optionally within a course_id) from the trashcan ''' store = contentstore('trashcan') for course_loc in course_locs: ...
NicovincX2/Python-3.5
refs/heads/master
Cryptologie/Cryptographie/Algorithme de cryptographie asymétrique/Chiffrement RSA/RSA.py
1
# -*- coding: utf-8 -*- import os from Crypto.PublicKey import RSA from Crypto import Random def gen_key(nbits=1024): random_generator = Random.new().read key = RSA.generate(nbits, random_generator) return key def check_key(key): print(key.can_encrypt()) print(key.can_sign()) print(key.has_...
frederic-mahe/FROGS
refs/heads/master
bin/biomFastaUpdate.py
1
#!/usr/bin/env python2.7 # # Copyright (C) 2014 INRA # # 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 program ...
GoogleContainerTools/kpt-functions-catalog
refs/heads/master
functions/ts/kubeval/third_party/github.com/instrumenta/openapi2jsonschema/openapi2jsonschema/__init__.py
12133432
pjdelport/django
refs/heads/master
tests/regressiontests/localflavor/is_/__init__.py
12133432
valtech-mooc/edx-platform
refs/heads/master
lms/djangoapps/verify_student/__init__.py
12133432
ristovao/BancadaDeTesteParaAmortecedor
refs/heads/master
app/__init__.py
12133432
wikimedia/operations-debs-python-diamond
refs/heads/master
src/collectors/endecadgraph/endecadgraph.py
4
# coding=utf-8 """ Collects stats from Endeca Dgraph/MDEX server. Tested with: Endeca Information Access Platform version 6.3.0.655584 === Authors Jan van Bemmelen <jvanbemmelen@bol.com> Renzo Toma <rtoma@bol.com> """ import diamond.collector import urllib2 from StringIO import StringIO import re import sys if sys...
CraigHarris/gpdb
refs/heads/master
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/switch_ckpt_b/trigger_sql/test_triggersqls.py
54
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
chdecultot/erpnext
refs/heads/develop
erpnext/stock/report/batch_wise_balance_history/__init__.py
12133432
chenyujie/hybrid-murano
refs/heads/hybrid-master
murano/db/__init__.py
12133432
OGGM/oggm
refs/heads/master
oggm/sandbox/__init__.py
12133432
frifri/django-tastypie
refs/heads/master
tests/namespaced/api/__init__.py
12133432
marcydoty/geraldo
refs/heads/master
site/newsite/django_1_0/tests/regressiontests/admin_registration/__init__.py
12133432
jk1/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/db/backends/postgresql_psycopg2/__init__.py
12133432
sohail-aspose/Aspose_Email_Cloud
refs/heads/master
SDKs/Aspose.Email_Cloud_SDK_for_Python/tests/__init__.py
25
__author__ = 'farooq.sheikh'
googleapis/python-scheduler
refs/heads/master
scripts/readme-gen/readme_gen.py
120
#!/usr/bin/env python # Copyright 2016 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
sciyoshi/gini
refs/heads/master
frontend/src/gbuilder/Devices/Switch.py
6
from Core.Device import * class Switch(Device): type = "Switch" def __init__(self): Device.__init__(self) self.setProperty("Hub mode", "False") # self.setProperty("mask", "") # self.setProperty("subnet", "") # self.setProperty("link_subnet", "0") # self.setProperty(...
procangroup/edx-platform
refs/heads/master
openedx/core/djangoapps/schedules/management/commands/tests/test_send_upgrade_reminder.py
4
""" Tests for send_upgrade_reminder management command. """ import logging from unittest import skipUnless import ddt from django.conf import settings from edx_ace import Message from edx_ace.utils.date import serialize from mock import patch from opaque_keys.edx.locator import CourseLocator from course_modes.models ...
SpaceKatt/CSPLN
refs/heads/master
apps/scaffolding/linux/web2py/gluon/contrib/pysimplesoap/server.py
20
#!/usr/bin/python # -*- coding: utf-8 -*- # This program 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, or (at your option) any later # version. # # This program is distributed in the...
lucasmoura/personfinder
refs/heads/master
tests/test_detect_spam.py
17
#!/usr/bin/python2.7 # # Copyright 2010 Google Inc. All Rights Reserved. """Unittest for detect_spam.py module.""" __author__ = 'shaomei@google.com (Shaomei Wu)' from google.appengine.ext import db from detect_spam import SpamDetector import unittest class SpamDetectorTests(unittest.TestCase): def test_init(se...
endlessm/chromium-browser
refs/heads/master
third_party/llvm/compiler-rt/test/tsan/libdispatch/lit.local.cfg.py
15
def getRoot(config): if not config.parent: return config return getRoot(config.parent) root = getRoot(config) if 'libdispatch' in root.available_features: additional_cflags = ' -fblocks ' for index, (template, replacement) in enumerate(config.substitutions): if template in ['%clang_tsan ', '%clangxx_t...
RicardoJohann/um
refs/heads/master
erpnext/stock/report/stock_ledger/__init__.py
12133432
sean93park/mozjs24
refs/heads/master
js/src/testing/mozbase/moztest/moztest/__init__.py
12133432
enricobarzetti/django_client_data
refs/heads/master
django_client_data/tests/__init__.py
12133432
maxcutler/Courant-News
refs/heads/master
courant/core/menus/templatetags/__init__.py
12133432
geraldoandradee/mysql-5.6
refs/heads/webscalesql-5.6.24.97
xtrabackup/test/kewpie/lib/server_mgmt/__init__.py
12133432
dycodedev/taiga-back
refs/heads/master
taiga/projects/tasks/migrations/__init__.py
12133432
dogukantufekci/memo
refs/heads/master
memo/actions/admin.py
12133432
tjsavage/rototutor_djangononrel
refs/heads/master
django/core/management/commands/diffsettings.py
411
from django.core.management.base import NoArgsCommand def module_to_dict(module, omittable=lambda k: k.startswith('_')): "Converts a module namespace to a Python dictionary. Used by get_settings_diff." return dict([(k, repr(v)) for k, v in module.__dict__.items() if not omittable(k)]) class Command(NoArgsComm...
joy13975/elfin
refs/heads/master
pymol_scripts/extensions/extension_template.py
1
#!/usr/bin/env python3 # # A PyMol extension script template # def main(): """main""" raise RuntimeError('This module should not be executed as a script') if __name__ =='__main__': main() in_pymol = False try: import pymol in_pymol = True except ImportError as ie: main() ...
mancoast/CPythonPyc_test
refs/heads/master
cpython/235_test_dis.py
9
from test.test_support import verify, verbose, TestFailed, run_unittest import sys import dis import StringIO # Minimal tests for dis module import unittest def _f(a): print a return 1 dis_f = """\ %-4d 0 LOAD_FAST 0 (a) 3 PRINT_ITEM 4 PRINT_NEWLINE %-4d...
bgn9000/Shun-Andromeda
refs/heads/newmaster
Documentation/target/tcm_mod_builder.py
3119
#!/usr/bin/python # The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD # # Copyright (c) 2010 Rising Tide Systems # Copyright (c) 2010 Linux-iSCSI.org # # Author: nab@kernel.org # import os, sys import subprocess as sub import string import re import optparse tcm_dir = "" fabric_ops...
fling2/rk3066-kernel
refs/heads/fling2-kk22
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
zaolin/android_kernel_samsung_msm8930-common
refs/heads/cm-10.1
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
FNCS/ns-3.24
refs/heads/master
src/topology-read/test/examples-to-run.py
200
#! /usr/bin/env python ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # A list of C++ examples to run in order to ensure that they remain # buildable and runnable over time. Each tuple in the list contains # # (example_name, do_run, do_valgrind_run). # # See test.py for more i...
johndpope/tensorflow
refs/heads/master
tensorflow/python/estimator/inputs/queues/feeding_functions.py
46
# 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...
tst-ppenev/earthenterprise
refs/heads/master
earth_enterprise/src/portableserver/build.py
1
#! /usr/bin/python #-*- Python -*- # # Copyright 2017 GEE Open Source Team <github.com/google/earthenterprise> # # 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/l...
kashif/neon
refs/heads/master
neon/transforms/logistic.py
7
# ---------------------------------------------------------------------------- # Copyright 2014 Nervana Systems 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.o...
RockySteveJobs/python-for-android
refs/heads/master
python3-alpha/python3-src/Lib/csv.py
54
""" csv.py - read/write/investigate CSV files """ import re from _csv import Error, __version__, writer, reader, register_dialect, \ unregister_dialect, get_dialect, list_dialects, \ field_size_limit, \ QUOTE_MINIMAL, QUOTE_ALL, QUOTE_NONNUMERIC, QUOTE_NONE, \ ...
Chasego/codirit
refs/heads/master
comp/microsoft/todo/007_min_del_to_make_freq_of_each_letter_unique.py
12133432
agileblaze/OpenStackTwoFactorAuthentication
refs/heads/master
horizon/contrib/__init__.py
12133432
thenor/softwarecontainer
refs/heads/master
servicetest/coredump/__init__.py
12133432
aekazakov/narrative
refs/heads/master
src/biokbase/ExpressionServices/__init__.py
12133432
shvets/Etvnet.bundle
refs/heads/master
Contents/__init__.py
12133432
tsmall/pyml
refs/heads/master
pyml/test/__init__.py
12133432
CredoReference/edx-platform
refs/heads/integration-hawthorn-qa
openedx/core/djangoapps/video_pipeline/tests/__init__.py
12133432