repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
nuobit/odoo-addons
refs/heads/11.0
sale_order_invoice_date/models/__init__.py
2
# Copyright NuoBiT Solutions, S.L. (<https://www.nuobit.com>) # Eric Antones <eantones@nuobit.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) from . import sale
a10networks/a10sdk-python
refs/heads/master
a10sdk/core/cgnv6/cgnv6_fixed_nat_alg_tftp.py
2
from a10sdk.common.A10BaseClass import A10BaseClass class SamplingEnable(A10BaseClass): """This class does not support CRUD Operations please use parent. :param counters1: {"enum": ["all", "session-created", "placeholder-debug"], "type": "string", "description": "'all': all; 'session-created': TFTP Clie...
liyitest/rr
refs/heads/master
openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py
56
# Copyright 2012 Nebula, Inc. # Copyright (c) 2012 X.commerce, a business unit of eBay 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...
IronLanguages/ironpython2
refs/heads/master
Src/StdLib/Lib/ctypes/test/test_anon.py
4
import unittest from test.support import cpython_only from ctypes import * class AnonTest(unittest.TestCase): def test_anon(self): class ANON(Union): _fields_ = [("a", c_int), ("b", c_int)] class Y(Structure): _fields_ = [("x", c_int), ...
mortada/tensorflow
refs/heads/master
tensorflow/contrib/quantization/python/math_ops.py
179
# Copyright 2015 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...
DinoCow/airflow
refs/heads/master
airflow/providers/google/suite/operators/sheets.py
7
# 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...
BitWriters/Zenith_project
refs/heads/master
zango/lib/python3.5/site-packages/django/db/backends/mysql/base.py
103
""" MySQL database backend for Django. Requires mysqlclient: https://pypi.python.org/pypi/mysqlclient/ MySQLdb is supported for Python 2 only: http://sourceforge.net/projects/mysql-python """ from __future__ import unicode_literals import datetime import re import sys import warnings from django.conf import settings...
daxm/fmcapi
refs/heads/master
fmcapi/api_objects/device_group_services/__init__.py
1
"""Device Group Services Classes.""" import logging from .devicegrouprecords import DeviceGroupRecords logging.debug("In the device_group_services __init__.py file.") __all__: [ "DeviceGroupRecords", ]
hybrideagle/django
refs/heads/master
tests/migrations/migrations_test_apps/unspecified_app_with_conflict/migrations/0002_conflicting_second.py
425
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("unspecified_app_with_conflict", "0001_initial")] operations = [ migrations.CreateModel( "Something", [ ...
Korkki/django
refs/heads/master
tests/migrations/test_deprecated_fields.py
504
from django.core.management import call_command from django.test import override_settings from .test_base import MigrationTestBase class Tests(MigrationTestBase): """ Deprecated model fields should still be usable in historic migrations. """ @override_settings(MIGRATION_MODULES={"migrations": "migrat...
CJ8664/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/pytest/testing/test_collection.py
187
import pytest, py from _pytest.main import Session, EXIT_NOTESTSCOLLECTED class TestCollector: def test_collect_versus_item(self): from pytest import Collector, Item assert not issubclass(Collector, Item) assert not issubclass(Item, Collector) def test_compat_attributes(self, testdir,...
xzturn/tensorflow
refs/heads/master
tensorflow/python/keras/regularizers.py
8
# Copyright 2015 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...
liorvh/raspberry_pwn
refs/heads/master
src/pentest/grabber/xss.py
8
#!/usr/bin/env python """ Cross-Site Scripting Module for Grabber v0.1 Copyright (C) 2006 - Romain Gaucher - http://rgaucher.info """ import sys from grabber import getContent_POST, getContent_GET from grabber import getContentDirectURL_GET, getContentDirectURL_POST from grabber import single_urlencode, par...
sakurahilljp/dojo
refs/heads/master
Facade/amplifier.py
1
# -*- coding: utf-8 -*- class Amplifier(object): def __init__(self): self.__volume = 10 print 'Initializing %s' % self print ' default volume is %d' % self.__volume def __repr__(self): return 'Amplifier()' def power_on(self): print '%s : power on...
jelugbo/tundex
refs/heads/master
lms/djangoapps/shoppingcart/processors/tests/__init__.py
12133432
tastynoodle/django
refs/heads/master
tests/admin_docs/__init__.py
12133432
willthames/ansible
refs/heads/devel
lib/ansible/modules/network/panos/panos_loadcfg.py
78
#!/usr/bin/python # -*- coding: utf-8 -*- # # Ansible module to manage PaloAltoNetworks Firewall # (c) 2016, techbizdev <techbizdev@paloaltonetworks.com> # # 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 publish...
uranusjr/django
refs/heads/master
django/contrib/redirects/middleware.py
110
from django.apps import apps from django.conf import settings from django.contrib.redirects.models import Redirect from django.contrib.sites.shortcuts import get_current_site from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponseGone, HttpResponsePermanentRedirect from django.utils...
tasercake/Crypto_Algotrader
refs/heads/master
crizzle/services/base/__init__.py
1
from crizzle.services.base.service import Service from crizzle.services.base.error import EnvironmentException
DrDrake/osgocean
refs/heads/master
scripts/convert_shaders.py
8
# This script is use to convert the shaders found # within the resources/shaders directory to the native # .inl format for compiling into the osgOcean source. # After conversion, it will copy the .inl files into the # include/osgOcean/shaders/ directory. import os import time ################################...
elingg/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/barrier_ops_test.py
56
# Copyright 2016 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...
ryukiri/android_kernel_samsung_kona
refs/heads/master
scripts/rt-tester/rt-tester.py
11005
#!/usr/bin/python # # rt-mutex tester # # (C) 2006 Thomas Gleixner <tglx@linutronix.de> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # import os import sys import getopt import sh...
ayes/bsmapp
refs/heads/master
allauth/exceptions.py
91
class ImmediateHttpResponse(Exception): """ This exception is used to interrupt the flow of processing to immediately return a custom HttpResponse. """ def __init__(self, response): self.response = response
rmmh/kubernetes-test-infra
refs/heads/master
jenkins/docker_diff.py
10
#!/usr/bin/env python # Copyright 2016 The Kubernetes Authors. # # 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 appli...
MDS-PBSCB/mds
refs/heads/master
teme/migrations/0001_initial.py
2
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Course', fields=[ ...
hooting/show-me-the-code-python
refs/heads/master
ddkangfu/0004/0004.py
40
#coding=utf-8 import collections import re """ 0004, 任一个英文的纯文本文件,统计其中的单词出现的个数。 """ def count_word(file_name): f = open(file_name) line = f.readline() word_counter = collections.Counter() while line: words = re.findall("\w+", line.lower()) word_counter.update(words) ...
Alberto-Beralix/Beralix
refs/heads/master
i386-squashfs-root/usr/share/pyshared/gwibber/microblog/uploader/imageshack/chuncked_upload.py
1
#!/usr/bin/env python ''' Client API library for chuncked video uploading to imageshack.us Using "Streaming upload API" as described here: http://code.google.com/p/imageshackapi/wiki/StreamingAPI ''' import os import urllib import httplib import urllib2 from urlparse import urlparse from os.path import exists fro...
vuntz/glance
refs/heads/master
glance/db/sqlalchemy/migrate_repo/versions/025_placeholder.py
57
# Copyright 2013 OpenStack Foundation # Copyright 2013 Red Hat, 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...
TrailingDots/easy_py_messaging
refs/heads/master
easy_py_messaging/logFilter.py
3
#!/bin/env python import sys import json import utils """ Read a log file, apply user provided function for filtering. With this base class CSV and JSON can result. Further filtering such as WARNING and higher levels could be filtered from the cruft. """ # The parameters controlling log filtering. Lo...
shabab12/edx-platform
refs/heads/master
lms/envs/cms/microsite_test.py
73
""" This is a localdev test for the Microsite processing pipeline """ # We intentionally define lots of variables that aren't used, and # want to import all variables from base settings files # pylint: disable=wildcard-import, unused-wildcard-import from .dev import * from ..dev import ENV_ROOT, FEATURES MICROSITE_C...
starius/qBittorrent
refs/heads/master
src/searchengine/nova3/helpers.py
35
#VERSION: 1.40 # Author: # Christophe DUMEZ (chris@qbittorrent.org) # 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 co...
satvikdhandhania/vit-11
refs/heads/master
build/lib.linux-x86_64-2.7/moca/manage.py
2072
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
ecell/libmoleculizer
refs/heads/master
python-src/bngparser/src/moleculizer/__init__.py
1
############################################################################### # BNGMZRConverter - A utility program for converting bngl input files to mzr # input files. # Copyright (C) 2007, 2008, 2009 The Molecular Sciences Institute # # Moleculizer is free software; you can redistribute it and/or modify # it ...
petterreinholdtsen/creepy
refs/heads/master
creepy/ui/AboutDialog.py
2
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'gui/aboutDialog.ui' # # Created: Mon Oct 19 00:13:43 2015 # by: PyQt4 UI code generator 4.11.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 excep...
pwoodworth/intellij-community
refs/heads/master
python/helpers/profiler/profiler/constants.py
162
# # Autogenerated by Thrift Compiler (0.9.2) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import *
etherkit/OpenBeacon2
refs/heads/master
client/linux-x86/venv/lib/python3.8/site-packages/pip/_internal/utils/__init__.py
12133432
trishnaguha/ansible
refs/heads/devel
lib/ansible/modules/storage/glusterfs/__init__.py
12133432
edoburu/django-oscar-docdata
refs/heads/master
tests/__init__.py
12133432
jyotsna1820/django
refs/heads/master
tests/modeladmin/__init__.py
12133432
azul-cloud/cityinfo
refs/heads/master
settings/test.py
12133432
BiznetGIO/horizon
refs/heads/stable/pike-gio
openstack_dashboard/dashboards/project/network_topology/routers/__init__.py
12133432
nzavagli/UnrealPy
refs/heads/master
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/SQLAlchemy-1.0.6/test/orm/test_dynamic.py
25
from sqlalchemy import testing, desc, select, func, exc, cast, Integer from sqlalchemy.orm import ( mapper, relationship, create_session, Query, attributes, exc as orm_exc, Session, backref, configure_mappers) from sqlalchemy.orm.dynamic import AppenderMixin from sqlalchemy.testing import ( AssertsCompiledS...
nolanliou/tensorflow
refs/heads/master
tensorflow/contrib/signal/python/kernel_tests/shape_ops_test.py
27
# Copyright 2015 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...
GRArmstrong/invenio-inspire-ops
refs/heads/prod
modules/elmsubmit/lib/elmsubmit_unit_tests.py
16
# -*- coding: utf-8 -*- ## Invenio elmsubmit unit tests. ## This file is part of Invenio. ## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundati...
mtth/igloo
refs/heads/master
igloo.py
1
#!/usr/bin/env python """Igloo: a command line SCP client. Usage: igloo [-adfklmrq] [-p PROFILE | -u URL] ([-inw] -e EXPR | FILEPATH ...) igloo (-s | --stream) [-bdr] [-p PROFILE | -u URL] FILEPATH igloo (-c | --config) [add URL [PROFILE] | delete PROFILE | list] igloo -h | --help | -v | --version For iglo...
markflyhigh/incubator-beam
refs/heads/master
sdks/python/apache_beam/runners/worker/sdk_worker_main.py
1
# # 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 us...
burakbayramli/classnotes
refs/heads/master
algs/algs_170_nmt/translate.py
2
# translate.py import pickle import tensorflow as tf import numpy as np, os checkpoint_path = "/home/burak/Downloads/model.ckpt" from data_utils import ( process_data,split_data,generate_epoch,generate_batch, ) def rnn_cell(FLAGS, dropout, scope): with tf.variable_scope(scope): rnn_cell_type = tf.nn...
pombreda/swarming
refs/heads/master
appengine/swarming/server/task_request.py
2
# coding: utf-8 # Copyright 2014 The Swarming Authors. All rights reserved. # Use of this source code is governed by the Apache v2.0 license that can be # found in the LICENSE file. """Tasks definition. Each user request creates a new TaskRequest. The TaskRequest instance saves the metadata of the request, e.g. who r...
gptech/ansible
refs/heads/devel
lib/ansible/modules/cloud/digital_ocean/digital_ocean.py
26
#!/usr/bin/python # -*- 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. #...
sandeepdsouza93/TensorFlow-15712
refs/heads/master
tensorflow/contrib/factorization/python/ops/gmm_test.py
22
# Copyright 2016 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...
cloudbase/nova-virtualbox
refs/heads/virtualbox_driver
nova/scheduler/client/report.py
2
# Copyright (c) 2014 Red Hat, 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 require...
rmcgibbo/psi4public
refs/heads/master
tests/psithon2/psiaux1/myplugin1/pymodule.py
36
import psi4 from psi4 import * from psi4.core import * def run_myplugin1(name, **kwargs): r"""Function encoding sequence of PSI module and plugin calls so that myplugin1 can be called via :py:func:`~driver.energy`. >>> energy('myplugin1') """ lowername = name.lower() kwargs = p4util.kwargs_l...
ActiveState/code
refs/heads/master
recipes/Python/304223_Mapping_arbitrary_objects_PostgreSQL_database/recipe-304223.py
1
from datetime import datetime import psycopg from psycopg.extensions import adapters, adapt try: sorted() except NameError: def sorted(seq): seq.sort() return seq # Here is the adapter for every object that we may ever need to # insert in the database. It receives the original object and does #...
adviti/melange
refs/heads/master
thirdparty/google_appengine/lib/django_1_2/tests/modeltests/choices/__init__.py
12133432
savex/spectra
refs/heads/master
spectra/__init__.py
12133432
varunagrawal/azure-services
refs/heads/master
varunagrawal/site-packages/django/contrib/localflavor/sk/__init__.py
12133432
andim27/magiccamp
refs/heads/master
tests/regressiontests/admin_scripts/complex_app/__init__.py
12133432
RevelSystems/django
refs/heads/master
tests/utils_tests/__init__.py
12133432
utecuy/edx-platform
refs/heads/master
common/lib/chem/chem/tests.py
132
import codecs from fractions import Fraction import unittest from .chemcalc import ( compare_chemical_expression, divide_chemical_expression, render_to_html, chemical_equations_equal, ) import miller local_debug = None def log(s, output_type=None): if local_debug: print s if out...
RobinQuetin/CAIRIS-web
refs/heads/develop
cairis/cairis/UsabilityContentHandler.py
1
# 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...
mac01021/repoze.who.plugins.fake
refs/heads/master
setup.py
1
from setuptools import setup, find_packages import sys, os version = '0.1' README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() setup(name='repoze.who.plugins.fake', version=version, description="A collection of repoze.who plugins meant to help with testing", long_descripti...
rrampage/rethinkdb
refs/heads/next
test/rql_test/connections/http_support/werkzeug/contrib/atom.py
147
# -*- coding: utf-8 -*- """ werkzeug.contrib.atom ~~~~~~~~~~~~~~~~~~~~~ This module provides a class called :class:`AtomFeed` which can be used to generate feeds in the Atom syndication format (see :rfc:`4287`). Example:: def atom_feed(request): feed = AtomFeed("My Blog", feed...
kotfic/girder
refs/heads/master
tests/cases/py_client/cli_test.py
4
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware 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 ...
Dhivyap/ansible
refs/heads/devel
lib/ansible/modules/cloud/vmware/vmware_guest_info.py
19
#!/usr/bin/python # -*- coding: utf-8 -*- # # This module is also sponsored by E.T.A.I. (www.etai.fr) # Copyright (C) 2018 James E. King III (@jeking3) <jking@apache.org> # 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...
westernx/vee
refs/heads/master
tests/test_build_types.py
1
from . import * class TestBuildTypes(TestCase): def test_static_file(self): pkg = MockPackage('scheme_static', 'static_file', {'PATH': 'etc/scheme_static'}) pkg.render_commit() vee(['install', sandbox('packages/scheme_static'), '--install-name', 'scheme_static/1.0.0']) self.assert...
mtlchun/edx
refs/heads/master
cms/djangoapps/contentstore/management/commands/__init__.py
12133432
googleapis/python-datacatalog
refs/heads/master
samples/v1beta1/__init__.py
12133432
asutoshpalai/distiller
refs/heads/master
server/__init__.py
12133432
richgieg/flask-now
refs/heads/master
migrations/versions/14bd9687d5b3_init_db.py
1
"""Init db Revision ID: 14bd9687d5b3 Revises: None Create Date: 2015-11-01 21:44:01.777934 """ # revision identifiers, used by Alembic. revision = '14bd9687d5b3' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### o...
krother/maze_run
refs/heads/master
leftovers/chapter08_load_tile_positions.py
1
# Chapter 08 - Organizing code # Cleaned code for loading tiles import csv import os from pygame.rect import Rect CONFIG_PATH = os.path.split(__file__)[0] TILE_POSITION_FILE = os.path.join(CONFIG_PATH, 'tiles.txt') TILE_IMAGE_FILE = os.path.join(CONFIG_PATH, '../images/tiles.xpm') SIZE = 32 def load_tile_position...
attilahorvath/phantomjs
refs/heads/master
src/qt/qtwebkit/Tools/Scripts/webkitpy/style/filter_unittest.py
124
# Copyright (C) 2010 Chris Jerdonek (chris.jerdonek@gmail.com) # # 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 of conditions...
StrellaGroup/erpnext
refs/heads/develop
erpnext/restaurant/doctype/restaurant_reservation/test_restaurant_reservation.py
26
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestRestaurantReservation(unittest.TestCase): pass
RafaelTorrealba/odoo
refs/heads/8.0
addons/account_voucher/invoice.py
382
# -*- 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...
tcmitchell/geni-tools
refs/heads/develop
src/gcf/omnilib/stitchhandler.py
3
#!/usr/bin/env python from __future__ import absolute_import #---------------------------------------------------------------------- # Copyright (c) 2013-2016 Raytheon BBN Technologies # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (th...
alash3al/rethinkdb
refs/heads/next
test/rql_test/connections/http_support/werkzeug/testsuite/datastructures.py
145
# -*- coding: utf-8 -*- """ werkzeug.testsuite.datastructures ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tests the functionality of the provided Werkzeug datastructures. TODO: - FileMultiDict - Immutable types undertested - Split up dict tests :copyright: (c) 2014 by Armin Ronacher....
rsteca/python-social-auth
refs/heads/master
social/backends/dropbox.py
83
""" Dropbox OAuth1 backend, docs at: http://psa.matiasaguirre.net/docs/backends/dropbox.html """ from social.backends.oauth import BaseOAuth1, BaseOAuth2 class DropboxOAuth(BaseOAuth1): """Dropbox OAuth authentication backend""" name = 'dropbox' ID_KEY = 'uid' AUTHORIZATION_URL = 'https://www.drop...
394954369/horizon
refs/heads/master
horizon/management/commands/__init__.py
12133432
TeamBasedLearning/Service
refs/heads/master
pgtbl/discipline/__init__.py
12133432
tysonclugg/django
refs/heads/master
tests/admin_scripts/app_with_import/__init__.py
12133432
confeitaria/inelegant
refs/heads/master
inelegant/finder.py
1
# # Copyright 2015, 2016 Adam Victor Brandizzi # # This file is part of Inelegant. # # Inelegant is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
hurricup/intellij-community
refs/heads/master
python/helpers/py3only/docutils/transforms/frontmatter.py
44
# $Id: frontmatter.py 7595 2013-01-21 17:33:56Z milde $ # Author: David Goodger, Ueli Schlaepfer <goodger@python.org> # Copyright: This module has been placed in the public domain. """ Transforms related to the front matter of a document or a section (information found before the main text): - `DocTitle`: Used to tra...
tlby/mxnet
refs/heads/master
tests/python/unittest/test_base.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...
sunqm/mpi4pyscf
refs/heads/master
mpi4pyscf/mp/__init__.py
1
from . import mp2 from .mp2 import RMP2
Zearin/python-xtraceback
refs/heads/master
test_support/python/3.3.0/test/support.py
9
"""Supporting definitions for the Python regression tests.""" if __name__ != 'test.support': raise ImportError('support must be imported from the test package') import contextlib import errno import functools import gc import socket import sys import os import platform import shutil import warnings import unittes...
ston380/account-financial-reporting
refs/heads/8.0
mis_builder/report/__init__.py
9
# -*- encoding: utf-8 -*- ############################################################################## # # mis_builder module for Odoo, Management Information System Builder # Copyright (C) 2014-2015 ACSONE SA/NV (<http://acsone.eu>) # # This file is a part of mis_builder # # mis_builder is free software:...
zhaozengguang/opencog
refs/heads/master
opencog/python/spatiotemporal/temporal_events/composition/non_linear_least_squares.py
1
from math import fabs import numpy from lmfit import minimize, Parameters __author__ = 'keyvan' _keys = ['beginning', 'ending'] class DecompositionFitter(object): combinations = [(dist_1_key, dist_2_key) for dist_1_key in _keys for dist_2_key in _keys] def __init__(self, relations): self.data = rel...
ShassAro/ShassAro
refs/heads/master
DockerAdmin/dockerVirtualEnv/lib/python2.7/site-packages/django/conf/locale/sl/__init__.py
12133432
tsg-/pyeclib
refs/heads/master
test/__init__.py
12133432
savoirfairelinux/django
refs/heads/master
django/conf/locale/ca/__init__.py
12133432
Chemcy/vnpy
refs/heads/master
vn.trader/ctaStrategy/language/chinese/__init__.py
12133432
mbauskar/omnitech-demo-erpnext
refs/heads/develop
erpnext/stock/doctype/item_reorder/__init__.py
12133432
UFAL-DSG/pjsip
refs/heads/master
tests/pjsua/config_site.py
59
# $Id: config_site.py 2237 2008-08-26 12:13:25Z bennylp $ # Specify if host has sound device, or test should be performed using sound device HAS_SND_DEV = 0
tommymcglynn/group-tinder
refs/heads/master
create_fake_people.py
1
from web import views views.create_fake_people(None)
blitzagency/django-chatterbox
refs/heads/master
chatterbox/tests/collectors/demo.py
1
from chatterbox.collectors import Collector class DemoCollector(Collector): def action(self, job): print(job.key.api) def post_save(self, job): pass def post_delete(self, job): pass
erikng/sal
refs/heads/master
server/migrations/0055_auto_20170822_1155.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-08-22 18:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('server', '0054_auto_20170705_1603'), ] operations = [ migrations.AlterField( ...
roadmapper/ansible
refs/heads/devel
lib/ansible/module_utils/gcp_utils.py
21
# Copyright (c), Google Inc, 2017 # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) try: import requests HAS_REQUESTS = True except ImportError: HAS_REQUESTS = False try: import google.auth import google.auth.compute_engine from google.o...
sagangwee/sagangwee.github.io
refs/heads/master
build/pygments/build/lib.linux-i686-2.7/pygments/lexers/c_cpp.py
72
# -*- coding: utf-8 -*- """ pygments.lexers.c_cpp ~~~~~~~~~~~~~~~~~~~~~ Lexers for C/C++ languages. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, include, bygroups, using, \ this...
bvisness/the-blue-alliance
refs/heads/master
datafeeds/usfirst_team_details_parser.py
8
import logging import re # for db.link from google.appengine.ext import db from BeautifulSoup import BeautifulSoup from datafeeds.parser_base import ParserBase class UsfirstTeamDetailsParser(ParserBase): """ Facilitates building TBAVideos store from TBA. """ @classmethod def parse(self, html): ...
bskinn/opan
refs/heads/master
opan/utils/base.py
1
#------------------------------------------------------------------------------- # Name: utils # Purpose: Module containing utility functions for Open Anharmonic # # Author: Brian Skinn # bskinn@alum.mit.edu # # Created: 15 Aug 2014 # Copyright: (c) Brian Skinn 2016 # License: T...
mcepl/youtube-dl
refs/heads/master
youtube_dl/extractor/oktoberfesttv.py
168
# encoding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class OktoberfestTVIE(InfoExtractor): _VALID_URL = r'https?://www\.oktoberfest-tv\.de/[^/]+/[^/]+/video/(?P<id>[^/?#]+)' _TEST = { 'url': 'http://www.oktoberfest-tv.de/de/kameras/video/hb-zelt', 'info...