repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
darren-wang/gl | refs/heads/master | glance/tests/unit/common/scripts/__init__.py | 12133432 | |
zdary/intellij-community | refs/heads/master | python/helpers/tests/generator3_tests/data/FileSystemUtil/copy_skeleton_package_replaced/dst/after/foo/bar/another.py | 12133432 | |
domenicosolazzo/practice-django | refs/heads/master | venv/lib/python2.7/site-packages/django/conf/locale/vi/__init__.py | 12133432 | |
swordmaster2k/robotics | refs/heads/master | framework/io/__init__.py | 6 | __author__ = 'joshua'
|
economica/django-rea | refs/heads/master | setup.py | 1 | from setuptools import setup, find_packages
setup(
name='django-rea',
version='0.0.1',
description='Resources, Events & Agents marketplace models',
author='Daryl Antony',
author_email='daryl@economica.io',
url='https://github.com/economica/rea',
keywords=['django', ],
packages=find_pack... |
prark/bitcoinxt | refs/heads/master | qa/rpc-tests/test_framework/comptool.py | 49 | #!/usr/bin/env python2
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
from mininode import *
from blockstore import BlockStore, TxStore
from util import p2p_port
'''
This is a tool for comparing two or more bitcoinds to ... |
wbc2010/django1.2.5 | refs/heads/master | tests/regressiontests/utils/datastructures.py | 40 | """
Tests for stuff in django.utils.datastructures.
"""
import pickle
import unittest
from django.utils.datastructures import *
class DatastructuresTestCase(unittest.TestCase):
def assertRaisesErrorWithMessage(self, error, message, callable,
*args, **kwargs):
self.assertRaises(error, callable, *a... |
brianwarehime/munk | refs/heads/master | transforms/listhostsourcetype.py | 1 | # List Splunk Hosts by Sourcetype
# For use with Munk - Maltego for Splunk
# Author: Brian Warehime @nulltr0n
# 9/6/2014
# Importing various modules
from MaltegoTransform import *
import subprocess
import sys
import re
import ConfigParser
import os
# Configuration Parser to grab necessary options.
def getLocalConfP... |
ShichangXu/hammerhead | refs/heads/lollipop-mr1 | tools/perf/scripts/python/net_dropmonitor.py | 4235 | # Monitor the system for dropped packets and proudce a report of drop locations and counts
import os
import sys
sys.path.append(os.environ['PERF_EXEC_PATH'] + \
'/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
from perf_trace_context import *
from Core import *
from Util import *
drop_log = {}
kallsyms = []
def... |
bberriche/vogella | refs/heads/master | de.vogella.python.testing/src/de/vogella/python/__init__.py | 12133432 | |
Mozta/pagina-diagnostijuego | refs/heads/master | venv/lib/python2.7/site-packages/django/conf/locale/fy/__init__.py | 12133432 | |
thedep2/CouchPotatoServer | refs/heads/develop | libs/apscheduler/jobstores/__init__.py | 12133432 | |
Aminakh/or-tools | refs/heads/master | examples/python/data/nonogram_regular/nonogram_hen.py | 74 | # Copyright 2010 Hakan Kjellerstrand hakank@bonetmail.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/LICENSE-2.0
#
# Unless required by applica... |
orekyuu/intellij-community | refs/heads/master | python/testData/inspections/PyTupleAssignmentBalanceInspection2/src/test.py | 53 | a, b, c = 1, 2, 3, 4
a, b, c = foo, bar
a, b, c, d = 1, 2, 3, 4
a = 1, 2, 3, 4
a, b, c = 2
*a, b = 1, 2, 3
*a, b, c = 1, 2
b, c, *a, d = 1, 2
*a, b = 1, 2
a, *b, c, *d = 1, 2, 3, 4, 5, 6 |
iw3hxn/LibrERP | refs/heads/master | sale_order_reopen/models/inherit_sale_order.py | 1 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2012-2012 Camptocamp Austria (<http://www.camptocamp.at>)
#
# This program is free softw... |
bjtaylor1/osrm-backend | refs/heads/master | third_party/flatbuffers/python/flatbuffers/util.py | 13 | # Copyright 2017 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... |
TimBuckley/effective_django | refs/heads/master | tests/dispatch/__init__.py | 12133432 | |
raf-programmer/django-biblioteka | refs/heads/master | biblio/__init__.py | 12133432 | |
edry/edx-platform | refs/heads/master | lms/djangoapps/notes/migrations/__init__.py | 12133432 | |
ar4s/django | refs/heads/master | django/core/handlers/__init__.py | 12133432 | |
yugangw-msft/azure-cli | refs/heads/dev | src/azure-cli/azure/cli/command_modules/monitor/operations/metric_alert.py | 2 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
estaban/pyload | refs/heads/stable | module/plugins/hoster/BillionuploadsCom.py | 1 | # -*- coding: utf-8 -*-
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
class BillionuploadsCom(XFileSharingPro):
__name__ = "BillionuploadsCom"
__type__ = "hoster"
__pattern__ = r'http://(?:www\.)?billionuploads.com/\w{12}'
__version__ = "0.01"
__description__ =... |
Beauhurst/django | refs/heads/master | tests/i18n/other2/locale/__init__.py | 12133432 | |
wfxiang08/django185 | refs/heads/master | tests/migrations/migrations_test_apps/with_package_model/__init__.py | 12133432 | |
samuknet/servo | refs/heads/master | tests/wpt/web-platform-tests/tools/lint/tests/__init__.py | 12133432 | |
hdmetor/scikit-learn | refs/heads/master | sklearn/metrics/tests/__init__.py | 12133432 | |
rdonnelly/ultimate-league-app | refs/heads/master | src/ultimate/user/migrations/__init__.py | 12133432 | |
oubiwann/peloid | refs/heads/master | python/peloid/app/models/__init__.py | 12133432 | |
kinwahlai/phantomjs-ghostdriver | refs/heads/master | src/breakpad/src/tools/gyp/pylib/gyp/generator/__init__.py | 12133432 | |
yazgoo/ensime-vim | refs/heads/master | ensime_launcher/__init__.py | 1 | import os
import signal
import socket
import subprocess
import re
class Util:
@staticmethod
def read_file(path):
f = open(path)
result = f.read()
f.close()
return result
@staticmethod
def write_file(path, contents):
f = open(path, "w")
result = f.write(c... |
marco-lancini/Showcase | refs/heads/master | djangoappengine/utils.py | 37 | import os
from google.appengine.api import apiproxy_stub_map
from google.appengine.api.app_identity import get_application_id
have_appserver = bool(apiproxy_stub_map.apiproxy.GetStub('datastore_v3'))
if have_appserver:
appid = get_application_id()
else:
try:
from google.appengine.tools import dev_ap... |
40223123/finaltestone | refs/heads/master | static/Brython3.1.1-20150328-091302/Lib/browser/svg.py | 750 | from _svg import * |
tomchristie/django | refs/heads/master | tests/staticfiles_tests/cases.py | 39 | import codecs
import os
import shutil
import tempfile
from django.conf import settings
from django.core.management import call_command
from django.template import Context, Template
from django.test import SimpleTestCase, override_settings
from .settings import TEST_SETTINGS
class BaseStaticFilesMixin:
"""
T... |
Zord13appdesa/python-for-android | refs/heads/master | python3-alpha/python3-src/Lib/stat.py | 51 | """Constants/functions for interpreting results of os.stat() and os.lstat().
Suggested usage: from stat import *
"""
# Indices for stat struct members in the tuple returned by os.stat()
ST_MODE = 0
ST_INO = 1
ST_DEV = 2
ST_NLINK = 3
ST_UID = 4
ST_GID = 5
ST_SIZE = 6
ST_ATIME = 7
ST_MTIME = 8
ST_CTIME = 9
... |
eagleamon/home-assistant | refs/heads/dev | tests/components/binary_sensor/test_command_line.py | 23 | """The tests for the Command line Binary sensor platform."""
import unittest
from homeassistant.const import (STATE_ON, STATE_OFF)
from homeassistant.components.binary_sensor import command_line
from homeassistant import bootstrap
from homeassistant.helpers import template
from tests.common import get_test_home_assis... |
ankur-gupta91/horizon-net-ip | refs/heads/master | openstack_dashboard/dashboards/project/instances/utils.py | 6 | # 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
# distributed under t... |
alanbertadev/fastmarketanalyst | refs/heads/master | tests/test_mechanize_facade.py | 1 | import unittest
import mechanize
import cookielib
from ..app.utils.mechanize_facade import MechanizeFacade
class TestMechanizeFacade(unittest.TestCase):
def test_fetch_simple_test_html_file_contents(self):
browser = MechanizeFacade()
assert browser.fetchSimpleURLAsString("http://fma.alanbertadev.c... |
scv119/6.828 | refs/heads/master | gradelib.py | 15 | from __future__ import print_function
import sys, os, re, time, socket, select, subprocess, errno, shutil
from subprocess import check_call, Popen
from optparse import OptionParser
__all__ = []
##################################################################
# Test structure
#
__all__ += ["test", "end_part", "run... |
coderbone/SickRage-alt | refs/heads/master | lib/sqlalchemy/orm/mapper.py | 75 | # orm/mapper.py
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Logic to map Python classes to and from selectables.
Defines the :class:`~sqlalchemy... |
tokatikato/OIPA | refs/heads/133-improve-documentation | OIPA/api/region/views.py | 1 | import geodata
from iati.models import Activity
from api.region import serializers
from rest_framework.generics import ListAPIView
from rest_framework.generics import RetrieveAPIView
from api.country.serializers import CountrySerializer
from api.activity.views import ActivityList
class RegionList(ListAPIView):
""... |
gnuhub/intellij-community | refs/heads/master | python/testData/dotNet/import_module_from_package.py | 80 | import clr
clr.AddReferenceByPartialName("PythonLibs")
from c<caret>om.just.like import java
print java.LikeJavaClass |
tmerrick1/spack | refs/heads/develop | var/spack/repos/builtin/packages/parmetis/package.py | 5 | ##############################################################################
# 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... |
hellhovnd/dentexchange | refs/heads/master | dentexchange/apps/libs/tests/mixins/test_meaningful_empty_value_form_mixin.py | 2 | # -*- coding:utf-8 -*-
import unittest
import mock
from libs.mixins.forms import MeaningfulEmptyValueFormMixin
from ... import strings
class MeaningfulEmptyValueFormMixinTestCase(unittest.TestCase):
@mock.patch('libs.mixins.forms.MeaningfulEmptyValueFormMixin.'
'initialize_empty_values')
def test_ini... |
raghavtan/youtube-dl | refs/heads/master | youtube_dl/extractor/vgtv.py | 102 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
float_or_none,
)
class VGTVIE(InfoExtractor):
IE_DESC = 'VGTV and BTTV'
_VALID_URL = r'''(?x)
(?:
vgtv:|
... |
HALDevelopersTeam/crow | refs/heads/master | client/main.py | 12133432 | |
GunnerJnr/_CodeInstitute | refs/heads/master | Stream-3/Full-Stack-Development/17.Create-A-Django-Based-Forum/3.Showing-Our-Subjects/we_are_social/magazines/__init__.py | 12133432 | |
Aptitudetech/ERPNext | refs/heads/master | erpnext/portal/doctype/__init__.py | 12133432 | |
aprefontaine/TMScheduler | refs/heads/master | lib/__init__.py | 12133432 | |
turbokongen/home-assistant | refs/heads/dev | homeassistant/components/velux/__init__.py | 1 | """Support for VELUX KLF 200 devices."""
import logging
from pyvlx import PyVLX, PyVLXException
import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_PASSWORD, EVENT_HOMEASSISTANT_STOP
from homeassistant.helpers import discovery
import homeassistant.helpers.config_validation as cv
DOMAIN = "velux"... |
OSSystems/jenkins-job-builder | refs/heads/master | tests/notifications/test_notifications.py | 11 | # Joint copyright:
# - Copyright 2012,2013 Wikimedia Foundation
# - Copyright 2012,2013 Antoine "hashar" Musso
# - Copyright 2013 Arnaud Fabre
#
# 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 ... |
RO-ny9/python-for-android | refs/heads/master | python-modules/twisted/twisted/test/process_reader.py | 166 | """Script used by test_process.TestTwoProcesses"""
# run until stdin is closed, then quit
import sys
while 1:
d = sys.stdin.read()
if len(d) == 0:
sys.exit(0)
|
VielSoft/odoo | refs/heads/8.0 | addons/base_geolocalize/__openerp__.py | 211 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013_Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... |
837468220/python-for-android | refs/heads/master | python3-alpha/python3-src/Lib/ctypes/test/test_buffers.py | 52 | from ctypes import *
import unittest
class StringBufferTestCase(unittest.TestCase):
def test_buffer(self):
b = create_string_buffer(32)
self.assertEqual(len(b), 32)
self.assertEqual(sizeof(b), 32 * sizeof(c_char))
self.assertTrue(type(b[0]) is bytes)
b = create_string_buff... |
irudayarajisawa/django-cms | refs/heads/develop | cms/management/commands/subcommands/uninstall.py | 61 | # -*- coding: utf-8 -*-
from django.core.management.base import LabelCommand
from django.utils.six.moves import input
from cms.management.commands.subcommands.base import SubcommandsCommand
from cms.models import Page
from cms.models.pluginmodel import CMSPlugin
from cms.plugin_pool import plugin_pool
class Uninstal... |
ntiufalara/openerp7 | refs/heads/master | openerp/addons/account_asset/account_asset_invoice.py | 50 | # -*- encoding: 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 G... |
milrob/essentia | refs/heads/master | src/python/essentia/plotting.py | 4 | # Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
#
# This file is part of Essentia
#
# Essentia is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation (FSF), either version 3 of the ... |
fhaoquan/kbengine | refs/heads/master | kbe/res/scripts/common/Lib/idlelib/ParenMatch.py | 113 | """ParenMatch -- An IDLE extension for parenthesis matching.
When you hit a right paren, the cursor should move briefly to the left
paren. Paren here is used generically; the matching applies to
parentheses, square brackets, and curly braces.
"""
from idlelib.HyperParser import HyperParser
from idlelib.configHandler... |
Jakob37/RASP | refs/heads/master | Scripts/UtilScripts/__init__.py | 11 | __author__ = 'jakob'
|
fabiensanglard/git | refs/heads/master | git-p4.py | 13 | #!/usr/bin/env python
#
# git-p4.py -- A tool for bidirectional operation between a Perforce depot and git.
#
# Author: Simon Hausmann <simon@lst.de>
# Copyright: 2007 Simon Hausmann <simon@lst.de>
# 2007 Trolltech ASA
# License: MIT <http://www.opensource.org/licenses/mit-license.php>
#
import sys
if sys.he... |
sergiopasra/megaradrp | refs/heads/master | tools/run_cookbook.py | 2 |
import os
import pathlib
import logging
import tarfile
import yaml
import numina.util.context as ctx
from numina.user.helpers import create_datamanager, load_observations
from numina.user.baserun import run_reduce
from numina.tests.testcache import download_cache
def main():
logging.basicConfig(level=logging.D... |
jflesch/paperwork-backend | refs/heads/develop | paperwork_backend/index.py | 1 | #!/usr/bin/env python3
import collections
import copy
import datetime
import gc
import logging
import multiprocessing
import threading
import whoosh.fields
import whoosh.index
import whoosh.qparser
import whoosh.query
import whoosh.sorting
from .common.page import BasicPage
from .fs import GioFileSystem
from .labels... |
shurihell/testasia | refs/heads/test1 | lms/djangoapps/instructor/tests/__init__.py | 12133432 | |
retomerz/intellij-community | refs/heads/master | python/lib/Lib/site-packages/django/contrib/admindocs/__init__.py | 12133432 | |
hackerbot/DjangoDev | refs/heads/master | tests/sitemaps_tests/__init__.py | 12133432 | |
sushramesh/lwc | refs/heads/master | lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/__init__.py | 12133432 | |
kenwang815/KodiPlugins | refs/heads/master | script.module.oceanktv/lib/youtube_dl/extractor/embedly.py | 143 | # encoding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_urllib_parse_unquote
class EmbedlyIE(InfoExtractor):
_VALID_URL = r'https?://(?:www|cdn\.)?embedly\.com/widgets/media\.html\?(?:[^#]*?&)?url=(?P<id>[^#&]+)'
_TESTS = [{
'url': 'http... |
nicksergeant/emilyapp | refs/heads/master | emilyapp/settings.py | 1 | # Django settings for emilyapp project.
import os
DEBUG = False
TEMPLATE_DEBUG = DEBUG
BASE_PATH = os.path.dirname(__file__)
ADMINS = (
('Pee Poop', 'pee@poop'),
)
INTERNAL_IPS = ('127.0.0.1',)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '',... |
ingokegel/intellij-community | refs/heads/master | python/testData/formatter/continuationIndentBeforeFunctionArguments.py | 39 | sum(
1,
2, 3,
5,
)
sum(
1,
2, 3,
5)
|
gem/oq-hazardlib | refs/heads/master | openquake/hazardlib/geo/mesh.py | 1 | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2012-2017 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... |
rackerlabs/django-DefectDojo | refs/heads/master | dojo/templatetags/get_attribute.py | 2 | from django import template
register = template.Library()
@register.filter
def get_attribute(obj, name):
if hasattr(obj, name):
return getattr(obj, name)
else:
return '' |
Rogentos/argent-anaconda | refs/heads/master | firewall.py | 5 | #
# firewall.py - firewall install data and installation
#
# Copyright (C) 2004 Red Hat, Inc. All rights reserved.
#
# 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 Lic... |
amboxer21/scrapy | refs/heads/master | scrapy/extensions/closespider.py | 150 | """CloseSpider is an extension that forces spiders to be closed after certain
conditions are met.
See documentation in docs/topics/extensions.rst
"""
from collections import defaultdict
from twisted.internet import reactor
from scrapy import signals
class CloseSpider(object):
def __init__(self, crawler):
... |
piensa/geonode | refs/heads/wm-develop | geonode/base/views.py | 4 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2016 OSGeo
#
# 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 ... |
MiCode/mi1_kernel | refs/heads/master | tools/perf/scripts/python/net_dropmonitor.py | 4235 | # Monitor the system for dropped packets and proudce a report of drop locations and counts
import os
import sys
sys.path.append(os.environ['PERF_EXEC_PATH'] + \
'/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
from perf_trace_context import *
from Core import *
from Util import *
drop_log = {}
kallsyms = []
def... |
zhaocloud/goracle | refs/heads/master | cx_Oracle-5.1.2-dbg/samples/DatabaseChangeNotification.py | 37 | #------------------------------------------------------------------------------
# DatabaseChangeNotification.py
# This script demonstrates using database change notification in Python, a
# feature that is available in Oracle 10g Release 2. Once this script is
# running, use another session to insert, update or delete... |
vincentbernat/wiremaps | refs/heads/master | wiremaps/web/__init__.py | 12133432 | |
noroutine/ansible | refs/heads/devel | lib/ansible/module_utils/facts/network/__init__.py | 12133432 | |
anhstudios/swganh | refs/heads/develop | data/scripts/templates/object/mobile/shared_warren_teraud_loyalist_scientist.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 = Creature()
result.template = "object/mobile/shared_warren_teraud_loyalist_scientist.iff"
result.attribute_templat... |
baifendian/harpc | refs/heads/master | python/example/client_threading_demo.py | 1 | # -*- coding: utf-8 -*-
import threading
import logging
import time
from tutorial import TutorialService
from bfd.harpc import client
from bfd.harpc.common import config
threads = 15
req_num = 10
data = []
error = 0
for i in range(0,10240):
data.append(chr(i%64 + 32))
test_msg= ''.join(data)
logging.basicConfig... |
JianfengXu/crosswalk-test-suite | refs/heads/master | usecase/usecase-wrt-auto-tests/samples/ApkBuildTemporary/projectonly.py | 5 | #!/usr/bin/env python
#
# Copyright (c) 2015 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... |
koyuawsmbrtn/eclock | refs/heads/master | windows/Python27/Lib/site-packages/requests-2.2.1-py2.7.egg/requests/cookies.py | 821 | # -*- coding: utf-8 -*-
"""
Compatibility code to be able to use `cookielib.CookieJar` with requests.
requests.utils imports from here, so be careful with imports.
"""
import time
import collections
from .compat import cookielib, urlparse, urlunparse, Morsel
try:
import threading
# grr, pyflakes: this fixes... |
xhat/micropython | refs/heads/master | tests/basics/set_intersection.py | 118 | s = {1, 2, 3, 4}
print(sorted(s))
print(sorted(s.intersection({1, 3})))
print(sorted(s.intersection([3, 4])))
print(s.intersection_update([1]))
print(sorted(s))
|
F483/bikesurf.org | refs/heads/master | apps/__init__.py | 12133432 | |
foodszhang/kbengine | refs/heads/master | kbe/res/scripts/common/Lib/tkinter/test/test_tkinter/test_widgets.py | 67 | import unittest
import tkinter
from tkinter import TclError
import os
import sys
from test.support import requires
from tkinter.test.support import (tcl_version, requires_tcl,
get_tk_patchlevel, widget_eq)
from tkinter.test.widget_tests import (
add_standard_options, noconv, pixel... |
gardner/youtube-dl | refs/heads/master | youtube_dl/extractor/reverbnation.py | 151 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import str_or_none
class ReverbNationIE(InfoExtractor):
_VALID_URL = r'^https?://(?:www\.)?reverbnation\.com/.*?/song/(?P<id>\d+).*?$'
_TESTS = [{
'url': 'http://www.reverbnation.com/alkilados/song/16965... |
akash1808/tempest | refs/heads/master | tempest/api_schema/response/__init__.py | 12133432 | |
ict-felix/stack | refs/heads/master | vt_manager_kvm/src/python/vt_manager_kvm/communication/sfa/vm_utils/__init__.py | 12133432 | |
nanolearningllc/edx-platform-cypress | refs/heads/master | common/test/acceptance/tests/lms/__init__.py | 12133432 | |
archf/ansible | refs/heads/devel | test/integration/targets/module_utils/module_utils/qux2/__init__.py | 12133432 | |
samuelsmiles/samuel | refs/heads/master | django-admin-sortable/adminsortable/templatetags/__init__.py | 12133432 | |
Tesora/tesora-tempest | refs/heads/master | tempest/api/volume/admin/v2/__init__.py | 12133432 | |
holmes/intellij-community | refs/heads/master | python/testData/refactoring/move/templateAttributesExpansionInCreatedDestinationModule/after/src/a.py | 12133432 | |
mbaijal/incubator-mxnet | refs/heads/master | example/ssd/evaluate/eval_voc.py | 55 | # 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... |
VinnieJohns/ggrc-core | refs/heads/develop | src/ggrc_workflows/services/workflow_cycle_calculator/monthly_cycle_calculator.py | 7 | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
import datetime
from dateutil import relativedelta
from ggrc_workflows.services.workflow_cycle_calculator import cycle_calculator
class MonthlyCycleCalculator(cycle_calculator.CycleCalculator):
"""Cycle... |
irinabov/debian-qpid-dispatch | refs/heads/master | tests/system_tests_failover_list.py | 2 | #
# 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... |
tempbottle/ironpython3 | refs/heads/master | Tests/interop/net/loadorder/t4b.py | 3 | #####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A
# copy of the license can be found in the License.html file at the root of t... |
filipenegrao/glyphsapp-scripts | refs/heads/master | in_progress/duplicate_glyphs_snippets.py | 1 | from __future__ import print_function
from copy import copy
font = Glyphs.font
current_layer = Glyphs.font.selectedLayers[0] # current layer
bg = current_layer.background
fmaster = font.masters[0]
glyph = current_layer.parent
l1 = font.glyphs['O'].layers[0]
l2 = font.glyphs['Q'].layers[0]
l2bg = l2.background
def... |
iandouglas/flask-gae-skeleton | refs/heads/master | tests/integration/static/test_social_github.py | 1 | # coding=utf-8
from splinter import Browser
import unittest
from google.appengine.ext import testbed
browser = Browser()
class StaticPagesTest(unittest.TestCase):
def setUp(self):
global browser
self.tb = testbed.Testbed()
self.tb.activate()
self.tb.init_memcache_stub()
def t... |
liuwenf/moose | refs/heads/devel | python/peacock/PostprocessorViewer/PostprocessorPluginManager.py | 5 | from PyQt5 import QtCore, QtWidgets
import peacock
import mooseutils
class PostprocessorPluginManager(QtWidgets.QWidget, peacock.base.PluginManager):
"""
Widget containing all of the Postprocessor plugins.
This widget contains two layouts for the plugin placements: "LeftLayout" and "RightLayout"
"""
... |
faywong/FFPlayer | refs/heads/trunk | project/jni/python/src/Lib/lib2to3/tests/test_pytree.py | 50 | #!/usr/bin/env python2.5
# Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Unit tests for pytree.py.
NOTE: Please *don't* add doc strings to individual test methods!
In verbose mode, printing of the module, class and method name is much
more helpful than printing o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.