repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
irwinlove/django
refs/heads/master
tests/template_tests/filter_tests/test_cut.py
521
from django.template.defaultfilters import cut from django.test import SimpleTestCase from django.utils.safestring import mark_safe from ..utils import setup class CutTests(SimpleTestCase): @setup({'cut01': '{% autoescape off %}{{ a|cut:"x" }} {{ b|cut:"x" }}{% endautoescape %}'}) def test_cut01(self): ...
GinnyN/towerofdimensions-django
refs/heads/master
tests/regressiontests/localflavor/se/__init__.py
12133432
amohanta/thug
refs/heads/master
src/Java/__init__.py
12133432
saurabh6790/test_final_med_app
refs/heads/master
buying/report/item_wise_purchase_history/__init__.py
12133432
aakash-cr7/zulip
refs/heads/master
zerver/webhooks/solano/__init__.py
12133432
tatianerd/big-list-of-naughty-strings
refs/heads/master
scripts/txt_to_json.py
60
### Quick Python Script to convert the Big List of Naughty Strings into a JSON file ### ### By Max Woolf import json with open('../blns.txt', 'r') as f: # put all lines in the file into a Python list content = f.readlines() # above line leaves trailing newline characters; strip them out content...
Universal-Model-Converter/UMC3.0a
refs/heads/master
data/Python/x86/Lib/test/test_glob.py
89
import glob import os import shutil import sys import unittest from test.test_support import run_unittest, TESTFN def fsdecode(s): return unicode(s, sys.getfilesystemencoding()) class GlobTests(unittest.TestCase): def norm(self, *parts): return os.path.normpath(os.path.join(self.tempdir, *parts)) ...
tgstation/tgstation
refs/heads/master
tools/dmi/test.py
15
import os import sys from dmi import * def _self_test(): # test: can we load every DMI in the tree count = 0 for dirpath, dirnames, filenames in os.walk('.'): if '.git' in dirnames: dirnames.remove('.git') for filename in filenames: if filename.endswith('.dmi'): ...
oriel-hub/api
refs/heads/master
django/idsapi/profiles/urls.py
1
""" URLConf for Django user profile management. Recommended usage is to use a call to ``include()`` in your project's root URLConf to include this URLConf for any URL beginning with '/profiles/'. If the default behavior of the profile views is acceptable to you, simply use a line like this in your root URLConf to set...
Annelutfen/gittigidiyor-python
refs/heads/master
gittigidiyor/authenticationservice.py
1
# -*- coding: utf-8 -*- ##################################################################### # Copyright (c) <2010> <GittiGidiyor> # # # # Permission is hereby granted, free of charge, to any person # # obtaining a co...
miarmak/CloudFerry
refs/heads/master
cloudferrylib/os/actions/deploy_volumes.py
9
# Copyright (c) 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 agreed to in writing, so...
nicproulx/mne-python
refs/heads/placeholder
mne/io/eeglab/tests/__init__.py
12133432
fenglu-g/incubator-airflow
refs/heads/master
tests/contrib/operators/test_gcp_function_operator.py
4
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
odejesush/tensorflow
refs/heads/master
tensorflow/contrib/learn/python/learn/evaluable.py
64
# 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...
40223119/2015w11
refs/heads/master
static/Brython3.1.0-20150301-090019/Lib/posixpath.py
722
"""Common operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this module on Posix systems; on other systems (e.g. Mac, Windows), os.path provides the same operations in a manner specific to that platform, and is a...
phalt/django
refs/heads/master
django/conf/locale/es_PR/__init__.py
12133432
luoquan19/OMOOC2py
refs/heads/master
_src/om2py0w/0wex1/__init__.py
12133432
Chibuzor-IN/python-paystack
refs/heads/master
python_paystack/__init__.py
12133432
kingvuplus/italysat-enigma5
refs/heads/master
lib/python/Plugins/SystemPlugins/PositionerSetup/__init__.py
12133432
jjo31/ATHAM-Fluidity
refs/heads/ToMerge
mayavi/mayavi_amcg/__init__.py
12133432
xq262144/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/admin_changelist/__init__.py
12133432
gaddman/ansible
refs/heads/devel
test/units/module_utils/common/__init__.py
12133432
wiktorek140/p2pool
refs/heads/master
p2pool/test/__init__.py
12133432
mtwestra/akvo-wandelenvoorwater
refs/heads/master
wvw/recaptchawidget/__init__.py
12133432
Batterfii/django
refs/heads/master
tests/generic_relations_regress/__init__.py
12133432
ErickMurillo/ciat_plataforma
refs/heads/master
comunicacion/contrapartes/forms.py
3
# -*- coding: UTF-8 -*- from django.forms import ModelForm from models import * from django import forms from ckeditor.widgets import CKEditorWidget from django.contrib.auth.models import User from comunicacion.contrapartes.widgets import ColorPickerWidget from mapeo.models import Organizaciones from analisis.configura...
annndrey/npui-unik
refs/heads/master
netprofile_xop/netprofile_xop/views.py
3
#!/usr/bin/env python # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*- # # NetProfile: XOP module - Views # © Copyright 2014 Alex 'Unik' Unigovsky # # This file is part of NetProfile. # NetProfile is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public # L...
unsiloai/syntaxnet-ops-hack
refs/heads/master
tensorflow/contrib/data/python/kernel_tests/dataset_constructor_op_test.py
22
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
webOS-ports/qtwebkit
refs/heads/webOS-ports/master
Tools/QueueStatusServer/handlers/releasepatch.py
121
# Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
Peddle/hue
refs/heads/master
desktop/core/ext-py/pycrypto-2.6.1/lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py
118
# -*- coding: utf-8 -*- # # SelfTest/Cipher/test_pkcs1_15.py: Self-test for PKCS#1 v1.5 encryption # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone i...
studio666/gnuradio
refs/heads/master
gr-digital/python/digital/qa_probe_density.py
57
#!/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 opt...
nfqsolutions/pylm
refs/heads/master
examples/template/master.py
1
from pylm.parts.servers import ServerTemplate from pylm.parts.services import PullService, PubService, WorkerPullService, WorkerPushService, \ CacheService server = ServerTemplate() db_address = 'tcp://127.0.0.1:5559' pull_address = 'tcp://127.0.0.1:5555' pub_address = 'tcp://127.0.0.1:5556' worker_pull_address =...
cvegaj/ElectriCERT
refs/heads/master
venv3/lib/python3.6/site-packages/pycoin/wallet/__init__.py
25
# a wallet is a DB of Spendable objects, and a way to query and manage them # The wallet accepts pycoinnet bitcoin events (_blockchain_update and _mempool_tx) # and decides for itself which Spendable objects its interested in. # Ideally, it should keep an archive of all Spendable objects its ever received so it can ...
miguelparaiso/OdooAccessible
refs/heads/master
addons/warning/__openerp__.py
261
# -*- 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...
MwanzanFelipe/rockletonfortune
refs/heads/master
lib/django/contrib/gis/geoip/libgeoip.py
479
import os from ctypes import CDLL from ctypes.util import find_library from django.conf import settings # Creating the settings dictionary with any settings, if needed. GEOIP_SETTINGS = {key: getattr(settings, key) for key in ('GEOIP_PATH', 'GEOIP_LIBRARY_PATH', 'GEOIP_COUNTRY', 'GEOIP_CITY') ...
ncss-tech/ssurgoOnDemand
refs/heads/master
SOD/SDA_hydric.py
1
#------------------------------------------------------------------------------- # #Chad Ferguson #USDA-NRCS #Soil Survey Division #Mid-Atlantic and Caribbean Area Regional Office #Raleigh, NC # # Created: 31/03/2015 # #This tool grabs interprtations from Soil Data Access and aggregates based on user specified meth...
lunafeng/django
refs/heads/master
django/template/smartif.py
275
""" Parser and utilities for the smart 'if' tag """ import warnings from django.utils.deprecation import RemovedInDjango110Warning # Using a simple top down parser, as described here: # http://effbot.org/zone/simple-top-down-parsing.htm. # 'led' = left denotation # 'nud' = null denotation # 'bp' = binding power (...
Alwnikrotikz/smap-data
refs/heads/master
python/smap/csvloader.py
6
""" Copyright (c) 2011, 2012, Regents of the University of California 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 l...
pavlobaron/disco_playground
refs/heads/master
tests/test_protocol.py
2
from datetime import datetime from disco.error import JobError from disco.test import TestCase, TestJob class ProtocolJob(TestJob): pass class ProtocolTestCase(TestCase): def serve(self, path): return 'data\n' * 5 def new_job(self, **kwargs): return ProtocolJob().run(input=self.test_serv...
utkarsh-goswami/erpnext
refs/heads/develop
erpnext/projects/doctype/activity_type/activity_type.py
116
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals from frappe.model.document import Document class ActivityType(Document): pass
cwolferh/heat-scratch
refs/heads/master
heat/objects/__init__.py
12133432
diorcety/intellij-community
refs/heads/master
python/testData/override/classmethod.py
83
class A: @classmethod def foo(cls): cls.k = 3 class B(A): <caret>pass
unodba/mirror
refs/heads/master
mirror/scheduler.py
2
# # Copyright (C) 2013 Shang Yuanchun <idealities@gmail.com> # # # You may 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. # # mirror is distributed in the hope...
WikiTeam/wikiteam
refs/heads/master
listsofwikis/wikispaces/wikispaces-duckduckgo.py
1
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # Copyright (C) 2018 WikiTeam developers # 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) an...
blackPantherOS/packagemanagement
refs/heads/master
smartpm/tests/channel.py
3
import unittest from smart.channel import parseChannelsDescription, PackageChannel from smart.cache import Loader class ParseChannelsDescriptionTest(unittest.TestCase): def test_parseChannelsDescription(self): data = parseChannelsDescription(""" [alias] type = deb-sys name = firs...
darkleons/lama
refs/heads/master
addons/mail/res_config.py
301
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2012-Today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
rruebner/odoo
refs/heads/master
addons/website_project/controllers/__init__.py
7372
import main
eric-pedersen/tritrophic-dispersal-model
refs/heads/master
Code/auto_code_for_bifurcation_diagrams/dispersal_two_parameter_analyses.py
1
################################################## ################################################## ####### Two-dimensional bifurcations with ######## ## respect to two separate dispersal parameters ## ################################################## ################################################## #############...
RomanZacharia/pyethapp
refs/heads/develop
pyethapp/tests/test_pow_service.py
1
import pytest from gevent.event import Event from devp2p.app import BaseApp from devp2p.service import BaseService from ethereum import slogging from ethereum.blocks import Block, BlockHeader from ethereum.config import Env from ethereum.db import DB from pyethapp.pow_service import PoWService DIFFICULTY = 1024 # M...
silly-wacky-3-town-toon/SOURCE-COD
refs/heads/master
Panda3D-1.10.0/python/Lib/textwrap.py
110
"""Text wrapping and filling. """ # Copyright (C) 1999-2001 Gregory P. Ward. # Copyright (C) 2002, 2003 Python Software Foundation. # Written by Greg Ward <gward@python.net> __revision__ = "$Id$" import string, re try: _unicode = unicode except NameError: # If Python is built without Unicode support, the un...
zachmullen/boto
refs/heads/develop
boto/ecs/__init__.py
153
# Copyright (c) 2010 Chris Moyer http://coredumped.org/ # # 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, modify, ...
jhseu/tensorflow
refs/heads/master
tensorflow/python/autograph/core/converter.py
1
# 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...
sloe/analyseapp
refs/heads/analyseapp
models/db.py
1
# -*- coding: utf-8 -*- ######################################################################### ## This scaffolding model makes your app work on Google App Engine too ## File is released under public domain and you can use without limitations ######################################################################### ...
ZombieAlex/MFCAuto
refs/heads/master
src/test/dumpSchemaFromPacketLog.py
1
""" After running packetInspector.js for however long, you'll have a packetLog.txt file with a ton of traffic. This script will read in that log and dump a JSON schema that correctly validates all the sMessage payloads of the packets received in the log. Requires genson (https://github.com/wolverdude/genson/) pip ...
arnavd96/Cinemiezer
refs/heads/master
myvenv/lib/python3.4/site-packages/ratelimit/models.py
2
# This module intentionally left blank.
jarshwah/django
refs/heads/master
tests/postgres_tests/migrations/0002_create_test_models.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.serializers.json import DjangoJSONEncoder from django.db import migrations, models from ..fields import ( ArrayField, BigIntegerRangeField, DateRangeField, DateTimeRangeField, FloatRangeField, HStoreField, IntegerRangeField, JSON...
smunix/ns-3-rfid
refs/heads/master
bindings/python/ns3modulegen.py
199
LOCAL_MODULES = [ #'my_extra_api_definitions', ] import sys import os sys.path.insert(0, sys.argv[2]) from pybindgen import FileCodeSink, write_preamble from pybindgen.module import MultiSectionFactory import pybindgen.settings pybindgen.settings.deprecated_virtuals = False from ns3modulegen_generated i...
ahmetabdi/SickRage
refs/heads/master
lib/fanart/items.py
61
import json import os import requests from fanart.core import Request from fanart.immutable import Immutable class LeafItem(Immutable): KEY = NotImplemented @Immutable.mutablemethod def __init__(self, id, url, likes): self.id = int(id) self.url = url self.likes = int(likes) ...
zerosign/mig
refs/heads/master
tools/client.py
16
#!/usr/bin/env python import os import sys import gnupg from time import gmtime, strftime import random import requests import json def makeToken(gpghome, keyid): gpg = gnupg.GPG(gnupghome=gpghome) version = "1" timestamp = strftime("%Y-%m-%dT%H:%M:%SZ", gmtime()) nonce = str(random.randint(10000, 1844...
adambrenecki/django
refs/heads/master
django/db/models/sql/expressions.py
4
import copy from django.core.exceptions import FieldError from django.db.models.constants import LOOKUP_SEP from django.db.models.fields import FieldDoesNotExist class SQLEvaluator(object): def __init__(self, expression, query, allow_joins=True, reuse=None): self.expression = expression self.opts...
camradal/ansible-modules-extras
refs/heads/devel
cloud/webfaction/webfaction_site.py
62
#!/usr/bin/python # # Create Webfaction website using Ansible and the Webfaction API # # ------------------------------------------ # # (c) Quentin Stafford-Fraser 2015 # # 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 Lic...
codedsk/hubcheck
refs/heads/master
hubcheck/pageobjects/m_osr_1_2_0.py
1
# represents hubs updated around November 2013 # load default page object, widgets, and locators from m_osr_1_1_5 import * #from m_overrides_group_wiki_editors import * # load page object overrides from po_admin_base_page import AdminBasePage from po_admin_database_backup_page import AdminDatabaseBackupPage from po_...
evernym/plenum
refs/heads/master
plenum/server/request_handlers/state_constants.py
2
MARKER_TAA = "2" MARKER_TAA_AML = "3"
ShashaQin/erpnext
refs/heads/develop
erpnext/stock/doctype/stock_entry/test_stock_entry.py
6
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, unittest import frappe.defaults from frappe.utils import flt, nowdate, nowtime from erpnext.stock.doctype.serial_no.serial_no import * fr...
wolfram74/numerical_methods_iserles_notes
refs/heads/master
venv/lib/python2.7/site-packages/numpy/core/tests/test_multiarray.py
23
from __future__ import division, absolute_import, print_function import tempfile import sys import os import shutil import warnings import operator import io if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import Decimal import numpy as np from nose import SkipT...
40223101/w16b_test
refs/heads/master
static/Brython3.1.3-20150514-095342/Lib/importlib/machinery.py
635
"""The machinery of importlib: finders, loaders, hooks, etc.""" import _imp from ._bootstrap import (SOURCE_SUFFIXES, DEBUG_BYTECODE_SUFFIXES, OPTIMIZED_BYTECODE_SUFFIXES, #BYTECODE_SUFFIXES, EXTENSION_SUFFIXES) from ._bootstrap import BuiltinImporter from ._bootstrap...
bryanph/OIPA
refs/heads/develop
OIPA/iati/management/commands/total_budget_updater.py
3
import datetime # Django specific from django.core.management.base import BaseCommand from django.db import connection from iati.models import Activity, Budget, Currency import logging logger = logging.getLogger(__name__) class Command(BaseCommand): option_list = BaseCommand.option_list counter = 0 def ...
rmanoni/mi-instrument
refs/heads/master
mi/core/config.py
2
#!/usr/bin/env python __author__ = 'Adam R. Smith' import yaml from mi.core.containers import DotDict, dict_merge from mi.core.exceptions import ConfigNotFound class Config(object): """ YAML-based config loader that supports multiple paths. Later paths get deep-merged over earlier ones. """ de...
kenorb/BitTorrent
refs/heads/master
twisted/test/test_ident.py
3
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for twisted.protocols.ident module. """ import struct from twisted.protocols import ident from twisted.python import failure from twisted.internet import error from twisted.internet import defer from twisted.python imp...
erkanay/django
refs/heads/master
django/contrib/gis/db/backends/mysql/__init__.py
12133432
neoareslinux/neutron
refs/heads/master
neutron/plugins/ml2/drivers/arista/__init__.py
12133432
indictranstech/ebuy-now-frappe
refs/heads/develop
frappe/core/doctype/version/__init__.py
12133432
3liz/QgisQuickOSMPlugin
refs/heads/master
definitions/__init__.py
12133432
BlackHole/obh-core
refs/heads/master
src/ui.py
1
# for localized messages from os import listdir, path, mkdir from . import _ from Screens.Screen import Screen from Components.ActionMap import NumberActionMap from Components.Sources.StaticText import StaticText from Components.Sources.List import List from Screens.ParentalControlSetup import ProtectedScreen from Com...
lazaronixon/enigma2
refs/heads/master
lib/python/Screens/InfoBarGenerics.py
4
from ChannelSelection import ChannelSelection, BouquetSelector, SilentBouquetSelector from Components.ActionMap import ActionMap, HelpableActionMap from Components.ActionMap import NumberActionMap from Components.Harddisk import harddiskmanager from Components.Input import Input from Components.Label import Label from...
xavierwu/scikit-learn
refs/heads/master
sklearn/metrics/cluster/tests/test_bicluster.py
394
"""Testing for bicluster metrics module""" import numpy as np from sklearn.utils.testing import assert_equal, assert_almost_equal from sklearn.metrics.cluster.bicluster import _jaccard from sklearn.metrics import consensus_score def test_jaccard(): a1 = np.array([True, True, False, False]) a2 = np.array([T...
stephen144/odoo
refs/heads/9.0
addons/website_slides/models/__init__.py
77
# -*- coding: utf-8 -*- import res_config import slides
mdaniel/intellij-community
refs/heads/master
python/testData/refactoring/move/function/before/src/b.py
83
def g(): return None
WebDerekh/blackfriday-horze
refs/heads/master
node_modules/npm-shrinkwrap/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py
2736
# 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. """Visual Studio project reader/writer.""" import gyp.common import gyp.easy_xml as easy_xml #-------------------------------------------------------------------...
pmacosta/putil
refs/heads/master
tests/test_pinspect.py
1
# test_pinspect.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0103,C0111,E0611,F0401,R0201,R0903,R0913,R0915,W0104,W0212,W0232,W0612,W0613,W0621 # Standard library imports from __future__ import print_function from functools import partial import copy import os import ...
codepantry/django
refs/heads/master
tests/admin_scripts/custom_templates/project_template/project_name/settings.py
738
# Django settings for {{ project_name }} test project.
freedomtan/tensorflow
refs/heads/master
tensorflow/python/training/optimizer.py
5
# Copyright 2015 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...
chuard/FDTD
refs/heads/master
src/__main__.py
1
#!/uigelh_dua2/chuard/anaconda3/bin/python import sys import configparser from system import System import matplotlib.pyplot as plt import numpy as np import cProfile as profile def main(arg): # read in ini file cfg = configparser.ConfigParser() cfg.read(arg) s = System(cfg) s.take_steps() # p...
dcos/shakedown
refs/heads/master
tests/acceptance/test_dcos_package_cli.py
1
from shakedown import * def test_install_package_cli(): assert not package_installed('dcos-enterprise-cli') install_package_and_wait('dcos-enterprise-cli') assert package_installed('dcos-enterprise-cli') def test_uninstall_package_cli(): assert package_installed('dcos-enterprise-cli') uninstall_pa...
aozima/RealBoard4088
refs/heads/master
software/rtthread_examples/examples/5_logtrace/rtconfig.py
38
import os # toolchains options ARCH='arm' CPU='cortex-m4' CROSS_TOOL='keil' # get setting from environment. if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') # cross_tool provides the cross compiler # EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR if CROSS_TOOL == 'g...
SPxiaomin/NodeJs_Practice
refs/heads/master
Express4_3/nodejs-demo/node_modules/pygmentize-bundled/vendor/pygments/build-2.7/pygments/lexers/inferno.py
52
# -*- coding: utf-8 -*- """ pygments.lexers.inferno ~~~~~~~~~~~~~~~~~~~~~~~ Lexers for Inferno os and all the related stuff. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, include, by...
ptdtan/Ragout
refs/heads/master
ragout/synteny_backend/hal.py
1
#(c) 2013-2014 by Authors #This file is a part of Ragout program. #Released under the BSD license (see LICENSE file) """ This module works with MAF input and converts it into synteny blocks """ import os import logging import shutil import multiprocessing import subprocess from .synteny_backend import SyntenyBackend...
vprime/puuuu
refs/heads/master
env/lib/python2.7/site-packages/Crypto/SelfTest/Cipher/test_CAST.py
119
# -*- coding: utf-8 -*- # # SelfTest/Cipher/CAST.py: Self-test for the CAST-128 (CAST5) cipher # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that de...
bachtk/linux
refs/heads/master
tools/perf/util/setup.py
766
#!/usr/bin/python2 from distutils.core import setup, Extension from os import getenv from distutils.command.build_ext import build_ext as _build_ext from distutils.command.install_lib import install_lib as _install_lib class build_ext(_build_ext): def finalize_options(self): _build_ext.finalize_optio...
piyush82/icclab-rcb-web
refs/heads/master
virtualenv/lib/python2.7/site-packages/pip/vendor/html5lib/sanitizer.py
805
from __future__ import absolute_import, division, unicode_literals import re from xml.sax.saxutils import escape, unescape from .tokenizer import HTMLTokenizer from .constants import tokenTypes class HTMLSanitizerMixin(object): """ sanitization of XHTML+MathML+SVG and of inline style attributes.""" accepta...
yordan-desta/QgisIns
refs/heads/master
python/plugins/processing/algs/otb/__init__.py
12133432
rogerhu/django
refs/heads/master
tests/validators/models.py
12133432
Deepakkothandan/ansible
refs/heads/devel
lib/ansible/modules/cloud/lxc/__init__.py
12133432
0Chencc/CTFCrackTools
refs/heads/master
Lib/site-packages/pip/_vendor/cachecontrol/filewrapper.py
346
from io import BytesIO class CallbackFileWrapper(object): """ Small wrapper around a fp object which will tee everything read into a buffer, and when that file is closed it will execute a callback with the contents of that buffer. All attributes are proxied to the underlying file object. Thi...
carlrobert/tools
refs/heads/master
js2prop.py
2
# -*- coding: utf-8 -*- # js2prop.py: App Inventor 2 (AI2) translation helper # Split _messages.js into a preamble, a properties file (usable with po2prop) and a postamble # # The properties are represented as assignments in the .js file: # Blockly.Msg.LANG_LISTS_LOOKUP_IN_PAIRS_INPUT = "parvis uppslagning nycke...
DarioGT/OMS-PluginXML
refs/heads/master
org.modelsphere.sms/lib/jython-2.2.1/Lib/test/test_sax.py
1
# -*- coding: iso-8859-1 -*- # regression test for SAX 2.0 # $Id: test_sax.py,v 1.13 2004/03/20 07:46:04 fdrake Exp $ from xml.sax import handler, make_parser, ContentHandler, \ SAXException, SAXReaderNotAvailable, SAXParseException try: make_parser() except SAXReaderNotAvailable: ...
FND/tiddlyspace
refs/heads/master
test/test_put_hash.py
1
""" Test so-called "friendly" uris: links to tiddlers in the current space from the root. """ from fixtures import make_test_env from wsgi_intercept import httplib2_intercept import wsgi_intercept import httplib2 import simplejson from tiddlyweb.model.tiddler import Tiddler from tiddlyweb.model.bag import Bag def ...
ychfan/tensorflow
refs/heads/master
tensorflow/tools/docs/generate.py
29
# Copyright 2015 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...
truemped/dopplr
refs/heads/master
vows/solr/grouping_vows.py
1
# vim: set fileencoding=utf-8 : # # Copyright (c) 2013 Daniel Truemper <truemped at googlemail.com> # # 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/LICENS...
akhmadMizkat/odoo
refs/heads/master
addons/google_account/controllers/__init__.py
7372
import main