repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
ekarlso/partizan
refs/heads/master
partizan/db/alembic/__init__.py
12133432
mhbu50/erpnext
refs/heads/develop
erpnext/patches/v8_0/update_student_groups_from_student_batches.py
40
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.model.utils.rename_field import * from frappe.model.mapper import get_mapped_doc def execute(): if frappe.db.table_exists("Student Batch"): stud...
Tlacenka/openshift-ansible-contrib
refs/heads/master
inventory/aws/ec2.py
32
#!/usr/bin/env python2 ''' EC2 external inventory script ================================= Generates inventory that Ansible can understand by making API request to AWS EC2 using the Boto library. NOTE: This script assumes Ansible is being executed where the environment variables needed for Boto have already been set...
disqus/django-old
refs/heads/master
django/contrib/formtools/tests/wizard/wizardtests/forms.py
1
import tempfile from django import forms from django.core.files.storage import FileSystemStorage from django.forms.formsets import formset_factory from django.http import HttpResponse from django.template import Template, Context from django.contrib.auth.models import User from django.contrib.formtools.wizard.views ...
LiveZenLK/CeygateERP
refs/heads/master
addons/calendar/controllers/__init__.py
7372
import main
michaelkirk/QGIS
refs/heads/master
python/ext-libs/httplib2/__init__.py
43
# -*- coding: utf-8 -*- """ *************************************************************************** __init__.py --------------------- Date : November 2006 Copyright : (C) 2012 by Joe Gregorio Email : joe at bitworking dot org ***************************...
20tab/django-taggit-live
refs/heads/master
taggit_live/__init__.py
1
VERSION = (0, 0, 7) __version__ = '.'.join(map(str, VERSION)) DATE = "2017-01-31"
jeffwilcox/connectthedots
refs/heads/master
Devices/GatewayConnectedDevices/Hydrology/SensorAgent.py
13
''' Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. The MIT License (MIT) 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 limitati...
petrus-v/odoo
refs/heads/8.0
addons/report/models/report_paperformat.py
311
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2014-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
ratnania/pyccel
refs/heads/master
doc/scripts/scripts/arrays.py
1
from numpy import array x=array([1,2,3])
Zerknechterer/pyload
refs/heads/stable
module/plugins/hoster/UloziskoSk.py
1
# -*- coding: utf-8 -*- import re import urlparse from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UloziskoSk(SimpleHoster): __name__ = "UloziskoSk" __type__ = "hoster" __version__ = "0.25" __pattern__ = r'http://(?:www\.)?ulozisko\.sk/.+' __config__ = ...
mingderwang/angr
refs/heads/master
angr/mergeseekr.py
9
from .analyses import cdg class MergeSeekr(object): def __init__(self, cfg_, cdg_): self._cfg = cfg_ self._cdg = cdg_ self._path_merge_points = {} self._construct() def _construct(self): ''' A merge point (or transition point, as is termed in Veritesting paper...
JetBrains/intellij-community
refs/heads/master
python/testData/intentions/typeInDocstringParameterInCallable_after.py
83
def g(hello=None): """ :type hello: object """ print(hello)
olsaki/ansible-modules-core
refs/heads/devel
cloud/amazon/ec2_metric_alarm.py
14
#!/usr/bin/python # 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 distributed...
codoo/clouder
refs/heads/8.0
clouder/clouder_save.py
2
# -*- coding: utf-8 -*- ############################################################################## # # Author: Yannick Buron # Copyright 2015, TODAY Clouder SASU # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License with Attribution # ...
longman694/youtube-dl
refs/heads/mod
youtube_dl/extractor/toggle.py
22
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..utils import ( determine_ext, ExtractorError, float_or_none, int_or_none, parse_iso8601, sanitized_Request, ) class ToggleIE(InfoExtractor): IE_NAME = 'toggle' _VALI...
JackNokia/robotframework
refs/heads/master
src/robot/variables/notfound.py
22
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
aptiko/enhydris
refs/heads/master
enhydris/api/permissions.py
2
from rest_framework import permissions class CanEditOrReadOnly(permissions.BasePermission): """ Custom permission to only allow allowed users to edit an object. """ def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True ...
ashhher3/pylearn2
refs/heads/master
pylearn2/optimization/test_feature_sign.py
49
""" Tests for the implementation of feature sign search. """ __authors__ = "David Warde-Farley" __copyright__ = "Copyright 2010-2011, Universite de Montreal" __credits__ = ["David Warde-Farley"] __license__ = "3-clause BSD" __maintainer__ = "David Warde-Farley" __email__ = "wardefar@iro" import numpy as np from pylea...
wehkamp/ansible
refs/heads/devel
lib/ansible/inventory/ini.py
46
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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 published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
amenonsen/ansible
refs/heads/devel
lib/ansible/module_utils/network/junos/facts/lag_interfaces/__init__.py
12133432
aprotopopov/lifetimes
refs/heads/master
tests/__init__.py
12133432
beckman94/playlist-bot
refs/heads/master
connections/__init__.py
12133432
spiral-project/daybed
refs/heads/master
daybed/views/__init__.py
12133432
AlexMaguey/ESCOM-C1-PP1
refs/heads/master
muebles_quetzal/cart/__init__.py
12133432
tmilicic/networkx
refs/heads/master
networkx/algorithms/components/weakly_connected.py
42
# -*- coding: utf-8 -*- """Weakly connected components. """ # Copyright (C) 2004-2015 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import networkx as nx from networkx.utils.decorators import not_implement...
Edraak/edraak-platform
refs/heads/master
lms/djangoapps/course_blocks/usage_info.py
93
""" Declares CourseUsageInfo class to be used by the transform method in Transformers. """ from lms.djangoapps.courseware.access import _has_access_to_course class CourseUsageInfo(object): ''' A class object that encapsulates the course and user context to be used as currency across block structure transf...
jswiergo/destin
refs/heads/master
Destin/Bindings/Python/heirarchy_builder.py
2
# -*- coding: utf-8 -*- """ Created on Sat Nov 9 13:10:41 2013 @author: ted """ import unittest class HeirarchyBuilder: """ Provides methods to specify the destin heirarchy """ def __init__(self): self.layers = 0; self.centroids = []; self.layer_widths = []; self.image_wi...
ARTFL-Project/PhiloLogic5
refs/heads/master
www/reports/time_series.py
3
#!/usr/bin/env python3 import os from wsgiref.handlers import CGIHandler import json import sys sys.path.append("..") import custom_functions try: from custom_functions import generate_time_series except ImportError: from philologic.runtime import generate_time_series try: from custom_functions import W...
Gateworks/platform-external-chromium_org
refs/heads/imx_kk4.4.3_2.0.0-beta
tools/telemetry/telemetry/core/timeline/bounds.py
47
# 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. class Bounds(object): """Represents a min-max bounds.""" def __init__(self): self.is_empty_ = True self.min_ = None self.max_ = None @prop...
semonte/intellij-community
refs/heads/master
plugins/hg4idea/testData/bin/mercurial/node.py
99
# node.py - basic nodeid manipulation for mercurial # # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. import binascii nullrev = -1 nullid = "\0" * 20 # This ugly style has a ...
tinkhaven-organization/odoo
refs/heads/8.0
addons/payment_adyen/tests/test_adyen.py
378
# -*- coding: utf-8 -*- from lxml import objectify import urlparse from openerp.addons.payment.models.payment_acquirer import ValidationError from openerp.addons.payment.tests.common import PaymentAcquirerCommon from openerp.addons.payment_adyen.controllers.main import AdyenController from openerp.osv.orm import exce...
s0enke/react-boilerplate
refs/heads/master
serverlesstest/handler.py
1
def hello(event, context): return { "message": "Go Serverless v1.0! Your function executed successfully!", "event": event }
psusloparov/sneeze
refs/heads/master
pocket_change/pocket_change/rest/util.py
1
from flask import request, url_for, session, g from flask.ext.restful import Api, Resource from collections import defaultdict from functools import partial from pocket_change import sqlalchemy_db from itertools import chain class RestfulApi(Api): def __init__(self, *args, **kwargs): super(R...
ogenstad/ansible
refs/heads/devel
lib/ansible/plugins/cliconf/eos.py
2
# # (c) 2017 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...
z123/build-a-saas-app-with-flask
refs/heads/master
catwatch/blueprints/billing/gateways/stripecom.py
1
import logging import stripe class Event(object): @classmethod def retrieve(cls, event_id): """ Retrieve an event, this is used to validate the event in attempt to protect us from potentially malicious events not sent from Stripe. API Documentation: https://stripe.c...
rahulunair/nova
refs/heads/master
nova/virt/powervm/volume/fcvscsi.py
1
# Copyright 2015, 2018 IBM Corp. # # 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...
MSusik/invenio
refs/heads/master
invenio/legacy/websearch_external_collections/parser.py
4
# -*- coding: utf-8 -*- ## 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 Foundation; either version 2 of the ## Li...
gxxjjj/QuantEcon.py
refs/heads/master
quantecon/graph_tools.py
3
""" Filename: graph_tools.py Author: Daisuke Oyama Tools for dealing with a directed graph. """ import numpy as np from scipy import sparse from scipy.sparse import csgraph from fractions import gcd class DiGraph(object): r""" Class for a directed graph. It stores useful information about the graph str...
xujun10110/Hammer
refs/heads/master
plugins/Web_Applications/espcms_search_inject.py
3
#!/usr/bin/python2.7 #coding:utf-8 import requests from dummy import * info = { 'NAME':'Espcms Search SQL Injection', 'AUTHOR':'seay,yangbh', 'TIME':'20140811', 'WEB':'', 'DESCRIPTION':'Via: http://blog.163.com/j8g_/blog/static/217780396201321312334801/' } opts = { 'url':'http://testasp.vulnweb.com', #'target i...
ruibarreira/linuxtrail
refs/heads/master
usr/lib/python2.7/dist-packages/reportlab/pdfgen/textobject.py
3
#Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfgen/textobject.py __version__=''' $Id$ ''' __doc__=""" PDFTextObject is an efficient way to add text to a Canvas. Do not instantiate directly, obtai...
4eek/edx-platform
refs/heads/master
common/djangoapps/course_action_state/migrations/__init__.py
12133432
bunnyitvn/webptn
refs/heads/master
django/contrib/gis/maps/openlayers/__init__.py
12133432
krull/docker-zenoss4
refs/heads/master
init_fs/usr/local/zenoss/ZenPacks/ZenPacks.zenoss.Microsoft.Windows-2.6.9.egg/ZenPacks/zenoss/Microsoft/Windows/migrate/MigrateIISGraphs.py
2
############################################################################## # # Copyright (C) Zenoss, Inc. 2015, all rights reserved. # # This content is made available according to terms specified in # License.zenoss under the directory where your Zenoss product is installed. # ##############################...
ecrespo/django_kanban-agile
refs/heads/master
kanban/lib/python2.7/site-packages/pip/_vendor/requests/compat.py
1038
# -*- coding: utf-8 -*- """ pythoncompat """ from .packages import chardet import sys # ------- # Pythons # ------- # Syntax sugar. _ver = sys.version_info #: Python 2.x? is_py2 = (_ver[0] == 2) #: Python 3.x? is_py3 = (_ver[0] == 3) try: import simplejson as json except (ImportError, SyntaxError): # si...
klmitch/boson
refs/heads/master
boson/openstack/common/notifier/test_notifier.py
31
# Copyright 2011 OpenStack LLC. # 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 b...
gxx/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/conf/locale/sl/formats.py
257
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd. F Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j. F Y. H:i' YEAR_MONTH_...
blademainer/intellij-community
refs/heads/master
plugins/hg4idea/testData/bin/mercurial/bundlerepo.py
91
# bundlerepo.py - repository class for viewing uncompressed bundles # # Copyright 2006, 2007 Benoit Boissinot <bboissin@gmail.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. """Repository class for viewing uncompressed bundle...
dholdridge/ptutools
refs/heads/master
__init__.py
12133432
JoseALermaIII/python-tutorials
refs/heads/master
pythontutorials/books/AutomateTheBoringStuff/__init__.py
12133432
wetneb/django
refs/heads/master
tests/migrations/faulty_migrations/namespace/foo/__init__.py
12133432
vitan/html2text
refs/heads/next
test/__init__.py
12133432
shermdog/py-junos-eznc
refs/heads/master
tests/unit/factory/__init__.py
12133432
manassolanki/frappe
refs/heads/develop
frappe/chat/doctype/chat_message/__init__.py
12133432
steedos/odoo7
refs/heads/master
openerp/addons/report_webkit/wizard/__init__.py
431
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (c) 2010 Camptocamp SA (http://www.camptocamp.com) # All Right Reserved # # Author : Vincent Renaville # # WARNING: This program as such is intended to be used by professional # programmers who take the...
orekyuu/intellij-community
refs/heads/master
python/testData/resolve/SuperclassResolveScope.py
83
from datetime import date class date(date): # <ref> pass
uclouvain/OSIS-Louvain
refs/heads/master
education_group/tests/api/serializers/__init__.py
12133432
darcamo/pyphysim
refs/heads/master
apps/mimo/__init__.py
12133432
ValFadeev/ansible-modules-core
refs/heads/devel
web_infrastructure/__init__.py
12133432
eahneahn/free
refs/heads/master
lib/python2.7/site-packages/django/contrib/auth/tests/test_context_processors.py
114
import os from django.conf import global_settings from django.contrib.auth import authenticate from django.contrib.auth.tests.utils import skipIfCustomUser from django.contrib.auth.models import User, Permission from django.contrib.contenttypes.models import ContentType from django.contrib.auth.context_processors impo...
vlachoudis/sl4a
refs/heads/master
python/src/Lib/test/test_time.py
58
from test import test_support import time import unittest class TimeTestCase(unittest.TestCase): def setUp(self): self.t = time.time() def test_data_attributes(self): time.altzone time.daylight time.timezone time.tzname def test_clock(self): time.clock() ...
andrew-szymanski/gae_django
refs/heads/master
django/contrib/gis/management/commands/ogrinspect.py
324
import os, sys from optparse import make_option from django.contrib.gis import gdal from django.contrib.gis.management.base import ArgsCommand, CommandError def layer_option(option, opt, value, parser): """ Callback for `make_option` for the `ogrinspect` `layer_key` keyword option which may be an integer o...
bryanmontesv/incubator-spot
refs/heads/master
spot-ingest/master_collector.py
10
#!/bin/env python # # 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 "Licens...
fener06/pyload
refs/heads/master
module/lib/thrift/transport/TTwisted.py
74
# # 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...
FireWRT/OpenWrt-Firefly-Libraries
refs/heads/master
staging_dir/host/lib/python3.4/lib2to3/pgen2/__init__.py
655
# Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """The pgen2 package."""
freevo/kaa-metadata
refs/heads/master
src/audio/stagger/commandline.py
18
# # commandline.py # From the stagger project: http://code.google.com/p/stagger/ # # Copyright (c) 2009-2011 Karoly Lorentey <karoly@lorentey.hu> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met...
druids/germanium
refs/heads/master
germanium/config.py
1
from django.conf import settings FLASH = getattr(settings, 'FLASH', '.flash') FLASH_TYPE = getattr(settings, 'FLASH_TYPE', { 'success': '.alert-success', 'info': '.alert-info', 'warning': '.alert-warn', 'error': '.alert-danger' }) FLASH_WRAPPER = getattr(settings, 'FLASH_WRAPPER', '.msg-text') FLASH_I...
shsingh/ansible
refs/heads/devel
test/units/module_utils/network/meraki/__init__.py
12133432
anant-dev/django
refs/heads/master
tests/max_lengths/__init__.py
12133432
neumerance/deploy
refs/heads/master
.venv/lib/python2.7/site-packages/django/core/handlers/__init__.py
12133432
aforalee/rally
refs/heads/master
rally/plugins/openstack/wrappers/__init__.py
12133432
marun/nose-curtain
refs/heads/master
nosecurtain/tests/__init__.py
12133432
ftomassetti/intellij-community
refs/heads/master
python/testData/mover/sameLevelAsDict.py
80
a = { 'c': 99999 } print "Hello, there." a = { 'b': 1, 'c': 2 } print <caret>a['c']
robince/pyentropy_gcodexport
refs/heads/master
gsl_dist/array_includes.py
6
""" WARNING: File Generated during build. DO NOT MODIFY!!! """ array_include_dirs = [] from numpy.distutils.misc_util import get_numpy_include_dirs array_include_dirs = get_numpy_include_dirs()
Senseg/Py4A
refs/heads/master
python3-alpha/python3-src/Doc/includes/sqlite3/collation_reverse.py
100
import sqlite3 def collate_reverse(string1, string2): if string1 == string2: return 0 elif string1 < string2: return 1 else: return -1 con = sqlite3.connect(":memory:") con.create_collation("reverse", collate_reverse) cur = con.cursor() cur.execute("create table test(x)") cur.exec...
sugartom/tensorflow-alien
refs/heads/master
tensorflow/contrib/bayesflow/python/ops/stochastic_variables.py
103
# 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...
sabi0/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/gis/db/backends/spatialite/client.py
623
from django.db.backends.sqlite3.client import DatabaseClient class SpatiaLiteClient(DatabaseClient): executable_name = 'spatialite'
DreamerKing/LightweightHtmlWidgets
refs/heads/master
publish-rc/v1.0/files/Ipy.Lib/__future__.py
257
"""Record of phased-in incompatible language changes. Each line is of the form: FeatureName = "_Feature(" OptionalRelease "," MandatoryRelease "," CompilerFlag ")" where, normally, OptionalRelease < MandatoryRelease, and both are 5-tuples of the same form as sys.version_info: (...
doug-fish/horizon
refs/heads/master
openstack_dashboard/dashboards/project/networks/__init__.py
12133432
Stavitsky/neutron
refs/heads/master
neutron/plugins/vmware/common/__init__.py
12133432
katerina7479/kadre
refs/heads/master
utils/__init__.py
12133432
HyperBaton/ansible
refs/heads/devel
lib/ansible/module_utils/network/vyos/facts/lag_interfaces/__init__.py
12133432
sundarcse1216/python-crud
refs/heads/master
PythonCRUD/crud/__init__.py
12133432
mateoqac/unqTip
refs/heads/master
language/vxgbs/lang/gbs_vm.py
1
# # Copyright (C) 2011, 2012 Pablo Barenbaum <foones@gmail.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 the License, or # (at your option) any later version. # # Th...
onitake/ansible
refs/heads/devel
lib/ansible/modules/system/__init__.py
12133432
dresl/python_web
refs/heads/master
blog/migrations/__init__.py
12133432
Geekcoin-Project/Geekcoin
refs/heads/master
contrib/bitrpc/bitrpc.py
2348
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:8332") else: access = Ser...
jessrosenfield/pants
refs/heads/master
tests/python/pants_test/python/echo_interpreter_version.py
27
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import sys # Usefu...
sss/calibre-at-bzr
refs/heads/upstream/master
src/calibre/gui2/complete.py
8
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' ''' WARNING: The code in this module is deprecated. Use complete2.py instead. This code remains here for legacy plugin supp...
stephen144/odoo
refs/heads/9.0
addons/website_quote/__openerp__.py
19
{ 'name': 'Online Proposals', 'category': 'Website', 'summary': 'Send Professional Quotations', 'website': 'https://www.odoo.com/page/quote-builder', 'version': '1.0', 'description': """ OpenERP Sale Quote Roller ========================= """, 'depends': ['website', 'sale', 'mail', ...
jettify/aiohttp
refs/heads/master
tests/test_py35/test_resp.py
2
import asyncio from collections.abc import Coroutine import pytest import aiohttp from aiohttp import web from aiohttp.client import _RequestContextManager async def test_await(create_server, loop): async def handler(request): return web.HTTPOk() app, url = await create_server() app.router.add_...
awg24/pretix
refs/heads/master
src/pretix/plugins/banktransfer/__init__.py
1
from django.apps import AppConfig from django.utils.functional import cached_property from django.utils.translation import ugettext_lazy as _ from pretix.base.plugins import PluginType class BankTransferApp(AppConfig): name = 'pretix.plugins.banktransfer' verbose_name = _("Bank transfer") class PretixPl...
HiSPARC/station-software
refs/heads/master
user/python/Lib/test/test_bigaddrspace.py
134
from test import test_support from test.test_support import bigaddrspacetest, MAX_Py_ssize_t import unittest import operator import sys class StrTest(unittest.TestCase): @bigaddrspacetest def test_concat(self): s1 = 'x' * MAX_Py_ssize_t self.assertRaises(OverflowError, operator.add, s1, '?')...
hubert667/AIR
refs/heads/master
setup.py
1
# This file is part of Lerot. # # Lerot 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 version. # # Lerot is distributed in the hope tha...
fidomason/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/site-packages/pip/_vendor/distlib/_backport/sysconfig.py
765
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Access to Python's configuration information.""" import codecs import os import re import sys from os.path import pardir, realpath try: import configparser except ImportError: import Conf...
shepdelacreme/ansible
refs/heads/devel
lib/ansible/modules/cloud/ovh/ovh_ip_loadbalancing_backend.py
56
#!/usr/bin/python # Copyright: Ansible Project # 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': '1.1', 'status': ['preview'], ...
harmy/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/tkinter/constants.py
20
# Symbolic constants for Tk # Booleans NO=FALSE=OFF=0 YES=TRUE=ON=1 # -anchor and -sticky N='n' S='s' W='w' E='e' NW='nw' SW='sw' NE='ne' SE='se' NS='ns' EW='ew' NSEW='nsew' CENTER='center' # -fill NONE='none' X='x' Y='y' BOTH='both' # -side LEFT='left' TOP='top' RIGHT='right' BOTTOM='...
equialgo/scikit-learn
refs/heads/master
benchmarks/bench_plot_svd.py
72
"""Benchmarks of Singular Value Decomposition (Exact and Approximate) The data is mostly low rank but is a fat infinite tail. """ import gc from time import time import numpy as np from collections import defaultdict import six from scipy.linalg import svd from sklearn.utils.extmath import randomized_svd from sklear...
dreamapplehappy/myblog
refs/heads/master
node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/pygments/formatter.py
198
# -*- coding: utf-8 -*- """ pygments.formatter ~~~~~~~~~~~~~~~~~~ Base formatter class. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import codecs from pygments.util import get_bool_opt from pygments.styles import get_style_by_nam...
kubeflow/kfp-tekton-backend
refs/heads/master
sdk/python/kfp/components/_structures.py
1
# Copyright 2018 Google 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...