repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
hickey/amforth
refs/heads/master
core/devices/atmega168p/device.py
5
# Partname: ATmega168P # generated automatically, do not edit MCUREGS = { 'UDR0': '&198', 'UCSR0A': '&192', 'UCSR0A_RXC0': '$80', 'UCSR0A_TXC0': '$40', 'UCSR0A_UDRE0': '$20', 'UCSR0A_FE0': '$10', 'UCSR0A_DOR0': '$08', 'UCSR0A_UPE0': '$04', 'UCSR0A_U2X0': '$02', 'UCSR0A_MPCM0': '$01', 'UCSR0B...
davidvon/pipa-pay-server
refs/heads/master
site-packages/sqlalchemy/sql/__init__.py
12
# sql/__init__.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 from .expression import ( Alias, ClauseElement, ColumnCollection, Colu...
joeythesaint/yocto-autobuilder
refs/heads/master
lib/python2.7/site-packages/buildbot_slave-0.8.8-py2.7.egg/buildslave/test/unit/test_commands_darcs.py
4
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
sirinyal/qualitybots
refs/heads/master
src/appengine/handlers/url_handler.py
26
#!/usr/bin/python2.4 # # Copyright 2011 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...
staticlibs/android-ndk-r9d-arm-linux-androideabi-4.8
refs/heads/master
lib/python2.7/antigravity.py
235
import webbrowser webbrowser.open("http://xkcd.com/353/")
ramaseshan/Spirit
refs/heads/master
spirit/core/management/commands/spiritupgrade.py
10
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.management.base import BaseCommand from django.core.management import call_command class Command(BaseCommand): help = 'Upgrade Spirit.' def handle(self, *args, **options): call_command('migrate', stdout=self.stdout, st...
da1z/intellij-community
refs/heads/master
python/testData/resolve/multiFile/python33NamespacePackage/p1/m1.py
819
def foo(): pass
takeshineshiro/nova
refs/heads/master
nova/tests/functional/api/client.py
33
# Copyright (c) 2011 Justin Santa Barbara # # 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 applicab...
admcrae/tensorflow
refs/heads/master
tensorflow/contrib/metrics/python/ops/metric_ops.py
8
# 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...
WALR/djangomx
refs/heads/master
djangomx/accounts/admin.py
6
# coding: utf-8 from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from .models import Profile from django.utils.timezone import now class ProfileInline(admin.StackedInline): model = Profile can_delete = False verbose_name_plural = ...
grybmadsci/openhtf
refs/heads/master
examples/example_plug.py
1
# 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 agre...
Alexyah/authpuppy
refs/heads/master
ap-node-extra-plugin/web/js/lib/build/build.py
28
#!/usr/bin/env python import sys sys.path.append("../tools") import mergejs have_compressor = None try: import jsmin have_compressor = "jsmin" except ImportError: try: import minimize have_compressor = "minimize" except Exception, E: print E pass sourceDirectory = "../...
florentmercier/BtoVLE
refs/heads/master
src/Function.py
1
#!/usr/bin/python # coding=UTF-8 from strings import * ## Function # class Function(object): def __init__(self, model, prototype): self.__model = model self.__prototype = prototype self.__output = "" def __repr__(self): return FUNCTION_BODY %(self.__prototype, self.getContent()) def addContent(self,...
mtnbikenc/ansible-modules-extras
refs/heads/devel
identity/opendj/opendj_backendprop.py
22
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Werner Dijkerman (ikben@werner-dijkerman.nl) # # 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...
UQ-UQx/edx-platform_lti
refs/heads/master
common/lib/xmodule/xmodule/modulestore/tests/test_cross_modulestore_import_export.py
2
""" This suite of tests verifies that courses exported from one modulestore can be imported into another modulestore and the result will be identical (ignoring changes to identifiers that are the result of being imported into a course with a different course id). It does this by providing facilities for creating and c...
xhat/micropython
refs/heads/master
tests/basics/list_slice_assign_grow.py
72
x = list(range(2)) l = list(x) l[0:0] = [10] print(l) l = list(x) l[:0] = [10, 20] print(l) l = list(x) l[0:0] = [10, 20, 30, 40] print(l) l = list(x) l[1:1] = [10, 20, 30, 40] print(l) l = list(x) l[2:] = [10, 20, 30, 40] print(l) # Weird cases l = list(x) l[1:0] = [10, 20, 30, 40] print(l) l = list(x) l[100:100]...
xlk521/cloudguantou
refs/heads/master
django/contrib/gis/tests/geoapp/feeds.py
326
from django.contrib.gis import feeds from django.contrib.gis.tests.utils import mysql from models import City, Country class TestGeoRSS1(feeds.Feed): link = '/city/' title = 'Test GeoDjango Cities' def items(self): return City.objects.all() def item_link(self, item): return '/city/%s/...
kmonsoor/pyglet
refs/heads/master
contrib/layout/layout/css.py
29
#!/usr/bin/env python '''CSS 2.1 parsing and rule matching. This module is distinct from the CSS 2.1 properties, which are contained in properties.py; allowing users to use the CSS syntax and rule matching for custom properties and applications if desired. The Stylesheet class is the top-level interface to rules and...
dwillmer/fastats
refs/heads/master
fastats/maths/norm_cdf.py
2
from numpy import sqrt, minimum from fastats.maths.erfc import erfc def norm_cdf(x, mu, sigma): """ Normal Cumulative Distribution Function Norm CDF across X for a normal distribution with mean `mu` and standard deviation `sigma`. >>> norm_cdf(0.0, 0.0, 1.0) # doctest: +ELLIPSIS 0....
sam-roth/Keypad
refs/heads/master
keypad_tests/test_python.py
1
import unittest from keypad.plugins.pymodel.pymodel import PythonCodeModel, PythonCompletionResults, RelatedName from keypad.abstract.code import AbstractCallTip from keypad.core.conftree import ConfTree from keypad.buffers import Buffer, Cursor, Span from keypad.api import Config class TestPythonCodeModel(unittest....
abanerj/linux-mac
refs/heads/master
Documentation/target/tcm_mod_builder.py
200
#!/usr/bin/python # The TCM v4 multi-protocol fabric module generation script for drivers/target/$NEW_MOD # # Copyright (c) 2010 Rising Tide Systems # Copyright (c) 2010 Linux-iSCSI.org # # Author: nab@kernel.org # import os, sys import subprocess as sub import string import re import optparse tcm_dir = "" fabric_ops...
cortext/crawtextV2
refs/heads/master
~/venvs/crawler/lib/python2.7/site-packages/nltk/ccg/lexicon.py
12
# Natural Language Toolkit: Combinatory Categorial Grammar # # Copyright (C) 2001-2012 NLTK Project # Author: Graeme Gange <ggange@csse.unimelb.edu.au> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT import re from collections import defaultdict from nltk.ccg.api import PrimitiveCategory, Dir...
seanfisk/buzzword-bingo-server
refs/heads/master
django/contrib/localflavor/cl/__init__.py
12133432
seungjin/app5-seungjin-net.appspot.com
refs/heads/master
django/contrib/localflavor/it/__init__.py
12133432
chauhanhardik/populo_2
refs/heads/master
common/djangoapps/student/management/commands/__init__.py
12133432
ABaldwinHunter/django-clone
refs/heads/master
tests/gis_tests/layermap/__init__.py
12133432
frishberg/django
refs/heads/master
tests/migrations/test_migrations_empty/__init__.py
12133432
Athemis/PyDSF
refs/heads/master
ui/__init__.py
12133432
gangadharkadam/saloon_erp
refs/heads/master
erpnext/crm/doctype/__init__.py
12133432
cgre-aachen/gempy
refs/heads/master
gempy/utils/decimation.py
12133432
a-krebs/finances
refs/heads/develop
finances/shared/tests/models/budget_tests.py
1
# Copyright (C) 2012 Aaron Krebs akrebs@ualberta.ca # 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. # This program is...
marksuarez/wfinancial
refs/heads/master
node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py
2736
# 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. """Visual Studio project reader/writer.""" import gyp.common import gyp.easy_xml as easy_xml #-------------------------------------------------------------------...
glenn-edgar/local_scda
refs/heads/master
flask_web/werkzeug-master/werkzeug/wrappers.py
85
# -*- coding: utf-8 -*- """ werkzeug.wrappers ~~~~~~~~~~~~~~~~~ The wrappers are simple request and response objects which you can subclass to do whatever you want them to do. The request object contains the information transmitted by the client (webbrowser) and the response object contains al...
4DD8A19D69F5324F9D49D17EF78BBBCC/_disc_rete_optimi_zation_
refs/heads/master
coloring/solver.py
1
#!/usr/bin/python # -*- coding: utf-8 -*- import networkx as nx import numpy as np import sys import random from Numberjack import * from parsing import * from utils import * from kemp_chain import * from cliquesolve import convert_to_cliques, set_cover_model from time import sleep sys.setrecursionlimit(100000) ...
medit74/DeepLearning
refs/heads/master
MyPythonDeepLearning/NeuralNetwork/myactivation.py
1
''' Created on 2017. 4. 6. @author: Byoungho Kang ''' import numpy as np import matplotlib.pyplot as plt ''' 계단함수 구현 입력파라미터 numpy.ndarray 출력파라미터 numpy.ndarray ''' def stepFunction(x): y = [] # Empty List for value in x: if value > 0: y.append(1) else...
maxalbert/bokeh
refs/heads/master
bokeh/sampledata/project_funding.py
8
"""Provides convenient access to data viz challenge data. Source: https://github.com/localytics/data-viz-challenge This dataset is excellent for testing and demonstrating data viz capabilities because it contains numerous categorical columns, with both high and low cardinality, columns with NaN values, dates and loca...
lyynocs/magento-connector-v8
refs/heads/master
magentoerpconnect/__init__.py
3
# -*- coding: utf-8 -*- from . import setting from . import connector from . import backend from . import magento_model from . import product from . import product_category from . import partner from . import partner_category from . import invoice from . import sale from . import delivery from . import stock_picking f...
MD14/zaproxy
refs/heads/develop
python/api/src/zapv2/script.py
15
# Zed Attack Proxy (ZAP) and its related class files. # # ZAP is an HTTP/HTTPS proxy for assessing web application security. # # Copyright 2015 the ZAP development team # # 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...
when30/namebench
refs/heads/master
nb_third_party/jinja2/_stringdefs.py
412
# -*- coding: utf-8 -*- """ jinja2._stringdefs ~~~~~~~~~~~~~~~~~~ Strings of all Unicode characters of a certain category. Used for matching in Unicode-aware languages. Run to regenerate. Inspired by chartypes_create.py from the MoinMoin project, original implementation from Pygments. :co...
waheedahmed/edx-platform
refs/heads/master
common/lib/xmodule/xmodule/tests/rendering/core.py
208
""" This module is indended to provide a pluggable way to add assertions about the rendered content of XBlocks. For each view on the XBlock, this module defines a @singledispatch function that can be used to test the contents of the rendered html. The functions are of the form: @singledispatch def assert_stu...
chundongwang/Guess2014
refs/heads/master
rename.flag.py
1
import os import logging def rename_files(path): for filename in os.listdir(path): name,ext = os.path.splitext(filename) logging.info('name=%s,ext=%s'%(name,ext)) if ext=='.png': logging.info('old:%s,new:%s'%(os.path.join(path,filename),os.path.join(path,name[:3]+ext))) ...
dsoprea/PyBufferBins
refs/heads/master
pybufferbins/__init__.py
9480
#
shubhdev/edx-platform
refs/heads/master
cms/djangoapps/contentstore/tests/test_i18n.py
133
from unittest import skip from django.contrib.auth.models import User from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase from contentstore.tests.utils import AjaxEnabledTestClient class InternationalizationTest(ModuleStoreTestCase): """ Tests to validate Internationalization. """ ...
tomchristie/django
refs/heads/master
django/db/backends/postgresql/base.py
12
""" PostgreSQL database backend for Django. Requires psycopg 2: http://initd.org/projects/psycopg2 """ import threading import warnings from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db import DEFAULT_DB_ALIAS from django.db.backends.base.base import BaseDatabase...
saurabh6790/med_app_rels
refs/heads/master
selling/report/sales_person_target_variance_item_group_wise/__init__.py
12133432
phalax4/CarnotKE
refs/heads/master
jyhton/out/production/jyhton/test333.py
13
""" [ #476772 ] shutdowns in jython / atexit """ import support import os def check(filename, result): f = open(filename) l = f.readlines() f.close() if l != result: raise support.TestError("Result was wrong: %s" % l) # Different exit situations in the interpreter. support.runJython("test333...
bdrillard/spark
refs/heads/master
python/pyspark/sql/tests/test_pandas_udf_grouped_agg.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 us...
guduchango/pyafipws
refs/heads/master
wsaa.py
1
#!/usr/bin/python # -*- coding: latin-1 -*- # 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, or (at your option) any later # version. # # This program is distributed in the hope...
wengcq/django-wallet
refs/heads/master
wallet/urls.py
4
from django.conf.urls.defaults import * from wallet import views urlpatterns = patterns('', url( r'^deposit/(?P<option_id>\d+)/return/(?P<invoice_id>\d+)/$', views.deposit_return, name='deposit_return', ), url( r'^deposit/(?P<option_id>\d+)/return/(?P<invoice_id>\d+)/cance...
MatthieuBizien/scikit-learn
refs/heads/master
sklearn/tests/test_isotonic.py
11
import warnings import numpy as np import pickle import copy from sklearn.isotonic import (check_increasing, isotonic_regression, IsotonicRegression) from sklearn.utils.testing import (assert_raises, assert_array_equal, assert_true, assert_false, assert...
ptoraskar/django
refs/heads/master
django/conf/app_template/models.py
476
{{ unicode_literals }}from django.db import models # Create your models here.
sonata-nfv/son-tests
refs/heads/master
int-slm-infrabstractV2/test-cleaner/son-mano-base/test/__init__.py
6
""" Copyright 2015-2017 Paderborn University 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...
drueffer/apage_rom
refs/heads/master
autoDetect.py
1
# -*- coding: utf-8 -*- """ Created on Tue Mar 13 14:45:30 2012 @author: rueffer """ import time import numpy as np import numexpr as ne #import cv2 as cv import cv2 from matplotlib import pylab as plt from matplotlib.patches import Rectangle from matplotlib import transforms as MPLTransforms from copy...
925781609/PythonCodeLibrary
refs/heads/master
Mail.py
1
#!/usr/bin/env python # encoding: utf-8 import smtplib from email.mime.text import MIMEText # MAil Config EMAIL_HOST = 'smtp.exmail.qq.com' EMAIL_PORT = 25 SENDER = 'xxx.xxx@qq.com' PASSWORD = 'xxx...' RECIVER = ['xxx.xxx@qq.com'] class Mail(object): def send_mail(self, subject, content): text_subty...
youprofit/zato
refs/heads/master
code/zato-common/src/zato/common/component_info.py
6
# -*- coding: utf-8 -*- """ Copyright (C) 2014 Dariusz Suchojad <dsuch at zato.io> Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ from __future__ import absolute_import, division, print_function, unicode_literals # stdlib import os from anyjson import dumps as json_dumps, loads as json_loads f...
jojanper/draalcore
refs/heads/master
draalcore/models/admin_log.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- """View all log entries in the admin. Adapted from https://djangosnippets.org/snippets/2484/ """ # System imports from django.contrib import admin from django.contrib.admin.models import DELETION from django.utils.html import escape from django.core.urlresolvers import re...
HenningSchroeder/git-repo
refs/heads/master
progress.py
143
# # Copyright (C) 2009 The Android Open Source Project # # 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 la...
screwt/tablib
refs/heads/develop
tablib/packages/odf3/thumbnail.py
135
#!/usr/bin/python # -*- coding: utf-8 -*- # This contains a 128x128 px thumbnail in PNG format # Taken from http://www.zwahlendesign.ch/en/node/20 # openoffice_icons/openoffice_icons_linux/openoffice11.png # License: Freeware import base64 iconstr = """\ iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAAG0OVFdAAAABGdBTUEAANbY1E9Y...
mdanielwork/intellij-community
refs/heads/master
python/testData/psi/FStringTerminatedByQuoteOfNestedStringLiteralInFormatPart.py
15
s = f'{f"{42:{'foo'}}"}'
gnowxilef/youtube-dl
refs/heads/master
youtube_dl/extractor/motherless.py
36
from __future__ import unicode_literals import datetime import re from .common import InfoExtractor from ..utils import ( ExtractorError, str_to_int, unified_strdate, ) class MotherlessIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?motherless\.com/(?:g/[a-z0-9_]+/)?(?P<id>[A-Z0-9]+)' _TEST...
sloria/marshmallow-polyfield
refs/heads/master
tests/test_serialization.py
1
from collections import namedtuple from marshmallow import fields, Schema from marshmallow_polyfield.polyfield import PolyField import pytest from tests.shapes import ( shape_schema_serialization_disambiguation, Rectangle, Triangle, shape_schema_deserialization_disambiguation ) def test_serializing_na...
iulian787/spack
refs/heads/develop
var/spack/repos/builtin/packages/py-fisher/package.py
3
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyFisher(PythonPackage): """Fisher's Exact Test. Simple, fast implementation of Fishe...
tylertian/Openstack
refs/heads/master
openstack F/python-cinderclient/cinderclient/v2/quotas.py
3
# Copyright 2013 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...
adw0rd/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/django/conf/urls/shortcut.py
353
from django.conf.urls.defaults import * urlpatterns = patterns('django.views', (r'^(?P<content_type_id>\d+)/(?P<object_id>.*)/$', 'defaults.shortcut'), )
yangw1234/BigDL
refs/heads/master
pyspark/test/__init__.py
12133432
BramDr/VIC
refs/heads/master
tests/unit/vic_run/test_canopy_assimilation.py
12133432
dagwieers/ansible
refs/heads/devel
lib/ansible/modules/cloud/docker/__init__.py
12133432
kxliugang/edx-platform
refs/heads/master
common/djangoapps/external_auth/__init__.py
12133432
nathanial/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/django/conf/locale/da/__init__.py
12133432
vlegoff/tsunami
refs/heads/master
src/primaires/format/commandes/flottantes/editer.py
1
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # 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 # ...
Edu-Glez/Bank_sentiment_analysis
refs/heads/master
env/lib/python3.6/site-packages/numpy/lib/_datasource.py
46
"""A file interface for handling local and remote data files. The goal of datasource is to abstract some of the file system operations when dealing with data files so the researcher doesn't have to know all the low-level details. Through datasource, a researcher can obtain and use a file with one function call, regar...
alibama/cvillecouncilus
refs/heads/master
sites/all/libraries/v3.2.1/closure-library/closure/bin/build/source.py
113
# Copyright 2009 The Closure Library 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 a...
fxsjy/pybrain
refs/heads/master
pybrain/supervised/evolino/networkwrapper.py
5
__author__ = 'Michael Isik' from pybrain.structure.networks.network import Network from pybrain.structure.modules.lstm import LSTMLayer from pybrain.structure.modules.linearlayer import LinearLayer from pybrain.structure.connections.full import FullConnection from pybrain.structure.modules.module ...
Technorip/Myntra
refs/heads/master
Django Backend/myntra/env/lib/python2.7/site-packages/django_filters/__init__.py
2
# flake8: noqa from __future__ import absolute_import from .filterset import FilterSet from .filters import * __version__ = '0.13.0' def parse_version(version): ''' '0.1.2-dev' -> (0, 1, 2, 'dev') '0.1.2' -> (0, 1, 2) ''' v = version.split('.') v = v[:-1] + v[-1].split('-') ret = [] f...
GinnyN/towerofdimensions-django
refs/heads/master
build/lib/django/conf/locale/zh_CN/formats.py
1293
# -*- 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 = # TIME_FORMAT = # DATETIME_FORMAT = # YEAR_MONTH_FORMAT = # MONTH_DA...
tomkralidis/QGIS
refs/heads/master
python/plugins/processing/gui/Postprocessing.py
25
# -*- coding: utf-8 -*- """ *************************************************************************** Postprocessing.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ************************...
PlayCircular/play_circular
refs/heads/master
apps/actividades/admin_views.py
1
#coding=utf-8 # Copyright (C) 2014 by Víctor Romero Blanco <info at playcircular dot com>. # http://playcircular.com/ # It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise. # You can get copies of the licenses here: http://www.affero.org/oagpl.html # AFFERO GENERAL PUBLIC LICENSE is also incl...
safchain/contrail-controller
refs/heads/master
src/analytics/test/utils/mockcassandra/mockcassandra/__init__.py
12133432
watchdogpolska/prezydent.siecobywatelska.pl
refs/heads/master
ankieta/config/production.py
1
# -*- coding: utf-8 -*- ''' Production Configurations - Use djangosecure - Use Amazon's S3 for storing static files and uploaded media - Use sendgrid to send emails - Use MEMCACHIER on Heroku ''' from os.path import join import os from configurations import values from .common import Common, BASE_DIR class Productio...
nomaro/SickBeard_Backup
refs/heads/master
sickbeard/clients/utorrent.py
36
# Authors: Mr_Orange <mr_orange@hotmail.it>, EchelonFour # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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 ve...
hunger/cleanroom
refs/heads/master
cleanroom/buildcontainer/main.py
1
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Main CleanRoom functionality. @author: Tobias Hunger <tobias.hunger@gmail.com> """ from argparse import ArgumentParser, REMAINDER import os import subprocess import sys import typing def _parse_commandline(*arguments: str) -> typing.Any: """Parse the command lin...
linjoahow/cd0505
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/unittest/test/test_break.py
785
import gc import io import os import sys import signal import weakref import unittest @unittest.skipUnless(hasattr(os, 'kill'), "Test requires os.kill") @unittest.skipIf(sys.platform =="win32", "Test cannot run on Windows") @unittest.skipIf(sys.platform == 'freebsd6', "Test kills regrtest on freebsd6 " "if threa...
TeamSWAP/swap
refs/heads/master
external/pyinstaller/PyInstaller/hooks/hook-scipy.io.matlab.py
10
#----------------------------------------------------------------------------- # Copyright (c) 2013, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License with exception # for distributing bootloader. # # The full license is in the file COPYING.txt, distributed with this softwa...
uniphil/heroku-buildpack-pythonsass
refs/heads/master
vendor/setuptools-2.1/setuptools/command/build_py.py
207
import os import sys import fnmatch import textwrap from distutils.command.build_py import build_py as _build_py from distutils.util import convert_path from glob import glob try: from setuptools.lib2to3_ex import Mixin2to3 except ImportError: class Mixin2to3: def run_2to3(self, files, doctests=True): ...
vmax-feihu/hue
refs/heads/master
desktop/core/ext-py/Django-1.6.10/tests/test_sqlite.py
144
# This is an example test settings file for use with the Django test suite. # # The 'sqlite3' backend requires only the ENGINE setting (an in- # memory database will be used). All other backends will require a # NAME and potentially authentication information. See the # following section in the docs for more informatio...
Sylrob434/CouchPotatoServer
refs/heads/develop
libs/requests/packages/charade/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...
keyboard-k/youtube-dl-pet
refs/heads/master
youtube_dl/extractor/m6.py
147
# encoding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class M6IE(InfoExtractor): IE_NAME = 'm6' _VALID_URL = r'http://(?:www\.)?m6\.fr/[^/]+/videos/(?P<id>\d+)-[^\.]+\.html' _TEST = { 'url': 'http://www.m6.fr/emission-les_reines_du_shopping/videos...
MakMukhi/grpc
refs/heads/master
src/python/grpcio_tests/tests/interop/methods.py
4
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
EdPassos/fofix
refs/heads/master
src/FoFiX.py
3
#!/usr/bin/python # -*- coding: iso-8859-1 -*- ##################################################################### # Frets on Fire X (FoFiX) # # Copyright (C) 2006 Sami Ky�stil� # # 2008 evilynux <evilynux@gmail.com> ...
jamdin/jdiner-mobile-byte3
refs/heads/master
lib/numpy/setup.py
41
#!/usr/bin/env python def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('numpy',parent_package,top_path) config.add_subpackage('distutils') config.add_subpackage('testing') config.add_subpackage('f2py') config.add_subp...
Chiil/microhh
refs/heads/master
kernel_tuner/helpers.py
5
import numpy as np class Grid: def __init__(self, xsize, ysize, zsize, itot, jtot, ktot, ijgc=1, kgc=1, TF=np.float64): """ Simple (equidistant) grid """ np.random.seed(666) self.xsize = TF(xsize) self.ysize = TF(ysize) self.zsize = TF(zsize) self....
dsullivan7/scikit-learn
refs/heads/master
examples/mixture/plot_gmm_pdf.py
284
""" ============================================= Density Estimation for a mixture of Gaussians ============================================= Plot the density estimation of a mixture of two Gaussians. Data is generated from two Gaussians with different centers and covariance matrices. """ import numpy as np import ma...
proxysh/Safejumper-for-Desktop
refs/heads/master
buildmac/Resources/env/lib/python2.7/site-packages/Crypto/SelfTest/Hash/common.py
113
# -*- coding: utf-8 -*- # # SelfTest/Hash/common.py: Common code for Crypto.SelfTest.Hash # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedicat...
staticlibs/android-ndk-r9d-arm-linux-androideabi-4.8
refs/heads/master
lib/python2.7/test/test_urllib2net.py
48
#!/usr/bin/env python import unittest from test import test_support from test.test_urllib2 import sanepathname2url import socket import urllib2 import os import sys TIMEOUT = 60 # seconds def _retry_thrice(func, exc, *args, **kwargs): for i in range(3): try: return func(*args, **kwargs) ...
guijomatos/SickRage
refs/heads/master
lib/sqlalchemy/dialects/postgresql/psycopg2.py
75
# postgresql/psycopg2.py # Copyright (C) 2005-2014 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 """ .. dialect:: postgresql+psycopg2 :name: psycopg2 :dbapi: psycopg2 ...
40223246/w16b_test
refs/heads/master
static/Brython3.1.3-20150514-095342/Lib/threading.py
730
"""Thread module emulating a subset of Java's threading model.""" import sys as _sys import _thread from time import sleep as _sleep try: from time import monotonic as _time except ImportError: from time import time as _time from traceback import format_exc as _format_exc from _weakrefset import WeakSet # No...
nealtodd/django
refs/heads/master
tests/migrations/test_migrations_squashed_complex_multi_apps/app2/__init__.py
12133432
impactlab/oeem-energy-datastore
refs/heads/master
portal/templatetags/__init__.py
12133432
mikedingjan/wagtail
refs/heads/master
wagtail/contrib/settings/tests/__init__.py
12133432
willprice/weboob
refs/heads/master
modules/boursorama/pages/login.py
5
# -*- coding: utf-8 -*- # Copyright(C) 2010-2011 Jocelyn Jaubert # # This file is part of weboob. # # weboob is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...