repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
akosyakov/intellij-community
refs/heads/master
python/testData/formatter/trailingBlankLinesWithBackslashesAtFunctionEnd.py
79
def foo(): pass \ \ \
yangchandle/FlaskTaskr
refs/heads/master
env/lib/python3.5/site-packages/sqlalchemy/event/__init__.py
81
# event/__init__.py # Copyright (C) 2005-2015 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from .api import CANCEL, NO_RETVAL, listen, listens_for, remove, contains from .ba...
onceuponatimeforever/oh-mainline
refs/heads/master
vendor/packages/sphinx/sphinx/ext/mathbase.py
15
# -*- coding: utf-8 -*- """ sphinx.ext.mathbase ~~~~~~~~~~~~~~~~~~~ Set up math support in source files and LaTeX/text output. :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from docutils import nodes, utils from docutils.parsers.rst i...
dharmit/adb-tests
refs/heads/master
cdrage-atomicapp-ci/centos-ci-jjb/run.py
2
#!/usr/bin/python import json, urllib, subprocess, sys, os # We will interface with Duffy to request machines: # Duffy documentation at https://wiki.centos.org/QaWiki/CI/Duffy # Formulate the url to request nodes url_base = "http://admin.ci.centos.org:8080" api_key = os.environ['CICO_API_KEY'] # comes from node envi...
agripo/website
refs/heads/master
core/tests/models/test_farmer.py
1
from django.db import IntegrityError from core.tests.base import CoreTestCase from core.models.users import AgripoUser as User class FarmerModelTest(CoreTestCase): def test_simple_user_is_not_a_farmer(self): user = User(username="Jean-Claude", password="my_pass", email="mail@dom.net") user.save(...
overtherain/scriptfile
refs/heads/master
software/googleAppEngine/lib/django_1_2/django/contrib/messages/storage/fallback.py
627
from django.contrib.messages.storage.base import BaseStorage from django.contrib.messages.storage.cookie import CookieStorage from django.contrib.messages.storage.session import SessionStorage class FallbackStorage(BaseStorage): """ Tries to store all messages in the first backend, storing any unstored mes...
nadeemat/namebench
refs/heads/master
nb_third_party/dns/node.py
215
# Copyright (C) 2001-2007, 2009, 2010 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
witwall/gyp
refs/heads/master
test/win/gyptest-macros-in-inputs-and-outputs.py
344
#!/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. """ Handle macro expansion in inputs and outputs of rules. """ import TestGyp import sys if sys.platform == 'win32': test = TestGyp.Tes...
ahmadshahwan/cohorte-runtime
refs/heads/master
python/src/lib/python/unidecode/x00b.py
252
data = ( '[?]', # 0x00 'N', # 0x01 'N', # 0x02 'H', # 0x03 '[?]', # 0x04 'a', # 0x05 'aa', # 0x06 'i', # 0x07 'ii', # 0x08 'u', # 0x09 'uu', # 0x0a 'R', # 0x0b 'L', # 0x0c '[?]', # 0x0d '[?]', # 0x0e 'e', # 0x0f 'ai', # 0x10 '[?]', # 0x11 '[?]', # 0x12 'o', # ...
zasdfgbnm/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/io_ops_test.py
23
# -*- coding: utf-8 -*- # 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 # # Un...
acsone/server-tools
refs/heads/8.0
server_environment/tests/test_server_environment.py
2
# -*- coding: utf-8 -*- ############################################################################## # # Author: Nicolas Bessi # Copyright 2014 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # publi...
cristianquaglio/odoo
refs/heads/master
addons/google_account/google_account.py
178
# -*- coding: utf-8 -*- import openerp from openerp.http import request from openerp.osv import osv from openerp import SUPERUSER_ID from openerp.tools.translate import _ from datetime import datetime from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT import werkzeug.urls import urllib2 import simplejson impor...
arborh/tensorflow
refs/heads/master
tensorflow/tools/api/tests/api_compatibility_test.py
3
# Lint as: python2, python3 # 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 # ...
zdary/intellij-community
refs/heads/master
python/testData/highlighting/escapedBackslash.py
83
str = 'a a \\'
lamestation/lamestation-sdk-tools
refs/heads/master
img2dat/Dialog.py
1
#!/usr/bin/python import wx from wx.lib.pubsub import setuparg1 from wx.lib.pubsub import pub def Quit(): dial = wx.MessageDialog(None, "Are you sure you want to quit?","Question", wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) return dial.ShowModal() def About(): info = wx.AboutDialogInfo(...
amikey/portia
refs/heads/master
slyd/slyd/splash/__init__.py
12133432
kronicz/ecommerce-2
refs/heads/master
lib/python2.7/site-packages/django/conf/locale/zh_CN/__init__.py
12133432
sambandi/eMonitor
refs/heads/master
emonitor/lib/osm/__init__.py
12133432
thedrow/django
refs/heads/master
tests/many_to_many/__init__.py
12133432
piffey/ansible
refs/heads/devel
lib/ansible/modules/cloud/openstack/__init__.py
12133432
rickhurst/Django-non-rel-blog
refs/heads/master
django/core/__init__.py
12133432
peterlauri/django
refs/heads/master
django/contrib/flatpages/migrations/__init__.py
12133432
relet/pygeohashing
refs/heads/master
Expedition.py
1
import pywikibot import re, datetime from UserListGenerator import * date_comment = u'<!--DATE-->' gratadd_comment = u'<!--GRATADD-->' gratname_comment = u'<!--GRATNAME-->' people_count_comment = u'<!--PEOP_COUNT-->' people_comment = u'<!--PEOPLE-->' location_comment = u'<!--LOCATION-->' transport_icon_comment = u'<!...
apache/airflow
refs/heads/main
tests/providers/oracle/transfers/test_oracle_to_oracle.py
10
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
ldgarcia/django-allauth
refs/heads/master
allauth/socialaccount/providers/fxa/views.py
66
import requests from allauth.socialaccount.providers.oauth2.views import (OAuth2Adapter, OAuth2LoginView, OAuth2CallbackView) from .provider import FirefoxAccountsProvider class FirefoxAccountsOAuth2Ad...
H1ghT0p/kitsune
refs/heads/master
kitsune/customercare/helpers.py
17
from datetime import datetime from django.conf import settings import pytz from jingo import register from kitsune.sumo.helpers import timesince @register.filter def utctimesince(time, now=None): now = now or datetime.utcnow() return timesince(time, now) def _append_tz(t): tz = pytz.timezone(settings...
panmari/tensorflow
refs/heads/master
tensorflow/python/kernel_tests/fft_ops_test.py
5
# Copyright 2015 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 a...
jtmitchell/reeder-demo
refs/heads/master
reeder/rssfeeds/migrations/__init__.py
12133432
Shouqun/node-gn
refs/heads/master
tools/depot_tools/third_party/pylint/checkers/utils.py
64
# pylint: disable=W0611 # # Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either v...
petrblahos/pyramid_locmako
refs/heads/master
pyramid_locmako/scaffolds/pyramid_locmako/+package+/tests/__init__.py
12133432
nataliecarstens/nataliecarstens.github.io
refs/heads/master
node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py
12133432
BocuStudio/django-timepiece
refs/heads/develop
timepiece/south_migrations/__init__.py
12133432
Scan-o-Matic/scanomatic
refs/heads/master
scanomatic/io/__init__.py
12133432
alien4cloud/alien4cloud-cloudify3-provider
refs/heads/develop
alien4cloud-cloudify3-provider/src/main/resources/recipe/plugin_overrides/a4c_common/__init__.py
12133432
by46/recipe
refs/heads/master
recipe/commands/listcommand.py
1
from __future__ import print_function import os.path import six from recipe.commands.basecommand import Command from recipe.utils import get_templates_home from recipe.utils import load_project_template class ListCommand(Command): """view template information """ name = 'list' @s...
kenwith/cs561
refs/heads/master
cs561-as2-kenwith/pox/pox/samples/pong.py
34
# Copyright 2012 James McCauley # # This file is part of POX. # # POX 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. # # POX is distri...
efortuna/AndroidSDKClone
refs/heads/master
ndk/prebuilt/linux-x86_64/lib/python2.7/rlcompleter.py
65
"""Word completion for GNU readline. The completer completes keywords, built-ins and globals in a selectable namespace (which defaults to __main__); when completing NAME.NAME..., it evaluates (!) the expression up to the last dot and completes its attributes. It's very cool to do "import sys" type "sys.", hit the com...
sander76/home-assistant
refs/heads/dev
homeassistant/components/emulated_hue/upnp.py
7
"""Support UPNP discovery method that mimics Hue hubs.""" import asyncio import logging import socket from aiohttp import web from homeassistant import core from homeassistant.components.http import HomeAssistantView from .const import HUE_SERIAL_NUMBER, HUE_UUID _LOGGER = logging.getLogger(__name__) BROADCAST_POR...
mmardini/django
refs/heads/master
django/contrib/gis/gdal/prototypes/geom.py
79
from ctypes import c_char_p, c_double, c_int, c_void_p, POINTER from django.contrib.gis.gdal.envelope import OGREnvelope from django.contrib.gis.gdal.libgdal import lgdal from django.contrib.gis.gdal.prototypes.errcheck import check_envelope from django.contrib.gis.gdal.prototypes.generation import (const_string_output...
dwightgunning/django
refs/heads/master
tests/gis_tests/geos_tests/test_geos.py
5
from __future__ import unicode_literals import ctypes import json import random import unittest from binascii import a2b_hex, b2a_hex from io import BytesIO from unittest import skipUnless from django.contrib.gis import gdal from django.contrib.gis.gdal import HAS_GDAL from django.contrib.gis.geos import ( HAS_GE...
sandvine/horizon
refs/heads/master
openstack_dashboard/dashboards/project/routers/panel.py
77
# Copyright 2012, Nachi Ueno, NTT MCL, Inc. # # 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 applic...
da1z/intellij-community
refs/heads/master
python/testData/inspections/PyUnresolvedReferencesInspection/dunderPackage.py
83
__package__ #pass
glmcdona/meddle
refs/heads/master
examples/base/Lib/sunau.py
156
"""Stuff to parse Sun and NeXT audio files. An audio file consists of a header followed by the data. The structure of the header is as follows. +---------------+ | magic word | +---------------+ | header size | +---------------+ | data size | +--------...
RackSec/ansible
refs/heads/devel
test/units/utils/__init__.py
12133432
ctrengove/dj-stripe
refs/heads/master
djstripe/management/commands/__init__.py
12133432
arabenjamin/scikit-learn
refs/heads/master
sklearn/neural_network/__init__.py
257
""" The :mod:`sklearn.neural_network` module includes models based on neural networks. """ from .rbm import BernoulliRBM __all__ = ['BernoulliRBM']
Fireblend/chromium-crosswalk
refs/heads/master
chrome/common/extensions/docs/server2/fake_url_fetcher.py
85
# Copyright (c) 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. import os import posixpath from future import Future from path_util import AssertIsDirectory, IsDirectory class _Response(object): def __init__(self...
WolfangAukang/watcher-hq
refs/heads/master
misc/strings.py
1
WELCOME_MESSAGE = "Welcome to the Watcher HeadQuarters! We will generate a new watch for you!" TRIGGER_OPTION_MESSAGE = "Please insert the first letter of the kind of schedule" \ "[Interval/Hourly/Daily/Weekly/Monthly/Yearly/Cron]: " OBJECT_FORMAT_MESSAGE = "Do you wish to use Object formattin...
kevin1024/flask-oauthlib
refs/heads/master
tests/oauth2/client.py
2
from flask import Flask, redirect, url_for, session, request, jsonify, abort from flask_oauthlib.client import OAuth def create_client(app): oauth = OAuth(app) remote = oauth.remote_app( 'dev', consumer_key='dev', consumer_secret='dev', request_token_params={'scope': 'email'},...
mglukhikh/intellij-community
refs/heads/master
python/testData/formatter/commentedCodeFragmentIgnored_after.py
79
# This normal comment won't be touched as well # for a in [1, 2, 3]: # if a == 1: # print 'x' # elif a == 2: # print 'y'
benhuang21828/System-perfomance-graph
refs/heads/master
examples/django_chat/chat/urls.py
11
from django.conf.urls.defaults import patterns, include, url import socketio.sdjango socketio.sdjango.autodiscover() urlpatterns = patterns("chat.views", url("^socket\.io", include(socketio.sdjango.urls)), url("^$", "rooms", name="rooms"), url("^create/$", "create", name="create"), url("^(?P<slug>.*)...
dscohen/tfHelper
refs/heads/master
backend.py
1
import numpy as np import tensorflow as tf import tensorflow as tf from tensorflow.python.training import moving_averages from tensorflow.python.framework import ops from tensorflow.python.ops import tensor_array_ops from tensorflow.python.ops import control_flow_ops try: from tensorflow.python.ops import ctc_op...
NaturalGIS/QGIS
refs/heads/master
tests/src/python/test_qgspallabeling_layout.py
42
# -*- coding: utf-8 -*- """QGIS unit tests for QgsPalLabeling: label rendering output via layout From build dir, run: ctest -R PyQgsPalLabelingLayout -V See <qgis-src-dir>/tests/testdata/labeling/README.rst for description. .. note:: This program is free software; you can redistribute it and/or modify it under the t...
ujvl/ray-ng
refs/heads/master
python/ray/tests/test_autoscaler.py
1
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import tempfile import threading import time import unittest import yaml import copy import ray import ray.services as services from ray.autoscaler.autoscaler import StandardAutoscaler, LoadMetri...
zenodo/zenodo
refs/heads/master
zenodo/modules/records/serializers/schemas/schemaorg.py
1
# -*- coding: utf-8 -*- # # This file is part of Zenodo. # Copyright (C) 2017 CERN. # # Zenodo 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 later v...
thauser/pnc-cli
refs/heads/master
pnc_cli/swagger_client/apis/environments_api.py
1
# coding: utf-8 """ EnvironmentsApi.py Copyright 2015 SmartBear Software 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 requi...
GitHublong/hue
refs/heads/master
desktop/core/ext-py/boto-2.38.0/boto/gs/cors.py
153
# Copyright 2012 Google Inc. # # 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, modify, merge, publish, dis- # trib...
mnesvold/sitemask
refs/heads/master
sitemask/migrations/__init__.py
12133432
Lujeni/ansible
refs/heads/devel
lib/ansible/module_utils/network/vyos/argspec/interfaces/__init__.py
12133432
SurfasJones/icecream-info
refs/heads/master
icecream/lib/python2.7/site-packages/pip/_vendor/html5lib/html5parser.py
169
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import with_metaclass import types from . import inputstream from . import tokenizer from . import treebuilders from .treebuilders._base import Marker from . import utils from . import constants from .constants import spaceChara...
GladeRom/android_external_chromium_org
refs/heads/gr-3.1
chrome/test/mini_installer/registry_verifier.py
36
# Copyright 2013 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. import _winreg import verifier class RegistryVerifier(verifier.Verifier): """Verifies that the current registry matches the specified criteria.""" de...
angelman/phantomjs
refs/heads/master
src/qt/qtwebkit/Tools/Scripts/webkitpy/port/gtk_unittest.py
117
# Copyright (C) 2011 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...
petecummings/NewsBlur
refs/heads/master
vendor/opml/tests.py
20
############################################################################## # # Copyright (c) 2006 Zope Corporation 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 SO...
xhteam/external-chromium
refs/heads/imx_jb
testing/gtest/test/gtest_filter_unittest.py
2826
#!/usr/bin/env python # # Copyright 2005 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...
qalhata/Python-Scripts-Repo-on-Data-Science
refs/heads/master
SQL_Join_Table_Columns.py
1
# -*- coding: utf-8 -*- """ Created on Wed Jan 25 19:10:55 2017 @author: Shabaka """ # Build a statement to select the census and state_fact tables: stmt stmt = select([census, state_fact]) # Add a select_from clause that wraps a join for the census and state_fact # tables where the census state column an...
leiferikb/bitpop
refs/heads/master
build/third_party/twisted_10_2/twisted/conch/insults/helper.py
61
# -*- test-case-name: twisted.conch.test.test_helper -*- # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. """ Partial in-memory terminal emulator @author: Jp Calderone """ import re, string from zope.interface import implements from twisted.internet import defer, protocol, reactor ...
AUTBS/AI-Pacman
refs/heads/master
mazeGenerator.py
2
# mazeGenerator.py # ---------------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkel...
charles-cooper/raiden
refs/heads/master
raiden/tests/conftest.py
1
# -*- coding: utf-8 -*- from gevent import monkey monkey.patch_all() import pytest import gevent import gevent.monkey from ethereum import slogging from ethereum.keys import PBKDF2_CONSTANTS from ethereum import processblock from ethereum import tester from raiden.network.rpc.client import GAS_LIMIT from raiden.test...
mariosky/evo-drawings
refs/heads/master
venv/lib/python2.7/site-packages/django/templatetags/__init__.py
12133432
lintzc/gpdb
refs/heads/master
src/test/tinc/tincrepo/mpp/gpdb/tests/storage/aoco_compression/expected/__init__.py
12133432
tszym/ansible
refs/heads/devel
lib/ansible/modules/network/dellos9/__init__.py
12133432
jsbain/stash
refs/heads/master
bin/pip.py
1
''' Install and manage python packages search - Searches for packages versions - Lists all versions for a package install - Installs the package off pypi list - Lists currently installed backages. remove - remove a package installed by pip update - update a package installed by pip usage: pip.py [-h] [-n RESULT_COUNT...
chouseknecht/openshift-restclient-python
refs/heads/master
openshift/client/apis/image_openshift_io_v1_api.py
1
# coding: utf-8 """ OpenShift API (with Kubernetes) OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is...
bear/kyaku
refs/heads/master
kyaku/store.py
2
#!/usr/bin/env python # # :copyright: (c) 2012 by Mike Taylor # :license: BSD 2-Clause # from redis import StrictRedis def getRedis(config): host = '127.0.0.1' port = 6379 database = 0 if 'host' in config: host = config['host'] if 'port' in config: port = config['port...
hoosteeno/kuma
refs/heads/master
vendor/packages/translate/lang/zh_cn.py
25
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2013 Zuza Software Foundation # # This file is part of translate. # # translate 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...
GitHublong/hue
refs/heads/master
apps/spark/src/spark/api.py
4
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
vczhfan/cs61a
refs/heads/master
hw/hw5.py
1
# Name: # Login: # TA: # Section: # Q1. empty_rlist = None def rlist(first, rest): """Construct a recursive list from its first element and the rest.""" return (first, rest) def first(s): """Return the first element of a recursive list s.""" return s[0] def rest(s): """Return the rest of the...
shinglyu/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/py/testing/io_/test_terminalwriter.py
161
import py import os, sys from py._io import terminalwriter import codecs import pytest def test_get_terminal_width(): x = py.io.get_terminal_width assert x == terminalwriter.get_terminal_width def test_getdimensions(monkeypatch): fcntl = py.test.importorskip("fcntl") import struct l = [] monk...
EmreAtes/spack
refs/heads/develop
lib/spack/external/jsonschema/tests/test_cli.py
61
from jsonschema import Draft4Validator, ValidationError, cli from jsonschema.compat import StringIO from jsonschema.tests.compat import mock, unittest def fake_validator(*errors): errors = list(reversed(errors)) class FakeValidator(object): def __init__(self, *args, **kwargs): pass ...
strint/tensorflow
refs/heads/master
tensorflow/python/training/tensorboard_logging_test.py
132
# 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...
hassanabidpk/django
refs/heads/master
tests/introspection/__init__.py
12133432
switowski/invenio
refs/heads/master
invenio/legacy/refextract/scripts/__init__.py
12133432
lordB8r/polls
refs/heads/master
ENV/lib/python2.7/site-packages/django/conf/locale/es_NI/__init__.py
12133432
tysonclugg/django
refs/heads/master
tests/httpwrappers/__init__.py
12133432
bradparks/procedural_city_generation
refs/heads/master
procedural_city_generation/building_generation/Polygon3D.py
3
class Polygon3D(object): def __init__(self, verts, faces, texture): self.verts=verts self.faces=faces self.texture=texture
pytorch/fairseq
refs/heads/master
fairseq/tasks/__init__.py
1
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """isort:skip_file""" import argparse import importlib import os from fairseq.dataclass import FairseqDataclass from fairseq.dataclass.utils ...
s142857/servo
refs/heads/master
tests/wpt/css-tests/css21_dev/xhtml1/reference/support/fonts/makegsubfonts.py
820
import os import textwrap from xml.etree import ElementTree from fontTools.ttLib import TTFont, newTable from fontTools.misc.psCharStrings import T2CharString from fontTools.ttLib.tables.otTables import GSUB,\ ScriptList, ScriptRecord, Script, DefaultLangSys,\ FeatureList, FeatureRecord, Feature,\ LookupLi...
timbooo/traktforalfred
refs/heads/master
trakt/sphinxext.py
1
from __future__ import unicode_literals import collections import inspect from docutils import nodes from docutils.parsers import rst from docutils.parsers.rst import directives from docutils.statemachine import ViewList import six from sphinx.util.nodes import nested_parse_with_titles import trakt from...
cedi4155476/QGIS
refs/heads/master
python/plugins/processing/algs/lidar/lastools/blast2iso.py
12
# -*- coding: utf-8 -*- """ *************************************************************************** blast2iso.py --------------------- Date : September 2013 Copyright : (C) 2013 by Martin Isenburg Email : martin near rapidlasso point com ***************...
pLinkSS/pLink-SS
refs/heads/master
python_plink/Filter.py
1
#!/usr/bin/env python # -*-coding:utf8 -*- ''' Created on 23 Jan 2013 @author: Jeremy ''' import os import Path import platform def _ConstructFilterParam(pfind_file_path, input_file_path, output_dir_path, extra_param): filterParam = {} # IO _io = [] _io.append(('pFindFile', pfind_file_path)) _io.a...
MoamerEncsConcordiaCa/tensorflow
refs/heads/master
tensorflow/contrib/cudnn_rnn/python/ops/cudnn_rnn_ops.py
33
# 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...
eddiedb6/ej
refs/heads/master
db/TablePOI.py
1
{ PDBConst.Name: "poi", PDBConst.Columns: [ { PDBConst.Name: "ID", PDBConst.Attributes: ["int", "not null", "auto_increment", "primary key"] }, { PDBConst.Name: "FID", PDBConst.Attributes: ["int", "not null"] }, { PDBConst.Name: "Place", PDBCon...
AFD-Illinois/grim
refs/heads/master
src/timestepper/test_CT.py
2
import mpi4py, petsc4py from petsc4py import PETSc import numpy as np import pylab as pl import pytest import gridPy import geometryPy import boundaryPy import timeStepperPy petsc4py.init() petscComm = petsc4py.PETSc.COMM_WORLD comm = petscComm.tompi4py() rank = comm.Get_rank() numProcs = comm.Get_size() PETSc.Sys.Pr...
adamchainz/ansible
refs/heads/devel
lib/ansible/modules/network/netvisor/pn_vrouterif.py
59
#!/usr/bin/python """ PN-CLI vrouter-interface-add/remove/modify """ # # 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...
buffer/v8py
refs/heads/master
v8py/devtools.py
1
import json from pprint import pprint import _v8py import gevent from gevent import pywsgi import gevent.lock import gevent.queue from geventwebsocket.handler import WebSocketHandler from geventwebsocket.exceptions import WebSocketError class DevtoolsDebugger(_v8py.Debugger): def __init__(self, context): ...
igordeoliveirasa/mp3-finder
refs/heads/master
mp3_finder/deps/gtest-1.7.0 2/scripts/gen_gtest_pred_impl.py
2538
#!/usr/bin/env python # # Copyright 2006, 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...
kenshay/ImageScripter
refs/heads/master
ProgramData/SystemFiles/Python/Lib/site-packages/OpenGL/EGL/KHR/lock_surface3.py
8
'''OpenGL extension KHR.lock_surface3 This module customises the behaviour of the OpenGL.raw.EGL.KHR.lock_surface3 to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/KHR/lock_surface3.txt ''' from OpenGL import platform, constant, ...
Pakoach/Sick-Beard-Animes
refs/heads/master
lib/hachoir_core/cmd_line.py
90
from optparse import OptionGroup from lib.hachoir_core.log import log from lib.hachoir_core.i18n import _, getTerminalCharset from lib.hachoir_core.tools import makePrintable import lib.hachoir_core.config as config def getHachoirOptions(parser): """ Create an option group (type optparse.OptionGroup) of Hachoi...
codesparkle/youtube-dl
refs/heads/master
youtube_dl/extractor/usatoday.py
70
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( get_element_by_attribute, parse_duration, update_url_query, ExtractorError, ) from ..compat import compat_str class USATodayIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?usatoday...
kenparker/Glypto
refs/heads/master
web/packages/core_elements/src/web-animations-js/test/update-testcases.py
170
#!/usr/bin/python import cStringIO as StringIO from fnmatch import fnmatch import difflib import os import sys def get_name(filename): return os.path.splitext(filename)[0] def list_dir(dir_path, filter_func): return sorted(filter(filter_func, os.listdir(dir_path)), key=get_name) def main(): test_dir ...