repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
aknutas/servers | refs/heads/master | nginx/lancache/build/docopt/examples/git/git_commit.py | 17 | """usage: git commit [options] [--] [<filepattern>...]
-h, --help
-q, --quiet suppress summary after successful commit
-v, --verbose show diff in commit message template
Commit message options
-F, --file <file> read message from file
--author <author> override author for ... |
paplorinc/intellij-community | refs/heads/master | python/testData/inspections/PyUnresolvedReferencesInspection/PrefixExpressionOnClassHavingSkeletons/numpy/core/numeric.py | 93 | from . import multiarray
__all__ = ['ndarray', 'array']
ndarray = multiarray.ndarray
array = multiarray.array |
PabloCastellano/libreborme | refs/heads/master | libreborme/conf/__init__.py | 12133432 | |
mitya57/django | refs/heads/master | tests/introspection/__init__.py | 12133432 | |
54lihaoxin/leetcode_python | refs/heads/master | src/PlusOne/solution.py | 1 | # Plus One
#
# Given a non-negative number represented as an array of digits, plus one to the number.
#
# The digits are stored such that the most significant digit is at the head of the list.
debug = True
debug = False
# from CommonClasses import * # hxl: comment out this line for submission
clas... |
NaturalGIS/QGIS | refs/heads/master | tests/src/python/test_qgsserver_wfs.py | 11 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer WFS.
From build dir, run: ctest -R PyQgsServerWFS -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 version 2 of the Licen... |
Varbin/EEH | refs/heads/master | testing/test_functional_config.py | 1 | from configparser import ConfigParser
from EEHlib.config import config
def test_config_configparser():
assert isinstance(config, ConfigParser)
if __name__ == "__main__":
import __main__
for i in dir(__main__):
if i.startswith("test_"):
print("---", i)
eval(i).__call__()... |
gammasoft71/Switch | refs/heads/master | 3rdparty/googletest/googletest/test/gtest_color_test.py | 3259 | #!/usr/bin/env python
#
# Copyright 2008, 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... |
jeffrey4l/nova | refs/heads/master | nova/scheduler/filter_scheduler.py | 18 | # Copyright (c) 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... |
mano3m/CouchPotatoServer | refs/heads/develop_mano3m | libs/tornado/__init__.py | 8 | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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 a... |
jennyzhang0215/incubator-mxnet | refs/heads/master | tools/rec2idx.py | 43 | # 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... |
ThomasYeoLab/CBIG | refs/heads/master | stable_projects/predict_phenotypes/He2019_KRDNN/replication/CBIG_KRDNN_proc_data.py | 1 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Written by Tong He and CBIG under MIT license:
https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
"""
import os
import numpy as np
import scipy.io as sio
from cbig.He2019.config import config
from cbig.He2019.CBIG_prepare_data import data_ukbb_fnn, data_ukbb... |
poojavade/Genomics_Docker | refs/heads/master | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Flask-0.10.1-py2.7.egg/flask/testsuite/test_apps/flaskext/__init__.py | 12133432 | |
johnsonlau/multivimdriver-vmware-vio | refs/heads/master | vio/vio/swagger/views/hypervisor/__init__.py | 12133432 | |
ccnmtl/lettuce | refs/heads/master | tests/integration/lib/Django-1.3/tests/regressiontests/bug8245/__init__.py | 12133432 | |
jadhavhninad/-CSE_515_MWD_Analytics- | refs/heads/master | Phase 2/DEMO/Phase 2 submissions/Phase 2 Submission/Code/MWDBProject/mwd_proj/mwd_proj/phase1/migrations/__init__.py | 12133432 | |
jarias/heroku-buildpack-go | refs/heads/master | vendor/virtualenv-1.9/docs/conf.py | 3 | # -*- coding: utf-8 -*-
#
# Paste documentation build configuration file, created by
# sphinx-quickstart on Tue Apr 22 22:08:49 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleabl... |
JFonS/tmp | refs/heads/master | .config/sublime-text-3/Packages/Arduino-like IDE/app/serial.py | 4 | #-*- coding: utf-8 -*-
# stino/serial.py
import os
import threading
import time
from . import constant
from . import pyserial
class SerialListener:
def __init__(self, menu):
self.menu = menu
self.serial_list = []
self.is_alive = False
def start(self):
if not self.is_alive:
self.is_alive = True
liste... |
fpsluozi/youtube-dl | refs/heads/master | youtube_dl/extractor/jukebox.py | 140 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
RegexNotFoundError,
unescapeHTML,
)
class JukeboxIE(InfoExtractor):
_VALID_URL = r'^http://www\.jukebox?\..+?\/.+[,](?P<id>[a-z0-9\-]+)\.html'
_TEST = {
'url': 'http:... |
2014c2g19/2014c2g19 | refs/heads/master | exts/sphinx.search.py | 38 | # -*- coding: utf-8 -*-
"""
sphinx.search
~~~~~~~~~~~~~
Create a search index for offline search.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
採用結巴套件 for Python3 進行中文繁體內容的分詞
https://github.com/fxsjy/jieba
"""
imp... |
Kuwagata/md5crack | refs/heads/master | Condor/socklib.py | 1 | import sys, os, socket, pickle, math
def send(sock, data = ""):
s = sock
# Package data
toSend = pickle.dumps(data)
# Calculate number of sends, rounded up to nearest integer
packets = int(math.ceil(len(toSend) / 1024.0))
# Send result
s.send(str(packets))
# Wait for acknowledgement
s.recv(8... |
tylerjereddy/pycon-2017 | refs/heads/master | produce_npy_files.py | 1 | import glob
import pickle
import numpy as np
for pickled_file in glob.glob('*.p'):
print('pickled_file:', pickled_file)
with open(pickled_file, 'rb') as input_file:
numpy_data = pickle.load(input_file, encoding='latin1')
print('numpy_data.shape:', numpy_data.shape)
np.save(pickled_file.... |
hyperized/ansible | refs/heads/devel | lib/ansible/modules/net_tools/basics/uri.py | 1 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2013, Romeo Theriault <romeot () hawaii.edu>
# 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_ver... |
Alwnikrotikz/mpmath | refs/heads/master | mpmath/tests/test_fp.py | 15 | """
Easy-to-use test-generating code:
cases = '''
exp 2.25
log 2.25
'''
from mpmath import *
mp.dps = 20
for test in cases.splitlines():
if not test:
continue
words = test.split()
fname = words[0]
args = words[1:]
argstr = ", ".join(args)
testline = "%s(%s)" % (fname, argstr)
ans =... |
bverburg/CouchPotatoServer | refs/heads/master | libs/pyutil/fileutil.py | 122 | # Copyright (c) 2002-2010 Zooko Wilcox-O'Hearn
# This file is part of pyutil; see README.rst for licensing terms.
"""
Futz with files like a pro.
"""
import errno, exceptions, os, stat, tempfile
try:
import bsddb
except ImportError:
DBNoSuchFileError = None
else:
DBNoSuchFileError = bsddb.db.DBNoSuchFi... |
anggorodewanto/oppia | refs/heads/develop | core/storage/base_model/__init__.py | 12133432 | |
SoftwareMaven/django | refs/heads/master | tests/migrations/migrations_test_apps/alter_fk/author_app/__init__.py | 12133432 | |
sagar30051991/ozsmart-erp | refs/heads/master | erpnext/projects/report/project_wise_stock_tracking/project_wise_stock_tracking.py | 62 | # 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
from frappe import _
def execute(filters=None):
columns = get_columns()
proj_details = get_project_details()
pr_item_map = get_purchas... |
jounex/hue | refs/heads/master | desktop/core/ext-py/boto-2.38.0/boto/ec2/securitygroup.py | 150 | # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011, Eucalyptus Systems, Inc.
#
# 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
# w... |
Jspsun/LEETCodePractice | refs/heads/master | Python/StudentAttendanceRecord.py | 1 | class Solution(object):
def checkRecord(self, s):
"""
:type s: str
:rtype: bool
"""
noAbs = 0
contL = 0
for l in s:
if l == 'A':
noAbs += 1
contL = 0
elif l == 'L':
contL += 1
... |
roth1002/react-native-intro-qnap | refs/heads/gh-pages | node_modules/node-gyp/gyp/pylib/gyp/__init__.py | 1524 | #!/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.
import copy
import gyp.input
import optparse
import os.path
import re
import shlex
import sys
import traceback
from gyp.common import GypErr... |
neonicus/Paralax | 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... |
sternoru/goscalecms | refs/heads/master | goscale/plugins/feeds/migrations/0007_auto__add_field_tumblr_disqus__add_field_blogger_disqus__add_field_fee.py | 1 | # -*- 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 field 'Tumblr.disqus'
db.add_column('cmsplugin_tumblr', 'disqus',
self.gf('dj... |
slohse/ansible | refs/heads/devel | lib/ansible/module_utils/net_tools/__init__.py | 12133432 | |
ebigelow/LOTlib | refs/heads/master | LOTlib/Performance/__init__.py | 12133432 | |
ESOedX/edx-platform | refs/heads/master | cms/lib/__init__.py | 12133432 | |
izrik/wodehouse | refs/heads/master | tests/macros/try_/__init__.py | 12133432 | |
adtidiane/Nouabook | refs/heads/master | elections/management/commands/__init__.py | 12133432 | |
tux-00/ansible | refs/heads/devel | test/units/parsing/yaml/test_dumper.py | 28 | # coding: utf-8
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed i... |
SephVelut/codecombat | refs/heads/master | scripts/devSetup/which.py | 79 | __author__ = 'root'
#copied from python3
import os
import sys
def which(cmd, mode=os.F_OK | os.X_OK, path=None):
"""Given a command, mode, and a PATH string, return the path which
conforms to the given mode on the PATH, or None if there is no such
file.
`mode` defaults to os.F_OK | os.X_OK. `path` def... |
QijunPan/ansible | refs/heads/devel | lib/ansible/modules/network/iosxr/__init__.py | 12133432 | |
xwolf12/django | refs/heads/master | tests/datetimes/__init__.py | 12133432 | |
mapsme/omim | refs/heads/master | tools/python/opentable_restaurants.py | 18 | #! /usr/bin/env python2.7
# coding: utf-8
from __future__ import print_function
import argparse
import base64
import copy
import json
import logging
import os
import re
import sys
import urllib2
from datetime import datetime
# Initialize logging.
logging.basicConfig(level=logging.DEBUG, format='[%(asctime)s] %(leve... |
DDEFISHER/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/py/testing/path/common.py | 162 | import py
import sys
class CommonFSTests(object):
def test_constructor_equality(self, path1):
p = path1.__class__(path1)
assert p == path1
def test_eq_nonstring(self, path1):
p1 = path1.join('sampledir')
p2 = path1.join('sampledir')
assert p1 == p2
def test_new_ide... |
arcz/ansible-modules-core | refs/heads/devel | cloud/openstack/os_auth.py | 131 | #!/usr/bin/python
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
#
# This module 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 late... |
antze-k/gw2-addon-updater | refs/heads/master | src/gw2aupd_tray.py | 1 | # (C) unresolved-external@singu-lair.com released under the MIT license (see LICENSE)
import win32api
import win32con
import win32event
import win32gui
import winreg
import winerror
import os
import sys
from multiprocessing import Queue # hack
import common
import gui
import tray_log
import updater_thread
class tr... |
dendisuhubdy/tensorflow | refs/heads/master | tensorflow/contrib/receptive_field/receptive_field_api.py | 48 | # 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... |
jpshort/odoo | refs/heads/8.0 | addons/calendar/contacts.py | 389 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2011 OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... |
canaltinova/servo | refs/heads/master | tests/wpt/web-platform-tests/content-security-policy/embedded-enforcement/support/echo-required-csp.py | 9 | import json
def main(request, response):
header = request.headers.get("Sec-Required-CSP");
message = {}
message['required_csp'] = header if header else None
second_level_iframe_code = ""
if "include_second_level_iframe" in request.GET:
if "second_level_iframe_csp" in request.GET and request.G... |
GetSomeBlocks/ServerStatus | refs/heads/master | resources/lib/twisted/twisted/trial/util.py | 7 | # -*- test-case-name: twisted.trial.test.test_util -*-
# Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# See LICENSE for details.
#
"""
A collection of utility functions and classes, used internally by Trial.
This code is for Trial's internal use. Do NOT use this code if you are writing
tests. It is subject ... |
danalec/dotfiles | refs/heads/master | sublime/.config/sublime-text-3/Packages/SublimeCodeIntel/libs/SilverCity/DispatchHandler.py | 8 | from . import ScintillaConstants
from . import Utils
def generate_handler_name(state):
return 'handle_' + state[4:].lower()
class DispatchHandler:
def __init__(self, state_prefix):
self.handlers = {}
if state_prefix is not None:
for constant in Utils.list_states(state_prefix):
... |
mikeolteanu/livepythonconsole-app-engine | refs/heads/master | boilerplate/external/requests/packages/charade/eucjpprober.py | 2918 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Con... |
xfournet/intellij-community | refs/heads/master | python/helpers/py2only/docutils/transforms/universal.py | 106 | # $Id: universal.py 7668 2013-06-04 12:46:30Z milde $
# -*- coding: utf-8 -*-
# Authors: David Goodger <goodger@python.org>; Ueli Schlaepfer; Günter Milde
# Maintainer: docutils-develop@lists.sourceforge.net
# Copyright: This module has been placed in the public domain.
"""
Transforms needed by most or all documents:
... |
UrusTeam/android_ndk_toolchain_cross | refs/heads/master | lib/python2.7/bsddb/test/test_sequence.py | 69 | import unittest
import os
from test_all import db, test_support, get_new_environment_path, get_new_database_path
class DBSequenceTest(unittest.TestCase):
def setUp(self):
self.int_32_max = 0x100000000
self.homeDir = get_new_environment_path()
self.filename = "test"
self.dbenv = d... |
joaduo/mepinta | refs/heads/master | plugins/c_and_cpp/k3dv1/plugins_tests/c_and_cpp/processors/k3dv1/mesh/modifiers/sds/MakeSDS/__init__.py | 12133432 | |
disqus/django-old | refs/heads/master | tests/modeltests/reserved_names/__init__.py | 12133432 | |
opennode/waldur-mastermind | refs/heads/develop | src/waldur_mastermind/marketplace/management/__init__.py | 12133432 | |
dyyi/moneybook | refs/heads/master | venv/Lib/site-packages/django/contrib/gis/geos/io.py | 588 | """
Module that holds classes for performing I/O operations on GEOS geometry
objects. Specifically, this has Python implementations of WKB/WKT
reader and writer classes.
"""
from django.contrib.gis.geos.geometry import GEOSGeometry
from django.contrib.gis.geos.prototypes.io import (
WKBWriter, WKTWriter, _WKBReade... |
yetu/repotools | refs/heads/master | third_party/gsutil/gslib/commands/getwebcfg.py | 51 | # Copyright 2012 Google 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 by applicable law or a... |
dxd214/TeamTalk | refs/heads/master | win-client/3rdParty/src/json/test/generate_expected.py | 257 | import glob
import os.path
for path in glob.glob( '*.json' ):
text = file(path,'rt').read()
target = os.path.splitext(path)[0] + '.expected'
if os.path.exists( target ):
print 'skipping:', target
else:
print 'creating:', target
file(target,'wt').write(text)
|
AkA84/edx-platform | refs/heads/master | lms/djangoapps/discussion_api/tests/test_pagination.py | 113 | """
Tests for Discussion API pagination support
"""
from unittest import TestCase
from django.test import RequestFactory
from discussion_api.pagination import get_paginated_data
class PaginationSerializerTest(TestCase):
"""Tests for PaginationSerializer"""
def do_case(self, objects, page_num, num_pages, exp... |
the-duck/that-startpage-rocks | refs/heads/master | lib/jinja2/environment.py | 332 | # -*- coding: utf-8 -*-
"""
jinja2.environment
~~~~~~~~~~~~~~~~~~
Provides a class that holds runtime and parsing time options.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
from jinja2 import nodes
from jinja2.defaults import BLOCK_S... |
andaag/scikit-learn | refs/heads/master | sklearn/datasets/mlcomp.py | 289 | # Copyright (c) 2010 Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause
"""Glue code to load http://mlcomp.org data as a scikit.learn dataset"""
import os
import numbers
from sklearn.datasets.base import load_files
def _load_document_classification(dataset_path, metadata, set_=None, **kwargs):
if ... |
abenzbiria/clients_odoo | refs/heads/master | addons/sale_service/__openerp__.py | 30 | # -*- 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... |
dahlstrom-g/intellij-community | refs/heads/master | python/testData/inspections/ChainedComparison6.py | 35 | class A:
def foo(self):
if index >= self.current and<caret> index - self.history_length < self.current:
pass |
enthought/pyside | refs/heads/master | tests/QtOpenGL/qglwidget_test.py | 6 | import unittest
from PySide.QtGui import *
from PySide.QtOpenGL import *
class TestQGLWidget (unittest.TestCase):
def testIt(self):
"""Just test if the bindTexture(*, GLenum, GLint) methods overloads exists"""
app = QApplication([])
img = QImage()
w = QGLWidget()
a = w.bindT... |
akash1808/python-novaclient | refs/heads/master | novaclient/v1_1/security_group_default_rules.py | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... |
gciteam6/xgboost | refs/heads/master | src/data/base.py | 1 | # Built-in modules
from copy import deepcopy
import csv
from os import pardir, path, makedirs
import datetime
# Third-party modules
import numpy as np
import pandas as pd
import bloscpack as bp
PROJECT_ROOT_PATH = path.join(path.dirname(__file__), pardir, pardir)
RAW_DATA_BASEPATH = path.join(PROJECT_ROOT_PATH, "data/... |
Star2Billing/newfies-dialer | refs/heads/develop | newfies/apirest/tier_serializers.py | 4 | # -*- coding: utf-8 -*-
#
# Newfies-Dialer License
# http://www.newfies-dialer.org
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (C) 2011-2015 Star2Bi... |
XiaosongWei/crosswalk-test-suite | refs/heads/master | webapi/tct-csp-w3c-tests/inst.xpk.py | 456 | #!/usr/bin/env python
import os
import shutil
import glob
import time
import sys
import subprocess
import string
from optparse import OptionParser, make_option
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
PKG_NAME = os.path.basename(SCRIPT_DIR)
PARAMETERS = None
#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=... |
patrickstocklin/chattR | refs/heads/master | lib/python2.7/site-packages/nltk/probability.py | 8 | # -*- coding: utf-8 -*-
# Natural Language Toolkit: Probability and Statistics
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com> (additions)
# Trevor Cohn <tacohn@cs.mu.oz.au> (additions)
# Peter Ljunglöf <peter.ljunglof@hea... |
adviti/melange | refs/heads/master | thirdparty/google_appengine/lib/django_1_2/tests/regressiontests/servers/models.py | 12133432 | |
geimer/easybuild-easyconfigs | refs/heads/master | test/easyconfigs/__init__.py | 12133432 | |
tylert/kb_builder | refs/heads/master | lib/__init__.py | 12133432 | |
sivel/ansible-modules-extras | refs/heads/devel | cloud/cloudstack/cs_affinitygroup.py | 48 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2015, René Moser <mail@renemoser.net>
#
# 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 Lice... |
ahmadiga/min_edx | refs/heads/master | lms/djangoapps/certificates/tests/test_views.py | 11 | """Tests for certificates views. """
import json
import ddt
from uuid import uuid4
from nose.plugins.attrib import attr
from mock import patch
from django.conf import settings
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client impo... |
pschmitt/home-assistant | refs/heads/dev | tests/components/facebox/__init__.py | 36 | """Tests for the facebox component."""
|
mith1979/ansible_automation | refs/heads/master | applied_python/applied_python/lib/python2.7/site-packages/astroid/tests/testdata/python2/data/module1abs/__init__.py | 12 | from __future__ import absolute_import, print_function
from . import core
from .core import *
print(sys.version)
|
ldirer/scikit-learn | refs/heads/master | sklearn/utils/tests/test_random.py | 85 | from __future__ import division
import numpy as np
import scipy.sparse as sp
from scipy.misc import comb as combinations
from numpy.testing import assert_array_almost_equal
from sklearn.utils.random import sample_without_replacement
from sklearn.utils.random import random_choice_csc
from sklearn.utils.testing import ... |
padmasambhava/tiki2hugo | refs/heads/master | t2h/__init__.py | 12133432 | |
niemmi/algolib | refs/heads/master | algolib/binary_tree/__init__.py | 12133432 | |
beni55/edx-platform | refs/heads/master | lms/djangoapps/instructor/__init__.py | 12133432 | |
teltek/edx-platform | refs/heads/master | lms/djangoapps/badges/apps.py | 35 | """
Badges Application Configuration
Signal handlers are connected here.
"""
from django.apps import AppConfig
class BadgesConfig(AppConfig):
"""
Application Configuration for Badges.
"""
name = u'badges'
def ready(self):
"""
Connect signal handlers.
"""
from . i... |
marinho/geraldo | refs/heads/master | site/newsite/site-geraldo/django/core/template_loader.py | 382 | # This module is DEPRECATED!
#
# You should no longer be using django.template_loader.
#
# Use django.template.loader instead.
from django.template.loader import *
|
obiben/profitpy | refs/heads/master | examples/accountkeysdialog.py | 18 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2007 Troy Melhase <troy@gci.net>
# Distributed under the terms of the GNU General Public License v2
from PyQt4.QtCore import Qt
from PyQt4.QtGui import QDialog, QStandardItem, QStandardItemModel
from .ui_accountkeysdialog import Ui_AccountKeysDialog
class A... |
NeveHanter/conparser | refs/heads/master | tests/test_vcard_30.py | 3 | # -*- coding: utf-8 -*-
__author__ = "NeveHanter <nevehanter@gmail.com>" |
OPM/opm-common | refs/heads/master | python/tests/test_time_vector.py | 5 | import unittest
import datetime
from opm.tools import *
from opm.io.parser import Parser
try:
from tests.utils import test_path, tmp
except ImportError:
from utils import test_path, tmp
class TestTimeVector(unittest.TestCase):
def setUp(self):
pass
def test_create(self):
start_date ... |
mandeepdhami/nova | refs/heads/master | nova/tests/unit/virt/vmwareapi/stubs.py | 52 | # Copyright (c) 2011 Citrix Systems, Inc.
# Copyright 2011 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... |
kaiweifan/horizon | refs/heads/vip2 | openstack_dashboard/test/tests/__init__.py | 12133432 | |
jphilipsen05/zulip | refs/heads/master | analytics/__init__.py | 12133432 | |
hirokiky/oauthlib | refs/heads/master | tests/oauth2/rfc6749/clients/__init__.py | 12133432 | |
flh/odoo | refs/heads/master | addons/mrp_repair/__init__.py | 380 | # -*- 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... |
nervous-laughter/qiime2 | refs/heads/master | qiime2/sdk/tests/test_result.py | 2 | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2017, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... |
anhstudios/swganh | refs/heads/develop | data/scripts/templates/object/tangible/loot/collectible/collectible_parts/shared_gong_structure_07.py | 2 | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/loot/collectible/collectible_parts/shared_gong_structure_07.iff"
re... |
jedie/pypyjs-standalone | refs/heads/master | website/js/pypy.js-0.3.0/lib/modules/distutils/fancy_getopt.py | 250 | """distutils.fancy_getopt
Wrapper around the standard getopt module that provides the following
additional features:
* short and long options are tied together
* options have help strings, so fancy_getopt could potentially
create a complete usage summary
* options set attributes of a passed-in object
"""
__... |
t-amerssonis/okami | refs/heads/master | src/Okami/third-parts/__init__.py | 12133432 | |
hurricup/intellij-community | refs/heads/master | python/testData/refactoring/move/moveSymbolFromStatementList/before/src/b.py | 12133432 | |
mpetyx/psymbiosys-rapidapps-middleware-workersTool | refs/heads/master | hello/__init__.py | 12133432 | |
itswindtw/pyMega | refs/heads/master | megadb/execution/__init__.py | 12133432 | |
saurabh6790/trufil_app | refs/heads/master | hr/doctype/test_name/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.