repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
Schevo/schevo
refs/heads/master
schevo/example/moviereviews/schema/__init__.py
12133432
Nitaco/ansible
refs/heads/devel
test/units/playbook/__init__.py
12133432
apporc/neutron
refs/heads/master
neutron/tests/functional/sanity/__init__.py
12133432
robovm/robovm-studio
refs/heads/master
python/testData/refactoring/move/relativeImportsToModulesInSameMovedPackageNotUpdated/after/src/subpkg/subsubpkg/m4.py
12133432
ASOdesk/selenium-pytest-fix
refs/heads/pytest-fix
py/test/selenium/webdriver/common/frame_switching_tests.py
9
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
leesavide/pythonista-docs
refs/heads/master
Documentation/matplotlib/mpl_examples/pylab_examples/stackplot_demo.py
6
import numpy as np from matplotlib import pyplot as plt fnx = lambda : np.random.randint(5, 50, 10) y = np.row_stack((fnx(), fnx(), fnx())) x = np.arange(10) y1, y2, y3 = fnx(), fnx(), fnx() fig, ax = plt.subplots() ax.stackplot(x, y) plt.show() fig, ax = plt.subplots() ax.stackplot(x, y1, y2, y3) plt.show()
kholia/pyrpm
refs/heads/ng
pyrpm/resolver.py
1
# # Copyright (C) 2004, 2005 Red Hat, Inc. # Author: Thomas Woerner # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as published by # the Free Software Foundation; version 2 only # # This program is distributed in the hope that it w...
dymkowsk/mantid
refs/heads/master
scripts/Inelastic/dos/load_castep.py
3
#pylint: disable=redefined-builtin from __future__ import (absolute_import, division, print_function) from six.moves import range import re import numpy as np import dos.load_helper as load_helper def parse_castep_file(file_name, ir_or_raman): """ Read frequencies from a <>.castep file @param file_name...
weleen/mxnet
refs/heads/master
python/mxnet/contrib/ndarray.py
54
# 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...
infoxchange/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/utils/unittest/__main__.py
572
"""Main entry point""" import sys if sys.argv[0].endswith("__main__.py"): sys.argv[0] = "unittest2" __unittest = True from django.utils.unittest.main import main_ main_()
liangwang/m5
refs/heads/master
src/arch/x86/isa/insts/x87/control/save_x87_status_word.py
19
# Copyright (c) 2007 The Hewlett-Packard Development Company # 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 implemen...
djabber/Dashboard
refs/heads/master
bottle/dash/lib/python2.7/encodings/utf_16.py
404
""" Python 'utf-16' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import codecs, sys ### Codec APIs encode = codecs.utf_16_encode def decode(input, errors='strict'): return codecs.utf_16_decode(input, errors, True) class IncrementalEncoder(c...
romain-li/edx-platform
refs/heads/master
lms/djangoapps/certificates/__init__.py
29
""" Certificates app """ # this is here to support registering the signals in signals.py from . import signals
mistio/libcloud
refs/heads/trunk
docs/examples/dns/durabledns/instantiate_driver.py
35
from libcloud.dns.types import Provider from libcloud.dns.providers import get_driver cls = get_driver(Provider.DURABLEDNS) driver = cls('api_user', 'api_key')
stclair/wes-cms
refs/heads/master
filetransfers/templatetags/filetransfers.py
29
from django.template import Library from django.utils.safestring import mark_safe from ..api import public_download_url register = Library() _hidden_data_field = '<input type="hidden" name="%s" value="%s" />' @register.simple_tag def render_upload_data(data): inputs = ''.join(_hidden_data_field % item for item ...
xpansa/server-tools
refs/heads/8.0
database_cleanup/model/purge_tables.py
44
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2014 Therp BV (<http://therp.nl>). # # This program is free software: you can redistribute it and/or modify # it under the terms of ...
tinyHui/SearchEngine
refs/heads/master
app/SearchEngine/urls.py
2
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: url(r'^$', 'Pages.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), )
thilbern/scikit-learn
refs/heads/master
sklearn/feature_selection/rfe.py
3
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Vincent Michel <vincent.michel@inria.fr> # Gilles Louppe <g.louppe@gmail.com> # # License: BSD 3 clause """Recursive feature elimination for feature ranking""" import numpy as np from ..utils import check_X_y, safe_sqr from ..base import ...
alexandershuping/cabbage-bot
refs/heads/dev
util/StarFramework.py
1
import discord import cabbagerc as rc from discord.ext import commands from util.FlagFramework import FlagFramework from util.Logger import Logger from sql.cabbagebase import CabbageBase from datetime import datetime class StarThresholdError: ''' Thrown when a caller attempts to set the starboard threshold (the ...
usc-isi/extra-specs
refs/heads/master
nova/virt/vmwareapi_conn.py
2
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack LLC. # # 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 # # htt...
Floens/mpv
refs/heads/master
waftools/checks/__init__.py
12133432
saintbird/django-cms
refs/heads/develop
cms/test_utils/project/pluginapp/plugins/meta/migrations/__init__.py
12133432
rahushen/ansible
refs/heads/devel
test/units/playbook/role/__init__.py
12133432
hotpxl/caffe-m2
refs/heads/master
python/caffe/detection/__init__.py
12133432
ylcrow/poweron
refs/heads/master
src/config/__init__.py
12133432
ravindrapanda/tensorflow
refs/heads/master
tensorflow/contrib/hooks/__init__.py
147
# 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...
openpathsampling/openpathsampling
refs/heads/master
openpathsampling/analysis/__init__.py
3
from .path_histogram import PathHistogram, PathDensityHistogram from .channel_analysis import ChannelAnalysis from .replica_network import ReplicaNetwork, ReplicaNetworkGraph from .shooting_point_analysis import ShootingPointAnalysis from . import tis from . import tools
DICENetworks/DICE-pjsip
refs/heads/dice_master
tests/pjsua/scripts-sendto/300_srtp_receive_no_key_2.py
42
# $Id$ import inc_sip as sip import inc_sdp as sdp sdp = \ """ v=0 o=- 0 0 IN IP4 127.0.0.1 s=tester c=IN IP4 127.0.0.1 t=0 0 m=audio 4000 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=crypto:0 AES_CM_128_HMAC_SHA1_80 inline """ args = "--null-audio --auto-answer 20...
cortedeltimo/SickRage
refs/heads/master
lib/twilio/rest/resources/recordings.py
23
from .util import normalize_dates from .transcriptions import Transcriptions from .base import InstanceResource, ListResource class Recording(InstanceResource): subresources = [Transcriptions] def __init__(self, *args, **kwargs): super(Recording, self).__init__(*args, **kwargs) self.formats...
cs-au-dk/Artemis
refs/heads/master
WebKit/Source/WebKit2/Scripts/generate-messages-header.py
145
#!/usr/bin/env python # # Copyright (C) 2010 Apple 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: # 1. Redistributions of source code must retain the above copyright # notice, this list...
isandlaTech/cohorte-demos
refs/heads/dev
led/dump/led-demo-raspberry/cohorte/dist/cohorte-1.0.0-1.0.0-20141201.234602-19-python-distribution/repo/sleekxmpp/plugins/xep_0270.py
14
""" SleekXMPP: The Sleek XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of SleekXMPP. See the file LICENSE for copying permission. """ from sleekxmpp.plugins import BasePlugin, register_plugin class XEP_0270(BasePlugin): name = 'xep_0270' description ...
rmfitzpatrick/ansible
refs/heads/devel
lib/ansible/plugins/terminal/ce.py
122
# # (c) 2016 Red Hat 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. # # Ansible is d...
sch3m4/intelmq
refs/heads/master
intelmq/tests/bots/parsers/vxvault/__init__.py
12133432
fgirault/smeuhsocial
refs/heads/master
apps/threadedcomments_extras/__init__.py
12133432
astyl/wxPlotLab
refs/heads/master
mplotlab/models/slides.py
2
# -*-coding:Utf-8 -* from mplotlab.models.abcmodels import AModel from mplotlab.utils.abctypes import STRING,LIST,INT,RegisterType class ASlide(AModel): parametersInfo = list(AModel.parametersInfo) parametersInfo.extend([ ("title",STRING,lambda:"","figure title"), ("projections", LIS...
kevclarx/ansible
refs/heads/devel
lib/ansible/modules/cloud/ovirt/ovirt_external_providers_facts.py
45
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, 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 #...
Mega-DatA-Lab/mxnet
refs/heads/master
example/speech_recognition/main.py
44
# 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...
donaloconnor/bitcoin
refs/heads/master
test/functional/feature_versionbits_warning.py
13
#!/usr/bin/env python3 # Copyright (c) 2016-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test version bits warning system. Generate chains with block versions that appear to be signalling unk...
xiandiancloud/edx-platform
refs/heads/master
common/test/acceptance/tests/test_studio_acid_xblock.py
10
""" Acceptance tests for Studio related to the acid xblock. """ from unittest import skip from nose.plugins.attrib import attr from bok_choy.web_app_test import WebAppTest from ..pages.studio.auto_auth import AutoAuthPage from ..pages.studio.overview import CourseOutlinePage from ..pages.xblock.acid import AcidView fr...
junalmeida/Sick-Beard
refs/heads/master
lib/requests/packages/chardet/big5prober.py
2930
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client 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 R...
lafiter/wwmmo
refs/heads/master
website/bs4/diagnose.py
431
"""Diagnostic functions, mainly for use when doing tech support.""" import cProfile from StringIO import StringIO from HTMLParser import HTMLParser import bs4 from bs4 import BeautifulSoup, __version__ from bs4.builder import builder_registry import os import pstats import random import tempfile import time import tra...
ghtmtt/QGIS
refs/heads/master
tests/src/python/test_qgsmergedfeaturerenderer.py
19
# -*- coding: utf-8 -*- """QGIS Unit tests for QgsMergedFeatureRenderer .. 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 License, or (at your option) any later versio...
vi/enki
refs/heads/master
tests/run_all.py
1
#!/usr/bin/env python import unittest import persistent_qapplication if __name__ == "__main__": # Look for all tests. Using test_* instead of test_*.py finds modules (test_syntax and test_indenter). suite = unittest.TestLoader().discover('.', pattern = "test_*") unittest.TextTestRunner(verbosity=2).run(su...
ThiagoGarciaAlves/erpnext
refs/heads/develop
erpnext/accounts/report/sales_partners_commission/__init__.py
12133432
ifduyue/django
refs/heads/master
tests/fixtures_regress/__init__.py
12133432
schatt/zulip
refs/heads/master
zerver/management/commands/fill_memcached_caches.py
121
from __future__ import absolute_import from optparse import make_option from django.core.management.base import BaseCommand from zerver.lib.cache_helpers import fill_memcached_cache, cache_fillers class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--cache', dest="cache", de...
topiaruss/django-filer
refs/heads/develop
runtests.py
5
#!/usr/bin/env python from filer.test_utils.cli import configure from filer.test_utils.tmpdir import temp_dir import argparse import sys import warnings def main(verbosity=1, failfast=False, test_labels=None, migrate=False): verbosity = int(verbosity) with temp_dir() as STATIC_ROOT: with temp_dir() as...
kangkot/arangodb
refs/heads/devel
3rdParty/V8-4.3.61/third_party/python_26/Tools/scripts/setup.py
95
from distutils.core import setup if __name__ == '__main__': setup( scripts=[ 'byteyears.py', 'checkpyc.py', 'copytime.py', 'crlf.py', 'dutree.py', 'ftpmirror.py', 'h2py.py', 'lfcr.py', '../i18n/pygettext.py', 'logmerge.py', ...
petermatyas/timelapse
refs/heads/master
video.py
1
#!/usr/bin/python import os import time import getpass #=== Config ============================================================================================== framerate = "24" startDay = "20160201" stopDay = "20190128" textSize = "100" # resolution = "1080x720" # 1080x720| originalRes ...
diogocs1/comps
refs/heads/master
web/addons/hr_attendance/wizard/__init__.py
375
# -*- 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...
hkariti/ansible
refs/heads/devel
lib/ansible/modules/cloud/vultr/vr_startup_script.py
39
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2018, René Moser <mail@renemoser.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type ANSIBLE_METADATA = {'metadata_version':...
hanjihun/Car
refs/heads/master
seguroweb_com_ar/seguroweb_com_ar/spiders/categories_of_seguroweb_com_ar.py
1
import scrapy from scrapy import Request, FormRequest from urlparse import urlparse from collections import OrderedDict from datetime import date import time, json, re, csv class CategoriesOfSegurowebComAr(scrapy.Spider): name = "categories_of_seguroweb_com_ar" start_urls = ['http://seguroweb.com.ar/autos/'] ...
fredericlepied/ansible
refs/heads/devel
lib/ansible/module_utils/exoscale.py
88
# -*- coding: utf-8 -*- # # (c) 2016, René Moser <mail@renemoser.net> # # This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the aut...
Belxjander/Kirito
refs/heads/master
Python-3.5.0-main/Lib/idlelib/Debugger.py
76
import os import bdb from tkinter import * from idlelib.WindowList import ListedToplevel from idlelib.ScrolledList import ScrolledList from idlelib import macosxSupport class Idb(bdb.Bdb): def __init__(self, gui): self.gui = gui bdb.Bdb.__init__(self) def user_line(self, frame): if s...
HBEE/odoo-addons
refs/heads/8.0
inter_company_rules/models/res_config.py
9
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in module root # directory ############################################################################## from openerp import models, fields, api class int...
Architektor/PySnip
refs/heads/master
venv/lib/python2.7/site-packages/twisted/mail/test/test_options.py
2
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.mail.tap}. """ from twisted.trial.unittest import TestCase from twisted.python.usage import UsageError from twisted.mail import protocols from twisted.mail.tap import Options, makeService from twisted.python.filepath impo...
proversity-org/edx-platform
refs/heads/master
common/djangoapps/third_party_auth/migrations/0015_samlproviderconfig_archived.py
17
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('third_party_auth', '0014_auto_20171222_1233'), ] operations = [ migrations.AddField( model_name='samlprovidercon...
ryfeus/lambda-packs
refs/heads/master
Tensorflow_Pandas_Numpy/source3.6/tensorboard/plugins/beholder/visualizer.py
4
# 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...
webspinner/webspinner-gae-cms
refs/heads/master
gdata/tlslite/integration/POP3_TLS.py
271
"""TLS Lite + poplib.""" import socket from poplib import POP3 from gdata.tlslite.TLSConnection import TLSConnection from gdata.tlslite.integration.ClientHelper import ClientHelper # POP TLS PORT POP3_TLS_PORT = 995 class POP3_TLS(POP3, ClientHelper): """This class extends L{poplib.POP3} with TLS support.""" ...
saschpe/rapport
refs/heads/master
test/unit/__init__.py
12133432
leiferikb/bitpop
refs/heads/master
build/scripts/slave/swarming/__init__.py
12133432
alxnov/ansible-modules-core
refs/heads/devel
source_control/__init__.py
12133432
calfonso/ansible
refs/heads/devel
test/units/parsing/__init__.py
12133432
yannrouillard/weboob
refs/heads/master
modules/ups/backend.py
2
# -*- coding: utf-8 -*- # Copyright(C) 2013 Romain Bignon # # This file is part of weboob. # # weboob 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 License, or # (at your...
igemsoftware/SYSU-Software2013
refs/heads/master
project/Python27/Lib/site-packages/win32comext/propsys/pscon.py
21
# hand generated from propsys.h PET_DISCRETEVALUE = 0 PET_RANGEDVALUE = 1 PET_DEFAULTVALUE = 2 PET_ENDRANGE = 3 PDTF_DEFAULT = 0 PDTF_MULTIPLEVALUES = 0x1 PDTF_ISINNATE = 0x2 PDTF_ISGROUP = 0x4 PDTF_CANGROUPBY = 0x8 PDTF_CANSTACKBY = 0x10 PDTF_ISTREEPROPERTY = 0x20 PDTF_INCLUDEINFULLTEXTQUERY = 0x40 PDTF_ISVIEWABLE = 0...
espadrine/opera
refs/heads/master
chromium/src/third_party/python_26/Lib/site-packages/win32/Demos/dde/ddeserver.py
34
# 'Request' example added jjk 11/20/98 import win32ui from pywin.mfc import object import dde class MySystemTopic(object.Object): def __init__(self): object.Object.__init__(self, dde.CreateServerSystemTopic()) def Exec(self, cmd): print "System Topic asked to exec", cmd class MyOtherTopic(object.Object): de...
yazanobeidi/sentience
refs/heads/master
src/python/memory/dnc/util.py
3
# Copyright 2017 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 writing,...
nectR-Tutoring/nectr
refs/heads/new_development
nectr/skills/models.py
1
from django.db import models # Create your models here. class Skills(models.Model): skill = models.CharField(max_length=30) def __str__(self): return self.skill
ArcherSys/ArcherSys
refs/heads/master
Lib/encodings/idna.py
1
<<<<<<< HEAD <<<<<<< HEAD # This module implements the RFCs 3490 (IDNA) and 3491 (Nameprep) import stringprep, re, codecs from unicodedata import ucd_3_2_0 as unicodedata # IDNA section 3.1 dots = re.compile("[\u002E\u3002\uFF0E\uFF61]") # IDNA section 5 ace_prefix = b"xn--" sace_prefix = "xn--" # This assumes quer...
alanch-ms/PTVS
refs/heads/master
Python/Tests/TestData/InconsistentIndentation/Program.py
7
def f(): print('hello') print('goodbye')
romses/LXC-Web-Panel
refs/heads/master
lwp/views/main.py
1
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import os import re import time import socket import subprocess import ConfigParser from flask import Blueprint, request, session, g, redirect, url_for, abort, render_template, flash, jsonify import lwp import lwp.lxclite as lxc from lwp.u...
FrodeSolheim/fs-uae-launcher
refs/heads/master
workspace/apps/__init__.py
12133432
CatoTH/OpenSlides
refs/heads/master
server/openslides/chat/views.py
5
from django.conf import settings from django.contrib.auth.models import AnonymousUser from rest_framework.utils.serializer_helpers import ReturnDict from openslides.utils.auth import has_perm from openslides.utils.autoupdate import ( disable_history, inform_changed_data, inform_deleted_data, ) from opensli...
flavour/tldrmp
refs/heads/master
modules/tests/volunteer/__init__.py
28
from volunteer import * from create_volunteer_job_title import * from create_volunteer_programme import * from create_volunteer_skill import * from create_volunteer_certificate import * from create_volunteer import * from create_volunteer_training import * from volunteer_search import * from export_volunteers import *
razvanphp/arangodb
refs/heads/devel
3rdParty/V8-3.31.74.1/third_party/python_26/Lib/encodings/iso8859_10.py
593
""" Python Character Mapping Codec iso8859_10 generated from 'MAPPINGS/ISO8859/8859-10.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors...
18098924759/Wox
refs/heads/master
PythonHome/Lib/site-packages/pip/_vendor/requests/packages/chardet/cp949prober.py
2800
######################## 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...
ZeitOnline/zeit.content.cp
refs/heads/master
src/zeit/content/cp/tests/__init__.py
9480
#
olegvg/telebot
refs/heads/master
telebot/storage/__init__.py
1
# -*- coding: utf-8 -*- import abc import logging from telebot import config, utils logger = logging.getLogger('storage') class StorageMixin(object): __metaclass__ = utils.AbstractSingletonMeta @abc.abstractmethod def get_by_key(self, key, default=None): pass @abc.abstractmethod def se...
kmod/icbd
refs/heads/master
icbd/type_analyzer/tests/imports.py
1
import basic # 7 module 'basic' a = basic.a # 0 int import sys # 7 module 'sys' sys # 0 module 'sys' import os.path os # 0 module 'os' p = path # 0 <unknown> # 4 <unknown> # e 4 from os import path path # 0 module 'path' import os.doesnt_exist # e 0 from foo import bar # e 0 # 5 <unknown> # 16 <unknown> bar # 0 <u...
ivanalejandro0/RequireType
refs/heads/master
tests/__init__.py
12133432
alihanniba/pythonDemo
refs/heads/master
qqSpider/dynamic_spider.py
1
#!/usr/bin/python #_*_ coding:utf8 _*_ import requests import re import json head = {'User-Agent': \ 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36'} start_url = 'http://v.qq.com/cover/n/nvblqd32r7lr8x6.html?vid=x0018h9wuat' commet_url = 'http...
simonjbeaumont/sm
refs/heads/master
tests/lvhd_test/logger.py
12
#!/usr/bin/python logger = None
olatoft/reverse-hangman
refs/heads/master
lib/python3.5/site-packages/pip/cmdoptions.py
136
""" shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this de...
pnichols104/python-koans
refs/heads/master
python3/runner/mountain.py
127
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import sys from . import path_to_enlightenment from .sensei import Sensei from .writeln_decorator import WritelnDecorator class Mountain: def __init__(self): self.stream = WritelnDecorator(sys.stdout) self.tests = path_to_enlightenment...
ngoix/OCRF
refs/heads/master
doc/datasets/rcv1_fixture.py
238
"""Fixture module to skip the datasets loading when offline The RCV1 data is rather large and some CI workers such as travis are stateless hence will not cache the dataset as regular sklearn users would do. The following will skip the execution of the rcv1.rst doctests if the proper environment variable is configured...
yury-s/v8-inspector
refs/heads/master
Source/chrome/tools/telemetry/telemetry/value/skip.py
8
# Copyright 2014 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. from telemetry import value as value_module class SkipValue(value_module.Value): def __init__(self, page, reason, description=None): """A value repr...
mafiya69/sympy
refs/heads/master
sympy/matrices/expressions/determinant.py
92
from __future__ import print_function, division from sympy import Basic, Expr, S, sympify from .matexpr import ShapeError class Determinant(Expr): """Matrix Determinant Represents the determinant of a matrix expression. >>> from sympy import MatrixSymbol, Determinant, eye >>> A = MatrixSymbol('A', ...
ubic135/odoo-design
refs/heads/master
addons/web_view_editor/__openerp__.py
423
{ 'name': 'View Editor', 'category': 'Hidden', 'description': """ OpenERP Web to edit views. ========================== """, 'version': '2.0', 'depends':['web'], 'data' : [ 'views/web_view_editor.xml', ], 'qweb': ['static/src/xml/view_editor.xml'], 'auto_install': Tr...
meawoppl/babyfood
refs/heads/master
babyfood/pcb/__init__.py
12133432
ShiYw/Sigil
refs/heads/master
3rdparty/python/Lib/test/test_curses.py
10
# # Test script for the curses module # # This script doesn't actually display anything very coherent. but it # does call (nearly) every method and function. # # Functions not tested: {def,reset}_{shell,prog}_mode, getch(), getstr(), # init_color() # Only called, not tested: getmouse(), ungetmouse() # import os import...
JoseALermaIII/python-tutorials
refs/heads/master
pythontutorials/books/AutomateTheBoringStuff/Ch13/P5_readDocx.py
1
#! python3 """Read docx Accepts a filename of a .docx file and returns a single string value of its text. Note: * Example .docx files can be downloaded from http://nostarch.com/automatestuff/ """ import docx def getText(filename: str) -> str: """Get text Gets text from a given .docx file. Args: ...
marctc/django-blog-zinnia
refs/heads/develop
zinnia/flags.py
9
"""Comment flags for Zinnia""" from django.utils.lru_cache import lru_cache from django.contrib.auth import get_user_model from zinnia.settings import COMMENT_FLAG_USER_ID PINGBACK = 'pingback' TRACKBACK = 'trackback' FLAGGER_USERNAME = 'Zinnia-Flagger' @lru_cache(1) def get_user_flagger(): """ Return an Us...
Pluto-tv/chromium-crosswalk
refs/heads/master
tools/telemetry/telemetry/internal/actions/play.py
32
# 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. """A Telemetry page_action that performs the "play" action on media elements. Media elements can be specified by a selector argument. If no selector is defi...
afronski/grammar-generator
refs/heads/master
grammar-generator/Elements/STG/Factories/StgSortingElementsFactory.py
1
from Elements.STG.Factories.Base.IStgClausesElementsFactory import IStgClausesElementsFactory from Elements.STG.Sorting.SortingSpecifiedColumnElementForStg import SortingSpecifiedColumnElementForStg from Elements.STG.Sorting.SortingElementWithColumnIdForStg import SortingElementWithColumnIdForStg from Elements.STG.Sort...
tailorian/Sick-Beard
refs/heads/ThePirateBay
sickbeard/notifiers/tweet.py
11
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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...
maestrano/odoo
refs/heads/master
addons/hw_escpos/controllers/main.py
125
# -*- coding: utf-8 -*- import commands import logging import simplejson import os import os.path import io import base64 import openerp import time import random import math import md5 import openerp.addons.hw_proxy.controllers.main as hw_proxy import pickle import re import subprocess import traceback from threading ...
Denisolt/Tensorflow_Chat_Bot
refs/heads/master
local/lib/python2.7/site-packages/scipy/constants/setup.py
159
from __future__ import division, print_function, absolute_import def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('constants', parent_package, top_path) config.add_data_dir('tests') return config if __name__ == '__main__'...
vlachoudis/sl4a
refs/heads/master
python-build/python-libs/gdata/tests/all_tests_coverage.py
87
#!/usr/bin/env python # # Copyright (C) 2009 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...
opencloudinfra/orchestrator
refs/heads/master
venv/Lib/site-packages/wheel/test/test_tagopt.py
326
""" Tests for the bdist_wheel tag options (--python-tag, --universal, and --plat-name) """ import sys import shutil import pytest import py.path import tempfile import subprocess SETUP_PY = """\ from setuptools import setup, Extension setup( name="Test", version="1.0", author_email="author@example.com", ...
unaizalakain/django
refs/heads/master
django/contrib/gis/utils/__init__.py
327
""" This module contains useful utilities for GeoDjango. """ from django.contrib.gis.gdal import HAS_GDAL from django.contrib.gis.utils.wkt import precision_wkt # NOQA if HAS_GDAL: from django.contrib.gis.utils.ogrinfo import ogrinfo, sample # NOQA from django.contrib.gis.utils.ogrinspect import mapping, og...