repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
joecheng511/try-wagtail
refs/heads/master
mysite/search/views.py
36
from __future__ import absolute_import, unicode_literals from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.shortcuts import render from wagtail.wagtailcore.models import Page from wagtail.wagtailsearch.models import Query def search(request): search_query = request.GET.get('qu...
40223137/w1717
refs/heads/master
static/Brython3.1.3-20150514-095342/Lib/multiprocessing/dummy/__init__.py
693
# # Support for the API of the multiprocessing package using threads # # multiprocessing/dummy/__init__.py # # Copyright (c) 2006-2008, R Oudkerk # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: ...
wahaha02/myblog
refs/heads/master
south/utils.py
2
""" Generally helpful utility functions. """ def _ask_for_it_by_name(name): "Returns an object referenced by absolute path." bits = name.split(".") ## what if there is no absolute reference? if len(bits)>1: modulename = ".".join(bits[:-1]) else: modulename=bits[0] mod...
MarcosPividori/atomspace
refs/heads/master
examples/python/scheme_timer.py
10
#! /usr/bin/env python """ Checks the execution time of repeated calls to the Scheme API from Python Runs an empty Scheme command NUMBER_OF_ITERATIONS times and displays the total execution time """ __author__ = 'Cosmo Harrigan' NUMBER_OF_ITERATIONS = 50000 from opencog.atomspace import AtomSpace, TruthValue, type...
sri85/selenium
refs/heads/master
py/selenium/webdriver/remote/__init__.py
2454
# 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...
haitaka/DroiTaka
refs/heads/rebuild
cogs/utils/formats.py
1
async def entry_to_code(bot, entries): width = max(map(lambda t: len(t[0]), entries)) output = ['```'] fmt = '{0:<{width}}: {1}' for name, entry in entries: output.append(fmt.format(name, entry, width=width)) output.append('```') await bot.say('\n'.join(output)) async def too_many_match...
AladdinSonni/phantomjs
refs/heads/master
src/qt/qtwebkit/Tools/QueueStatusServer/handlers/dashboard.py
140
# Copyright (C) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the...
tuxfux-hlp-notes/python-batches
refs/heads/master
archieves/batch-64/15-files/myenv/lib/python2.7/fnmatch.py
4
/usr/lib/python2.7/fnmatch.py
rparrapy/sugar
refs/heads/master
tests/test_modemconfiguration.py
12
# -*- encoding: utf-8 -*- # Copyright (C) 2013, Miguel González # # 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 version. # # Th...
Grirrane/odoo
refs/heads/master
addons/product_margin/__openerp__.py
7
# -*- 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...
pythonistas-tw/academy
refs/heads/master
web-api/hsiao/test-api.py
1
import os import api import unittest import tempfile class APITestCase(unittest.TestCase): def setUp(self): self.app = api.app.test_client() def tearDown(self): pass def test_simple_alrithmatic(self): operation_list=["sum","minus","multiply","divide"] correct_values_results_...
evan-mp/django_local_library
refs/heads/master
locallibrary/settings.py
1
""" Django settings for locallibrary project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import...
fourdollars/dell-recovery
refs/heads/master
late/scripts/wodim-iso.py
3
#! /usr/bin/env python3 # # Copyright (C) 2015 Canonical Limited # Author: Shih-Yuan Lee (FourDollars) <sylee@canonical.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of...
dvliman/jaikuengine
refs/heads/master
.google_appengine/lib/django_1_2/django/contrib/gis/tests/relatedapp/__init__.py
12133432
GheRivero/ansible
refs/heads/devel
lib/ansible/modules/network/edgeos/__init__.py
12133432
uclouvain/osis
refs/heads/dev
assessments/tests/calendar/__init__.py
12133432
yfried/ansible
refs/heads/devel
lib/ansible/module_utils/net_tools/nios/__init__.py
12133432
alongwithyou/auto-sklearn
refs/heads/master
autosklearn/external/__init__.py
12133432
cherusk/fleutan
refs/heads/master
fleutan/__init__.py
1
from .fleutan import run
HeraclesHX/scikit-learn
refs/heads/master
sklearn/datasets/tests/test_covtype.py
335
"""Test the covtype loader. Skipped if covtype is not already downloaded to data_home. """ import errno from sklearn.datasets import fetch_covtype from sklearn.utils.testing import assert_equal, SkipTest def fetch(*args, **kwargs): return fetch_covtype(*args, download_if_missing=False, **kwargs) def test_fetc...
kivatu/kivy-bak
refs/heads/master
kivy/input/motionevent.py
6
''' .. _motionevent: Motion Event ============ The :class:`MotionEvent` is the base class used for every touch and non-touch event. This class defines all the properties and methods needed to handle 2D and 3D movements but has many more capabilities. .. note:: You never create the :class:`MotionEvent` yourself:...
foursquare/luigi
refs/heads/fs-2.7.8
luigi/local_target.py
14
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
piotroxp/scibibscan
refs/heads/master
scib/lib/python3.5/site-packages/pip/_vendor/html5lib/treebuilders/__init__.py
1730
"""A collection of modules for building different kinds of tree from HTML documents. To create a treebuilder for a new type of tree, you need to do implement several things: 1) A set of classes for various types of elements: Document, Doctype, Comment, Element. These must implement the interface of _base.treebuilders...
kevinpt/ripyl
refs/heads/master
ripyl/decode.py
1
#!/usr/bin/python # -*- coding: utf-8 -*- '''General routines shared between decoders ''' # Copyright © 2013 Kevin Thibedeau # This file is part of Ripyl. # Ripyl 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...
TeamTwisted/external_chromium_org
refs/heads/opti-5.1
tools/perf/benchmarks/image_decoding.py
44
# 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. from telemetry import benchmark from measurements import image_decoding import page_sets class ImageDecodingToughImageCases(benchmark.Benchmark): test =...
3dconv/keras
refs/heads/master
keras/utils/np_utils.py
86
from __future__ import absolute_import import numpy as np import scipy as sp from six.moves import range from six.moves import zip def to_categorical(y, nb_classes=None): '''Convert class vector (integers from 0 to nb_classes) to binary class matrix, for use with categorical_crossentropy ''' y = np.as...
edkent/cloud-copasi
refs/heads/master
cloud_copasi/web_interface/migrations/0010_auto__add_field_profile_task_emails__add_field_profile_pool_emails.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 'Profile.task_emails' db.add_column(u'web_interface_profile', 'task_emails', ...
Verteiron/JContainers
refs/heads/master
JContainers/lib/boost/tools/build/v2/util/regex.py
34
# (C) Copyright David Abrahams 2001. Permission to copy, use, modify, sell and # distribute this software is granted provided this copyright notice appears in # all copies. This software is provided "as is" without express or implied # warranty, and with no claim as to its suitability for any purpose. import re d...
SerCeMan/intellij-community
refs/heads/master
python/testData/debug/Test_Resume.py
80
def foo(x): print(x) foo(1) foo(2)
abadger/ansible
refs/heads/devel
test/units/galaxy/test_collection_install.py
15
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import copy import json import os import py...
faux123/kernel-msm
refs/heads/lollipop-5.0.2-release-victara
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. ...
CEG-FYP-OpenStack/scheduler
refs/heads/master
nova/tests/unit/objects/test_resource_provider.py
10
# 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...
reinhrst/panda
refs/heads/master
usr/lib/python2.7/lib-tk/tkFileDialog.py
196
# # Instant Python # $Id: tkFileDialog.py 36560 2004-07-18 06:16:08Z tim_one $ # # tk common file dialogues # # this module provides interfaces to the native file dialogues # available in Tk 4.2 and newer, and the directory dialogue available # in Tk 8.3 and newer. # # written by Fredrik Lundh, May 1997. # # # options...
cboling/SDNdbg
refs/heads/master
docs/old-stuff/pydzcvr/doc/neutron/plugins/nec/common/config.py
7
# Copyright 2012 NEC Corporation. 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 ...
mjwtom/swift
refs/heads/master
test/unit/account/__init__.py
12133432
zhaodelong/django
refs/heads/master
django/conf/locale/nb/__init__.py
12133432
michaelgichia/WeideShop
refs/heads/master
weideshop/tests/products/__init__.py
12133432
myahmao/PokemonGo-Map
refs/heads/master
pogom/pgoapi/protos/__init__.py
12133432
beiko-lab/gengis
refs/heads/master
bin/Lib/site-packages/scipy/linalg/basic.py
1
# # Author: Pearu Peterson, March 2002 # # w/ additions by Travis Oliphant, March 2002 # and Jake Vanderplas, August 2012 from __future__ import division, print_function, absolute_import __all__ = ['solve', 'solve_triangular', 'solveh_banded', 'solve_banded', 'inv', 'det', 'lstsq', '...
twoolie/ProjectNarwhal
refs/heads/master
narwhal/core/torrent/models.py
1
# -*- coding: utf-8 -*- from django.db.models import * from django.core.cache import cache from django.utils.encoding import smart_unicode from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError from django.template.defaultfilters import slugify from treebeard.mp_tre...
nikhil/RAS
refs/heads/master
env/lib/python3.5/site-packages/pip/_vendor/requests/packages/chardet/escprober.py
2935
######################## 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...
ngokevin/zamboni
refs/heads/master
mkt/carriers/__init__.py
7
from .carriers import * from mkt.constants.carriers import *
holtgrewe/seqan
refs/heads/master
misc/seqan_instrumentation/py2exe/dist/classes/requests/async.py
33
# -*- coding: utf-8 -*- """ requests.async ~~~~~~~~~~~~~~ This module contains an asynchronous replica of ``requests.api``, powered by gevent. All API methods return a ``Request`` instance (as opposed to ``Response``). A list of requests can be sent with ``map()``. """ try: import gevent from gevent import m...
lasalesi/erpnext
refs/heads/develop
erpnext/schools/doctype/guardian_interest/__init__.py
12133432
endorphinl/horizon
refs/heads/master
openstack_dashboard/contrib/sahara/content/data_processing/wizard/__init__.py
12133432
mxtthias/mcomix
refs/heads/master
setup.py
2
#!/usr/bin/env python # -*- coding: utf-8 -*- """ MComix installation routines. Example usage: Normal installation (all files are copied into a directory in python/lib/site-packages/mcomix) $ ./setup.py install For distribution packaging (All files are installed relative to /tmp/mcomix) $ ./setup.py ...
evidation-health/bokeh
refs/heads/master
bokeh/colors.py
62
import colorsys class Color(object): def copy(self): raise NotImplementedError def __repr__(self): return self.to_css() def to_css(self): raise NotImplementedError def to_rgb(self): raise NotImplementedError def to_hsl(self): raise NotImplementedError ...
BryanMums/MovieQuizz
refs/heads/master
moviequizz/ressources/__init__.py
12133432
Xindictus/Simple-Web-Based-Interface-CRUD
refs/heads/master
classes/entities/__init__.py
12133432
defionscode/ansible
refs/heads/devel
lib/ansible/modules/cloud/oneandone/__init__.py
12133432
CYBAI/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/manifest/tests/__init__.py
12133432
muntasirsyed/intellij-community
refs/heads/master
python/testData/refactoring/move/conditionalImportFromPackageToPackage/after/src/pkg2/pkg1/mod2.py
12133432
joshblum/the-librarian
refs/heads/master
librarian/__init__.py
12133432
JPJPJPOPOP/zulip
refs/heads/master
zerver/lib/url_preview/__init__.py
12133432
apache/thrift
refs/heads/master
lib/py/src/protocol/TBase.py
9
# # 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...
ostcar/OpenSlides
refs/heads/master
server/tests/integration/assignments/__init__.py
12133432
iwoca/django-deep-collector
refs/heads/develop
deep_collector/compat/serializers/__init__.py
1
import django if django.VERSION < (1, 7): from .django_1_6 import CustomizableLocalFieldsSerializer elif django.VERSION < (1, 9): from .django_1_7 import CustomizableLocalFieldsSerializer else: from .django_1_9 import CustomizableLocalFieldsSerializer class MultiModelInheritanceSerializer(CustomizableL...
BMJHayward/django
refs/heads/master
tests/postgres_tests/test_aggregates.py
307
from django.contrib.postgres.aggregates import ( ArrayAgg, BitAnd, BitOr, BoolAnd, BoolOr, Corr, CovarPop, RegrAvgX, RegrAvgY, RegrCount, RegrIntercept, RegrR2, RegrSlope, RegrSXX, RegrSXY, RegrSYY, StatAggregate, StringAgg, ) from django.db.models.expressions import F, Value from django.test.utils import A...
blmousee/pyctp
refs/heads/master
example/pyctp2/trader/environ.py
7
# -*- coding:utf-8 -*- ''' 基础框架数据结构 在此层次之上, 为策略组织层 对于交易节的处理 比如在8:59-9:00, 10:15-10:30, 11:30-13:30的间断时间, 通过延迟发送的方式来处理 并订阅tick时间驱动的事件 ''' import logging import threading import time import collections from random import randint from functools import reduce from ..common.base import (LONG,...
mttr/django
refs/heads/master
tests/utils_tests/test_timesince.py
293
from __future__ import unicode_literals import datetime import unittest from django.test.utils import requires_tz_support from django.utils import timezone from django.utils.timesince import timesince, timeuntil class TimesinceTests(unittest.TestCase): def setUp(self): self.t = datetime.datetime(2007, ...
0Chencc/CTFCrackTools
refs/heads/master
Lib/Lib/dumbdbm.py
251
"""A dumb and slow but simple dbm clone. For database spam, spam.dir contains the index (a text file), spam.bak *may* contain a backup of the index (also a text file), while spam.dat contains the data (a binary file). XXX TO DO: - seems to contain a bug when updating... - reclaim free space (currently, space once o...
rackerlabs/python-proboscis
refs/heads/master
run_unit_tests.py
2
import unittest import sys from tests.unit.test_asserts import * if sys.version >= "2.6": # These tests use "with". from tests.unit.test_check import * from tests.unit.test_core import * if sys.version >= "2.6": # These tests use "with". from tests.unit.test_check import * from tests.unit.test_core_with i...
mattcongy/itshop
refs/heads/master
docker-images/taigav2/taiga-back/taiga/timeline/migrations/0004_auto_20150603_1312.py
21
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('timeline', '0003_auto_20150410_0829'), ] operations = [ migrations.AlterField( model_name='timeline', ...
lucienfostier/gaffer
refs/heads/master
python/GafferUI/BoxPlugValueWidget.py
7
########################################################################## # # Copyright (c) 2014, Image Engine Design 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: # # * Redistrib...
leighpauls/k2cro4
refs/heads/master
third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/metered_stream_unittest.py
1
#!/usr/bin/python # Copyright (C) 2010, 2012 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 lis...
oinopion/django
refs/heads/master
tests/template_tests/test_custom.py
15
from __future__ import unicode_literals import os from django.template import Context, Engine, TemplateSyntaxError from django.template.base import Node from django.template.library import InvalidTemplateLibrary from django.test import SimpleTestCase, ignore_warnings from django.test.utils import extend_sys_path from...
sergey-dryabzhinsky/dedupsqlfs
refs/heads/master
lib-dynload/_recordclass/lib/recordclass/test/test_litelist.py
1
import unittest from recordclass import litelist import gc import pickle import sys class litelistTest(unittest.TestCase): def test_len(self): a = litelist([]) self.assertEqual(len(a), 0) a = litelist([1]) self.assertEqual(len(a), 1) def test_items(self): a = ...
matthieudumont/dipy
refs/heads/master
dipy/segment/tests/test_adjustment.py
18
import numpy as np from numpy import zeros from dipy.segment.threshold import upper_bound_by_percent, upper_bound_by_rate from numpy.testing import assert_equal, run_module_suite def test_adjustment(): imga = zeros([128, 128]) for y in range(128): for x in range(128): if y > 10 and y < 1...
AuyaJackie/odoo
refs/heads/8.0
addons/website/tests/__init__.py
396
# -*- coding: utf-8 -*- import test_converter import test_crawl import test_ui import test_views
martinsbalodis/warc-tools
refs/heads/master
hanzo/warctools/mixed.py
3
from hanzo.warctools.record import ArchiveRecord, ArchiveParser from hanzo.warctools.warc import WarcParser from hanzo.warctools.arc import ArcParser class MixedRecord(ArchiveRecord): @classmethod def make_parser(self): return MixedParser() class MixedParser(ArchiveParser): def __init__(self): ...
cogmission/nupic
refs/heads/master
examples/opf/clients/hotgym/anomaly/one_gym/run.py
34
#!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions ...
Islast/BrainNetworksInPython
refs/heads/master
tests/graph_measures_test.py
1
import unittest import networkx as nx import numpy as np import scona.make_graphs as mkg import scona.graph_measures as gm class Partitioning(unittest.TestCase): @classmethod def setUpClass(self): self.karate = nx.karate_club_graph() self.totalpart = {x: [x] for x in list(self.karate.nodes)} ...
DreamerKing/LightweightHtmlWidgets
refs/heads/master
LightweightHtmlWidgets/bin/Debug/Ipy.Lib/distutils/dist.py
75
"""distutils.dist Provides the Distribution class, which represents the module distribution being built/installed/distributed. """ __revision__ = "$Id$" import sys, os, re from email import message_from_file try: import warnings except ImportError: warnings = None from distutils.errors import (DistutilsOpt...
shanemcd/ansible
refs/heads/devel
lib/ansible/module_utils/crypto.py
6
# -*- coding: utf-8 -*- # # (c) 2016, Yanis Guenane <yanis+ansible@guenane.org> # # 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 vers...
ATNF/askapsdp
refs/heads/master
Code/Components/Synthesis/synthesis/current/build.py
14
# @file # build script for AutoBuild from askapdev.rbuild.builders import Scons as Builder b = Builder(".") b.build()
Kazade/NeHe-Website
refs/heads/master
google_appengine/lib/django-1.4/django/views/generic/create_update.py
87
from django.forms.models import ModelFormMetaclass, ModelForm from django.template import RequestContext, loader from django.http import Http404, HttpResponse, HttpResponseRedirect from django.core.xheaders import populate_xheaders from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured from django....
crepererum/invenio
refs/heads/master
invenio/modules/bulletin/format_elements/bfe_webjournal_rss.py
13
# -*- coding: utf-8 -*- # $Id: bfe_webjournal_widget_whatsNew.py,v 1.24 2009/01/27 07:25:12 jerome Exp $ # # This file is part of Invenio. # Copyright (C) 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 t...
franciscoruiz/django-nose
refs/heads/master
testapp/test_only_this.py
14
"""Django's test runner won't find this, but nose will.""" def test_multiplication(): """Check some advanced maths.""" assert 2 * 2 == 4
Jusedawg/SickRage
refs/heads/develop
lib/unidecode/x05f.py
252
data = ( 'Kai ', # 0x00 'Bian ', # 0x01 'Yi ', # 0x02 'Qi ', # 0x03 'Nong ', # 0x04 'Fen ', # 0x05 'Ju ', # 0x06 'Yan ', # 0x07 'Yi ', # 0x08 'Zang ', # 0x09 'Bi ', # 0x0a 'Yi ', # 0x0b 'Yi ', # 0x0c 'Er ', # 0x0d 'San ', # 0x0e 'Shi ', # 0x0f 'Er ', # 0x10 'Shi ', ...
ESS-LLP/erpnext
refs/heads/develop
erpnext/erpnext_integrations/doctype/quickbooks_migrator/__init__.py
12133432
EWol234/osmc
refs/heads/master
package/mediacenter-addon-osmc/src/script.module.osmcsetting.services/resources/lib/__init__.py
12133432
nrcharles/poplar
refs/heads/master
poplar/__init__.py
12133432
Reddine/dzlibs
refs/heads/master
tweeza/frontend/models.py
12133432
mikeurbanski/django-inlines
refs/heads/master
tests/test_app/views.py
12133432
cloudera/hue
refs/heads/master
desktop/core/ext-py/requests-kerberos-0.12.0/requests_kerberos/kerberos_.py
2
try: import kerberos except ImportError: import winkerberos as kerberos import logging import threading import re import sys import warnings from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.exceptions impo...
lz1988/django-web2015
refs/heads/master
build/lib/django/contrib/gis/db/backends/spatialite/client.py
623
from django.db.backends.sqlite3.client import DatabaseClient class SpatiaLiteClient(DatabaseClient): executable_name = 'spatialite'
keithroe/vtkoptix
refs/heads/master
ThirdParty/Twisted/twisted/internet/ssl.py
31
# -*- test-case-name: twisted.test.test_ssl -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This module implements Transport Layer Security (TLS) support for Twisted. It requires U{PyOpenSSL <https://pypi.python.org/pypi/pyOpenSSL>}. If you wish to establish a TLS connection, please u...
RockySteveJobs/python-for-android
refs/heads/master
python-modules/twisted/twisted/cred/portal.py
60
# -*- test-case-name: twisted.test.test_newcred -*- # Copyright (c) 2001-2007 Twisted Matrix Laboratories. # See LICENSE for details. """ The point of integration of application and authentication. """ from twisted.internet import defer from twisted.internet.defer import maybeDeferred from twisted.python import fai...
ldgarcia/django-allauth
refs/heads/master
allauth/socialaccount/providers/linkedin_oauth2/__init__.py
12133432
allure-framework/allure-python
refs/heads/master
allure-pytest/test/acceptance/duration/__init__.py
12133432
toddw-as/pySIM
refs/heads/master
PCSCHandle.py
2
# This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. import _PCSCHandle def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "this"): if isinstance(value, cla...
CartoDB/cartodb-python
refs/heads/master
carto/synchronizations.py
2
""" Entity classes for defining synchronizations .. module:: carto.synchronizations :platform: Unix, Windows :synopsis: Entity classes for defining synchronizations .. moduleauthor:: Daniel Carrion <daniel@carto.com> .. moduleauthor:: Alberto Romeu <alrocar@carto.com> """ from pyrestcli.resources import Reso...
pajlada/pajbot
refs/heads/master
pajbot/managers/__init__.py
12133432
xq262144/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/django/contrib/humanize/__init__.py
12133432
Obus/scikit-learn
refs/heads/master
sklearn/metrics/cluster/tests/__init__.py
12133432
gsnbng/erpnext
refs/heads/develop
erpnext/stock/report/purchase_order_items_to_be_received/__init__.py
12133432
moloch--/TornadoAppTemplate
refs/heads/master
handlers/__init__.py
1
# -*- coding: utf-8 -*- """ @author: moloch Copyright 2015 """ import logging from hashlib import sha512 from tornado.options import options from tornado.web import Application from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop # Handlers from .AuthenticationHandlers import LoginAuthenticati...
luceatnobis/youtube-dl
refs/heads/master
youtube_dl/extractor/cinchcast.py
177
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( unified_strdate, xpath_text, ) class CinchcastIE(InfoExtractor): _VALID_URL = r'https?://player\.cinchcast\.com/.*?assetId=(?P<id>[0-9]+)' _TEST = { # Actual test is run in generic,...
pinard/Recode
refs/heads/master
tests/t40_combine.py
1
# -*- coding: utf-8 -*- import common from common import setup_module, teardown_module def test_1(): # That combine does not crash. common.request('co..l1') common.validate('', '')
abadger/ansible
refs/heads/devel
lib/ansible/modules/unarchive.py
11
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # Copyright: (c) 2013, Dylan Martin <dmartin@seattlecentral.edu> # Copyright: (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com> # Copyright: (c) 2016, Dag Wieers <dag@wieers.com> # Copyright: (c) 2017, Ansible Pr...