repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
yinsu/grpc | refs/heads/master | src/python/grpcio_test/grpc_protoc_plugin/beta_python_plugin_test.py | 3 | # Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... |
jhseu/tensorflow | refs/heads/master | tensorflow/python/kernel_tests/template_test.py | 6 | # 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... |
rubyinhell/brython | refs/heads/master | www/src/Lib/encodings/cp424.py | 37 | """ Python Character Mapping Codec cp424 generated from 'MAPPINGS/VENDORS/MISC/CP424.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,i... |
ovresko/erpnext | refs/heads/master | erpnext/patches/v7_0/re_route.py | 11 | from __future__ import unicode_literals
from frappe.patches.v7_0.re_route import update_routes
def execute():
update_routes(['Item', 'Item Group', 'Sales Partner', 'Job Opening']) |
google/vogon | refs/heads/master | third_party/bottle/test/servertest.py | 16 | if __name__ != '__main__':
raise ImportError('This is not a module, but a script.')
try:
import coverage
coverage.process_startup()
except ImportError:
pass
import sys, os, socket
test_root = os.path.dirname(os.path.abspath(__file__))
os.chdir(test_root)
sys.path.insert(0, os.path.dirname(test_root))
... |
TangledWeb/tangled.site | refs/heads/master | tangled/site/resources/__init__.py | 12133432 | |
wzyuliyang/scrapy | refs/heads/master | scrapy/extensions/__init__.py | 12133432 | |
nthorne/xmppmote | refs/heads/master | lib/guf/test/__init__.py | 12133432 | |
kianmeng/codekata | refs/heads/master | lpthw/18/ex18-1.py | 1 | # this one is like your scripts with argv
def print_two(*args):
arg1, arg2 = args
print "arg1: %r, arg2: %r" % (arg1, arg2)
print_two(1, 2)
|
ahhda/sympy | refs/heads/master | sympy/unify/__init__.py | 122 | """ Unification in SymPy
See sympy.unify.core docstring for algorithmic details
See http://matthewrocklin.com/blog/work/2012/11/01/Unification/ for discussion
"""
from .usympy import unify, rebuild
from .rewrite import rewriterule
|
veger/ansible | refs/heads/devel | test/units/module_utils/network/aci/test_aci.py | 14 | # -*- coding: utf-8 -*-
# Copyright 2017 Dag Wieers <dag@wieers.com>
# This file is part of Ansible by Red Hat
#
# 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
... |
elitest/mitmproxy | refs/heads/master | libmproxy/web/__init__.py | 32 | from __future__ import absolute_import, print_function
import collections
import tornado.ioloop
import tornado.httpserver
import os
from .. import controller, flow
from . import app
class Stop(Exception):
pass
class WebFlowView(flow.FlowView):
def __init__(self, store):
super(WebFlowView, self).__in... |
abhilashnta/edx-platform | refs/heads/master | lms/djangoapps/edxnotes/helpers.py | 75 | """
Helper methods related to EdxNotes.
"""
import json
import logging
import requests
from requests.exceptions import RequestException
from uuid import uuid4
from json import JSONEncoder
from datetime import datetime
from courseware.access import has_access
from courseware.views import get_current_child
from django.co... |
DavidNorman/tensorflow | refs/heads/master | tensorflow/python/saved_model/function_deserialization.py | 2 | # Copyright 2018 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... |
52ai/django-ccsds | refs/heads/master | django/forms/models.py | 6 | """
Helper functions for creating Form classes from Django models
and database field objects.
"""
from __future__ import unicode_literals
import warnings
from collections import OrderedDict
from itertools import chain
from django.core.exceptions import (
NON_FIELD_ERRORS, FieldError, ImproperlyConfigured, Valida... |
harayz/raspberry_pwn | refs/heads/master | src/pentest/metagoofil/hachoir_parser/audio/s3m.py | 38 | """
The ScreamTracker 3.0x module format description for .s3m files.
Documents:
- Search s3m on Wotsit
http://www.wotsit.org/
Author: Christophe GISQUET <christophe.gisquet@free.fr>
Creation: 11th February 2007
"""
from hachoir_parser import Parser
from hachoir_core.field import (StaticFieldSet, FieldSet, Field,
... |
Cloud-CV/IDE | refs/heads/master | tests/unit/caffe_app/__init__.py | 12133432 | |
SravanthiSinha/edx-platform | refs/heads/master | common/djangoapps/terrain/stubs/tests/__init__.py | 12133432 | |
indictranstech/trufil-erpnext | refs/heads/master | erpnext/accounts/report/ordered_items_to_be_billed/__init__.py | 12133432 | |
vedavaapi/vedavaapi_py_api | refs/heads/master | tests/__init__.py | 12133432 | |
apocquet/django | refs/heads/master | django/utils/crypto.py | 452 | """
Django's standard crypto functions and utilities.
"""
from __future__ import unicode_literals
import binascii
import hashlib
import hmac
import random
import struct
import time
from django.conf import settings
from django.utils import six
from django.utils.encoding import force_bytes
from django.utils.six.moves i... |
b-cuts/seldon-server | refs/heads/master | external/predictor/python/vw/vw.py | 10 | import random, math
import operator
from collections import defaultdict
from socket import *
import threading, Queue, subprocess
def sigmoid(x):
return 1 / (1 + math.exp(-x))
def normalize( predictions ):
s = sum( predictions )
normalized = []
for p in predictions:
normalized.append( p / s )... |
linjeffrey/phantomjs | refs/heads/master | src/qt/qtwebkit/Tools/Scripts/webkitpy/__init__.py | 233 | # Required for Python to search this directory for module files
# Keep this file free of any code or import statements that could
# cause either an error to occur or a log message to be logged.
# This ensures that calling code can import initialization code from
# webkitpy before any errors or log messages due to code... |
melodous/designate | refs/heads/stable/juno | designate/tests/test_resources/__init__.py | 12133432 | |
nicolargo/intellij-community | refs/heads/master | python/testData/completion/py255/completion/__init__.py | 12133432 | |
egenerat/gae-django | refs/heads/master | django/contrib/markup/templatetags/__init__.py | 12133432 | |
tbartelmess/django-localflavor-de | refs/heads/master | tests/__init__.py | 12133432 | |
aestheticblasphemy/aestheticBlasphemy | refs/heads/master | dashboard/management/commands/__init__.py | 12133432 | |
ChristophorusX/Proxy-Hentai-Downloader | refs/heads/master | xeHentai/proxy.py | 2 | #!/usr/bin/env python
# coding:utf-8
# Contributor:
# fffonion <fffonion@gmail.com>
import re
import time
import random
from requests.exceptions import ConnectTimeout, ConnectionError, InvalidSchema
from requests.packages.urllib3.exceptions import ProxySchemeUnknown
from . import util
from .const import *
... |
chrisnorman7/game | refs/heads/master | db/accounts.py | 1 | """Provides the accounts system."""
from sqlalchemy_accounts import setup
from .engine import engine
from .base import Base
from .session import Session, session
accounts = setup(
engine=engine,
base_class=Base,
session_class=Session,
session=session
)
Account = accounts.Account
|
google-research/google-research | refs/heads/master | wt5/wt5/tasks.py | 1 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... |
llonchj/sixpack | refs/heads/master | sixpack/test/alternative_choice_test.py | 8 | import unittest
import json
import fakeredis
from werkzeug.test import Client
from werkzeug.wrappers import BaseResponse
from sixpack.server import create_app
from sixpack.models import Experiment
from sixpack.models import Client as SClient
class TestAlternativeChoice(unittest.TestCase):
def setUp(self):
... |
halfak/mwxml | refs/heads/master | mwxml/iteration/tests/test_namespace.py | 2 | from nose.tools import eq_
from ...element_iterator import ElementIterator
from ..namespace import Namespace
def test_namespace():
XML = '<namespace key="0" case="first-letter" />'
namespace = Namespace.from_element(ElementIterator.from_string(XML))
eq_(namespace.id, 0)
eq_(namespace.name, "")
eq... |
okfn/ckanext-project | refs/heads/master | ckanext/project/upload_controller.py | 1 | import ckan.lib.base as base
import ckan.lib.helpers as helpers
from pylons import request
from ckan.controllers.package import PackageController
render = base.render
from ckan.lib.base import c
import model
from ckan.common import OrderedDict, _, json, request, c, g, response
from ckan.lib.search import SearchError
i... |
agry/NGECore2 | refs/heads/master | scripts/object/tangible/wearables/jacket/jacket_lifeday_09_02.py | 198 | import sys
def setup(core, object):
object.setStringAttribute('condition', '100/100')
object.setIntAttribute('volume', 1)
return |
thilbern/scikit-learn | refs/heads/master | sklearn/tests/test_pipeline.py | 17 | """
Test the pipeline module.
"""
import numpy as np
from scipy import sparse
from sklearn.externals.six.moves import zip
from sklearn.utils.testing import assert_raises
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_false
from sklearn.utils.testing import assert_true
from skle... |
ylatuya/Flumotion | refs/heads/master | flumotion/test/test_component_bouncers_bouncer.py | 3 | # -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Flumotion - a streaming media server
# Copyright (C) 2007 Fluendo, S.L. (www.fluendo.com).
# All rights reserved.
# This file may be distributed and/or modified under the terms of
# the GNU General Public License version 2 as published by
# the Free Software Founda... |
fernandezcuesta/ansible | refs/heads/devel | setup.py | 6 |
import json
import os
import os.path
import sys
from collections import defaultdict
from distutils.command.build_scripts import build_scripts as BuildScripts
from distutils.command.sdist import sdist as SDist
try:
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py as ... |
damiencalloway/djtut | refs/heads/master | mysite/env/lib/python2.7/site-packages/django/conf/locale/pt/__init__.py | 12133432 | |
justinpotts/mozillians | refs/heads/master | vendor-local/lib/python/djcelery/tests/test_backends/test_database.py | 13 | from __future__ import absolute_import
from datetime import timedelta
from celery import current_app
from celery import states
from celery.result import AsyncResult
from celery.task import PeriodicTask
from celery.utils import gen_unique_id
from djcelery.backends.database import DatabaseBackend
from djcelery.utils i... |
nhicher/ansible | refs/heads/devel | test/units/modules/network/vyos/test_vyos_static_route.py | 45 | # (c) 2016 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 dis... |
cogmission/nupic | refs/heads/master | external/linux32/lib/python2.6/site-packages/matplotlib/texmanager.py | 69 | """
This module supports embedded TeX expressions in matplotlib via dvipng
and dvips for the raster and postscript backends. The tex and
dvipng/dvips information is cached in ~/.matplotlib/tex.cache for reuse between
sessions
Requirements:
* latex
* \*Agg backends: dvipng
* PS backend: latex w/ psfrag, dvips, and Gh... |
feroda/django | refs/heads/master | tests/custom_managers/tests.py | 53 | from __future__ import unicode_literals
from django.db import models
from django.test import TestCase
from django.utils import six
from .models import (
Book, Car, CustomManager, CustomQuerySet, DeconstructibleCustomManager,
FunPerson, OneToOneRestrictedModel, Person, PersonManager,
PublishedBookManager, ... |
WillianPaiva/ycmd | refs/heads/master | ycmd/completers/typescript/hook.py | 26 | #!/usr/bin/env python
#
# Copyright (C) 2015 Google Inc.
#
# This file is part of YouCompleteMe.
#
# YouCompleteMe 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 you... |
obreitwi/vim-sort-folds | refs/heads/master | python3/sort_folds/config.py | 1 | #!/usr/bin/env python3
# encoding: utf-8
"""
Module to extract user settings from vim.
"""
from . import key_functions
import vim
def get_fold_to_sort_key(sort_line):
ignore_case = vim.eval("g:sort_folds_ignore_case")
if ignore_case == "0":
return lambda f: f[sort_line]
else:
return la... |
pangzhenjia/pysc2-source | refs/heads/master | pysc2/run_configs/__init__.py | 1 | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... |
gem/oq-hazardlib | refs/heads/master | openquake/hazardlib/tests/source/base_test.py | 1 | # The Hazard Library
# Copyright (C) 2012-2017 GEM 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 option) any later version.
#... |
CXQERP/ODOOERP | refs/heads/master | addons/portal/portal.py | 386 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... |
thundernet8/WRGameVideos-Server | refs/heads/master | venv/lib/python2.7/site-packages/setuptools/command/rotate.py | 461 | from distutils.util import convert_path
from distutils import log
from distutils.errors import DistutilsOptionError
import os
from setuptools import Command
from setuptools.compat import basestring
class rotate(Command):
"""Delete older distributions"""
description = "delete older distributions, keeping N n... |
gregswift/ansible-modules-extras | refs/heads/devel | cloud/rackspace/__init__.py | 12133432 | |
HumanDynamics/openbadge-analysis | refs/heads/master | openbadge_analysis/analysis/__init__.py | 1 | # -*- coding: utf-8 -*-
from .gatherings_cores import extract_groups, gather_groups, extract_cores
|
YathishReddy/Robust_ECN_Signalling_With_Nonces | refs/heads/master | src/point-to-point-layout/bindings/modulegen__gcc_ILP32.py | 28 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... |
numenta/nupic.core | refs/heads/master | bindings/py/tests/algorithms/svm_test.py | 8 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013-2017, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This p... |
endlessm/chromium-browser | refs/heads/master | tools/perf/page_sets/helpers/__init__.py | 47 | # Copyright 2020 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.
|
MaDKaTZe/phantomjs | refs/heads/master | src/qt/qtwebkit/Tools/Scripts/webkitpy/port/mac_unittest.py | 117 | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... |
Instagram/django | refs/heads/master | django/db/backends/postgresql/client.py | 638 | import os
import sys
from django.db.backends import BaseDatabaseClient
class DatabaseClient(BaseDatabaseClient):
executable_name = 'psql'
def runshell(self):
settings_dict = self.connection.settings_dict
args = [self.executable_name]
if settings_dict['USER']:
args += ["-U"... |
HopeFOAM/HopeFOAM | refs/heads/master | ThirdParty-0.1/ParaView-5.0.1/VTK/ThirdParty/ZopeInterface/zope/interface/advice.py | 31 | ##############################################################################
#
# Copyright (c) 2003 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... |
beiko-lab/gengis | refs/heads/master | bin/Lib/ConfigParser.py | 12 | """Configuration file parser.
A setup file consists of sections, lead by a "[section]" header,
and followed by "name: value" entries, with continuations and such in
the style of RFC 822.
The option values can contain format strings which refer to other values in
the same section, or values in a special [DEFAUL... |
lsaffie/hf | refs/heads/master | sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/py/upload.py | 93 | #!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2008 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... |
10io/huxley | refs/heads/master | setup.py | 1 | import huxley
from setuptools import setup, find_packages
import os
DIRNAME = os.path.dirname(os.path.abspath(__file__))
setup(
name = 'Huxley',
version = huxley.__version__,
packages = find_packages(),
install_requires = [
'selenium==2.32.0',
'plac==0.9.1',
'PIL==1.1.7',
... |
TangHao1987/intellij-community | refs/heads/master | plugins/hg4idea/testData/bin/mercurial/hg.py | 90 | # hg.py - repository classes for mercurial
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
# Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from i18n import _
from lock ... |
pmerrity/BlueHouse.js | refs/heads/Project-Blue-House | utils/converters/ctm/join_ctm.py | 399 | """Join multiple binary files into single file and generate JSON snippet with offsets
-------------------------------------
How to use
-------------------------------------
python join_ctm.py -i "part_*.ctm" -o joined.ctm [-j offsets.js]
Will read multiple files following wildcard pattern (ordered lexicographically)... |
Alwnikrotikz/pychess | refs/heads/master | lib/pychess/Savers/pgnbase.py | 20 | # -*- coding: UTF-8 -*-
from __future__ import print_function
import re
from pychess.Utils.const import *
from pychess.Utils.lutils.LBoard import LBoard
from pychess.Utils.lutils.lmove import parseSAN, ParsingError
from pychess.Savers.ChessFile import ChessFile, LoadingError
# token categories
COMMENT_REST, COMMEN... |
plotly/plotly.py | refs/heads/master | packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_xanchor.py | 1 | import _plotly_utils.basevalidators
class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self, plotly_name="xanchor", parent_name="scattergeo.marker.colorbar", **kwargs
):
super(XanchorValidator, self).__init__(
plotly_name=plotly_name,
... |
SimenB/thefuck | refs/heads/master | thefuck/rules/apt_get.py | 4 | from types import ModuleType
from thefuck.specific.apt import apt_available
from thefuck.utils import memoize, which
from thefuck.shells import shell
try:
from CommandNotFound import CommandNotFound
enabled_by_default = apt_available
if isinstance(CommandNotFound, ModuleType):
# For ubuntu 18.04+... |
kimhungGCZ/combinedAL | refs/heads/master | nab/plot.py | 1 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2017, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... |
drunknbass/plexpy | refs/heads/master | lib/requests/packages/urllib3/contrib/__init__.py | 12133432 | |
Fireblend/chromium-crosswalk | refs/heads/master | third_party/mojo/src/mojo/public/tools/mojom_fetcher/pylib/fetcher/__init__.py | 12133432 | |
dataxu/ansible | refs/heads/dx-stable-2.5 | test/units/parsing/__init__.py | 12133432 | |
Gjum/agarnet | refs/heads/master | setup.py | 1 | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='agarnet',
packages=['agarnet'],
py_modules=['agarnet'],
version='0.2.4',
description='agar.io client and connection toolkit',
install_requires=['websocket-client>=0.32.0'],
aut... |
fxfitz/ansible | refs/heads/devel | lib/ansible/modules/network/avi/avi_cloud.py | 26 | #!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... |
montogeek/watchman | refs/heads/master | python/tests/tests.py | 11 | #!/usr/bin/env python
# vim:ts=4:sw=4:et:
import unittest
import pywatchman
import os
from pywatchman import bser, SocketTimeout, WatchmanError
class TestSocketTimeout(unittest.TestCase):
def test_exception_handling(self):
try:
raise SocketTimeout('should not raise')
except WatchmanErr... |
analogdevicesinc/gnuradio | refs/heads/master | gr-blocks/python/blocks/qa_tagged_stream_mux.py | 47 | #!/usr/bin/env python
#
# Copyright 2013-2014 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your optio... |
guitarmanj/king-phisher | refs/heads/master | tests/xor.py | 3 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# tests/xor.py
#
# 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 condit... |
jjhelmus/scipy | refs/heads/master | scipy/signal/_arraytools.py | 28 | """
Functions for acting on a axis of an array.
"""
from __future__ import division, print_function, absolute_import
import numpy as np
def axis_slice(a, start=None, stop=None, step=None, axis=-1):
"""Take a slice along axis 'axis' from 'a'.
Parameters
----------
a : numpy.ndarray
The array ... |
seba3c/scamera | refs/heads/master | notifications/migrations/0002_auto_20161014_0113.py | 1 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-14 01:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notifications', '0001_initial'),
]
operations = [
migrations.AddField(
... |
Gustry/QGIS | refs/heads/master | python/plugins/processing/algs/gdal/AssignProjection.py | 7 | # -*- coding: utf-8 -*-
"""
***************************************************************************
self.py
---------------------
Date : January 2016
Copyright : (C) 2016 by Alexander Bruy
Email : alexander dot bruy at gmail dot com
********************... |
GoSteven/Diary | refs/heads/master | markdown/__init__.py | 1 | """
Python Markdown
===============
Python Markdown converts Markdown to HTML and can be used as a library or
called from the command line.
## Basic usage as a module:
import markdown
html = markdown.markdown(your_text_string)
See <http://packages.python.org/Markdown/> for more
information and instructions ... |
gylian/sickbeard | refs/heads/master | sickbeard/clients/requests/packages/charade/charsetgroupprober.py | 206 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All R... |
QLGu/django-oscar | refs/heads/master | tests/unit/checkout/__init__.py | 12133432 | |
dcroc16/skunk_works | refs/heads/master | google_appengine/lib/django-1.2/tests/modeltests/test_client/__init__.py | 12133432 | |
akatsoulas/oneanddone | refs/heads/master | oneanddone/tasks/__init__.py | 12133432 | |
2ndQuadrant/ansible | refs/heads/master | lib/ansible/modules/network/fortios/fortios_ips_rule.py | 23 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# 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 Lic... |
Nitrate/Nitrate | refs/heads/develop | src/tcms/report/templatetags/report_stats.py | 2 | # -*- coding: utf-8 -*-
from django import template
register = template.Library()
@register.simple_tag
def groupby_result_percent(groupby_result, group_item):
return getattr(groupby_result, f"{group_item}_percent")
|
mou4e/zirconium | refs/heads/master | third_party/protobuf/python/google/protobuf/reflection.py | 223 | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions o... |
DARKPOP/external_chromium_org | refs/heads/dark-5.1 | third_party/pexpect/pxssh.py | 171 | """This class extends pexpect.spawn to specialize setting up SSH connections.
This adds methods for login, logout, and expecting the shell prompt.
PEXPECT LICENSE
This license is approved by the OSI and FSF as GPL-compatible.
http://opensource.org/licenses/isc-license.txt
Copyright (c) 2012, Noah Spu... |
wemanuel/smry | refs/heads/master | server-auth/ls/google-cloud-sdk/platform/gsutil/third_party/boto/boto/cloudsearch2/optionstatus.py | 153 | # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
# All Rights Reserved
#
# 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... |
hastexo/edx-platform | refs/heads/master | openedx/core/djangolib/fields.py | 18 | """
Custom Django fields.
"""
from django.db import models
class CharNullField(models.CharField):
"""
CharField that stores NULL but returns ''
"""
description = "CharField that stores NULL but returns ''"
def to_python(self, value):
"""Converts the value into the correct Python object."... |
danieljaouen/ansible | refs/heads/devel | lib/ansible/modules/cloud/amazon/cloudfront_origin_access_identity.py | 57 | #!/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 = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module... |
don-github/edx-platform | refs/heads/master | lms/djangoapps/course_wiki/tests/__init__.py | 12133432 | |
paulrouget/servo | refs/heads/master | tests/wpt/web-platform-tests/resource-timing/resources/preflight.py | 12 | def main(request, response):
response.headers.set("Access-Control-Allow-Origin", "*");
response.headers.set("Access-Control-Max-Age", "0");
response.headers.set("Timing-Allow-Origin", "*");
# If this script is accessed with the header X-Require-Preflight then the
# browser will send a preflight requ... |
Averroes/statsmodels | refs/heads/master | statsmodels/examples/ex_nearest_corr.py | 34 | # -*- coding: utf-8 -*-
"""Find near positive definite correlation and covariance matrices
Created on Sun Aug 19 15:25:07 2012
Author: Josef Perktold
TODO:
add examples for cov_nearest from script log
Notes
-----
We are looking at eigenvalues before and after the conversion to psd matrix.
As distance measure fo... |
fsxfreak/club-suite | refs/heads/master | clubsuite/suite/migrations/0022_auto_20170301_0407.py | 1 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-01 04:07
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('suite', '0021_auto_20170227_2231'),
]
operations = [
migrat... |
Weicong-Lin/pymo-global | refs/heads/master | android/pgs4a-0.9.6/python-install/lib/python2.7/audiodev.py | 286 | """Classes for manipulating audio devices (currently only for Sun and SGI)"""
from warnings import warnpy3k
warnpy3k("the audiodev module has been removed in Python 3.0", stacklevel=2)
del warnpy3k
__all__ = ["error","AudioDev"]
class error(Exception):
pass
class Play_Audio_sgi:
# Private instance variables
... |
jollyroger/debian-buildbot | refs/heads/master | buildbot/test/regressions/test_shell_command_properties.py | 2 | # This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... |
shtouff/django | refs/heads/master | tests/admin_autodiscover/__init__.py | 12133432 | |
CraigHarris/gpdb | refs/heads/master | src/test/tinc/tincrepo/mpp/lib/gppkg/__init__.py | 12133432 | |
luca76/QGIS | refs/heads/master | python/plugins/processing/algs/grass/__init__.py | 12133432 | |
MSOpenTech/edx-platform | refs/heads/master | lms/djangoapps/licenses/management/__init__.py | 12133432 | |
ebukoz/thrive | refs/heads/develop | erpnext/manufacturing/doctype/bom_website_operation/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.