repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
sniemi/SamPy | refs/heads/master | focus/phaseretrievalresults.py | 1 | """
Combines the Phase Retrieval software results, produces plots and calculates focus with and without breathing correction.
USAGE:
python PhaseRetResults.py
HISTORY:
Created on Dec 17, 2009
:author: Sami-Matias Niemi
:contact: niemi@stsci.edu
:version: 0.91
:todo: maybe introduce sigma clipping to the means?
:to... |
jsilter/scipy | refs/heads/master | scipy/stats/_distr_params.py | 7 | """
Sane parameters for stats.distributions.
"""
distcont = [
['alpha', (3.5704770516650459,)],
['anglit', ()],
['arcsine', ()],
['beta', (2.3098496451481823, 0.62687954300963677)],
['betaprime', (5, 6)],
['bradford', (0.29891359763170633,)],
['burr', (10.5, 4.3)],
['cauchy', ()],
[... |
perryjrandall/arsenalsuite | refs/heads/master | cpp/apps/freezer/afplugins/wrangle.py | 11 |
from blur.Stone import *
from blur.Classes import *
from blur.Freezer import *
from PyQt4.QtCore import *
from PyQt4.QtSql import *
import traceback, os
import subprocess
class WranglerViewerPlugin(JobViewerPlugin):
def __init__(self):
JobViewerPlugin.__init__(self)
def name(self):
return QSt... |
oposs/check_mk_mirror | refs/heads/master | web/htdocs/index.py | 1 | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... |
lawzou/shoop | refs/heads/master | shoop_tests/core/test_categories.py | 6 | # -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
import pytest
from shoop.core.models import Category, CategoryVisibility, Ca... |
cernops/nova | refs/heads/master | nova/scheduler/__init__.py | 116 | # Copyright (c) 2010 OpenStack Foundation
#
# 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 ... |
GenericStudent/home-assistant | refs/heads/dev | tests/components/switch/test_init.py | 14 | """The tests for the Switch component."""
import pytest
from homeassistant import core
from homeassistant.components import switch
from homeassistant.const import CONF_PLATFORM
from homeassistant.setup import async_setup_component
from tests.components.switch import common
@pytest.fixture(autouse=True)
def entities... |
YuMatsuzawa/HadoopEclipseProject | refs/heads/master | hadoop-0.20.2-cdh3u5/src/contrib/hod/hodlib/ServiceProxy/serviceProxy.py | 182 | #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 use thi... |
kirbyfan64/shedskin | refs/heads/master | examples/com/github/tarsa/tarsalzp/Options.py | 6 | #
# Copyright (c) 2012, Piotr Tarsa
# 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 fol... |
shyamalschandra/picochess | refs/heads/master | libs/spur/results.py | 2 | import locale
def result(return_code, allow_error, output, stderr_output):
result = ExecutionResult(return_code, output, stderr_output)
if return_code == 0 or allow_error:
return result
else:
raise result.to_error()
class ExecutionResult(object):
def __init__(self, return_cod... |
sreichholf/python-coherence | refs/heads/develop | coherence/upnp/devices/internet_gateway_device_client.py | 5 | # -*- coding: utf-8 -*-
# Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# Copyright 2010 Frank Scholz <dev@coherence-project.org>
from coherence.upnp.devices.wan_device_client import WANDeviceClient
from coherence import log
import coherence.extern.louie as louie
class InternetGa... |
colinligertwood/odoo | refs/heads/master | addons/account/edi/__init__.py | 450 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2011 OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... |
StephenKing/ryu | refs/heads/master | ryu/tests/unit/ofproto/test_parser_v12.py | 23 | # Copyright (C) 2012 Nippon Telegraph and Telephone Corporation.
#
# 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... |
signed/intellij-community | refs/heads/master | python/testData/intentions/PyConvertToFStringIntentionTest/formatMethodWrapExpressionsInParentheses.py | 31 | '{0.real}, {1.imag}, {2[0]}, {3}, {4.attr}'.format(-42, 42, [1] + [2], lambda: None, ~MyClass()) |
baconbum/SportsTicker | refs/heads/master | NHLScraper/NHLScoringPlayPlayer.py | 1 | #!/usr/bin/env python3
class NHLScoringPlayPlayer:
'Details of a player who took part in a scoring play'
def __init__(self, scoringPlayPlayerData):
self.fullName = scoringPlayPlayerData["player"]["fullName"]
self.playerType = scoringPlayPlayerData["playerType"]
if (self.playerType != "Goalie"):
self.seas... |
ThiagoGarciaAlves/intellij-community | refs/heads/master | python/testData/inspections/AugmentAssignmentWithContext.py | 83 | class A:
x = 3
a = A()
<weak_warning descr="Assignment can be replaced with augmented assignment">a.x = a.x +<caret> 1</weak_warning> |
ella/ella-newman | refs/heads/master | test_newman/test_statics.py | 1 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from django.test.client import Client
from django.conf import settings
def test_static():
c = Client()
r = c.get('%s/img/nav-bg.gif' % settings.NEWMAN_MEDIA_PREFIX)
r.status_code == 200
|
jdahlin/stoq-wubi | refs/heads/master | src/pypack/altgraph/ObjectGraph.py | 9 | from itertools import imap
from altgraph.compat import *
from altgraph.Graph import Graph
from altgraph.GraphUtil import filter_stack
class ObjectGraph(object):
"""
A graph of objects that have a "graphident" attribute.
graphident is the key for the object in the graph
"""
def __init__(self, graph... |
yush1ga/pulsar | refs/heads/master | dashboard/django/stats/templatetags/stats_extras.py | 11 | #
# 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... |
sorenk/ansible | refs/heads/devel | lib/ansible/modules/network/junos/junos_logging.py | 3 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Ansible by Red Hat, inc
# 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',
... |
yeephycho/codePieces | refs/heads/master | OPENCV_IMAGE_MANIPULATION/image-manipulation.py | 1 | #! /usr/bin/env python
import numpy as np
import cv2
image = cv2.imread("./cat.jpg")
def get_image_info(image):
print(image.shape)
print(image.dtype)
def image_reshape(image, shape):
image_reshape = image.reshape(shape)
return image_reshape
def WHC2CWH(image):
b = image[:, :, 0]
g = image[:... |
samthor/intellij-community | refs/heads/master | plugins/hg4idea/testData/bin/mercurial/diffhelpers.py | 96 | # diffhelpers.py - pure Python implementation of diffhelpers.c
#
# Copyright 2009 Matt Mackall <mpm@selenic.com> and others
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
def addlines(fp, hunk, lena, lenb, a, b):
while True:
... |
moijes12/oh-mainline | refs/heads/master | vendor/packages/gdata/src/gdata/marketplace/data.py | 51 | #!/usr/bin/python
#
# Copyright 2009 Google 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 required b... |
open-synergy/purchase-workflow | refs/heads/8.0 | purchase_group_hooks/purchase_group_hooks.py | 21 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Leonardo Pistone
# Copyright 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# pu... |
djkonro/client-python | refs/heads/master | kubernetes/test/test_v1_config_map.py | 2 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... |
ojengwa/odoo | refs/heads/8.0 | addons/hr_timesheet/wizard/__init__.py | 381 | # -*- 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... |
DanForever/TimeSync | refs/heads/master | GAE/lib/requests/packages/chardet/big5prober.py | 2930 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... |
mdavid/cherokee-webserver-svnclone | refs/heads/master | admin/PageRule.py | 1 | # -*- coding: utf-8 -*-
#
# Cherokee-admin
#
# Authors:
# Alvaro Lopez Ortega <alvaro@alobbs.com>
#
# Copyright (C) 2001-2010 Alvaro Lopez Ortega
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License as published by the Free S... |
Just-D/chromium-1 | refs/heads/master | tools/cygprofile/symbol_extractor_unittest.py | 23 | #!/usr/bin/python
# Copyright 2015 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 symbol_extractor
import unittest
class TestSymbolInfo(unittest.TestCase):
def testIgnoresBlankLine(self):
symbol_info = symbo... |
faizankshaikh/Project | refs/heads/master | trials/icdar_trial4.py | 1 | import os
import random
import pylab
import time
import csv
import enchant
import pandas as pd
import numpy as np
import cPickle as pkl
from lasagne import layers, updates
from scipy.misc import imread, imresize
from lasagne.nonlinearities import softmax
from nolearn.lasagne import NeuralNet, BatchIterator
from sklearn... |
hwjworld/xiaodun-platform | refs/heads/master | lms/envs/cms/__init__.py | 12133432 | |
aperezalbela/scrapy_bvl | refs/heads/master | bvl/__init__.py | 12133432 | |
nicholac/universe_abm | refs/heads/master | celestials/__init__.py | 12133432 | |
meineerde/vncauthproxy | refs/heads/master | vncauthproxy/__init__.py | 12133432 | |
FireWRT/OpenWrt-Firefly-Libraries | refs/heads/master | staging_dir/host/lib/python3.4/test/test_threadedtempfile.py | 171 | """
Create and delete FILES_PER_THREAD temp files (via tempfile.TemporaryFile)
in each of NUM_THREADS threads, recording the number of successes and
failures. A failure is a bug in tempfile, and may be due to:
+ Trying to create more than one tempfile with the same name.
+ Trying to delete a tempfile that doesn't sti... |
Lightmatter/django-inlineformfield | refs/heads/master | .tox/py27/lib/python2.7/site-packages/pyflakes/scripts/pyflakes.py | 16 | """
Implementation of the command-line I{pyflakes} tool.
"""
from __future__ import absolute_import
# For backward compatibility
from pyflakes.api import check, checkPath, checkRecursive, iterSourceCode, main
|
ShownX/incubator-mxnet | refs/heads/master | example/mxnet_adversarial_vae/vaegan_mxnet.py | 18 | # 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... |
boyuegame/kbengine | refs/heads/master | kbe/src/lib/python/Lib/distutils/command/bdist_wininst.py | 86 | """distutils.command.bdist_wininst
Implements the Distutils 'bdist_wininst' command: create a windows installer
exe-program."""
import sys, os
from distutils.core import Command
from distutils.util import get_platform
from distutils.dir_util import create_tree, remove_tree
from distutils.errors import *
from distutil... |
espressopp/espressopp | refs/heads/master | src/interaction/AngularCosineSquared.py | 1 | # Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of the G... |
tmxdyf/pjsip-jni | refs/heads/master | tests/pjsua/scripts-call/305_ice_comp_2_1.py | 22 | # $Id$
#
from inc_cfg import *
# Different number of ICE components
test_param = TestParam(
"Callee=use ICE, caller=use ICE",
[
InstanceParam("callee", "--null-audio --use-ice --max-calls=1", enable_buffer=True),
InstanceParam("caller", "--null-audio --use-ice --max-calls=1 --ice-no-rtcp", enable_buffer=True... |
ojengwa/oh-mainline | refs/heads/master | vendor/packages/requests/requests/packages/chardet/chardistribution.py | 2754 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... |
alu042/edx-platform | refs/heads/master | lms/djangoapps/mobile_api/social_facebook/groups/serializers.py | 128 | """
Serializer for user API
"""
from rest_framework import serializers
from django.core.validators import RegexValidator
class GroupSerializer(serializers.Serializer):
"""
Serializes facebook groups request
"""
name = serializers.CharField(max_length=150)
description = serializers.CharField(ma... |
alexandrucoman/vbox-neutron-agent | refs/heads/master | neutron/agent/l3/router_processing_queue.py | 11 | # Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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 requir... |
40323210/bg6_cdw11 | refs/heads/master | users/b/g101/b40123200.py | 7 | from flask import Blueprint, request
bg101 = Blueprint('bg101', __name__, url_prefix='/bg101', template_folder='templates')
head_str = '''
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>網際 2D 繪圖</title>
<!-- IE 9: display inline SVG -->
<meta http-equiv="X-UA-Compatible" content="IE=9">... |
cervinko/calibre-web | refs/heads/master | vendor/sqlalchemy/events.py | 13 | # sqlalchemy/events.py
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Core event interfaces."""
from . import event, exc, util
engine = util.import... |
b3j0f/middleware | refs/heads/master | b3j0f/middleware/cls.py | 1 | # -*- coding: utf-8 -*-
# --------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016 Jonathan Labéjof <jonathan.labejof@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation fi... |
mbayon/TFG-MachineLearning | refs/heads/master | venv/lib/python3.6/site-packages/scipy/sparse/extract.py | 27 | """Functions to extract parts of sparse matrices
"""
from __future__ import division, print_function, absolute_import
__docformat__ = "restructuredtext en"
__all__ = ['find', 'tril', 'triu']
from .coo import coo_matrix
def find(A):
"""Return the indices and values of the nonzero elements of a matrix
Par... |
asedunov/intellij-community | refs/heads/master | python/testData/copyPaste/TopLevelIfStatementWithMultilineCondition.after.py | 35 | if (True or (True or
False)):
x = 1
y = 2 |
robertnishihara/ray | refs/heads/master | rllib/agents/ars/__init__.py | 3 | from ray.rllib.agents.ars.ars import ARSTrainer, DEFAULT_CONFIG
from ray.rllib.agents.ars.ars_tf_policy import ARSTFPolicy
from ray.rllib.agents.ars.ars_torch_policy import ARSTorchPolicy
__all__ = [
"ARSTFPolicy",
"ARSTorchPolicy",
"ARSTrainer",
"DEFAULT_CONFIG",
]
|
Jionglun/-w16b_test | refs/heads/master | static/Brython3.1.1-20150328-091302/Lib/site.py | 805 | import sys
|
lancezlin/pyjs | refs/heads/master | examples/libtest/ArgsTest.py | 6 | from UnitTest import UnitTest
def aArgs(*args):
return args
def ftest(a, b):
return [a, b]
class ArgsTest(UnitTest):
def testNaming1(self):
values = ftest(1, 2)
self.assertEquals(values[0], 1)
self.assertEquals(values[1], 2)
def testNaming2(self):
values = ftest(a=1,... |
Mbrownshoes/ckanext-bcgov | refs/heads/master | ckanext/bcgov/logic/__init__.py | 6 | # Copyright 2015, Province of British Columbia
# License: https://github.com/bcgov/ckanext-bcgov/blob/master/license
|
lache/RacingKingLee | refs/heads/master | monitor/engine.win64/2.74/python/lib/encodings/cp1255.py | 272 | """ Python Character Mapping Codec cp1255 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1255.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,in... |
henry0312/LightGBM | refs/heads/master | examples/python-guide/dask/ranking.py | 2 | import os
import dask.array as da
import numpy as np
from distributed import Client, LocalCluster
from sklearn.datasets import load_svmlight_file
import lightgbm as lgb
if __name__ == "__main__":
print("loading data")
X, y = load_svmlight_file(os.path.join(os.path.dirname(os.path.realpath(__file__)),
... |
vseledkin/neon | refs/heads/master | neon/data/dataiterator.py | 10 | # ----------------------------------------------------------------------------
# Copyright 2014 Nervana Systems 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.o... |
rohitwaghchaure/alec_frappe5_erpnext | refs/heads/develop | erpnext/config/accounts.py | 22 | from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Documents"),
"icon": "icon-star",
"items": [
{
"type": "doctype",
"name": "Journal Entry",
"description": _("Accounting journal entries.")
},
{
"type": "doctype",
"name":... |
naparuba/opsbro | refs/heads/master | opsbro/misc/internalcherrypy/cherrypy/wsgiserver/__init__.py | 238 | __all__ = ['HTTPRequest', 'HTTPConnection', 'HTTPServer',
'SizeCheckWrapper', 'KnownLengthRFile', 'ChunkedRFile',
'MaxSizeExceeded', 'NoSSLError', 'FatalSSLAlert',
'WorkerThread', 'ThreadPool', 'SSLAdapter',
'CherryPyWSGIServer',
'Gateway', 'WSGIGateway', 'WSGIGate... |
etherkit/OpenBeacon2 | refs/heads/master | macos/venv/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-rdflib.py | 3 | # ------------------------------------------------------------------
# Copyright (c) 2020 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPD... |
kojiagile/CLAtoolkit | refs/heads/koji | clatoolkit_project/xapi/tincan/typed_list.py | 7 | # Copyright 2014 Rustici Software
#
# 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... |
petchat/streamparse | refs/heads/master | streamparse/cli/common.py | 6 | """
Functions for adding common CLI arguments to argparse sub-commands.
"""
def add_ackers(parser):
""" Add --ackers option to parser """
parser.add_argument('-a', '--ackers',
help='Set number of acker bolts. Takes precedence over '
'--par if both set.')
d... |
efortuna/AndroidSDKClone | refs/heads/master | ndk/prebuilt/linux-x86_64/lib/python2.7/test/test_exceptions.py | 46 | # Python test set -- part 5, built-in exceptions
import os
import sys
import unittest
import pickle, cPickle
from test.test_support import (TESTFN, unlink, run_unittest, captured_output,
check_warnings, cpython_only)
from test.test_pep352 import ignore_deprecation_warnings
# XXX This i... |
quamilek/django | refs/heads/master | tests/postgres_tests/test_hstore.py | 70 | import json
from django.core import exceptions, serializers
from django.forms import Form
from . import PostgreSQLTestCase
from .models import HStoreModel
try:
from django.contrib.postgres import forms
from django.contrib.postgres.fields import HStoreField
from django.contrib.postgres.validators import K... |
webnotes/wnframework | refs/heads/develop | core/doctype/workflow_transition/workflow_transition.py | 578 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl |
marcoarruda/MissionPlanner | refs/heads/master | Lib/site-packages/scipy/cluster/tests/vq_test.py | 63 | import numpy as np
from scipy.cluster import vq
def python_vq(all_data,code_book):
import time
t1 = time.time()
codes1,dist1 = vq.vq(all_data,code_book)
t2 = time.time()
#print 'fast (double):', t2 - t1
#print ' first codes:', codes1[:5]
#print ' first dist:', dist1[:5]
#print ' last... |
jmesteve/saas3 | refs/heads/master | openerp/addons_extra/group_ibeacon/__openerp__.py | 1 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2013 ErpAndCloud All Rights Reserved
# https://github.com/jmesteve
# https://github.com/escrichov
# ... |
pselle/calibre | refs/heads/master | src/calibre/ebooks/pdf/render/gradients.py | 14 | #!/usr/bin/env python2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
... |
ericawright/bedrock | refs/heads/master | lib/fluent_migrations/newsletter/includes/__init__.py | 12133432 | |
vmanoria/bluemix-hue-filebrowser | refs/heads/master | hue-3.8.1-bluemix/desktop/core/ext-py/Django-1.6.10/tests/test_runner_invalid_app/models/__init__.py | 12133432 | |
ftomassetti/intellij-community | refs/heads/master | python/testData/refactoring/move/usageFromFunctionResolvesToDunderAll/before/src/c.py | 12133432 | |
jesseditson/rethinkdb | refs/heads/next | test/rql_test/connections/http_support/flask/testsuite/test_apps/flaskext/__init__.py | 12133432 | |
hkariti/ansible | refs/heads/devel | lib/ansible/modules/commands/__init__.py | 12133432 | |
t0in4/django | refs/heads/master | tests/migrations/test_migrations_squashed_complex_multi_apps/__init__.py | 12133432 | |
Ubuntu-Solutions-Engineering/glance-simplestreams-sync-charm | refs/heads/master | hooks/charmhelpers/contrib/__init__.py | 12133432 | |
gumpcs/FETK | refs/heads/master | src/data_preprocessing/class_imbalance_processing.py | 12133432 | |
datapackages/tabulator-py | refs/heads/master | tabulator/validate.py | 1 | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
from . import config
from . import helpers
from . import exceptions
# Module API
def validate(source, scheme=None, format=None):
'''Check i... |
sharbison3/python-docs-samples | refs/heads/master | appengine/standard/ndb/modeling/keyproperty_models_test.py | 8 | # Copyright 2014 Google 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 required by applicable law or ... |
ModdedPA/android_external_chromium_org | refs/heads/kitkat | media/PRESUBMIT.py | 51 | # 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.
"""Top-level presubmit script for Chromium media component.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details abo... |
40223232/final-test-6-22 | refs/heads/master | static/Brython3.1.1-20150328-091302/Lib/sys.py | 408 | # hack to return special attributes
from _sys import *
from javascript import JSObject
has_local_storage=__BRYTHON__.has_local_storage
has_session_storage = __BRYTHON__.has_session_storage
has_json=__BRYTHON__.has_json
brython_debug_mode = __BRYTHON__.debug
argv = ['__main__']
base_exec_prefix = __BRYTHON__.brython_... |
eaplatanios/tensorflow | refs/heads/master | tensorflow/python/saved_model/utils.py | 55 | # 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... |
smunaut/gnuradio | refs/heads/master | gr-trellis/examples/python/test_cpm.py | 11 | #!/usr/bin/env python
##################################################
# Gnuradio Python Flow Graph
# Title: CPM test
# Author: Achilleas Anastasopoulos
# Description: gnuradio flow graph
# Generated: Thu Feb 19 23:16:23 2009
##################################################
from gnuradio import gr
from gnuradio im... |
SAP/pyhdb | refs/heads/master | tests/types/test_meta.py | 9 | # Copyright 2014, 2015 SAP SE.
#
# 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,
#... |
ahmed-mahran/hue | refs/heads/master | desktop/core/ext-py/guppy-0.1.10/guppy/gsl/XHTML.py | 37 | #._cv_part guppy.gsl.XHTML
class Node2XHTML:
def __init__(self, mod, node=None, error_report = None, encode_name=None
):
self.mod = mod
self.valid_html40 = False
self.encode = self.mod.encode
if encode_name is None:
encode_name = self.mod.encode_name
self.encode_name = encode_nam... |
scorpilix/Golemtest | refs/heads/develop | golem/ranking/helper/__init__.py | 12133432 | |
diegoguimaraes/django | refs/heads/master | tests/admin_checks/__init__.py | 12133432 | |
yencarnacion/jaikuengine | refs/heads/master | .google_appengine/lib/django_1_2/tests/regressiontests/string_lookup/__init__.py | 12133432 | |
zhzhussupovkz/taxi-py | refs/heads/master | core/__init__.py | 12133432 | |
tombstone/models | refs/heads/master | research/im2txt/im2txt/ops/image_embedding.py | 34 | # 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... |
fnouama/intellij-community | refs/heads/master | python/testData/inspections/PyMethodFirstArgAssignmentInspection/src/first-args.py | 83 | def self(): # ok
pass
self = 1 # ok
class A:
def foo(self, a):
(self, (a, b)) = 1, ((22, 23))
if 1:
a = {}
self = 23
for (self, a) in []:
pass
def boo():
self = 1
def moo(self):
def inner_moo():
self =1
def self():
pass
class self:
... |
yongshengwang/hue | refs/heads/master | build/env/lib/python2.7/site-packages/ipython-0.10-py2.7.egg/IPython/external/Itpl.py | 7 | # -*- coding: utf-8 -*-
"""String interpolation for Python (by Ka-Ping Yee, 14 Feb 2000).
This module lets you quickly and conveniently interpolate values into
strings (in the flavour of Perl or Tcl, but with less extraneous
punctuation). You get a bit more power than in the other languages,
because this module allow... |
barnsnake351/nova | refs/heads/master | nova/tests/unit/api/openstack/compute/admin_only_action_common.py | 69 | # Copyright 2013 IBM Corp.
#
# 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 w... |
akintoey/django | refs/heads/master | tests/admin_checks/__init__.py | 12133432 | |
vivekanand1101/neutron | refs/heads/master | neutron/db/__init__.py | 12133432 | |
asimshankar/tensorflow | refs/heads/master | tensorflow/examples/adding_an_op/__init__.py | 12133432 | |
google-code/android-scripting | refs/heads/master | python/src/Lib/bsddb/test/__init__.py | 12133432 | |
niwinz/tornado-webtools | refs/heads/master | tests/template/__init__.py | 12133432 | |
simbs/edx-platform | refs/heads/master | openedx/core/djangoapps/content/course_structures/api/v0/__init__.py | 12133432 | |
MoritzS/django | refs/heads/master | tests/view_tests/app4/__init__.py | 12133432 | |
janocat/odoo | refs/heads/8.0 | addons/marketing_campaign/__init__.py | 380 | # -*- 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... |
crccheck/atx-bandc | refs/heads/master | bandc/apps/agenda/management/__init__.py | 12133432 | |
mbauskar/sapphire-erpnext | refs/heads/master | erpnext/support/doctype/warranty_claim/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.