repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
stvstnfrd/edx-platform | refs/heads/master | openedx/core/djangoapps/system_wide_roles/constants.py | 10 | """
System wide roles application constants.
"""
STUDENT_SUPPORT_ADMIN_ROLE = 'student_support_admin'
|
macmanes-lab/wgs-assembler | refs/heads/master | kmer/atac-driver/chainer/python/PerfectRuns.py | 2 | #!/usr/bin/env python
# Looking in /usr/local/ir/bin on the Compaqs for the correct Python interpreter.
# export PYTHONPATH=${PYTHONPATH}:$WORK/cds/IR/COMPASS/src/AtacPipeline
"""
Extensive documentation for the Python language is available at
http://www.python.org.
"""
import sys
import MyFile
import MatchRecord
de... |
indictranstech/osmosis-frappe | refs/heads/develop | frappe/patches/v5_3/__init__.py | 12133432 | |
CatsAndDogsbvba/odoo | refs/heads/8.0 | addons/procurement_jit/__openerp__.py | 312 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
jobiols/management-system | refs/heads/8.0 | mgmtsystem_audit/report/verification_list.py | 1 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under... |
fidomason/kbengine | refs/heads/master | kbe/src/lib/python/Lib/distutils/command/bdist_msi.py | 152 | # Copyright (C) 2005, 2006 Martin von Löwis
# Licensed to PSF under a Contributor Agreement.
# The bdist_wininst command proper
# based on bdist_wininst
"""
Implements the bdist_msi command.
"""
import sys, os
from distutils.core import Command
from distutils.dir_util import remove_tree
from distutils.sysconfig import... |
elba7r/system | refs/heads/master | erpnext/support/__init__.py | 116 | from __future__ import unicode_literals
install_docs = [
{'doctype':'Role', 'role_name':'Support Team', 'name':'Support Team'},
{'doctype':'Role', 'role_name':'Maintenance User', 'name':'Maintenance User'},
{'doctype':'Role', 'role_name':'Maintenance Manager', 'name':'Maintenance Manager'}
]
|
sabi0/intellij-community | refs/heads/master | python/testData/inspections/AugmentAssignment2.py | 83 | v = 0
f = 1
<weak_warning descr="Assignment can be replaced with augmented assignment">v = <caret>f + v</weak_warning> |
manipopopo/tensorflow | refs/heads/master | tensorflow/contrib/training/python/training/bucket_ops.py | 48 | # 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... |
spisneha25/django | refs/heads/master | tests/admin_inlines/admin.py | 293 | from django import forms
from django.contrib import admin
from .models import (
Author, BinaryTree, CapoFamiglia, Chapter, ChildModel1, ChildModel2,
Consigliere, EditablePKBook, ExtraTerrestrial, Fashionista, Holder,
Holder2, Holder3, Holder4, Inner, Inner2, Inner3, Inner4Stacked,
Inner4Tabular, NonAut... |
linearregression/socorro | refs/heads/master | socorro/external/hbase/__init__.py | 12133432 | |
inspirehep/raven-python | refs/heads/master | tests/base/__init__.py | 12133432 | |
adamcandy/QGIS-Meshing | refs/heads/master | extras/old_release_versions/mesh_netcdf/meshnetcdf.py | 3 | """
##########################################################################
#
# QGIS-meshing plugins.
#
# Copyright (C) 2012-2013 Imperial College London and others.
#
# Please see the AUTHORS file in the main source directory for a
# full list of copyright holders.
#
# Dr Adam S. Candy, adam.candy@im... |
wangjun/scrapy | refs/heads/master | tests/test_spiderloader/test_spiders/spider0.py | 147 | from scrapy.spiders import Spider
class Spider0(Spider):
allowed_domains = ["scrapy1.org", "scrapy3.org"]
|
TeslaOS/android_external_skia | refs/heads/lp5.1 | tools/git_utils.py | 68 | # Copyright 2014 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Module to host the ChangeGitBranch class and test_git_executable function.
"""
import os
import subprocess
import misc_utils
class ChangeGitBranch(object):
"""Class to manage ... |
rldhont/Quantum-GIS | refs/heads/master | python/core/auto_additions/__init__.py | 277 | """
This folder is completed using sipify.pl script
It is not aimed to be manually edited
"""
|
solashirai/edx-platform | refs/heads/master | common/djangoapps/enrollment/errors.py | 75 | """All Error Types pertaining to Enrollment."""
class CourseEnrollmentError(Exception):
"""Generic Course Enrollment Error.
Describes any error that may occur when reading or updating enrollment information for a user or a course.
"""
def __init__(self, msg, data=None):
super(CourseEnrollmen... |
vincentbernat/cookiecutter | refs/heads/master | cookiecutter/find.py | 31 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
cookiecutter.find
-----------------
Functions for finding Cookiecutter templates and other components.
"""
import logging
import os
from .exceptions import NonTemplatedInputDirException
def find_template(repo_dir):
"""
Determines which child directory of `... |
adrianschlatter/python-ivi | refs/heads/master | ivi/agilent/agilentMSO7104A.py | 7 | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012-2014 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the... |
davidharrigan/django | refs/heads/master | tests/schema/fields.py | 141 | from django.db import models
from django.db.models.fields.related import (
RECURSIVE_RELATIONSHIP_CONSTANT, ManyToManyDescriptor, ManyToManyField,
ManyToManyRel, RelatedField, create_many_to_many_intermediary_model,
)
from django.utils.functional import curry
class CustomManyToManyField(RelatedField):
"""... |
brianmay/karaage | refs/heads/master | karaage/tests/projects/__init__.py | 62 | # Copyright 2010-2017, The University of Melbourne
# Copyright 2010-2017, Brian May
#
# This file is part of Karaage.
#
# Karaage 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... |
amartinez1/confessionAPI | refs/heads/master | core/views.py | 1 | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.reverse import reverse
class APIRoot(APIView):
def get(self, request):
return Response({
'confessions': reverse('confessions-list', request=request),
'confession': reverse('con... |
iguzu/gae-django | refs/heads/master | django/contrib/gis/db/backend/postgis/query.py | 7 | """
This module contains the spatial lookup types, and the get_geo_where_clause()
routine for PostGIS.
"""
import re
from decimal import Decimal
from django.db import connection
from django.conf import settings
from django.contrib.gis.measure import Distance
from django.contrib.gis.db.backend.util import SpatialOper... |
dyoung418/tensorflow | refs/heads/master | tensorflow/python/eager/tape.py | 6 | # 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... |
KenV99/script.service.kodi.callbacks | refs/heads/master | resources/lib/kodisettings/__init__.py | 7 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 KenV99
#
# 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) a... |
kmonsoor/python-for-android | refs/heads/master | python-build/python-libs/ase/scripts/say_time.py | 87 | """Speak the time."""
__author__ = 'T.V. Raman <raman@google.com>'
__copyright__ = 'Copyright (c) 2009, Google Inc.'
__license__ = 'Apache License, Version 2.0'
import android
import time
droid = android.Android()
droid.ttsSpeak(time.strftime("%_I %M %p on %A, %B %_e, %Y "))
|
jasonwee/asus-rt-n14uhp-mrtg | refs/heads/master | src/lesson_file_system/codecs_decode_error.py | 1 | import codecs
import sys
from codecs_to_hex import to_hex
error_handling = sys.argv[1]
text = 'français'
print('Original :', repr(text))
# Save the data with one encoding
with codecs.open('decode_error.txt', 'w',
encoding='utf-16') as f:
f.write(text)
# Dump the bytes from the file
with op... |
OpenPymeMx/account-financial-tools | refs/heads/8.0 | account_asset_management_xls/wizard/__init__.py | 34 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Copyright (c) 2014 Noviat nv/sa (www.noviat.com). All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under... |
noisy/steemprojects.com | refs/heads/master | social_auth_local/__init__.py | 12133432 | |
newrocknj/horizon | refs/heads/master | openstack_dashboard/dashboards/project/firewalls/__init__.py | 12133432 | |
gujiawen/flask_web | refs/heads/master | venv/lib/python2.7/site-packages/flask/testsuite/test_apps/flask_broken/b.py | 12133432 | |
hkariti/ansible | refs/heads/devel | lib/ansible/plugins/cliconf/__init__.py | 13 | #
# (c) 2017 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... |
swprojects/wxPieTool | refs/heads/master | pyimager.py | 1 | """
wxPieTool - wxPython Image Embedding Tool
Copyright 2016 Simon Wu <swprojects@gmx.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any la... |
Jionglun/2015 | refs/heads/master | static/Brython3.1.1-20150328-091302/Lib/unittest/test/test_functiontestcase.py | 791 | import unittest
from .support import LoggingResult
class Test_FunctionTestCase(unittest.TestCase):
# "Return the number of tests represented by the this test object. For
# TestCase instances, this will always be 1"
def test_countTestCases(self):
test = unittest.FunctionTestCase(lambda: None)
... |
laiqiqi886/kbengine | refs/heads/master | kbe/src/lib/python/Lib/test/test_eof.py | 88 | """test script for a few new invalid token catches"""
import unittest
from test import support
class EOFTestCase(unittest.TestCase):
def test_EOFC(self):
expect = "EOL while scanning string literal (<string>, line 1)"
try:
eval("""'this is a test\
""")
except Syntax... |
ArcherCraftStore/ArcherVMPeridot | refs/heads/master | Python/Lib/tkinter/commondialog.py | 153 | # base class for tk common dialogues
#
# this module provides a base class for accessing the common
# dialogues available in Tk 4.2 and newer. use filedialog,
# colorchooser, and messagebox to access the individual
# dialogs.
#
# written by Fredrik Lundh, May 1997
#
from tkinter import *
class Dialog:
command ... |
TeamNostalgia/amlogic-3.0.8 | refs/heads/master | scripts/rt-tester/rt-tester.py | 11005 | #!/usr/bin/python
#
# rt-mutex tester
#
# (C) 2006 Thomas Gleixner <tglx@linutronix.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
import os
import sys
import getopt
import sh... |
zzzeek/sqlalchemy | refs/heads/master | test/ext/test_hybrid.py | 3 | from decimal import Decimal
from sqlalchemy import exc
from sqlalchemy import ForeignKey
from sqlalchemy import func
from sqlalchemy import inspect
from sqlalchemy import Integer
from sqlalchemy import literal_column
from sqlalchemy import Numeric
from sqlalchemy import select
from sqlalchemy import String
from sqlalc... |
TheMOOCAgency/edx-platform | refs/heads/master | common/djangoapps/static_replace/test/__init__.py | 12133432 | |
csachs/openmicroscopy | refs/heads/develop | components/tools/OmeroWeb/omeroweb/webclient/__init__.py | 12133432 | |
bobobox/ansible | refs/heads/devel | test/units/modules/cloud/amazon/test_ec2_vpc_nat_gateway.py | 17 | from nose.plugins.skip import SkipTest
try:
import boto3
import botocore
HAS_BOTO3 = True
except ImportError:
HAS_BOTO3 = False
if not HAS_BOTO3:
raise SkipTest("test_ec2_vpc_nat_gateway.py requires the python module 'boto3' and 'botocore'")
import unittest
from collections import namedtuple
fro... |
daenamkim/ansible | refs/heads/devel | lib/ansible/modules/cloud/amazon/aws_ssm_parameter_store.py | 20 | #!/usr/bin/python
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
'metadata_version': '1.1'}
DOCUMENTATION = '''
---
modul... |
bjolivot/ansible | refs/heads/devel | lib/ansible/modules/clustering/consul_acl.py | 66 | #!/usr/bin/python
#
# (c) 2015, Steve Gargan <steve.gargan@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... |
huangciyin/youtube-dl | refs/heads/master | youtube_dl/extractor/radiofrance.py | 163 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
class RadioFranceIE(InfoExtractor):
_VALID_URL = r'^https?://maison\.radiofrance\.fr/radiovisions/(?P<id>[^?#]+)'
IE_NAME = 'radiofrance'
_TEST = {
'url': 'http://maison.radiofrance.fr/radiovisio... |
endorphinl/horizon-fork | refs/heads/master | openstack_dashboard/dashboards/project/routers/extensions/extraroutes/tabs.py | 54 | # Copyright 2015, Thales Services SAS
# 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 requ... |
lcy-seso/Paddle | refs/heads/develop | python/paddle/fluid/tests/unittests/test_bilinear_tensor_product_op.py | 5 | # Copyright (c) 2018 PaddlePaddle 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 app... |
andresriancho/django-moth | refs/heads/master | djmoth/wsgi.py | 1 | """
WSGI config for djmoth 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... |
OpenSPA/dvbapp | refs/heads/master | lib/python/Screens/MinuteInput.py | 33 | from Screen import Screen
from Components.ActionMap import NumberActionMap
from Components.Input import Input
class MinuteInput(Screen):
def __init__(self, session, basemins = 5):
Screen.__init__(self, session)
self["minutes"] = Input(str(basemins), type=Input.NUMBER)
self["actions"] = NumberActi... |
FRC-Team-3140/north-american-happiness | refs/heads/master | lib/python2.7/site-packages/pymysql/tests/thirdparty/test_MySQLdb/capabilities.py | 29 | #!/usr/bin/env python -O
""" Script to test database capabilities and the DB-API interface
for functionality and memory leaks.
Adapted from a script by M-A Lemburg.
"""
import sys
from time import time
try:
import unittest2 as unittest
except ImportError:
import unittest
PY2 = sys.version_info[0] == ... |
geekboxzone/lollipop_external_chromium_org_tools_gyp | refs/heads/geekbox | test/cflags/gyptest-cflags.py | 90 | #!/usr/bin/env python
# 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.
"""
Verifies the use of the environment during regeneration when the gyp file
changes, specifically via build of an executable with C prepro... |
gunan/tensorflow | refs/heads/master | tensorflow/lite/testing/op_tests/unpack.py | 16 | # Copyright 2019 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... |
akopytov/percona-xtradb-cluster | refs/heads/5.6 | doc-pxc/source/ext/psdom.py | 20 | # -*- coding: utf-8 -*-
"""
The Percona Server domain.
:copyright: Copyright 2011 by Percona Inc.
:license: GPL3, see LICENSE for details.
"""
import re
import string
from docutils import nodes
from docutils.parsers.rst import directives
from sphinx import addnodes
from sphinx.roles import XRefRole
from... |
tectronics/arsenalsuite | refs/heads/master | cpp/lib/PyQt4/examples/widgets/wiggly.py | 20 | #!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2010 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENS... |
foursquare/pants | refs/heads/master | tests/python/pants_test/help/test_help_integration.py | 2 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
from pants_test.pants_run_integration_test import PantsRunIntegrationTest
class TestHel... |
Korkki/django | refs/heads/master | tests/m2o_recursive/models.py | 282 | """
Relating an object to itself, many-to-one
To define a many-to-one relationship between a model and itself, use
``ForeignKey('self', ...)``.
In this example, a ``Category`` is related to itself. That is, each
``Category`` has a parent ``Category``.
Set ``related_name`` to designate what the reverse relationship i... |
mwiebe/numpy | refs/heads/master | numpy/lib/tests/test__iotools.py | 148 | from __future__ import division, absolute_import, print_function
import sys
import time
from datetime import date
import numpy as np
from numpy.compat import asbytes, asbytes_nested
from numpy.testing import (
run_module_suite, TestCase, assert_, assert_equal, assert_allclose,
assert_raises
)
from numpy.l... |
emetsger/osf.io | refs/heads/develop | admin/sales_analytics/urls.py | 16 | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^dashboard$', views.DashboardView.as_view(), name='dashboard'),
]
|
Changaco/oh-mainline | refs/heads/master | mysite/missions/pipvirtualenv/forms.py | 15 | # This file is part of OpenHatch.
#
# 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 option) any later version.
#
# This program is distribut... |
gnarf/djangoproject.com | refs/heads/master | accounts/__init__.py | 12133432 | |
biicode/client | refs/heads/develop | setups/finders/arduino_sdk_finder.py | 5 | from biicode.common.settings.osinfo import OSInfo
import os
from biicode.client.shell.userio import UserIO
from biicode.client.shell.biistream import BiiOutputStream
from StringIO import StringIO
from biicode.client.command.process_executor import execute
from biicode.common.output_stream import Color
from biicode.clie... |
40423245/2017springcd_hw | refs/heads/gh-pages | plugin/tipue_search/__init__.py | 371 | from .tipue_search import *
|
rspavel/spack | refs/heads/develop | var/spack/repos/builtin/packages/r-gamlss-data/package.py | 5 | # 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 RGamlssData(RPackage):
"""gamlss.data: GAMLSS Data"""
homepage = "https://cloud.r-pro... |
gnowxilef/youtube-dl | refs/heads/master | youtube_dl/extractor/macgamestore.py | 62 | from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import ExtractorError
class MacGameStoreIE(InfoExtractor):
IE_NAME = 'macgamestore'
IE_DESC = 'MacGameStore trailers'
_VALID_URL = r'https?://(?:www\.)?macgamestore\.com/mediaviewer\.php\?trailer=(?P<id>\d+)'
_TES... |
JonathanStein/odoo | refs/heads/8.0 | addons/website_gengo/__init__.py | 316 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-Today OpenERP S.A. (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the term... |
repotvsupertuga/tvsupertuga.repository | refs/heads/master | script.vodextende/scrapers/cmz_scraper.py | 7 | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
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.
T... |
vvv1559/intellij-community | refs/heads/master | python/testData/refactoring/extractsuperclass/fieldsNpe.after.py | 24 | class Ancestor(object):
def __init__(self, a, b):
self.a = a
self.b = b
def func1(self):
return ""
class Basic(Ancestor):
def func2(self):
return self.func1() |
Diegojnb/JdeRobot | refs/heads/master | src/drivers/MAVLinkServer/MAVProxy/pymavlink/__init__.py | 86 | '''Python MAVLink library - see http://www.qgroundcontrol.org/mavlink/mavproxy_startpage'''
|
ngxson/android_kernel_sony_msm8x27 | refs/heads/n | tools/perf/scripts/python/net_dropmonitor.py | 4235 | # Monitor the system for dropped packets and proudce a report of drop locations and counts
import os
import sys
sys.path.append(os.environ['PERF_EXEC_PATH'] + \
'/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
from perf_trace_context import *
from Core import *
from Util import *
drop_log = {}
kallsyms = []
def... |
Ajedi32/bpm | refs/heads/master | bpexport.py | 6 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
################################################################################
##
## This file is part of BetterPonymotes.
## Copyright (c) 2012-2015 Typhos.
##
## This program is free software: you can redistribute it and/or modify it
## under the terms of the GNU Affero... |
openstack/cloudkitty-dashboard | refs/heads/master | cloudkittydashboard/dashboards/admin/hashmap/__init__.py | 12133432 | |
OpenNetworkingFoundation/Snowmass-ONFOpenTransport | refs/heads/develop | RI/flask_server/tapi_server/models/tapi_connectivity_getconnectiondetails_input.py | 4 | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from tapi_server.models.base_model_ import Model
from tapi_server import util
class TapiConnectivityGetconnectiondetailsInput(Model):
"""NOTE: This class is auto ... |
KDB2/OpenReliability | refs/heads/master | veusz/windows/plotwindow.py | 2 | # plotwindow.py
# the main window for showing plots
# Copyright (C) 2004 Jeremy S. Sanders
# Email: Jeremy Sanders <jeremy@jeremysanders.net>
#
# 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 Softwar... |
geekboxzone/lollipop_external_chromium_org_third_party_WebKit | refs/heads/geekbox | Tools/Scripts/webkitpy/test/main.py | 13 | # Copyright (C) 2012 Google, Inc.
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# n... |
louispotok/pandas | refs/heads/master | pandas/tests/frame/test_reshape.py | 1 | # -*- coding: utf-8 -*-
from __future__ import print_function
from warnings import catch_warnings
from datetime import datetime
import itertools
import pytest
from numpy.random import randn
from numpy import nan
import numpy as np
from pandas.compat import u
from pandas import (DataFrame, Index, Series, MultiIndex... |
codeaurora-unoffical/platform-external-skia | refs/heads/caf/LA.AF.1.1.1 | tools/jsondiff.py | 113 | #!/usr/bin/python
'''
Copyright 2013 Google Inc.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
'''
'''
Gathers diffs between 2 JSON expectations files, or between actual and
expected results within a single JSON actual-results file,
and generates an old-vs-new diff... |
ProjectSWGCore/NGECore2 | refs/heads/master | scripts/object/tangible/deed/vehicle_deed/landspeeder_tantive4_deed.py | 2 | import sys
def setup(core, object):
object.setAttachment('radial_filename', 'deeds/vehicleDeed')
return
def use(core, actor, object):
core.mountService.generateVehicle(actor, object, 'object/mobile/vehicle/shared_landspeeder_tantive4.iff', 'object/intangible/vehicle/shared_landspeeder_tantive4_pcd.iff')
return |
farzadghanei/flask-skel | refs/heads/master | src/project/services/user.py | 1 | '''
project.services.user
'''
from . import BaseService
from ..models.user import User
class UserService(BaseService):
def generate_auth_token(self, user, expires_in=None):
self.logger.debug(
"Generating authentication token for user {} <{}>".format(
user.id,
us... |
sarvex/django | refs/heads/master | tests/template_tests/syntax_tests/test_numpy.py | 353 | import warnings
from unittest import skipIf
from django.test import SimpleTestCase
from ..utils import setup
try:
import numpy
except ImportError:
numpy = False
@skipIf(numpy is False, "Numpy must be installed to run these tests.")
class NumpyTests(SimpleTestCase):
# Ignore numpy deprecation warnings (... |
idlweb/django-mailer | refs/heads/master | mailer/lockfile.py | 179 |
"""
lockfile.py - Platform-independent advisory file locks.
Requires Python 2.5 unless you apply 2.4.diff
Locking is done on a per-thread basis instead of a per-process basis.
Usage:
>>> lock = FileLock('somefile')
>>> try:
... lock.acquire()
... except AlreadyLocked:
... print 'somefile', 'is locked alread... |
mistasse/Pyns | refs/heads/master | tests/test_core.py | 12133432 | |
paulromano/openmc | refs/heads/develop | tests/regression_tests/trace/__init__.py | 12133432 | |
cjcjameson/gpdb | refs/heads/master | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/crash/dml/__init__.py | 12133432 | |
AlertaDengue/AlertaDengue | refs/heads/main | AlertaDengue/gis/tests/test_mapfile.py | 1 | from django.test import TestCase
from datetime import datetime
# local
from AlertaDengue.gis import mapfile
from AlertaDengue.ad_main.settings import RASTER_METEROLOGICAL_DATA_RANGE
from AlertaDengue.dados.dbdata import CID10
import numpy as np
import os
import pyproj
import unittest
class TestMapFile(TestCase):
... |
stanta/darfchain | refs/heads/master | darfchain_docker_vagrant/tests/commands/__init__.py | 12133432 | |
willzhang05/postgrestesting1 | refs/heads/master | postgrestesting1/lib/python3.5/site-packages/django/conf/locale/zh_TW/__init__.py | 12133432 | |
wadobo/etruekko | refs/heads/master | etruekko/truekko/management/__init__.py | 12133432 | |
marcydoty/geraldo | refs/heads/master | site/newsite/django_1_0/django/contrib/localflavor/mx/__init__.py | 12133432 | |
tsdmgz/ansible | refs/heads/devel | test/units/template/__init__.py | 12133432 | |
willcodefortea/wagtail | refs/heads/master | wagtail/wagtaildocs/views/__init__.py | 12133432 | |
chongzhe/pysonar | refs/heads/master | tests/relative-import.test/__init__.py | 12133432 | |
hryamzik/ansible | refs/heads/devel | lib/ansible/utils/module_docs_fragments/inventory_cache.py | 82 | # (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
# inventory cache
DOCUMENTATION = """
options:
cache:
description:
- Toggle to enable/disable the caching of the inventory's source data, requir... |
benh/twesos | refs/heads/master | third_party/boto-2.0b2/boto/ec2/elb/listelement.py | 82 | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modi... |
davivcgarcia/python-dcc-ufrj | refs/heads/master | Exercicios - Lista Paulo Roma/Lista 2/ex3.py | 1 | #! /usr/bin/env python
# coding: utf-8
#
# 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... |
yd0str/infernal-twin | refs/heads/master | build/pip/build/lib.linux-i686-2.7/pip/vcs/__init__.py | 280 | """Handles all VCS (version control) support"""
from __future__ import absolute_import
import errno
import logging
import os
import shutil
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip.exceptions import BadCommand
from pip.utils import (display_path, backup_dir, call_subprocess,
... |
samsu/neutron | refs/heads/master | plugins/ml2/drivers/fortinet/api_client/constants.py | 1 | # Copyright 2015 OpenStack Foundation.
# 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 req... |
mocne/PycharmProjects | refs/heads/master | HanderCode/aidaiwangApp/aidaiwangApp/RunnerTest.py | 1 | # -*- coding: utf-8 -*-
__author__ = 'aidai_TEC_QA'
# -*- date:'2017/7/31 0031' -*-
#mysetup.py
from distutils.core import setup
import py2exe
setup(console=["aidaiwangApp.py"]) |
steritecit/pythonTag | refs/heads/master | pycomm/ab_comm/__init__.py | 4 | __author__ = 'agostino'
import logging
|
mohamed--abdel-maksoud/chromium.src | refs/heads/nw12 | tools/telemetry/telemetry/core/possible_app.py | 45 | # Copyright 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleApp(object):
"""A factory class that can be used to create a running instance of app.
Call Create() to launch the app and begin manipulat... |
johancz/olympia | refs/heads/master | apps/blocklist/admin.py | 21 | from django.contrib import admin
from . import forms
from . import models
def stacked_inline(model):
return type(model.__name__ + 'Inline', (admin.StackedInline,),
{'model': model})
class PluginAdmin(admin.ModelAdmin):
form = forms.BlocklistPluginForm
class AppAdmin(admin.ModelAdmin):
... |
tristanjuricek/googletest | refs/heads/master | test/gtest_uninitialized_test.py | 2901 | #!/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.