repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
skysploit/kali-nethunter
refs/heads/master
utils/hid/hid-cmd-elevated-win7.py
15
#!/usr/bin/python import sys sys.path.append("/sdcard/files/modules/") from keyseed import * # pop up cmd win7cmd_elevated() # open up payload file f = open("/sdcard/files/hid-cmd.conf", "rb") try: byte = f.read(1) while byte != "": byte = f.read(1) findinlist(byte) finally: f.close() #Hit en...
varuntiwari27/rally
refs/heads/master
rally/common/db/api.py
2
# Copyright 2013: Mirantis Inc. # 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 b...
DavideCanton/Python3
refs/heads/master
derango/base2.py
1
from math import floor __author__ = 'davide' def toBase2(f, l=32): i = floor(f) d = f - i res = [] for _ in range(l): d *= 2 res.append(str(int(d >= 1))) if d >= 1: d -= 1 return str(i) + "." + "".join(res) def fromBase2(s): si, sd = s.split(".") i = ...
sbalde/edxplatform
refs/heads/master
common/djangoapps/geoinfo/__init__.py
12133432
johnwiseheart/HangoutsBot
refs/heads/master
hangupsbot/config.py
1
import collections, datetime, functools, json, glob, logging, os, shutil, sys, time from threading import Timer logger = logging.getLogger(__name__) class Config(collections.MutableMapping): """Configuration JSON storage class""" def __init__(self, filename, default=None, failsafe_backups=0, save_delay=0):...
RBE-Avionik/skylines
refs/heads/master
skylines/api/views/timeline.py
3
from flask import Blueprint, request from sqlalchemy.orm import subqueryload, contains_eager from sqlalchemy.sql.expression import or_ from skylines.api.json import jsonify from skylines.model.event import Event from skylines.model import Flight from .notifications import _filter_query, convert_event timeline_bluepri...
tuxfux-hlp-notes/python-batches
refs/heads/master
archieves/batch-58/modules/sheets/lib/python2.7/site-packages/xlrd/formula.py
77
# -*- coding: cp1252 -*- ## # Module for parsing/evaluating Microsoft Excel formulas. # # <p>Copyright © 2005-2012 Stephen John Machin, Lingfo Pty Ltd</p> # <p>This module is part of the xlrd package, which is released under # a BSD-style licence.</p> ## # No part of the content of this file was derived from the work...
SuriyaaKudoIsc/olympia
refs/heads/master
apps/stats/tests/test_models.py
15
# -*- coding: utf-8 -*- import json from django.core import mail from django.test.client import RequestFactory import phpserialize as php from nose.tools import eq_ import amo import amo.tests from addons.models import Addon from stats.models import ClientData, Contribution from stats.db import StatsDictField from u...
shakamunyi/pybuilder
refs/heads/master
src/main/python/pybuilder/plugins/python/pymetrics_plugin.py
1
# This file is part of PyBuilder # # Copyright 2011-2014 PyBuilder Team # # 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 re...
gljohn/meterd
refs/heads/master
meterd/__init__.py
12133432
encodify/longboard
refs/heads/master
tests/unit/__init__.py
12133432
peragro/django-project
refs/heads/master
follow/templatetags/__init__.py
12133432
ARudiuk/mne-python
refs/heads/master
mne/externals/h5io/__init__.py
41
"""Python Objects Onto HDF5 """ __version__ = '0.1.dev0' from ._h5io import read_hdf5, write_hdf5, _TempDir, object_diff # noqa, analysis:ignore
opethe1st/CompetitiveProgramming
refs/heads/master
ProjectEuler/problem179.py
1
import time start = time.time() cache = dict() LeastPrimeFactorA = [0]*10000001 cache[1]=dict() nFactors = dict() nFactors[1]=1 i=2 LeastPrimeFactorA[1]=1 while i<10000001: if LeastPrimeFactorA[i]==0: for j in xrange(i,10000001,i): LeastPrimeFactorA[j]=i i+=1 #print (LeastPrimeFactorA[:30]) ...
virgree/odoo
refs/heads/8.0
addons/sale_crm/wizard/__init__.py
443
# -*- 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...
mdanielwork/intellij-community
refs/heads/master
python/testData/refactoring/move/moveFunctionFromUnimportableModule/after/src/src-unimportable.py
12133432
cloudtools/nymms
refs/heads/master
nymms/config/__init__.py
12133432
richardnpaul/FWL-Website
refs/heads/master
lib/python2.7/site-packages/django/contrib/sitemaps/tests/generic.py
214
from __future__ import unicode_literals from django.test.utils import override_settings from .base import TestModel, SitemapTestsBase @override_settings(ABSOLUTE_URL_OVERRIDES={}) class GenericViewsSitemapTests(SitemapTestsBase): def test_generic_sitemap(self): "A minimal generic sitemap can be rendere...
TheTypoMaster/ubuntu-utopic
refs/heads/master
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
12980
# SchedGui.py - Python extension for perf script, basic GUI code for # traces drawing and overview. # # Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com> # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. ...
JakeLowey/HackRPI2
refs/heads/master
django/utils/safestring.py
392
""" Functions for working with "safe strings": strings that can be displayed safely without further escaping in HTML. Marking something as a "safe string" means that the producer of the string has already turned characters that should not be interpreted by the HTML engine (e.g. '<') into the appropriate entities. """ f...
molobrakos/home-assistant
refs/heads/master
homeassistant/components/spider/climate.py
6
"""Support for Spider thermostats.""" import logging from homeassistant.components.climate import ClimateDevice from homeassistant.components.climate.const import ( STATE_COOL, STATE_HEAT, STATE_IDLE, SUPPORT_FAN_MODE, SUPPORT_OPERATION_MODE, SUPPORT_TARGET_TEMPERATURE) from homeassistant.const import ATTR_TE...
Jonekee/chromium.src
refs/heads/nw12
chrome/third_party/chromevox/third_party/closure-library/closure/bin/build/depstree.py
455
# Copyright 2009 The Closure Library 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 a...
chauhanhardik/populo_2
refs/heads/master
lms/djangoapps/notes/migrations/0001_initial.py
114
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Note' db.create_table('notes_note', ( ('id', self.gf('django.db.models.fields.Au...
yohanko88/gem5-DC
refs/heads/master
util/cpt_upgraders/arm-hdlcd-upgrade.py
29
# Copyright (c) 2015 ARM Limited # All rights reserved # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality o...
SimonHL/TSA
refs/heads/master
simpleLSTMtmp.py
1
''' Build a tweet sentiment analyzer ''' from collections import OrderedDict import cPickle as pkl import sys import time import numpy import theano from theano import config import theano.tensor as tensor from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams import imdb datasets = {'imdb': (imdb.loa...
pythonpro-dev/pp-web-base
refs/heads/master
pp/web/base/scripts/__init__.py
837
# package
chdecultot/frappe
refs/heads/develop
frappe/patches/v8_1/__init__.py
12133432
jrahlf/3D-Non-Contact-Laser-Profilometer
refs/heads/master
xpcc/tools/system_design/builder/__init__.py
12133432
charris/numpy
refs/heads/dependabot/pip/mypy-0.910
numpy/matrixlib/tests/__init__.py
12133432
plotly/python-api
refs/heads/master
packages/python/plotly/plotly/validators/scatter3d/error_x/_visible.py
1
import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="visible", parent_name="scatter3d.error_x", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_nam...
EmreAtes/spack
refs/heads/develop
var/spack/repos/builtin/packages/cvs/package.py
3
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
patilsangram/erpnext
refs/heads/develop
erpnext/patches/v4_1/fix_delivery_and_billing_status.py
120
# 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 def execute(): frappe.db.sql("""update `tabSales Order` set delivery_status = 'Not Delivered' where delivery_status = 'Delivered' and ...
janinamass/gardening
refs/heads/master
Scythe/src/Tools/Scythe_ensembl2loc.py
1
import sys, getopt VERB=True ##################################### # last update 03/05/2013 by J. Mass # # version = '0.1' # ##################################### def usage(): print (""" ################################### # Scythe_ensemble2loc.py (v0.1) # ##########################...
yinquan529/platform-external-chromium_org
refs/heads/master
third_party/tlslite/tlslite/utils/hmac.py
403
"""HMAC (Keyed-Hashing for Message Authentication) Python module. Implements the HMAC algorithm as described by RFC 2104. (This file is modified from the standard library version to do faster copying) """ def _strxor(s1, s2): """Utility method. XOR the two strings s1 and s2 (must have same length). """ r...
RuudBurger/CouchPotatoV1
refs/heads/master
library/hachoir_core/bits.py
12
""" Utilities to convert integers and binary strings to binary (number), binary string, number, hexadecimal, etc. """ from hachoir_core.endian import BIG_ENDIAN, LITTLE_ENDIAN from hachoir_core.compatibility import reversed from itertools import chain, repeat from struct import calcsize, unpack, error as struct_error ...
VisheshHanda/production_backup
refs/heads/master
erpnext/utilities/__init__.py
11
## temp utility import frappe from erpnext.utilities.activation import get_level from frappe.utils import cstr def update_doctypes(): for d in frappe.db.sql("""select df.parent, df.fieldname from tabDocField df, tabDocType dt where df.fieldname like "%description%" and df.parent = dt.name and dt.istable = 1""", ...
siosio/intellij-community
refs/heads/master
python/testData/mover/sameLevelInIf.py
83
if True: a = 1 else: #comment a =<caret> 3 a = 2
MFoster/breeze
refs/heads/master
django/contrib/staticfiles/management/commands/collectstatic.py
101
from __future__ import unicode_literals import os import sys from optparse import make_option from django.core.files.storage import FileSystemStorage from django.core.management.base import CommandError, NoArgsCommand from django.utils.encoding import smart_text from django.utils.datastructures import SortedDict from...
achang97/YouTunes
refs/heads/master
lib/python2.7/site-packages/youtube_dl/extractor/odatv.py
80
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, NO_DEFAULT, remove_start ) class OdaTVIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?odatv\.com/(?:mob|vid)_video\.php\?.*\bid=(?P<id>[^&]+)' _TESTS = [{ '...
torkil/paramiko
refs/heads/master
paramiko/sftp.py
52
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko 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 2.1 of the License, or (a...
GarySparrow/mFlaskWeb
refs/heads/master
venv/doc/pycurl/examples/sfquery.py
4
#! /usr/bin/env python # -*- coding: utf-8 -*- # vi:ts=4:et # # sfquery -- Source Forge query script using the ClientCGI high-level interface # # Retrieves a SourceForge XML export object for a given project. # Specify the *numeric* project ID. the user name, and the password, # as arguments. If you have a valid ~/.net...
shl198/Pipeline
refs/heads/master
Modules/p07_ParseVCF.py
2
import pandas as pd import subprocess from Modules.f11_snpEff_provean import snpEff_annotateVCF def snpSift_filterVCF(annotatedVCF,snpSift,filters): """ This function filter the vcf inputwith snpSift *vcf: annotated vcf file *snpSift: pathway to snpSift *filters': a list of arguments used to f...
chenmoshushi/shogun
refs/heads/develop
applications/tapkee/samples/ltsa.py
26
import modshogun as sg import data # load data feature_matrix = data.swissroll() # create features instance features = sg.RealFeatures(feature_matrix) # create Local Tangent Space Alignment converter instance converter = sg.LocalTangentSpaceAlignment() # set target dimensionality converter.set_target_dim(2) # set nu...
JetBrains/intellij-community
refs/heads/master
python/testData/intentions/joinIfBinary_after.py
83
if value is not None and (not validate_uint(value) or value <= self.begin): print value
Theer108/invenio
refs/heads/master
invenio/testsuite/test_utils_filedownload.py
17
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2012, 2014 CERN. # # Invenio 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 2 of the # License, or (at your option) any...
ktalik/django-subeval
refs/heads/master
submission/models.py
1
import time import uuid import shutil import os from django.db import models from django.template.defaultfilters import filesizeformat from django.contrib.auth.models import User from django.utils import timezone from django.utils.translation import ugettext_lazy as _ DB_NAME_LENGTH = 100 def generate_code(): ui...
kustodian/ansible
refs/heads/devel
lib/ansible/module_utils/network/nos/nos.py
79
# # (c) 2018 Extreme Networks Inc. # # 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. # # Ans...
manasapte/pants
refs/heads/master
src/python/pants/backend/jvm/tasks/nailgun_task.py
2
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from pant...
JavML/django
refs/heads/master
django/views/i18n.py
264
import gettext as gettext_module import importlib import json import os from django import http from django.apps import apps from django.conf import settings from django.core.urlresolvers import translate_url from django.template import Context, Engine from django.utils import six from django.utils._os import upath fr...
coder-han/hugula
refs/heads/master
Client/tools/site-packages/xlwt/examples/sst.py
44
#!/usr/bin/env python # -*- coding: windows-1251 -*- # Copyright (C) 2005 Kiseliov Roman from xlwt import * font0 = Formatting.Font() font0.name = 'Arial' font1 = Formatting.Font() font1.name = 'Arial Cyr' font2 = Formatting.Font() font2.name = 'Times New Roman' font3 = Formatting.Font() font3.name = 'Courier New Cyr...
adrianholovaty/django
refs/heads/master
tests/modeltests/model_inheritance_same_model_name/models.py
43
""" XX. Model inheritance Model inheritance across apps can result in models with the same name resulting in the need for an %(app_label)s format string. This app specifically tests this feature by redefining the Copy model from model_inheritance/models.py """ from __future__ import absolute_import from django.db im...
chauhanhardik/populo
refs/heads/master
common/djangoapps/config_models/models.py
75
""" Django Model baseclass for database-backed configuration. """ from django.db import connection, models from django.contrib.auth.models import User from django.core.cache import get_cache, InvalidCacheBackendError from django.utils.translation import ugettext_lazy as _ try: cache = get_cache('configuration') #...
smx-smx/dsl-n55u-bender
refs/heads/master
release/src/router/samba-3.5.8/lib/subunit/python/subunit/tests/__init__.py
23
# # subunit: extensions to python unittest to get test results from subprocesses. # Copyright (C) 2005 Robert Collins <robertc@robertcollins.net> # # 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 Foun...
m0ppers/arangodb
refs/heads/devel
3rdParty/boost/1.61.0/libs/mpi/test/python/gather_test.py
64
# Copyright (C) 2006 Douglas Gregor <doug.gregor -at- gmail.com>. # Use, modification and distribution is subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # Test gather() collective. import boost.parallel.mpi as mpi from g...
sean-abbott/chamberlain
refs/heads/master
chamberlain/utils.py
42
# -*- coding: utf-8 -*- """Helper utilities and decorators.""" from flask import flash def flash_errors(form, category='warning'): """Flash all errors for a form.""" for field, errors in form.errors.items(): for error in errors: flash('{0} - {1}'.format(getattr(form, field).label.text, err...
amallia/zulip
refs/heads/master
docs/html_unescape.py
116
#!/usr/bin/env python3 # Remove HTML entity escaping left over from MediaWiki->rST conversion. import html import sys for line in sys.stdin: print(html.unescape(line), end='')
houzhenggang/hiwifi-openwrt-HC5661-HC5761
refs/heads/master
staging_dir/target-mipsel_r2_uClibc-0.9.33.2/usr/lib/python2.7/encodings/uu_codec.py
383
""" Python 'uu_codec' Codec - UU 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). Some details were adapted from uu.py which was written by Lance Ell...
tareqalayan/ansible
refs/heads/devel
test/sanity/code-smell/no-dict-iteritems.py
82
#!/usr/bin/env python import os import re import sys def main(): skip = set([ 'test/sanity/code-smell/%s' % os.path.basename(__file__), 'lib/ansible/module_utils/six/__init__.py', ]) for path in sys.argv[1:] or sys.stdin.read().splitlines(): if path in skip: continue ...
Distrotech/intellij-community
refs/heads/master
python/helpers/docutils/nodes.py
41
# $Id: nodes.py 6351 2010-07-03 14:19:09Z gbrandl $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ Docutils document tree element class library. Classes in CamelCase are abstract base classes or auxiliary classes. The one exception is `Text`, for a text...
fidomason/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/test/test_poplib.py
72
"""Test script for poplib module.""" # Modified by Giampaolo Rodola' to give poplib.POP3 and poplib.POP3_SSL # a real test suite import poplib import asyncore import asynchat import socket import os import time import errno from unittest import TestCase, skipUnless from test import support as test_support threading ...
savoirfairelinux/odoo
refs/heads/master
addons/l10n_th/__openerp__.py
170
# -*- 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...
ReactiveX/RxPY
refs/heads/master
rx/scheduler/eventloop/twistedscheduler.py
1
import logging from datetime import datetime from typing import Any, Optional from rx.core import typing from rx.disposable import CompositeDisposable, Disposable, SingleAssignmentDisposable from ..periodicscheduler import PeriodicScheduler log = logging.getLogger("Rx") class TwistedScheduler(PeriodicScheduler):...
Pushjet/Pushjet-Server-Api
refs/heads/master
controllers/subscription.py
1
from flask import Blueprint, jsonify from utils import Error, has_service, has_uuid, queue_zmq_message from shared import db from models import Subscription from json import dumps as json_encode from config import zeromq_relay_uri subscription = Blueprint('subscription', __name__) @subscription.route('/subscription'...
anewhuahua/bilitw
refs/heads/master
src/stats.py
1
#! /usr/bin/env python #coding=utf-8 import json import sys class Server: svrCount = 0 def __init__(self, raw): self.raw = raw Server.svrCount += 1 class ServerPool: spCount = 0 def __init__(self, raw): self.raw = raw ServerPool.spCount += 1 class Worker: wkCount = 0 def __init...
rsheftel/pandas_market_calendars
refs/heads/master
tests/test_ice_calendar.py
1
import pandas as pd from pandas_market_calendars.exchange_calendar_ice import ICEExchangeCalendar def test_test_name(): assert ICEExchangeCalendar().name == 'ICE' def test_hurricane_sandy_one_day(): dates_open = ICEExchangeCalendar().valid_days('2012-10-01', '2012-11-01') # closed first day of hurrica...
me-oss/me-pjproject
refs/heads/master
tests/pjsua/scripts-sendto/999_asterisk_err.py
59
# $Id: 999_asterisk_err.py 2081 2008-06-27 21:59:15Z bennylp $ import inc_sip as sip import inc_sdp as sdp # http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-June/003426.html: # # Report in pjsip mailing list on 27/6/2008 that this message will # cause pjsip to respond with 500 and then second request will ...
thepaul/uftrace
refs/heads/master
tests/t121_malloc_fork.py
1
#!/usr/bin/env python from runtest import TestBase class TestCase(TestBase): def __init__(self): TestBase.__init__(self, 'malloc-fork', ldflags='-ldl', result=""" # DURATION TID FUNCTION [22300] | __cxa_atexit() { 1.328 us [22300] | } /* __cxa_atexit */ [22300] | malloc()...
provaleks/o8
refs/heads/8.0
addons/membership/__init__.py
441
# -*- 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...
msebire/intellij-community
refs/heads/master
python/testData/resolve/multiFile/fromQualifiedFileImportClass/mypackage2/__init__.py
12133432
flip111/portia
refs/heads/master
slyd/slyd/gitstorage/__init__.py
12133432
zhangjunli177/sahara
refs/heads/master
sahara/cli/__init__.py
12133432
schleichdi2/OPENNFR-6.0-CORE
refs/heads/master
opennfr-openembedded-core/meta/lib/oeqa/selftest/manifest.py
2
import unittest import os from oeqa.selftest.base import oeSelfTest from oeqa.utils.commands import get_bb_var, bitbake from oeqa.utils.decorators import testcase class ManifestEntry: '''A manifest item of a collection able to list missing packages''' def __init__(self, entry): self.file = entry ...
Agasper/django-google-play-check-payment
refs/heads/master
oauth2client/tools.py
171
# Copyright (C) 2013 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 agreed to in writ...
johnkeepmoving/oss-ftp
refs/heads/master
python27/win32/Lib/distutils/tests/test_install_data.py
141
"""Tests for distutils.command.install_data.""" import sys import os import unittest import getpass from distutils.command.install_data import install_data from distutils.tests import support from test.test_support import run_unittest class InstallDataTestCase(support.TempdirManager, support...
asidev/aybu-manager
refs/heads/master
aybu/manager/daemon/commands/environment.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2010-2012 Asidev s.r.l. 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 b...
danakj/chromium
refs/heads/master
tools/perf/benchmarks/indexeddb_perf.py
4
# 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. """Runs Chromium's IndexedDB performance test. These test: Databases: create/delete Keys: create/delete Indexes: create/delete Data access: Random r...
joequery/django
refs/heads/master
tests/template_tests/syntax_tests/test_template_tag.py
521
from django.template import TemplateSyntaxError from django.test import SimpleTestCase from ..utils import setup class TemplateTagTests(SimpleTestCase): @setup({'templatetag01': '{% templatetag openblock %}'}) def test_templatetag01(self): output = self.engine.render_to_string('templatetag01') ...
jrbl/invenio
refs/heads/master
modules/webjournal/lib/widgets/bfe_webjournal_widget_seminars.py
2
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio 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 2 of the ## Licens...
rgom/Pydev
refs/heads/development
update_version.py
4
import sys import os import re def find_files(top): print top for root, dirs, files in os.walk(top): for d in ('.svn', '.git', '.metadata'): if d in dirs: dirs.remove(d) for file in files: if file.lower() in ('feature.xml', 'pom.xml', '...
WhySoGeeky/DroidPot
refs/heads/master
venv/lib/python2.7/site-packages/django/conf/app_template/__init__.py
12133432
coala/coala-bears
refs/heads/master
tests/php/phpmessdetector_test_files/__init__.py
12133432
pabloborrego93/edx-platform
refs/heads/master
common/lib/xmodule/xmodule/modulestore/tests/mongo_connection.py
195
""" This file is intended to provide settings for the mongodb connection used for tests. The settings can be provided by environment variables in the shell running the tests. This reads in a variety of environment variables but provides sensible defaults in case those env var overrides don't exist """ import os MONGO...
neuromusic/literature-forager
refs/heads/master
science/tests.py
6666
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
AkizukiRyoko/mtasa-blue
refs/heads/master
vendor/google-breakpad/src/tools/gyp/test/dependencies/gyptest-sharedlib-linksettings.py
246
#!/usr/bin/env python # Copyright (c) 2013 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. """ Verify that link_settings in a shared_library are not propagated to targets that depend on the shared_library, but are used in the share...
sfoolish/linux_3.2.0-39.62_ubuntu12.04
refs/heads/master
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...
surgebiswas/poker
refs/heads/master
PokerBots_2017/Johnny/packaging/markers.py
139
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import operator import os import platform import sys from pyparsing impor...
mopplayer/Firefly-RK3288-Kernel-With-Mali764
refs/heads/master
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...
vodkina/GlobaLeaks
refs/heads/devel
backend/globaleaks/jobs/session_management_sched.py
1
# -*- coding: UTF-8 # session_management_sched # ************** # from globaleaks.settings import GLSettings from globaleaks.jobs.base import GLJob from globaleaks.utils.utility import log __all__ = ['SessionManagementSchedule'] class SessionManagementSchedule(GLJob): name = "Session Management" interva...
gabrielleLQX/arm-none-eabi_install
refs/heads/master
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...
tmimori/frappe
refs/heads/develop
frappe/printing/doctype/print_format/__init__.py
12133432
asavoy/django-childadmin
refs/heads/master
childadmin/tree/admin/widgets/__init__.py
12133432
magul/magulbot
refs/heads/master
magulbot/rawpages/migrations/__init__.py
12133432
civisanalytics/muffnn
refs/heads/master
muffnn/fm/__init__.py
12133432
dudymas/python-openstacksdk
refs/heads/master
openstack/orchestration/v1/__init__.py
12133432
15Dkatz/pants
refs/heads/master
src/python/pants/backend/codegen/antlr/python/__init__.py
12133432
g402chi/SpatialPooler
refs/heads/master
spatialpooler/test/__init__.py
12133432
akolobov/ardupilot
refs/heads/master
Tools/autotest/build-with-disabled-features.py
15
#!/usr/bin/env python from __future__ import print_function ''' Build ArduPilot with various build-time options enabled or disabled Usage is straight forward; invoke this script from the root directory of an ArduPilot checkout: pbarker@bluebottle:~/rc/ardupilot(build-with-disabled-features)$ ./Tools/autotest/build-...
iivic/BoiseStateX
refs/heads/master
lms/djangoapps/psychometrics/admin.py
191
''' django admin pages for courseware model ''' from psychometrics.models import PsychometricData from django.contrib import admin admin.site.register(PsychometricData)
kubaszostak/gdal-dragndrop
refs/heads/master
osgeo/apps/Python27/Lib/site-packages/numpy/distutils/tests/test_npy_pkg_config.py
25
from __future__ import division, absolute_import, print_function import os from numpy.distutils.npy_pkg_config import read_config, parse_flags from numpy.testing import temppath, assert_ simple = """\ [meta] Name = foo Description = foo lib Version = 0.1 [default] cflags = -I/usr/include libs = -L/usr/lib """ simpl...
jorgecarleitao/pyglet-gui
refs/heads/master
examples/button_focus.py
1
from setup import * from pyglet_gui.buttons import Button from pyglet_gui.gui import Label, FocusButton from pyglet_gui.manager import Manager from pyglet_gui.containers import VerticalContainer from pyglet_gui.theme import Theme theme = Theme({ "font": "Lucida Grande", "font_size"...