repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
MichaelNedzelsky/intellij-community
refs/heads/master
python/testData/fillParagraph/enter_after.py
83
# Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod # tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim # veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea # commodo consequat. Duis aute irure dolor in reprehenderit in voluptate # velit esse cillum dolore ...
dhomeier/astropy
refs/heads/wcs-datfix-unwarn
astropy/wcs/tests/extension/__init__.py
12133432
mcella/django
refs/heads/master
django/utils/__init__.py
12133432
plumdog/django_migration_testcase
refs/heads/master
tests/test_second_app/south_migrations/__init__.py
12133432
maljac/odoomrp-wip
refs/heads/8.0
procurement_sale_forecast/wizard/make_procurement.py
24
# -*- encoding: utf-8 -*- ############################################################################## # # This program 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...
c4goldsw/shogun
refs/heads/develop
applications/ocr/Ai.py
26
# File : $HeadURL$ # Version: $Id$ from modshogun import RealFeatures, MulticlassLabels from modshogun import GaussianKernel from modshogun import GMNPSVM import numpy as np import gzip as gz import pickle as pkl import common as com class Ai: def __init__(self): self.x = None self.y = None ...
nuclear-wizard/moose
refs/heads/devel
python/chigger/utils/AxisOptions.py
15
#pylint: disable=missing-docstring #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/...
szibis/ansible-modules-core
refs/heads/devel
utilities/helper/accelerate.py
90
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, James Cammarata <jcammarata@ansible.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 ...
TheLoneRanger14/Decaf.v2
refs/heads/master
roms/seabios/scripts/layoutrom.py
7
#!/usr/bin/env python # Script to analyze code and arrange ld sections. # # Copyright (C) 2008-2014 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. import operator import sys # LD script headers/trailers COMMONHEADER = """ /* DO NOT EDIT! This is an aut...
gijs/AutobahnPython
refs/heads/master
autobahn/autobahn/prefixmap.py
15
############################################################################### ## ## Copyright 2011 Tavendo GmbH ## ## 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 ## ## ht...
fabioz/Pydev
refs/heads/master
plugins/org.python.pydev.jython/Lib/mutex.py
243
"""Mutual exclusion -- for use with module sched A mutex has two pieces of state -- a 'locked' bit and a queue. When the mutex is not locked, the queue is empty. Otherwise, the queue contains 0 or more (function, argument) pairs representing functions (or methods) waiting to acquire the lock. When the mutex is unlocke...
saisrisathya/whatsapps
refs/heads/master
yowsup/layers/protocol_groups/protocolentities/test_iq_groups.py
61
from yowsup.layers.protocol_iq.protocolentities.test_iq import IqProtocolEntityTest class GroupsIqProtocolEntityTest(IqProtocolEntityTest): pass
4022321818/2015cd_midterm2
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/sre_parse.py
630
# # Secret Labs' Regular Expression Engine # # convert re-style regular expression to sre pattern # # Copyright (c) 1998-2001 by Secret Labs AB. All rights reserved. # # See the sre.py file for information on usage and redistribution. # """Internal support module for sre""" # XXX: show string offset and offending ch...
osynge/pmpman
refs/heads/master
pmpmanager/__init__.py
1
import pkg_resources import sys # If there is a conflicting non egg module, # i.e. an older standard system module installed, # then replace it with this requirement def replace_dist(requirement): try: return pkg_resources.require(requirement) except pkg_resources.VersionConflict: e = sys.exc_in...
OS2World/APP-INTERNET-torpak_2
refs/heads/master
Lib/calendar.py
3
"""Calendar printing functions Note when comparing these calendars to the ones printed by cal(1): By default, these calendars have Monday as the first day of the week, and Sunday as the last (the European convention). Use setfirstweekday() to set the first day of the week (0=Monday, 6=Sunday).""" import datetime __a...
ar45/django
refs/heads/master
tests/migrations/migrations_test_apps/__init__.py
12133432
ammarkhann/FinalSeniorCode
refs/heads/master
lib/python2.7/site-packages/notebook/services/kernels/__init__.py
12133432
digideskio/merchant
refs/heads/master
billing/models/paylane_models.py
7
# -*- coding: utf-8 -*- # vim:tabstop=4:expandtab:sw=4:softtabstop=4 from django.db import models class PaylaneTransaction(models.Model): transaction_date = models.DateTimeField(auto_now_add=True) amount = models.FloatField() customer_name = models.CharField(max_length=200) customer_email = models.Ch...
minhoryang/locust
refs/heads/master
examples/basic.py
39
from locust import HttpLocust, TaskSet, task def index(l): l.client.get("/") def stats(l): l.client.get("/stats/requests") class UserTasks(TaskSet): # one can specify tasks like this tasks = [index, stats] # but it might be convenient to use the @task decorator @task def page404(self...
adrian-ionescu/apache-spark
refs/heads/master
examples/src/main/python/ml/word2vec_example.py
122
# # 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...
ilpianista/ansible
refs/heads/devel
lib/ansible/parsing/yaml/loader.py
191
# (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...
bitmazk/django-dynamic-content
refs/heads/master
dynamic_content/migrations/0004_auto_20170805_0152.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-08-05 01:52 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dynamic_content', '0003_auto_20150701_0755'), ] operations = [ migrations.AlterModel...
fayf/pyload
refs/heads/stable
module/plugins/crypter/XupPl.py
15
# -*- coding: utf-8 -*- from module.plugins.internal.Crypter import Crypter class XupPl(Crypter): __name__ = "XupPl" __type__ = "crypter" __version__ = "0.12" __status__ = "testing" __pattern__ = r'https?://(?:[^/]*\.)?xup\.pl/.+' __config__ = [("use_subfolder" , "bool", "Save pa...
cnsoft/kbengine-cocos2dx
refs/heads/cocos2dx-cnsoft
kbe/res/scripts/common/Lib/xml/sax/saxutils.py
4
"""\ A library of useful helper classes to the SAX classes, for the convenience of application and driver writers. """ import os, urllib.parse, urllib.request import io import codecs from . import handler from . import xmlreader def __dict_replace(s, d): """Replace substrings of a string using a dictionary.""" ...
sbusso/rethinkdb
refs/heads/next
test/memcached_workloads/multi_serial_mix.py
29
#!/usr/bin/env python # Copyright 2010-2012 RethinkDB, all rights reserved. from __future__ import print_function import sys, os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'common'))) import multiprocessing, time, pickle import memcached_workload_common, serial_mix from v...
joyider/op_mon
refs/heads/master
tests/factories.py
1
# -*- coding: utf-8 -*- """Factories to help in tests.""" from factory import PostGenerationMethodCall, Sequence from factory.alchemy import SQLAlchemyModelFactory from op_mon.database import db from op_mon.user.models import User class BaseFactory(SQLAlchemyModelFactory): """Base factory.""" class Meta: ...
MalloyPower/parsing-python
refs/heads/master
front-end/testsuite-python-lib/Python-2.5/Lib/hmac.py
1
"""HMAC (Keyed-Hashing for Message Authentication) Python module. Implements the HMAC algorithm as described by RFC 2104. """ def _strxor(s1, s2): """Utility method. XOR the two strings s1 and s2 (must have same length). """ return "".join(map(lambda x, y: chr(ord(x) ^ ord(y)), s1, s2)) # The size of the...
virajs/lxc
refs/heads/master
config/yum/lxc-patch.py
64
# Yum plugin to re-patch container rootfs after a yum update is done # # Copyright (C) 2012 Oracle # # Authors: # Dwight Engen <dwight.engen@oracle.com> # # This library 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 Softw...
bxshi/gem5
refs/heads/master
src/sim/BaseTLB.py
29
# Copyright (c) 2008 The Hewlett-Packard Development Company # 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...
elventear/ansible
refs/heads/devel
test/integration/targets/module_utils/module_utils/sub/bar/bar.py
298
#!/usr/bin/env python bar = "BAR FROM sub/bar/bar.py"
nin042/phantomjs
refs/heads/master
src/qt/qtwebkit/Tools/QueueStatusServer/loggers/recordbotevent.py
122
# Copyright (C) 2013 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 ...
hectorEU/GroupCast
refs/heads/master
examples/Remote/s1_clientrbb.py
1
''' Basic remote example sending tell messages. CLIENT @author: Daniel Barcelona Pons ''' from pyactor.context import \ set_context, create_host, setRabbitCredentials, shutdown if __name__ == "__main__": setRabbitCredentials('daniel', 'passs') set_context() host = create_host('amqp://127.0.0.1:1679') ...
drericstrong/pypbe
refs/heads/master
tests/tests_core.py
1
# -*- coding: utf-8 -*- """ pypbe test_core ~~~~~~~~~~~~~~~~~~ A set of unit tests for pypbe. :copyright: (c) 2017 Eric Strong. :license: Refer to LICENSE.txt for more information. """ import unittest from pypbe.core import PBE # These tests are for the user-supplied inputs during PBE object con...
Allow2CEO/browser-ios
refs/heads/master
brave/node_modules/ad-block/vendor/depot_tools/third_party/pylint/checkers/newstyle.py
66
# Copyright (c) 2005-2014 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # 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 2 of the License, o...
52ai/django-ccsds
refs/heads/master
django/contrib/gis/db/backends/mysql/schema.py
448
import logging from django.contrib.gis.db.models.fields import GeometryField from django.db.backends.mysql.schema import DatabaseSchemaEditor from django.db.utils import OperationalError logger = logging.getLogger('django.contrib.gis') class MySQLGISSchemaEditor(DatabaseSchemaEditor): sql_add_spatial_index = 'C...
elijah513/scikit-learn
refs/heads/master
examples/neural_networks/plot_rbm_logistic_classification.py
258
""" ============================================================== Restricted Boltzmann Machine features for digit classification ============================================================== For greyscale image data where pixel values can be interpreted as degrees of blackness on a white background, like handwritten...
googleads/google-ads-python
refs/heads/master
google/ads/googleads/v6/services/services/paid_organic_search_term_view_service/transports/base.py
1
# -*- coding: utf-8 -*- # Copyright 2020 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 o...
jrumball/PyKoans
refs/heads/master
python 3/runner/runner_tests/test_helper.py
32
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from runner import helper class TestHelper(unittest.TestCase): def test_that_get_class_name_works_with_a_string_instance(self): self.assertEqual("str", helper.cls_name(str())) def test_that_get_class_name_works_with_a_4(self)...
sgallagher/anaconda
refs/heads/master
pyanaconda/modules/storage/bootloader/image.py
3
# # Copyright (C) 2019 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in the hope that it will be ...
asnorkin/sentiment_analysis
refs/heads/master
site/lib/python2.7/site-packages/scipy/cluster/tests/test_vq.py
14
from __future__ import division, print_function, absolute_import import warnings import sys import numpy as np from numpy.testing import (assert_array_equal, assert_array_almost_equal, TestCase, run_module_suite, assert_raises, assert_allclose, assert_equal, assert_) from numpy.testing.decorators import skip...
68foxboris/enigma2-openpli-vuplus
refs/heads/master
lib/python/Components/BlinkingPixmap.py
133
from Pixmap import PixmapConditional from ConditionalWidget import BlinkingWidgetConditional, BlinkingWidget class BlinkingPixmap(BlinkingWidget): def __init__(self): Widget.__init__(self) class BlinkingPixmapConditional(BlinkingWidgetConditional, PixmapConditional): def __init__(self): BlinkingWidgetConditiona...
ccnmtl/lettuce
refs/heads/master
tests/integration/lib/Django-1.3/django/contrib/messages/tests/user_messages.py
241
from django import http from django.contrib.auth.models import User from django.contrib.messages.storage.user_messages import UserMessagesStorage,\ LegacyFallbackStorage from django.contrib.messages.tests.base import skipUnlessAuthIsInstalled from django.contrib.messages.tests.cookie import set_cookie_data from dja...
pygeek/django
refs/heads/master
tests/regressiontests/i18n/patterns/urls/path_unused.py
175
from django.conf.urls import url from django.conf.urls import patterns from django.views.generic import TemplateView view = TemplateView.as_view(template_name='dummy.html') urlpatterns = patterns('', url(r'^nl/foo/', view, name='not-translated'), )
Sarah-Alsinan/muypicky
refs/heads/master
lib/python3.6/site-packages/django/utils/regex_helper.py
45
""" Functions for reversing a regular expression (used in reverse URL resolving). Used internally by Django and not intended for external use. This is not, and is not intended to be, a complete reg-exp decompiler. It should be good enough for a large class of URLS, however. """ from __future__ import unicode_literals ...
hogarthj/ansible
refs/heads/devel
lib/ansible/modules/cloud/centurylink/clc_server_snapshot.py
56
#!/usr/bin/python # # Copyright (c) 2015 CenturyLink # 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': ['previe...
chiefspace/udemy-rest-api
refs/heads/master
udemy_rest_api_section5/code/env/lib/python3.4/site-packages/setuptools/site-patch.py
720
def __boot(): import sys import os PYTHONPATH = os.environ.get('PYTHONPATH') if PYTHONPATH is None or (sys.platform=='win32' and not PYTHONPATH): PYTHONPATH = [] else: PYTHONPATH = PYTHONPATH.split(os.pathsep) pic = getattr(sys,'path_importer_cache',{}) stdpath = sys.path[le...
Aravinthu/odoo
refs/heads/master
doc/_extensions/autojsdoc/__main__.py
2
# -*- coding: utf-8 -*- import cgitb import fnmatch import io import logging import click import pyjsdoc import pyjsparser import sys from .parser.parser import ModuleMatcher from .parser.visitor import Visitor, SKIP from . import jsdoc class Printer(Visitor): def __init__(self, level=0): super(Printer,...
jhaux/tensorflow
refs/heads/master
tensorflow/contrib/distributions/python/kernel_tests/geometric_test.py
23
# Copyright 2017 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...
jrbadiabo/Coursera-Stanford-ML-Class
refs/heads/master
Python_Version/Ex7.K-Means_PCA_-_Clustering/runkMeans.py
2
from computeCentroids import computeCentroids from plotProgresskMeans import plotProgresskMeans from findClosestCentroids import findClosestCentroids import matplotlib.pyplot as plt import numpy as np import itertools def runkMeans(X, initial_centroids, max_iters, plot_progress=False): """runs the K-Means algorit...
osborne6/luminotes
refs/heads/master
controller/Notebooks.py
1
import re import cgi import cherrypy from datetime import datetime from Expose import expose from Validate import validate, Valid_string, Validation_error, Valid_bool, Valid_int from Database import Valid_id, Valid_revision, end_transaction from Users import grab_user_id, Access_error from Expire import strongly_expire...
marcosmodesto/django-testapp
refs/heads/master
djangotoolbox/djangotoolbox/tests.py
35
from __future__ import with_statement from decimal import Decimal, InvalidOperation import time from django.core import serializers from django.db import models from django.db.models import Q from django.db.models.signals import post_save from django.db.utils import DatabaseError from django.dispatch.dispatcher import...
hermanliang/gitinspector
refs/heads/master
gitinspector/filtering.py
49
# coding: utf-8 # # Copyright © 2012-2014 Ejwa Software. All rights reserved. # # This file is part of gitinspector. # # gitinspector 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 Lic...
Peddle/hue
refs/heads/master
apps/hbase/src/hbase/management/commands/hbase_setup.py
32
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
likaiguo/flask-admin
refs/heads/master
flask_admin/_compat.py
24
# -*- coding: utf-8 -*- """ flask_admin._compat ~~~~~~~~~~~~~~~~~~~~~~~ Some py2/py3 compatibility support based on a stripped down version of six so we don't have to depend on a specific version of it. :copyright: (c) 2013 by Armin Ronacher. :license: BSD, see LICENSE for more details. ""...
tschneidereit/servo
refs/heads/master
tests/wpt/web-platform-tests/webdriver/network.py
212
# this comes from this stack overflow post: # http://stackoverflow.com/a/1947766/725944 # module for getting the lan ip address of the computer import os import socket if os.name != "nt": import fcntl import struct def get_interface_ip(ifname): sckt = socket.socket(socket.AF_INET, socket.SOCK_DGR...
ecosoft-odoo/odoo
refs/heads/8.0
addons/website_mail/controllers/__init__.py
390
import email_designer import main
jgravois/ArcREST
refs/heads/master
src/arcrest/ags/_geoprocessing.py
1
import json from _gpobjects import * from .._abstract.abstract import BaseAGSServer, BaseGPObject from ..common.spatial import featureclass_to_json, recordset_to_json from ..common.general import local_time_to_online from ..security import security import urllib import time import datetime ############################...
bcornwellmott/erpnext
refs/heads/develop
erpnext/hr/doctype/daily_work_summary_settings/__init__.py
12133432
illicitonion/givabit
refs/heads/master
lib/sdks/google_appengine_1.7.1/google_appengine/lib/django_1_3/tests/modeltests/custom_columns/__init__.py
12133432
OpenCanada/website
refs/heads/master
newsletter/__init__.py
12133432
wevoice/wesub
refs/heads/staging
apps/jsdemo/__init__.py
20
# Amara, universalsubtitles.org # # Copyright (C) 2013 Participatory Culture Foundation # # This program 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 your ...
aifil/odoo
refs/heads/8.0
addons/l10n_pl/__init__.py
381
# -*- encoding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details.
bingo235/TeamTalk
refs/heads/master
win-client/3rdParty/src/json/test/generate_expected.py
257
import glob import os.path for path in glob.glob( '*.json' ): text = file(path,'rt').read() target = os.path.splitext(path)[0] + '.expected' if os.path.exists( target ): print 'skipping:', target else: print 'creating:', target file(target,'wt').write(text)
chaffra/sympy
refs/heads/master
bin/coverage_doctest.py
83
#!/usr/bin/env python """ Program to test that all methods/functions have at least one example doctest. Also checks if docstrings are imported into Sphinx. For this to work, the Sphinx docs need to be built first. Use "cd doc; make html" to build the Sphinx docs. Usage: ./bin/coverage_doctest.py sympy/core or ./...
codepython/restcommander
refs/heads/master
play-1.2.4/python/Lib/compiler/__init__.py
58
"""Package for parsing and compiling Python source code There are several functions defined at the top level that are imported from modules contained in the package. parse(buf, mode="exec") -> AST Converts a string containing Python source code to an abstract syntax tree (AST). The AST is defined in compiler...
getsentry/disqus-postgres
refs/heads/master
src/dsq_postgres/exceptions.py
2
""" dsq_postgres.exceptions ~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 DISQUS. :license: Apache License 2.0, see LICENSE for more details. """ import psycopg2 import traceback class CompositeTraceback(object): def __init__(self, tb_list): assert isinstance(tb_list, (list, tuple)) self.__t...
botswana-harvard/microbiome
refs/heads/develop
microbiome/apps/mb_maternal/forms/maternal_visit_form.py
1
from django import forms from django.contrib.admin.widgets import AdminRadioSelect, AdminRadioFieldRenderer from edc_base.form.forms import BaseModelForm from microbiome.apps.mb.choices import VISIT_REASON, VISIT_INFO_SOURCE, MATERNAL_VISIT_STUDY_STATUS, INFO_PROVIDER from ..models import MaternalVisit, MaternalConse...
2014c2g2/teamwork
refs/heads/master
wsgi/static/reeborg/src/libraries/brython/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...
Buggaboo/gimp-plugin-export-layers
refs/heads/master
export_layers/pygimplib/tests/__init__.py
1
#------------------------------------------------------------------------------- # # This file is part of pygimplib. # # Copyright (C) 2014, 2015 khalim19 <khalim19@gmail.com> # # pygimplib is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # t...
jart/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/softmax_op_test.py
12
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
vikigenius/ns3-mmwave
refs/heads/master
src/internet/bindings/modulegen__gcc_LP64.py
30
null
DirtyPiece/dancestudio
refs/heads/master
Build/Tools/Python27/Lib/test/test_traceback.py
26
"""Test cases for traceback module""" from StringIO import StringIO import sys import unittest from imp import reload from test.test_support import run_unittest, is_jython, Error, cpython_only import traceback class TracebackCases(unittest.TestCase): # For now, a very minimal set of tests. I want to be sure th...
xuleiboy1234/autoTitle
refs/heads/master
tensorflow/tensorflow/python/grappler/cost_analyzer_test.py
40
# Copyright 2017 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...
simonwydooghe/ansible
refs/heads/devel
lib/ansible/module_utils/facts/system/local.py
73
# 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 in the hope that ...
gminds/rapidnewsng
refs/heads/master
django/contrib/gis/geos/geometry.py
103
""" This module contains the 'base' GEOSGeometry object -- all GEOS Geometries inherit from this object. """ from __future__ import unicode_literals # Python, ctypes and types dependencies. from ctypes import addressof, byref, c_double from django.contrib.gis import memoryview # super-class for mutable list behavio...
quokkaproject/quokka-cart
refs/heads/master
models.py
1
# coding: utf-8 import datetime import logging import sys from werkzeug.utils import import_string from flask import session, current_app from quokka.utils.translation import _l from quokka.utils import get_current_user, lazy_str_setting from quokka.core.templates import render_template from quokka.core.db import db...
EngExp/Testovii1
refs/heads/master
mint.py
2
# -*- coding: utf-8 -*- ''' mint - small, fast and simple template engine. ''' import os import re import ast import mmap import time import fnmatch import logging import weakref import itertools import htmlentitydefs from ast import Load, Store, Param from StringIO import StringIO from functools import partial from ...
shadmanj/college-code
refs/heads/master
PHYS172-Modern-Mechanics/Lab10.py
1
from __future__ import division from visual import * from visual.graph import * #control visualizer window scene.width = 600 scene.height = 760 #objects ceiling = box(pos=vector(0,0,0), size = (0.2,0.01,0.2)) block = sphere(radius=.025, color=color.yellow) spring=helix(pos=ceiling.pos, color=color.orange, ...
SpamScope/spamscope
refs/heads/develop
fabfile.py
1
def pre_submit(topology_name, env_name, env_config, options): """Override this function to perform custom actions prior to topology submission. No SSH tunnels will be active when this function is called.""" pass def post_submit(topo_name, env_name, env_configi, options): """Override this function to p...
jmerkow/VTK
refs/heads/master
ThirdParty/Twisted/twisted/conch/client/agent.py
69
# -*- test-case-name: twisted.conch.test.test_default -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Accesses the key agent for user authentication. Maintainer: Paul Swartz """ import os from twisted.conch.ssh import agent, channel, keys from twisted.internet import protocol, reacto...
andrewnsk/dorokhin.moscow
refs/heads/master
realtydb/widgets/__init__.py
12133432
aleksandra-tarkowska/django
refs/heads/master
tests/backends/__init__.py
12133432
Sciprios/EvolutionaryPartyProblemSimulator
refs/heads/master
PartyProblemSimulator/Solvers/GeneticAlgorithm.py
2
class GeneticAlgorithm(object): """ A genetic algorithm evolves a solution to a problem. """ def __init__(self, max_generations): """ Initializes the instance level variables. """ self._eval_count = 0 self._repopulate([]) # Empty population self._set_generation(0) ...
neustar/wpm_api_client
refs/heads/master
src/file.py
2
# Copyright 2000 - 2015 NeuStar, 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 l...
root-mirror/root
refs/heads/master
main/src/hadd-argparse.py
23
import argparse import sys def get_argparse(): DESCRIPTION = """This program will add histograms from a list of root files and write them to a target root file.\n The target file is newly created and must not exist, or if -f (\"force\") is given, must not be one of the source files.\n """ EPILOGUE = """ If Target an...
ccwang002/biocloud-server-kai
refs/heads/master
src/biocloud/urls.py
1
"""biocloud URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
NeuroDataDesign/seelviz
refs/heads/gh-pages
Flask/env/lib/python2.7/site-packages/pip/_vendor/distlib/_backport/misc.py
1428
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Backports for individual classes and functions.""" import os import sys __all__ = ['cache_from_source', 'callable', 'fsencode'] try: from imp import cache_from_source except ImportError: ...
RobertABT/heightmap
refs/heads/master
build/matplotlib/lib/mpl_toolkits/axes_grid/axisline_style.py
9
from mpl_toolkits.axisartist.axisline_style import *
rismalrv/edx-platform
refs/heads/master
cms/djangoapps/contentstore/course_info_model.py
112
""" Views for viewing, adding, updating and deleting course updates. Current db representation: { "_id" : locationjson, "definition" : { "data" : "<ol>[<li><h2>date</h2>content</li>]</ol>"}, "items" : [{"id": ID, "date": DATE, "content": CONTENT}] "metadata" : ignored } } """ impor...
sangwonl/stage34
refs/heads/develop
webapp/api/admin.py
1
from __future__ import unicode_literals from django import forms from django.contrib import admin from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.contrib.auth import get_user_model ...
leki75/ansible
refs/heads/devel
lib/ansible/modules/network/nxos/nxos_ntp_auth.py
50
#!/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 distribut...
ingokegel/intellij-community
refs/heads/master
python/testData/mover/insideDocComment.py
80
def fcn(self, foo, bar): """ :type <caret>foo: int :type bar: str """ self.foo = foo self.bar = bar
ssbrewster/peanuts
refs/heads/master
peanuts/config/production.py
1
# -*- coding: utf-8 -*- ''' Production Configurations - Use djangosecure - Use Amazon's S3 for storing static files and uploaded media - Use sendgird to sendemails - Use MEMCACHIER on Heroku ''' from configurations import values # See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings ...
adnanh/zulip
refs/heads/master
zerver/decorator.py
116
from __future__ import absolute_import from django.http import HttpResponseRedirect from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_exempt from django.http import QueryDict, HttpResponseNotAllowed from django.http.multipartparser import MultiPartParser from zerve...
wemanuel/smry
refs/heads/master
server-auth/ls/google-cloud-sdk/lib/googlecloudapis/computeaccounts/staging_alpha/__init__.py
4
"""Common imports for generated computeaccounts client library.""" # pylint:disable=wildcard-import import pkgutil from googlecloudapis.apitools.base.py import * from googlecloudapis.computeaccounts.staging_alpha.computeaccounts_staging_alpha_client import * from googlecloudapis.computeaccounts.staging_alpha.computea...
awkspace/ansible
refs/heads/devel
lib/ansible/module_utils/netapp_module.py
25
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
podemos-info/odoo
refs/heads/6.1
addons/purchase_requisition/wizard/__init__.py
65
# -*- 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...
abdellatifkarroum/odoo
refs/heads/8.0
addons/l10n_gr/__init__.py
438
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify #...
Edraak/circleci-edx-platform
refs/heads/circleci-master
lms/envs/edraak_devstack.py
2
from .devstack import * from .edraak_common import * # WARNING: Don't just add/delete settings from here. Make sure the settings are # reflected in `cms/envs/edraak_devstack.py`
zerodb/zerodb
refs/heads/master
zerodb/transform/interfaces.py
2
from zope.interface import Attribute, Interface class ICompressor(Interface): """Compressing or decompressing data""" name = Attribute("Signature that object is compressed with this algorithm. Recorded as '.cname$'") _compress = Attribute("Low-level compress function") _decompress = Attribute("Low-lev...