repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
skycucumber/xuemc
refs/heads/master
python/venv/lib/python2.7/site-packages/flask/testsuite/templating.py
562
# -*- coding: utf-8 -*- """ flask.testsuite.templating ~~~~~~~~~~~~~~~~~~~~~~~~~~ Template functionality :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import flask import unittest from flask.testsuite import FlaskTestCase class TemplatingTestCase(Flask...
auth0/auth0-python
refs/heads/master
auth0/v3/test/management/test_client_grants.py
1
import unittest import mock from ...management.client_grants import ClientGrants class TestClientGrants(unittest.TestCase): def test_init_with_optionals(self): t = ClientGrants(domain='domain', token='jwttoken', telemetry=False, timeout=(10, 2)) self.assertEqual(t.client.timeout, (10, 2)) ...
chuan9/chromium-crosswalk
refs/heads/master
net/data/websocket/close-with-split-packet_wsh.py
109
# Copyright (c) 2012 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. import struct from mod_pywebsocket import handshake from mod_pywebsocket import stream def web_socket_do_extra_handshake(_request): pass def web_s...
wwj718/edx-platform
refs/heads/master
lms/djangoapps/edxnotes/__init__.py
12133432
dantiston/IGDE
refs/heads/master
core/migrations/__init__.py
12133432
szilveszter/django
refs/heads/master
tests/middleware/cond_get_urls.py
499
from django.conf.urls import url from django.http import HttpResponse urlpatterns = [ url(r'^$', lambda request: HttpResponse('root is here')), ]
ashang/calibre
refs/heads/master
src/calibre/web/feeds/jsnews.py
13
#!/usr/bin/env python2 # vim:fileencoding=utf-8 from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' import os, re from io import BytesIO from functools import partial from cal...
screwt/tablib
refs/heads/develop
tablib/packages/xlwt/ExcelFormula.py
87
# -*- coding: windows-1252 -*- import ExcelFormulaParser, ExcelFormulaLexer import struct from antlr import ANTLRException class Formula(object): __slots__ = ["__init__", "__s", "__parser", "__sheet_refs", "__xcall_refs"] def __init__(self, s): try: self.__s = s lexer = Exc...
supersven/intellij-community
refs/heads/master
python/testData/refactoring/rename/renameImportSubModuleAs/after/p1/bar.py
415
def f(): pass
ryfeus/lambda-packs
refs/heads/master
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/util/loader.py
41
# 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...
Vauxoo/website
refs/heads/12.0
website_cookie_notice/controllers/main.py
2
# Copyright 2015-2016 Lorenzo Battistini - Agile Business Group # Copyright 2015 Antiun Ingeniería S.L. <http://antiun.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import http class CookieNotice(http.Controller): @http.route( "/website_cookie_notice/ok", auth="public", w...
lobobabysaurus/NewAppearances
refs/heads/master
services/__init__.py
12133432
damiencalloway/djtut
refs/heads/master
mysite/env/lib/python2.7/site-packages/django/contrib/admin/templatetags/__init__.py
12133432
jainanisha90/WeVoteServer
refs/heads/develop
image/__init__.py
12133432
mt2d2/servo
refs/heads/master
python/mach/mach/commands/__init__.py
12133432
JetBrains/intellij-community
refs/heads/master
python/testData/refactoring/inlineFunction/removing/main.py
12
def foo(arg): local = 1 if arg: another = 2 else: another = 3 return local def bar(): x = 1 res = fo<caret>o(x)
pombredanne/pyknow
refs/heads/develop
pyknow/engine.py
1
from inspect import getmembers from pyknow.agenda import Agenda from pyknow.fact import InitialFact from pyknow.factlist import FactList from pyknow.rule import Rule from pyknow.strategies import Depth class KnowledgeEngine: __strategy__ = Depth def __init__(self): self._facts = FactList() ...
goofwear/letsencrypt
refs/heads/master
letsencrypt/plugins/webroot.py
5
"""Webroot plugin.""" import errno import logging import os import zope.interface from acme import challenges from letsencrypt import errors from letsencrypt import interfaces from letsencrypt.plugins import common logger = logging.getLogger(__name__) class Authenticator(common.Plugin): """Webroot Authentica...
Belax8/my-pi-projects
refs/heads/master
Tests/background-test.py
1
#!/usr/bin/python # Imports import os # Run pi-temp.py multiple times in the background os.system('python pi-temp.py &') os.system('python pi-temp.py &') os.system('python pi-temp.py &') os.system('python pi-temp.py &') # write `ps -ef` to see all the scripts running # write `kill -9 <id>` to stop a background s...
adithyabhatkajake/kompile
refs/heads/master
users/migrations/__init__.py
12133432
htzy/bigfour
refs/heads/master
common/djangoapps/student/management/__init__.py
12133432
Glorf/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/pytest/doc/en/example/nonpython/__init__.py
12133432
quiaro/safe-blog
refs/heads/master
app/blog/__init__.py
12133432
todaychi/hue
refs/heads/master
apps/pig/src/pig/api.py
1
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
glove747/liberty-neutron
refs/heads/master
neutron/tests/unit/plugins/ml2/drivers/freescale/test_mechanism_fslsdn.py
4
# Copyright (c) 2014 Freescale, 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 wr...
Andr3iC/courtlistener
refs/heads/master
cl/corpus_importer/resource_org/resource_org.py
3
from juriscraper.lib.string_utils import titlecase, clean_string from juriscraper.lib.string_utils import harmonize import urllib2 import datetime from lxml.html import fromstring from urlparse import urljoin import re import requests import time class Case(object): """Represents a case within Resource.org""" ...
pbraunstein/trackercise
refs/heads/master
app/brain/user_management/register_city.py
1
from app.brain.user_management.register_result import RegisterResult from app.brain.utilities import hash_password from app.models import Users from app.service import UsersService class RegisterCity(object): """ Manages the logic of registering I N T E R F A C E G U A R A N T E E D ---------------...
wjchen84/lfd
refs/heads/master
test/test_simulation.py
2
#!/usr/bin/env python from __future__ import division import openravepy import unittest import numpy as np import trajoptpy from lfd.environment.simulation import DynamicSimulation from lfd.environment.simulation_object import XmlSimulationObject, BoxSimulationObject, CylinderSimulationObject, RopeSimulationObject ...
DeppSRL/odl_datasets_survey
refs/heads/master
project/datasets_survey/settings/test.py
3
from __future__ import absolute_import from .base import * ########## IN-MEMORY TEST DATABASE DATABASES = { "default": env.db('sqlite://:memory:'), } ########## EMAIL CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBa...
ghickman/django
refs/heads/master
tests/i18n/patterns/urls/namespace.py
337
from django.conf.urls import url from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView view = TemplateView.as_view(template_name='dummy.html') app_name = 'account' urlpatterns = [ url(_(r'^register/$'), view, name='register'), url(_(r'^register-without-slash$'),...
clchiou/iga
refs/heads/master
tests/core/test_ordered_set.py
1
import unittest from iga.core import OrderedSet class TestOrderedSet(unittest.TestCase): def test_contains(self): self.assertTrue('a' not in OrderedSet('')) self.assertTrue('a' in OrderedSet('a')) self.assertTrue('a' in OrderedSet('ba')) self.assertTrue('b' in OrderedSet('ba')) ...
camptocamp/odoo
refs/heads/master
addons/l10n_in_hr_payroll/report/report_payslip_details.py
374
#-*- coding:utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 OpenERP SA (<http://openerp.com>). All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under th...
felix-d/boto
refs/heads/develop
tests/__init__.py
454
# Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modi...
CrimsonDev14/crimsoncoin
refs/heads/master
qa/rpc-tests/nulldummy.py
1
#!/usr/bin/env python3 # Copyright (c) 2016 The crimson Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import crimsonTestFramework from test_framework.util import * from test_fra...
Microsoft/PTVS
refs/heads/master
Python/Tests/TestData/SysPath/Sub/__init__.py
12133432
rawjam/django-allauth
refs/heads/master
allauth/socialaccount/providers/facebook/urls.py
1
from django.conf.urls import patterns, url from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns from provider import FacebookProvider import views urlpatterns = default_urlpatterns(FacebookProvider) urlpatterns += patterns('', url('^facebook/login/token/$', views.login_by_token, nam...
gy6221/shadowsocks
refs/heads/master
tests/test_udp_src.py
1009
#!/usr/bin/python import socket import socks SERVER_IP = '127.0.0.1' SERVER_PORT = 1081 if __name__ == '__main__': # Test 1: same source port IPv4 sock_out = socks.socksocket(socket.AF_INET, socket.SOCK_DGRAM, socket.SOL_UDP) sock_out.set_proxy(socks.SOCKS5, SERVER_IP, S...
Yrthgze/prueba-sourcetree2
refs/heads/master
Kxrr/0001/0001.py
13
#!/usr/bin/env python # encoding: utf-8 __author__ = 'Kxrr' import random, string ALL_LETTERS = string.ascii_uppercase + string.digits codeAmount = 200 codeRound = 10 codeResult = [] while len(codeResult) != codeAmount: everyCode =''.join((random.choice(ALL_LETTERS) for i in range(codeRound))) if everyCode...
cython-testbed/pandas
refs/heads/master
pandas/tests/frame/test_timezones.py
7
# -*- coding: utf-8 -*- """ Tests for DataFrame timezone-related methods """ from datetime import datetime import pytest import pytz import numpy as np import pandas.util.testing as tm from pandas.compat import lrange from pandas.core.indexes.datetimes import date_range from pandas.core.dtypes.dtypes import DatetimeT...
simkovic/simkovic.github.io
refs/heads/master
_ipynb/publish3.py
1
import sys,os,datetime def stripRight(text, suffix): if not text.endswith(suffix): return text return text[:len(text)-len(suffix)] try: notebook = sys.argv[1] except: print("usage: python publish.py /path/to/notebook_file.ipynb") sys.exit(-1) outfn=stripRight(notebook,'.ipynb').replace('...
JacobTech/lge_kernel_e400-
refs/heads/android-msm-2.6.38
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
Gebesa-Dev/Addons-gebesa
refs/heads/9.0
integration_cost_gebesa/models/account_journal.py
1
# -*- coding: utf-8 -*- # © <YEAR(S)> <AUTHOR(S)> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import fields, models class AccountJournal(models.Model): _inherit = 'account.journal' integration_cost = fields.Boolean( string='Is integration cost', )
StoicLoofah/foodmarks
refs/heads/master
foodmarks/accounts/migrations/__init__.py
12133432
ossobv/planb
refs/heads/main
planb/transport_rsync/migrations/__init__.py
12133432
karan1276/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/gitignore/tests/__init__.py
12133432
Radagast-red/golem
refs/heads/develop
golem/resource/swift/__init__.py
12133432
vmindru/ansible
refs/heads/devel
test/units/modules/network/ironware/__init__.py
12133432
NitorCreations/nitor-deploy-tools
refs/heads/master
n_utils/nitor-dt-enable-profile.py
1
from n_utils.profile_util import cli_enable_profile cli_enable_profile()
Azure/azure-sdk-for-python
refs/heads/sync-eng/common-js-nightly-docs-2-1768-ForTestPipeline
sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/datab/aio/operations/_addons_operations.py
1
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
hooting/show-me-the-code-python
refs/heads/master
JiYouMCC/0023/guestbook/manage.py
26
# -*- coding: utf-8 -*- import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "guestbook.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
dluschan/olymp
refs/heads/master
lomonosov/num16.py
1
n = int(input()) s = input() letterlist = ['x', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'] letter = {} for l in letterlist: letter[l] = 0 for i in range(n): if s[i:i+1] in letterlist: letter[s[i:i+1]] += 1 if letter['x'] > 0 and letter['0'] > 0: letter['0'] -=...
michalmielczynski/RayPump-Addon
refs/heads/experimental
raypump_ui_panel_new_ui.py
1
# This is still in progress! # The code is working, but needs some cleanup/comments # The UI freezes while we wait for RayPumpto be ready bl_info = { 'name': 'RayPump Online Accelerator', 'author': 'michal.mielczynski@gmail.com, tiago.shibata@gmail.com', 'version': '(0, 3, 5)', 'blender': (2, 6, 0), ...
dmacvicar/spacewalk
refs/heads/master
client/rhel/rhnlib/test/14-Input-Output.py
21
#!/usr/bin/python # # Tests the encodings in Input and Output objects # # # 2004-11-29: fails, but it looks like it never worked. Need to investigate import string import sys sys.path.append('..') from rhn import transports import xmlrpclib from cStringIO import StringIO REFERENCE_XML = { 'a' : [1, 'b', '3'],...
jerkos/kepavi
refs/heads/master
kepavi/cobra_utils.py
1
import logging import cobra from kepavi.kegg_utils import Kegg import requests import os from collections import defaultdict import random from kepavi.user.models import KeggReaction # Sigma js has my preference since it can handle # larger graph GRAPH_LIBRARY_BACKEND = {'cytoscape', 'sigma'} # this meta...
jmcorgan/gnuradio
refs/heads/master
gnuradio-runtime/python/gnuradio/gr/tag_utils.py
7
import pmt import runtime_swig as gr class PythonTag(object): " Python container for tags " def __init__(self): self.offset = None self.key = None self.value = None self.srcid = False def tag_to_python(tag): """ Convert a stream tag to a Python-readable object """ ...
nvoron23/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/view_tests/app2/__init__.py
9480
#
zoobab/gyp
refs/heads/master
test/many-actions/gyptest-many-actions-unsorted.py
244
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Make sure lots of actions in the same target don't cause exceeding command line length. """ import TestGyp test = TestGyp.TestGyp() t...
UPDDI/mps-database-server
refs/heads/master
diseases/migrations/0002.py
1
# Generated by Django 2.1.8 on 2019-04-15 22:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('diseases', '0001_initial'), ] operations = [ migrations.AlterField( model_name='disease', name='biology_blurb', ...
edx/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/tests/regressiontests/localflavor/us/models.py
47
from django.db import models from django.contrib.localflavor.us.models import USStateField # When creating models you need to remember to add a app_label as # 'localflavor', so your model can be found class USPlace(models.Model): state = USStateField(blank=True) state_req = USStateField() state_default = ...
denis-pitul/django
refs/heads/master
tests/template_backends/apps/importerror/templatetags/__init__.py
12133432
julian-seward1/servo
refs/heads/master
tests/dromaeo/run_dromaeo.py
111
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import os import subprocess import sys import BaseHTTPServer import SimpleHTTPServer import urlpa...
xfournet/intellij-community
refs/heads/master
python/testData/refactoring/rename/formatStringDictLiteral.py
39
"I want to rename this{to_be_r<caret>enamed}".format(**{"to_be_renamed": "value"})
exploreodoo/datStruct
refs/heads/master
odoo/addons/google_calendar/controllers/__init__.py
7372
import main
kenwmitchell/ansible-modules-core
refs/heads/devel
cloud/openstack/os_user_group.py
77
#!/usr/bin/python # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
barachka/odoo
refs/heads/master
addons/base_report_designer/plugin/openerp_report_designer/bin/script/Translation.py
384
######################################################################### # # Copyright (c) 2003-2004 Danny Brewer d29583@groovegarden.com # Copyright (C) 2004-2010 OpenERP SA (<http://openerp.com>). # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser Gene...
Juniper/euca2ools
refs/heads/master
euca2ools/commands/cloudformation/describestackresources.py
6
# Copyright 2014 Eucalyptus Systems, Inc. # # Redistribution and use of this software 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 t...
cmgrote/tapiriik
refs/heads/master
tapiriik/services/Strava/__init__.py
16
from .strava import *
ethantang95/DIGITS
refs/heads/master
digits/utils/filesystem.py
6
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import hashlib import os.path import platform import re import shutil def get_tree_size(start_path): """ return size (in bytes) of filesystem tree """ if not os.path.exists(start_path): ...
Ghalko/osf.io
refs/heads/develop
website/files/models/__init__.py
31
from website.files.models.base import * # noqa from website.files.models.s3 import * # noqa from website.files.models.box import * # noqa from website.files.models.github import * # noqa from website.files.models.dropbox import * # noqa from website.files.models.figshare import * # noqa from website.files.models...
prakritish/ansible
refs/heads/devel
lib/ansible/modules/cloud/ovirt/ovirt_auth.py
26
#!/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 #...
mcepl/youtube-dl
refs/heads/master
youtube_dl/extractor/buzzfeed.py
34
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from .facebook import FacebookIE class BuzzFeedIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?buzzfeed\.com/[^?#]*?/(?P<id>[^?#]+)' _TESTS = [{ 'url': 'http://www.buzzfeed.com/abagg/...
njmube/erpnext
refs/heads/develop
erpnext/hr/web_form/job_application/job_application.py
309
from __future__ import unicode_literals import frappe def get_context(context): # do your magic here pass
Stingy49/KivyWideband
refs/heads/master
main.py
1
# Derek Eells # I2C Wideband Readout # March 2017 from kivy.app import App from kivy.uix.widget import Widget from kivy.uix.slider import Slider from kivy.properties import NumericProperty, StringProperty from kivy.clock import Clock from kivy.garden.graph import Graph, SmoothLinePlot from threading import Thread impo...
dr0pz0ne/sibble
refs/heads/add_block_rescue_task_variables
lib/ansible/module_utils/ismount.py
298
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is based on # Lib/posixpath.py of cpython # It is licensed under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 # # 1. This LICENSE AGREEMENT is between the Python Software Foundation # ("PSF")...
DmitryADP/diff_qc750
refs/heads/master
vendor/nvidia/tegra/3rdparty/python-support-files/src/Lib/keyword.py
179
#! /usr/bin/env python """Keywords (from "graminit.c") This file is automatically generated; please don't muck it up! To update the symbols in this file, 'cd' to the top directory of the python source tree after building the interpreter and run: python Lib/keyword.py """ __all__ = ["iskeyword", "kwlist"] kwli...
acsone/odoo
refs/heads/8.0
addons/website_blog/models/website_blog.py
239
# -*- coding: utf-8 -*- from datetime import datetime import difflib import lxml import random from openerp import tools from openerp import SUPERUSER_ID from openerp.addons.website.models.website import slug from openerp.osv import osv, fields from openerp.tools.translate import _ class Blog(osv.Model): _name ...
nelango/ViralityAnalysis
refs/heads/master
model/lib/pandas/io/api.py
9
""" Data IO api """ from pandas.io.parsers import read_csv, read_table, read_fwf from pandas.io.clipboard import read_clipboard from pandas.io.excel import ExcelFile, ExcelWriter, read_excel from pandas.io.pytables import HDFStore, Term, get_store, read_hdf from pandas.io.json import read_json from pandas.io.html impo...
bitwhacker/Anizb
refs/heads/master
anizb.py
1
""" Main routine - just tests for libraries at this point""" from flask import Flask from lib.py3utils import Config from lib.py3anidb import Anidb app = Flask(__name__) @app.route('/') def hello(): return 'Hello World!' if __name__ == '__main__': # app.run() config = Config() anizb = config.set_d...
lyn233/flask
refs/heads/master
flask/blueprints.py
141
# -*- coding: utf-8 -*- """ flask.blueprints ~~~~~~~~~~~~~~~~ Blueprints are the recommended way to implement larger or more pluggable applications in Flask 0.7 and later. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from functools import update_wrap...
DewarM/oppia
refs/heads/develop
core/domain/rating_services.py
5
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
ol-loginov/intellij-community
refs/heads/master
python/helpers/python-skeletons/functools.py
59
"""Skeleton for 'functools' stdlib module.""" def reduce(function, sequence, initial=None): """Apply a function of two arguments cumulatively to the items of a sequence, from left to right, so as to reduce the sequence to a single value. :type function: collections.Callable :type sequence: collec...
ritchyteam/odoo
refs/heads/master
addons/portal_claim/__init__.py
346
# -*- 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...
shtouff/django
refs/heads/master
tests/utils_tests/__init__.py
12133432
kaidokert/prospector
refs/heads/master
tests/finder/testdata/venvs/not_a_venv/thing.py
12133432
ryfeus/lambda-packs
refs/heads/master
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/linalg/python/ops/__init__.py
12133432
proxysh/Safejumper-for-Mac
refs/heads/master
buildlinux/env32/lib/python2.7/site-packages/obfsproxy/transports/scramblesuit/__init__.py
12133432
cchaoss/paparazzi
refs/heads/testing
sw/tools/tcp_aircraft_server/phoenix/xmlobject.py
86
#Copyright 2014, Antoine Drouin """ Allows XML files to be operated on like Python objects. Features: - load XML source from file pathnames, readable file objects or raw strings - add, get and set tag attributes like with python attributes - iterate over nodes - save the modified XMLFile or XMLObject t...
tunneln/CarnotKE
refs/heads/master
jyhton/Lib/test/test_multibytecodec_support.py
12
#!/usr/bin/env python # # test_multibytecodec_support.py # Common Unittest Routines for CJK codecs # import codecs import os import re import sys import unittest from httplib import HTTPException from test import test_support from StringIO import StringIO class TestBase: encoding = '' # codec name ...
pizzathief/numpy
refs/heads/master
numpy/distutils/compat.py
264
"""Small modules to cope with python 2 vs 3 incompatibilities inside numpy.distutils """ from __future__ import division, absolute_import, print_function import sys def get_exception(): return sys.exc_info()[1]
saintleva/limited-apt
refs/heads/master
src/limitedapt/errors.py
1
# # Copyright (C) Anton Liaukevich 2011-2020 <leva.dev@gmail.com> # # This program 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) any later versio...
maciek263/django2
refs/heads/master
myvenv/Lib/site-packages/django/db/models/sql/aggregates.py
76
""" Classes to represent the default SQL aggregate functions """ import copy import warnings from django.db.models.fields import FloatField, IntegerField from django.db.models.lookups import RegisterLookupMixin from django.utils.deprecation import RemovedInDjango20Warning from django.utils.functional import cached_pro...
walterbender/turtleconfusion
refs/heads/master
setup.py
1
#!/usr/bin/env python import os import sys def get_files(path): files = [] for name in path: files.append(os.path.join(path, name)) return files if len(sys.argv) > 1 and '--no-sugar' == sys.argv[1]: # Remove the argument from the stack so we don't cause problems # for distutils sys.a...
eoconsulting/django-zoook
refs/heads/master
django_zoook/tools/filemanager/__init__.py
26
# -*- coding: utf-8 -*- ############################################################################################ # # Zoook. OpenERP e-sale, e-commerce Open Source Management Solution # Copyright (C) 2011 Zikzakmedia S.L. (<http://www.zikzakmedia.com>). All Rights Reserved # $Id$ # # This program is free...
nicoddemus/backtrader
refs/heads/master
backtrader/observers/buysell.py
1
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # Copyright (C) 2015 Daniel Rodriguez # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as pub...
infectedmushi/kernel-sony-copyleft
refs/heads/39.2.A.0.xxx
tools/perf/scripts/python/syscall-counts.py
1996
# system call counts # (c) 2010, Tom Zanussi <tzanussi@gmail.com> # Licensed under the terms of the GNU GPL License version 2 # # Displays system-wide system call totals, broken down by syscall. # If a [comm] arg is specified, only syscalls called by [comm] are displayed. import os import sys sys.path.append(os.envir...
dbremner/bite-project
refs/heads/master
tools/bugs/server/appengine/handlers/bugs/__init__.py
12133432
ashishnitinpatil/django_appengine_project_template
refs/heads/master
django/conf/locale/sl/__init__.py
12133432
piquadrat/django
refs/heads/master
tests/version/__init__.py
12133432
rapilabs/django
refs/heads/master
tests/staticfiles_tests/apps/no_label/__init__.py
12133432
uniteddiversity/noosfero
refs/heads/master
public/javascripts/strophejs-1.1.3/examples/attach/__init__.py
12133432