repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
chokribr/inveniotest
refs/heads/master
modules/docextract/lib/refextract_engine.py
11
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of t...
NCSSM-CS/CSAssess
refs/heads/master
controller/getAssessment.py
1
#!/usr/local/bin/python3 """ created_by: John Fang created_date: 3/4/2015 last_modified_by: Aninda Manocha last_modified_date: 3/6/2014 """ # imports import json import utils from sql.user import User from sql.assessment import Assessment from sql.session import Session #Format of JSON -KP #requestTy...
jylaxp/django
refs/heads/master
django/contrib/postgres/operations.py
374
from django.contrib.postgres.signals import register_hstore_handler from django.db.migrations.operations.base import Operation class CreateExtension(Operation): reversible = True def __init__(self, name): self.name = name def state_forwards(self, app_label, state): pass def database...
mpdevilleres/tbpc_app
refs/heads/master
tbpc/contract_mgt/tests/test_models.py
1
from django.test import TestCase from .factories import ContractFactory, ContractChangeFactory, ContractorFactory, ContractorContactFactory, \ SupportContractFactory from ..models import Contract, ContractChange, Contractor, ContractorContact, SupportContract import pytest @pytest.mark.django_db class TestContr...
liang42hao/bokeh
refs/heads/master
bokeh/query.py
43
''' The query module provides functions for searching Bokeh object graphs for objects that match specified criteria. Queries are specified as selectors similar to MongoDB style query selectors. Examples:: # find all objects with type "grid" find(p, {'type': 'grid'}) # find all objects with type "grid" o...
GeekTrainer/Flask
refs/heads/master
Work/Trivia - Module 5/env/Lib/site-packages/flask/testsuite/test_apps/flaskext/__init__.py
12133432
PayBas/MediaToBBCode
refs/heads/master
tests/__init__.py
12133432
adieu/django-nonrel
refs/heads/master
django/contrib/localflavor/kw/__init__.py
12133432
nontas/antonakoscvpr2015
refs/heads/master
antonakoscvpr2015/__init__.py
12133432
memo/tensorflow
refs/heads/master
tensorflow/examples/tutorials/word2vec/__init__.py
12133432
phoebusliang/parallel-lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/tests/modeltests/proxy_model_inheritance/__init__.py
12133432
aliyun/oss-ftp
refs/heads/master
python36/unix/lib/urllib3/contrib/_securetransport/__init__.py
12133432
tusbar/django-staticfiles
refs/heads/develop
staticfiles/tests/apps/no_label/models.py
12133432
fffonion/you-get
refs/heads/develop
src/you_get/cli_wrapper/transcoder/__init__.py
12133432
raphaelmerx/django
refs/heads/master
django/conf/locale/hr/__init__.py
12133432
eduNEXT/edunext-platform
refs/heads/master
cms/djangoapps/api/v1/serializers/__init__.py
12133432
dynamicapp/dynamicapp
refs/heads/master
lib/iOS/dependencies/cpp/scons/scons-local-2.0.0.final.0/SCons/Tool/pdf.py
34
"""SCons.Tool.pdf Common PDF Builder definition for various other Tool modules that use it. Add an explicit action to run epstopdf to convert .eps files to .pdf """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation # # Permission is hereby granted, free of charge, to a...
silly-wacky-3-town-toon/SOURCE-COD
refs/heads/master
otp/distributed/DistributedDirectoryAI.py
5
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI class DistributedDirectoryAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory("DistributedDirectoryAI") def setParentingRules(self, todo0, todo1): pass
Zlash65/erpnext
refs/heads/develop
erpnext/patches/v12_0/delete_priority_property_setter.py
8
import frappe def execute(): frappe.db.sql(""" DELETE FROM `tabProperty Setter` WHERE `tabProperty Setter`.doc_type='Issue' AND `tabProperty Setter`.field_name='priority' AND `tabProperty Setter`.property='options' """)
kamenim/samba
refs/heads/master
python/samba/tests/xattr.py
30
# Unix SMB/CIFS implementation. Tests for xattr manipulation # Copyright (C) Matthieu Patou <mat@matws.net> 2009 # # 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...
ashishbaghudana/mthesis-ashish
refs/heads/develop
resources/tees/Detectors/UnmergingDetector.py
2
from SingleStageDetector import SingleStageDetector from ExampleBuilders.UnmergingExampleBuilder import UnmergingExampleBuilder from ExampleWriters.UnmergingExampleWriter import UnmergingExampleWriter from Classifiers.SVMMultiClassClassifier import SVMMultiClassClassifier from Evaluators.AveragingMultiClassEvaluator im...
robbriggs/googletest
refs/heads/master
test/gtest_color_test.py
3259
#!/usr/bin/env python # # Copyright 2008, 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...
kyroskoh/phantomjs
refs/heads/master
src/qt/qtwebkit/Source/ThirdParty/gtest/test/gtest_color_test.py
3259
#!/usr/bin/env python # # Copyright 2008, 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...
wfleurant/cjdns
refs/heads/master
node_build/dependencies/libuv/build/gyp/test/mac/gyptest-postbuild.py
345
#!/usr/bin/env python # Copyright (c) 2011 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. """ Verifies that postbuild steps work. """ import TestGyp import sys if sys.platform == 'darwin': test = TestGyp.TestGyp(formats=['nin...
rtc-draper/googlemock
refs/heads/master
scripts/generator/gmock_gen.py
1159
#!/usr/bin/env python # # Copyright 2008 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 requir...
LostItem/roundware-server
refs/heads/develop
roundware/notifications/admin.py
9
from __future__ import unicode_literals from django.contrib import admin from roundware.notifications.models import ModelNotification, ActionNotification class ActionNotificationInline(admin.TabularInline): model = ActionNotification filter_horizontal = ['who'] fieldsets = ( ("Notification Options...
byterom/android_external_chromium_org
refs/heads/12.1
tools/perf/page_sets/intl_ja_zh.py
34
# Copyright 2014 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. from telemetry.page import page as page_module from telemetry.page import page_set as page_set_module class IntlJaZhPage(page_module.Page): def __init__(...
petecummings/django-blog-zinnia
refs/heads/develop
docs/extensions/zinnia_docs.py
12
""" Extensions for the Sphinx documation of Zinnia Inspired, stealed and needed for cross linking the django documentation. """ import inspect from django.db import models from django.utils.html import strip_tags from django.utils.encoding import force_unicode def skip_model_member(app, what, name, obj, skip, optio...
HKUST-SING/tensorflow
refs/heads/master
tensorflow/python/framework/graph_io.py
62
# 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...
runt18/mojo
refs/heads/master
mojo/public/python/mojo_application/application_delegate.py
28
# 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. """Interface for the delegate of ApplicationImpl.""" import mojo_application.application_impl import mojo_application.service_provider_impl import shell_moj...
zoidbergwill/Diamond
refs/heads/master
src/collectors/nagios/nagios.py
31
# coding=utf-8 """ Shells out to get nagios statistics, which may or may not require sudo access #### Dependencies * /usr/sbin/nagios3stats """ import diamond.collector import subprocess import os from diamond.collector import str_to_bool class NagiosStatsCollector(diamond.collector.Collector): def get_def...
time-river/wander
refs/heads/master
proxy/proxyclaw.py
1
#!/usr/bin/env python # -*- coding:utf-8 -*- import redis import claw from base import redis_info def main(): info = redis_info() r = redis.StrictRedis(host=info['host'], port=info['port'], password=info['password']) clawer = claw.Claw(redis=r, request_key='proxy.request', content_key="proxy.content") ...
ar4s/django
refs/heads/master
tests/field_subclassing/tests.py
16
from __future__ import unicode_literals import inspect from django.core import serializers from django.test import TestCase from .fields import Small from .models import DataModel, MyModel, OtherModel class CustomField(TestCase): def test_defer(self): d = DataModel.objects.create(data=[1, 2, 3]) ...
MrCubanfrog/NorDB
refs/heads/master
nordb/database/sql2response.py
1
""" This module contains all information for getting the response information out of the database. Functions and Classes --------------------- """ import datetime import time from nordb.core import usernameUtilities from nordb.nordic.response import FapResponse, PazResponse SELECT_RESPONSE_ID = ( ...
yubchen/QSublimeLinter
refs/heads/master
tests/__init__.py
10
# coding=utf8 # # __init__.py # Part of SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Joshua Hagins # # Project: https://github.com/SublimeLinter/SublimeLinter3 # License: MIT # """This module is a dummy for the root test module."""
Thoshh/wapad
refs/heads/master
lib/python2.7/site-packages/django/contrib/webdesign/__init__.py
264
import warnings from django.utils.deprecation import RemovedInDjango110Warning default_app_config = 'django.contrib.webdesign.apps.WebDesignConfig' warnings.warn( "django.contrib.webdesign will be removed in Django 1.10. The " "{% lorem %} tag is now included in the built-in tags.", RemovedInDjango110Wa...
lmtierney/selenium
refs/heads/master
py/test/selenium/__init__.py
2454
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
franosincic/edx-platform
refs/heads/master
common/djangoapps/util/model_utils.py
37
""" Utilities for django models. """ import unicodedata import re from eventtracking import tracker from django.conf import settings from django.utils.encoding import force_unicode from django.utils.safestring import mark_safe from django_countries.fields import Country # The setting name used for events when "sett...
gonboy/sl4a
refs/heads/master
python-build/python-libs/gdata/src/gdata/tlslite/utils/cryptomath.py
172
"""cryptomath module This module has basic math/crypto code.""" import os import math import base64 import binascii import sha from compat import * # ************************************************************************** # Load Optional Modules # ****************************************************************...
Voluntarynet/BitmessageKit
refs/heads/master
BitmessageKit/Vendor/static-python/Lib/distutils/tests/setuptools_extension.py
149
from distutils.core import Extension as _Extension from distutils.core import Distribution as _Distribution def _get_unpatched(cls): """Protect against re-patching the distutils if reloaded Also ensures that no other distutils extension monkeypatched the distutils first. """ while cls.__module__.s...
alajara/servo
refs/heads/master
components/style/counter_style/update_predefined.py
47
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import os.path import re import urllib def main(filename): names = [ re.search('...
wkrzemien/DIRAC
refs/heads/integration
Interfaces/scripts/dirac-admin-get-job-pilots.py
4
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-admin-get-job-pilots # Author : Stuart Paterson ######################################################################## """ Retrieve info about pilots that have matched a given Job """ from _...
apradhn/python_koans
refs/heads/master
python3/koans/a_package_folder/__init__.py
279
#!/usr/bin/env python # -*- coding: utf-8 -*- an_attribute = 1984
zerc/django
refs/heads/master
tests/forms_tests/widget_tests/base.py
192
from django.test import SimpleTestCase class WidgetTest(SimpleTestCase): beatles = (('J', 'John'), ('P', 'Paul'), ('G', 'George'), ('R', 'Ringo')) def check_html(self, widget, name, value, html='', attrs=None, **kwargs): output = widget.render(name, value, attrs=attrs, **kwargs) self.assertHT...
arnif/CouchPotatoServer
refs/heads/master
libs/guessit/transfo/guess_release_group.py
6
#!/usr/bin/env python # -*- coding: utf-8 -*- # # GuessIt - A library for guessing information from filenames # Copyright (c) 2012 Nicolas Wack <wackou@gmail.com> # # GuessIt is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free ...
tscohen/chainer
refs/heads/master
cupy/padding/__init__.py
17
# flake8: NOQA # "flake8: NOQA" to suppress warning "H104 File contains nothing but comments" # TODO(okuta): Implement pad
madhuri2k/fantastic-spoon
refs/heads/master
yay0/lzyf.py
1
# Compressor for LZYF import yay0, logging, struct maxOffsets = [16, 32, 1024] maxLengths = {16: 513, 32: 4, 1024: 17} log = logging.getLogger("lzyf") def create_lzyf(data): c = compress(data) out = bytearray(b'LZYF1000') out.extend((16+len(c)).to_bytes(4, byteorder='big')) out.extend(len(data).to_by...
nesdis/djongo
refs/heads/master
tests/django_tests/tests/v22/tests/migration_test_data_persistence/migrations/0002_add_book.py
133
from django.db import migrations def add_book(apps, schema_editor): apps.get_model("migration_test_data_persistence", "Book").objects.using( schema_editor.connection.alias, ).create( title="I Love Django", ) class Migration(migrations.Migration): dependencies = [("migration_test_dat...
dlopes-samba/dlopes-maps-sambatech
refs/heads/master
django/contrib/gis/geos/tests/test_io.py
321
import binascii, ctypes, unittest from django.contrib.gis.geos import GEOSGeometry, WKTReader, WKTWriter, WKBReader, WKBWriter, geos_version_info class GEOSIOTest(unittest.TestCase): def test01_wktreader(self): # Creating a WKTReader instance wkt_r = WKTReader() wkt = 'POINT (5 23)' ...
xneby/tcs-web
refs/heads/master
tcsweb/wsgi.py
1
""" WSGI config for tcsweb project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` s...
simonmulser/bitcoin
refs/heads/master
test/functional/decodescript.py
35
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test decoding scripts via decodescript RPC command.""" from test_framework.test_framework import Bitco...
SuperFriendBFG/PyBreakout
refs/heads/master
Game/Bricks/Brick.py
1
from Game.Shared import * class Brick(GameObject): def __init__(self, position, sprite, game): self.__game = game self.__hitPoints = 100 self.__lives = 1 super(Brick, self).__init__(position, GameConstants.BRICK_SIZE, sprite) def getGame(self): return self._...
ionrock/designate
refs/heads/master
functionaltests/api/v2/models/transfer_accepts_model.py
6
# Copyright 2015 Hewlett-Packard Development Company, L.P. # # Author: Endre Karlson <endre.karlson@hp.com> # # 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/lice...
darith27/wagtail
refs/heads/master
wagtail/tests/testapp/migrations/0001_initial.py
22
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.db.models.deletion from django.conf import settings import modelcluster.contrib.taggit import wagtail.wagtailimages.models import wagtail.wagtailadmin.taggable import modelcluster.fields import wagtai...
bratsche/Neutron-Drive
refs/heads/master
google_appengine/lib/django_1_3/tests/regressiontests/delete_regress/models.py
23
from django.db import models from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType class Award(models.Model): name = models.CharField(max_length=25) object_id = models.PositiveIntegerField() content_type = models.ForeignKey(ContentType) content_obje...
flyher/pymo
refs/heads/master
android/pgs4a-0.9.6/python-install/lib/python2.7/UserDict.py
358
"""A more or less complete user-defined wrapper around dictionary objects.""" class UserDict: def __init__(self, dict=None, **kwargs): self.data = {} if dict is not None: self.update(dict) if len(kwargs): self.update(kwargs) def __repr__(self): return repr(self.d...
gfonk/ansible
refs/heads/devel
lib/ansible/galaxy/api.py
43
#!/usr/bin/env python ######################################################################## # # (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 ...
Bashar/django
refs/heads/master
django/db/backends/postgresql_psycopg2/schema.py
63
from django.db.backends.schema import BaseDatabaseSchemaEditor class DatabaseSchemaEditor(BaseDatabaseSchemaEditor): sql_create_sequence = "CREATE SEQUENCE %(sequence)s" sql_delete_sequence = "DROP SEQUENCE IF EXISTS %(sequence)s CASCADE" sql_set_sequence_max = "SELECT setval('%(sequence)s', MAX(%(column...
ronaldahmed/SLAM-for-ugv
refs/heads/master
neural-navigation-with-lstm/MARCO/nltk/test/chktype.py
2
# Natural Language Toolkit: Test Code for Type Checking # # Copyright (C) 2001 University of Pennsylvania # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # URL: <http://nltk.sf.net> # For license information, see LICENSE.TXT # # $Id: chktype.py,v 1.1.1.2 2004/09/29 21:58:13 adastra Exp $ """ Unit testing for L...
grepme/CMPUT410Lab01
refs/heads/master
virt_env/virt1/lib/python2.7/site-packages/SQLAlchemy-0.9.8-py2.7-linux-x86_64.egg/sqlalchemy/dialects/mysql/base.py
22
# mysql/base.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:: mysql :name: MySQL Supported Versions and Features ------------...
rickerc/neutron_audit
refs/heads/cis-havana-staging
neutron/plugins/hyperv/model.py
21
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Cloudbase Solutions SRL # 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.ap...
ademmers/ansible
refs/heads/devel
test/units/module_utils/urls/test_urls.py
74
# -*- coding: utf-8 -*- # (c) 2018 Matt Martz <matt@sivel.net> # 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 from ansible.module_utils import urls from ansible.module_utils._text import...
oxfordinternetinstitute/scriptingcourse
refs/heads/master
DSR-week 4/EX_wk4_regex_exampleCode.py
1
#!/usr/bin/env python # encoding: utf-8 # Wikilinks downloader and parser # The purpose of this script is to take a page in Wikipedia, parse the links within # and store them in a database. # # It demonstrates the joint use of: # BeautifulStoneSoup - an xml parser # sqlalchemy - an interface to the lightweight sqlit...
jerroydmoore/YARB
refs/heads/master
nlu/__init__.py
12133432
reinout/django
refs/heads/master
tests/forms_tests/tests/__init__.py
12133432
shownomercy/django
refs/heads/master
tests/fixtures/__init__.py
12133432
blstream/ut-arena
refs/heads/master
ut_arena_py_api/apps/__init__.py
12133432
mugurrus/ally-py-common
refs/heads/master
patch-praha/acl/core_patch/__init__.py
12133432
zhangjunli177/sahara
refs/heads/master
sahara/plugins/cdh/client/__init__.py
12133432
google-research/understanding-transfer-learning
refs/heads/main
imagenet_train.py
1
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
zdszxp/gamesrc
refs/heads/master
Trdlib/src/boost_1_60_0/libs/python/test/staticmethod.py
46
# Copyright David Abrahams 2004. Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ''' >>> from staticmethod_ext import * >>> class X1(X): ... pass >>> x = X(16) >>> x1 = X1(17) >>> x1.count() 2 >>> x.count()...
anantk17/flask-python
refs/heads/master
db_repository/versions/002_migration.py
134
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() post = Table('post', post_meta, Column('id', Integer, primary_key=True, nullable=False), Column('body', String(length=140)), Column('timestamp', DateTime), Column('user_id',...
tmpgit/intellij-community
refs/heads/master
python/testData/inspections/PyCompatibilityInspection/raiseStatement.py
45
try: a except : <warning descr="Python version 3.0, 3.1, 3.2, 3.3, 3.4, 3.5 do not support this syntax.">raise ImportError, ImportWarning</warning> <warning descr="Python version 3.0, 3.1, 3.2, 3.3, 3.4, 3.5 do not support this syntax. Raise with no arguments can only be used in an except block">raise</warning...
pawelmhm/scrapy
refs/heads/master
tests/CrawlerProcess/default_name_resolver.py
5
import scrapy from scrapy.crawler import CrawlerProcess class IPv6Spider(scrapy.Spider): """ Raises a twisted.internet.error.DNSLookupError: the default name resolver does not handle IPv6 addresses. """ name = "ipv6_spider" start_urls = ["http://[::1]"] if __name__ == "__main__": process...
dcolligan/server
refs/heads/master
oidc-provider/simple_op/src/provider/authn/user_pass.py
4
import json from oic.utils.http_util import Response from provider.authn import make_cls_from_name, AuthnModule class UserPass(AuthnModule): url_endpoint = "/user_pass/verify" def __init__( self, db, template_env, template="user_pass.jinja2", **kwargs): super(UserPass, self).__init__(No...
wbbradley/django-webtest
refs/heads/master
django_webtest_tests/testapp_tests/middleware.py
15
# -*- coding: utf-8 -*- from __future__ import absolute_import class UserMiddleware(object): def process_request(self, request): request.user.processed = True
wwitzel3/awx
refs/heads/devel
awx/main/models/credential/__init__.py
1
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. from collections import OrderedDict import functools import logging import os import re import stat import tempfile import six # Jinja2 from jinja2 import Template # Django from django.db import models from django.utils.translation import ugettext_lazy as _, u...
ClearCorp-dev/odoo
refs/heads/8.0
addons/hr_recruitment/wizard/__init__.py
381
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-Today OpenERP (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of ...
hainm/elyxer
refs/heads/master
src/elyxer/maths/symbol.py
2
#! /usr/bin/env python # -*- coding: utf-8 -*- # eLyXer -- convert LyX source files to HTML output. # # Copyright (C) 2009 Alex Fernández # # 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 Foundat...
bowang/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/sparse_serialization_ops_test.py
99
# 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...
CSCI-462-01-2017/bedrock
refs/heads/master
bedrock/thunderbird/tests/__init__.py
12133432
tgalal/yowsup
refs/heads/master
yowsup/config/transforms/__init__.py
12133432
TridevGuha/django
refs/heads/master
django/contrib/sitemaps/management/commands/__init__.py
12133432
gangadharkadam/tailorfrappe
refs/heads/master
frappe/tests/__init__.py
39
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals def insert_test_data(doctype, sort_fn=None): import frappe.model data = get_test_doclist(doctype) if sort_fn: data = sorted(data, key=sort_fn) for doclist in data: fr...
mflu/openvstorage_centos
refs/heads/master
ovs/extensions/hypervisor/hypervisors/kvm.py
2
# Copyright 2014 CloudFounders NV # # 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 writ...
Gerapy/Gerapy
refs/heads/master
gerapy/server/core/utils.py
1
import fnmatch import re from copy import deepcopy from furl import furl from subprocess import Popen, PIPE, STDOUT from os.path import abspath from shutil import ignore_patterns, copy2, copystat from jinja2 import Template from scrapyd_api import ScrapydAPI from bs4 import BeautifulSoup import traceback import json, o...
kevclarx/ansible
refs/heads/devel
lib/ansible/module_utils/dellos6.py
51
# # (c) 2015 Peter Sprygada, <psprygada@ansible.com> # # Copyright (c) 2016 Dell Inc. # # 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 b...
sheafferusa/erpnext
refs/heads/develop
erpnext/patches/v6_0/multi_currency.py
3
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): # Reload doctype for dt in ("Account", "GL Entry", "Journal Entry", "Journal Entry Account", "Sales Invoice", "Pur...
xrmx/django
refs/heads/master
tests/model_package/tests.py
380
from __future__ import unicode_literals from django.db import connection, models from django.db.backends.utils import truncate_name from django.test import TestCase from .models.article import Article, Site from .models.publication import Publication class Advertisement(models.Model): customer = models.CharFiel...
barnone/EigenD
refs/heads/2.0
tools/pip_cmd/lex.py
3
#----------------------------------------------------------------------------- # ply: lex.py # # Author: David M. Beazley (beazley@cs.uchicago.edu) # Department of Computer Science # University of Chicago # Chicago, IL 60637 # # Copyright (C) 2001, David M. Beazley # # $Header: /cvs/projects/PL...
MartinHjelmare/home-assistant
refs/heads/dev
homeassistant/components/huawei_lte/device_tracker.py
5
"""Support for device tracking of Huawei LTE routers.""" from typing import Any, Dict, List, Optional import attr import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.components.device_tracker import ( PLATFORM_SCHEMA, DeviceScanner, ) from homeassistant.const import CO...
Sweetgrassbuffalo/ReactionSweeGrass-v2
refs/heads/master
.meteor/local/dev_bundle/python/Lib/test/testall.py
196
# Backward compatibility -- you should use regrtest instead of this module. from warnings import warnpy3k warnpy3k("the test.testall module has been removed in Python 3.0", stacklevel=2) del warnpy3k import sys, regrtest sys.argv[1:] = ["-vv"] regrtest.main()
zws0932/oms
refs/heads/master
deploy/views.py
12
# -*- coding: utf-8 -*- from django.shortcuts import render_to_response from django.template import RequestContext from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from deploy.saltapi import SaltAPI from oms import settin...
mw44118/pitz
refs/heads/master
tests/__init__.py
2
# vim: set expandtab ts=4 sw=4 filetype=python:
gtzilla/fastFrag-utils
refs/heads/master
app_engine/fastfrag-converter/tornado/autoreload.py
4
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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 a...
rfosterslo/django-dockets
refs/heads/master
dockets/__init__.py
52
__version__ = '0.0.1'
ecreall/lagendacommun
refs/heads/master
lac/content/interface.py
1
# Copyright (c) 2014 by Ecreall under licence AGPL terms # available on http://www.gnu.org/licenses/agpl.html # licence: AGPL # author: Amen Souissi from dace.interfaces import Attribute, IUser, IEntity as IEntityO, IApplication from dace.interfaces import IGroup as OrigineIGroup from pontus.interfaces import IVisual...
7kbird/chrome
refs/heads/master
remoting/webapp/build-html.py
8
#!/usr/bin/env python # Copyright 2014 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. """Builds the complete main.html file from the basic components. """ from HTMLParser import HTMLParser import argparse import os impor...
makki-io/pitrot
refs/heads/master
dbcon.py
1
""" Modülün Açıklaması __author__ : Çağatay Tengiz __date__ : 15.11.2013 """ import datetime from sqlalchemy import * from sqlalchemy import func from sqlalchemy.ext.declarative import \ declared_attr,\ declarative_base, \ DeferredReflection from sqlalchemy.orm import \ sessionmaker, \ scoped_s...
petrhosek/rubber
refs/heads/master
rubber/cmd_info.py
1
# This file is part of Rubber and thus covered by the GPL # (c) Emmanuel Beffara, 2002--2006 """ This is the command line interface for the information extractor. """ import sys from getopt import * import string from os.path import * from rubber import _, msg from rubber.environment import Environment from rubber.ve...