repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
poojavade/Genomics_Docker | refs/heads/master | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/apache_libcloud-0.15.1-py2.7.egg/libcloud/compute/drivers/elastichosts.py | 58 | # 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 use ... |
Ishiihara/kafka | refs/heads/trunk | tests/kafkatest/tests/client/quota_test.py | 6 | # 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 use ... |
hmflash/Cura | refs/heads/master | plugins/VersionUpgrade/VersionUpgrade24to25/VersionUpgrade24to25.py | 1 | # Copyright (c) 2017 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
import configparser #To parse the files we need to upgrade and write the new files.
import io #To serialise configparser output to a string.
from UM.VersionUpgrade import VersionUpgrade
_removed_settings = { #Settings tha... |
andreif/django | refs/heads/master | tests/template_tests/filter_tests/test_slice.py | 428 | from django.template.defaultfilters import slice_filter
from django.test import SimpleTestCase
from django.utils.safestring import mark_safe
from ..utils import setup
class SliceTests(SimpleTestCase):
@setup({'slice01': '{{ a|slice:"1:3" }} {{ b|slice:"1:3" }}'})
def test_slice01(self):
output = sel... |
tareqalayan/ansible | refs/heads/devel | lib/ansible/module_utils/facts/network/darwin.py | 128 | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... |
joshloyal/scikit-learn | refs/heads/master | examples/neighbors/plot_lof.py | 30 | """
=================================================
Anomaly detection with Local Outlier Factor (LOF)
=================================================
This example presents the Local Outlier Factor (LOF) estimator. The LOF
algorithm is an unsupervised outlier detection method which computes the local
density deviat... |
shadyueh/pyranking | refs/heads/master | env/lib/python2.7/site-packages/django/conf/locale/sr_Latn/formats.py | 1008 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j. F Y.'
TIME_FORMAT = 'H:i'
DATE... |
rs2/bokeh | refs/heads/master | sphinx/source/docs/user_guide/examples/interaction_checkbox_button_group.py | 16 | from bokeh.io import output_file, show
from bokeh.layouts import widgetbox
from bokeh.models.widgets import CheckboxButtonGroup
output_file("checkbox_button_group.html")
checkbox_button_group = CheckboxButtonGroup(
labels=["Option 1", "Option 2", "Option 3"], active=[0, 1])
show(widgetbox(checkbox_button_gro... |
TriOptima/tri.form | refs/heads/master | tests/test_render.py | 1 | import re
import pytest
from tri_form.render import render_attrs
def test_render_attrs():
assert render_attrs(None) == ''
assert render_attrs({'foo': 'bar', 'baz': 'quux'}) == ' baz="quux" foo="bar"'
def test_render_class():
assert render_attrs({'apa': True, 'bepa': '', 'cepa': None, 'class': dict(foo... |
bitmovin/bitcodin-python | refs/heads/develop | bitcodin/test/http/testcase_get_undefined.py | 1 | __author__ = 'Dominic Miglar <dominic.miglar@bitmovin.net>'
import unittest
from bitcodin import get_api_base
from bitcodin.rest import RestClient
from bitcodin.api import create_headers
from bitcodin.exceptions import BitcodinNotFoundError
from bitcodin.test.bitcodin_test_case import BitcodinTestCase
class HttpGetU... |
insertnamehere1/maraschino | refs/heads/master | lib/transmissionrpc/utils.py | 10 | # -*- coding: utf-8 -*-
# Copyright (c) 2008-2011 Erik Svensson <erik.public@gmail.com>
# Licensed under the MIT license.
import socket, datetime, logging
import transmissionrpc.constants as constants
from transmissionrpc.constants import LOGGER
UNITS = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB']
def format_size... |
ArcasProject/WheresMyField | refs/heads/master | library/admin.py | 1 | from django.contrib import admin
from .models import Article, Author, Year, Label, Strategies, KeyWord
class ArticleAdmin(admin.ModelAdmin):
model = Article
search_fields = ['title', 'key']
filter_horizontal = ('author', 'list_strategies', 'labels', 'key_word')
class AuthorAdmin(admin.ModelAdmin):
... |
guke1991/hellopy | refs/heads/master | echo_server/client.py | 1 | import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('localhost', 10000))
s.sendall(b'Hello world')
data = s.recv(1024)
s.close()
print('Received', repr(data))
|
s40523122/2016fallcp_hw | refs/heads/gh-pages | plugin/liquid_tags/test_data/pelicanconf.py | 138 | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'The Tester'
SITENAME = 'Testing site'
SITEURL = 'http://example.com/test'
# to make the test suite portable
TIMEZONE = 'UTC'
PATH = 'content'
READERS = {'html': None}
# Generate only one feed
FEED_ALL_ATOM = None
CATEG... |
chenzheng128/ns-3-dev-git | refs/heads/master | utils/tests/test-waf.py | 73 | #! /usr/bin/env python
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
#
# Copyright (c) 2014 Siddharth Santurkar
#
# 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 Softw... |
elaske/tsp-data | refs/heads/develop | bs4/diagnose.py | 431 | """Diagnostic functions, mainly for use when doing tech support."""
import cProfile
from StringIO import StringIO
from HTMLParser import HTMLParser
import bs4
from bs4 import BeautifulSoup, __version__
from bs4.builder import builder_registry
import os
import pstats
import random
import tempfile
import time
import tra... |
dya2/python-for-android | refs/heads/master | python3-alpha/extra_modules/gdata/tlslite/utils/OpenSSL_AES.py | 48 | """OpenSSL/M2Crypto AES implementation."""
from .cryptomath import *
from .AES import *
if m2cryptoLoaded:
def new(key, mode, IV):
return OpenSSL_AES(key, mode, IV)
class OpenSSL_AES(AES):
def __init__(self, key, mode, IV):
AES.__init__(self, key, mode, IV, "openssl")
... |
theosysbio/means | refs/heads/master | src/means/core/problems.py | 2 | """
Problems
--------
This part of the package implement classes describing "problems".
Problems are required inputs for simulation and inference.
Currently, there are two types of problems:
* A :class:`ODEProblem` is a system of differential equations describing
the temporal behaviour of the system. They are typ... |
rkq/cxxexp | refs/heads/master | third-party/src/boost_1_56_0/tools/build/src/build/property.py | 5 | # Status: ported, except for tests and --abbreviate-paths.
# Base revision: 64070
#
# Copyright 2001, 2002, 2003 Dave Abrahams
# Copyright 2006 Rene Rivera
# Copyright 2002, 2003, 2004, 2005, 2006 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or ... |
lulf/qpid-dispatch | refs/heads/master | console/dispatch-dashboard/dispatch/topology/views.py | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... |
wcmckee/nikola | refs/heads/master | nikola/data/themes/base/messages/messages_ja.py | 4 | # -*- encoding:utf-8 -*-
from __future__ import unicode_literals
MESSAGES = {
"%d min remaining to read": "残りを読むのに必要な時間は%d分",
"(active)": "(有効)",
"Also available in:": "他の言語で読む:",
"Archive": "文書一覧",
"Authors": "著者一覧",
"Categories": "カテゴリ",
"Comments": "コメント",
"LANGUAGE": "日本語",
"Lan... |
hoosteeno/mozillians | refs/heads/master | vendor-local/lib/python/unidecode/x009.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
'eN', # 0x0d
'e', # 0x0e
'e', # 0x0f
'ai', # 0x10
'oN', # 0x11
'o', # 0x12
'o', # 0x13
'... |
GitAngel/django | refs/heads/master | django/utils/translation/trans_null.py | 467 | # These are versions of the functions in django.utils.translation.trans_real
# that don't actually do anything. This is purely for performance, so that
# settings.USE_I18N = False can use this module rather than trans_real.py.
from django.conf import settings
from django.utils.encoding import force_text
def ngettext... |
nirmeshk/oh-mainline | refs/heads/master | vendor/packages/python-openid/openid/test/test_ax.py | 77 | """Tests for the attribute exchange extension module
"""
import unittest
from openid.extensions import ax
from openid.message import NamespaceMap, Message, OPENID2_NS
from openid.consumer.consumer import SuccessResponse
class BogusAXMessage(ax.AXMessage):
mode = 'bogus'
getExtensionArgs = ax.AXMessage._newAr... |
vjpai/grpc | refs/heads/master | examples/python/debug/send_message.py | 8 | # Copyright 2019 The gRPC 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 applicable law or agreed to in writ... |
jordij/wagtail | refs/heads/master | wagtail/tests/testapp/apps.py | 35 | from django.apps import AppConfig
class WagtailTestsAppConfig(AppConfig):
name = 'wagtail.tests.testapp'
label = 'tests'
verbose_name = "Wagtail tests"
|
fyfcauc/android_external_chromium-org | refs/heads/du44 | tools/deep_memory_profiler/tests/mock_gsutil.py | 131 | #!/usr/bin/env python
# Copyright (c) 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 os
import re
import sys
import zipfile
def main():
ZIP_PATTERN = re.compile('dmprof......\.zip')
assert len(sys.argv)... |
matrumz/RPi_Custom_Files | refs/heads/master | Printing/hplip-3.15.2/plugins/Deskjet_460.py | 3 | # -*- coding: utf-8 -*-
#
# (c) Copyright 2001-2007 Hewlett-Packard Development Company, L.P.
#
# 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 opt... |
afandria/sky_engine | refs/heads/master | tools/git/mass-rename.py | 170 | #!/usr/bin/env python
# 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.
"""
mass-rename: update source files (gyp lists, #includes) to reflect
a rename. Expects "git diff --cached -M" to list a bunch of ren... |
hungtt57/matchmaker | refs/heads/master | lib/python2.7/site-packages/django/core/management/commands/flush.py | 82 | from __future__ import unicode_literals
import sys
from importlib import import_module
from django.apps import apps
from django.core.management import call_command
from django.core.management.base import BaseCommand, CommandError
from django.core.management.color import no_style
from django.core.management.sql import... |
knuu/competitive-programming | refs/heads/master | atcoder/abc/abc035_a.py | 1 | W, H = map(int, input().split())
print('4:3' if 4 * H == 3 * W else '16:9')
|
gtko/Sick-Beard | refs/heads/development | sickbeard/clients/requests/packages/charade/euckrfreq.py | 3120 | ######################## 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 Rights R... |
didoteebin/jieba | refs/heads/master | test/parallel/extract_tags.py | 65 | import sys
sys.path.append('../../')
import jieba
jieba.enable_parallel(4)
import jieba.analyse
from optparse import OptionParser
USAGE ="usage: python extract_tags.py [file name] -k [top k]"
parser = OptionParser(USAGE)
parser.add_option("-k",dest="topK")
opt, args = parser.parse_args()
if len(args) <1:
pr... |
kswiat/django | refs/heads/master | django/contrib/redirects/middleware.py | 109 | from __future__ import unicode_literals
from django.apps import apps
from django.conf import settings
from django.contrib.redirects.models import Redirect
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import ImproperlyConfigured
from django import http
class RedirectFallback... |
thdtjsdn/FreeCAD | refs/heads/master | src/Tools/examplePy2wiki.py | 27 | #! python
# (c) 2009 Juergen Riegel GPL
Usage = """examplePy2wiki - generating a wiki text out of a python example
Usage:
examplePy2wiki [Optionen]
Options:
-o --out-file=FILENAME use this file name for output, default resorces.qrc
-i, --in-file=FILENAME directory to search, default PWD
-h, ... |
peterbe/airmozilla | refs/heads/master | vendor-local/lib/python/south/management/__init__.py | 12133432 | |
heisencoder/route-finder | refs/heads/master | third_party/lib/python/django/contrib/humanize/__init__.py | 12133432 | |
hectord/lettuce | refs/heads/master | tests/integration/lib/Django-1.3/django/conf/locale/it/__init__.py | 12133432 | |
cofiem/legalosity | refs/heads/master | logomachy/core/processors/__init__.py | 12133432 | |
ingokegel/intellij-community | refs/heads/master | python/testData/debug/test_call_exec_with_bytes_args.py | 12 | import os
import sys
args = [sys.executable, b'test4.py']
os.execv(args[0], args)
|
gmimano/commcaretest | refs/heads/master | custom/openlmis/tests/test_apis.py | 2 | from datetime import datetime
import json
import os
from django.test import TestCase
from corehq.apps.commtrack.helpers import make_supply_point
from corehq.apps.commtrack.tests import bootstrap_domain
from corehq.apps.locations.models import Location
from custom.openlmis.api import get_facilities, Facility, get_facili... |
hasadna/open-shot | refs/heads/dev | qa/migrations/0009_adding_sites_data.py | 2 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.contrib.sites.models import Site
class Migration(DataMigration):
def forwards(self, orm):
''' This should add all existing questions to Site 1
not sure wh... |
Pretio/boto | refs/heads/develop | boto/mashups/interactive.py | 148 | # Copyright (C) 2003-2007 Robey Pointer <robey@lag.net>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your op... |
deginner/flask-bitjws | refs/heads/master | flask_bitjws.py | 1 | """
The FlaskBitjws source code. Everything fits in this file, for now.
"""
import bitjws
import time
import copy
import urlparse
from flask import Response, current_app
from flask.ext import login
"""
DB STUBS Section
Overwrite the functions in this section with your own.
"""
def get_last_nonce(app, key, nonce):
... |
swdream/neutron | refs/heads/master | neutron/plugins/ml2/drivers/mlnx/agent/eswitch_neutron_agent.py | 43 | # Copyright 2013 Mellanox Technologies, Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... |
ephracis/pylibpcap | refs/heads/master | mk-constants.py | 1 | # $Id: mk-constants.py,v 1.8 2012/01/05 10:15:27 wiml Exp $
#
# Python libpcap
# Copyright (C) 2004,2007 Wim Lewis
# Based on:
# PY-libpcap (C) 1998, Aaron L. Rhodes
# constants.i (C) 2001,2002, David Margrave
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the BSD ... |
AlexProfi/django-cms | refs/heads/develop | cms/south_migrations/0001_initial.py | 48 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
try:
from django.contrib.auth import get_user_model
except ImportError: # django < 1.5
from django.contrib.auth.models import User
else:
User = get_user_model()
user_orm_label... |
terbolous/CouchPotatoServer | refs/heads/master | couchpotato/core/media/movie/__init__.py | 96 | from couchpotato.core.media import MediaBase
class MovieTypeBase(MediaBase):
_type = 'movie'
|
MikeAmy/django | refs/heads/master | tests/flatpages_tests/__init__.py | 12133432 | |
ewdurbin/sentry | refs/heads/master | src/sentry/api/endpoints/group_tagkey_values.py | 14 | from __future__ import absolute_import
from sentry.api.base import DocSection
from sentry.api.bases.group import GroupEndpoint
from sentry.api.exceptions import ResourceDoesNotExist
from sentry.api.serializers import serialize
from sentry.models import GroupTagValue, TagKey, TagKeyStatus
class GroupTagKeyValuesEndpo... |
vietpn/ghost_nodejs | refs/heads/master | node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/pygments/styles/fruity.py | 364 | # -*- coding: utf-8 -*-
"""
pygments.styles.fruity
~~~~~~~~~~~~~~~~~~~~~~
pygments version of my "fruity" vim theme.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Token, Co... |
dopsi/flairstats | refs/heads/master | flairstats/fetchbot.py | 1 | from praw import Reddit
import json
import os
import time
import datetime
from .tools import storage
from .tools import display
class FetchBot:
"""Bot to fetch the subreddit data."""
def __init__(self, user_agent, subreddit, data_file):
"""Basic constructor"""
self._user_agent = user_agent
... |
ksmaheshkumar/grr | refs/heads/master | lib/rendering.py | 15 | #!/usr/bin/env python
"""A module that provides access to the GUI rendering system."""
# pylint: disable=unused-import
from grr.gui import django_lib
# pylint: enable=unused-import
def FindRendererForObject(rdf_obj):
"""A proxy method for semantic.FindRendererForObject."""
# pylint: disable=g-import-not-at-top, ... |
nabla-c0d3/sslyze | refs/heads/#512-helper-class-for-connectivity-testing | tests/test_main.py | 1 | import sys
from unittest import mock
from sslyze.__main__ import main
class TestMain:
def test(self):
# Given a command line to launch the sslyze CLI
command_line = ["sslyze", "--quiet", "--compression", "www.google.com"]
# When running the CLI, it succeeds
with mock.patch.object... |
nirmeshk/oh-mainline | refs/heads/master | vendor/packages/docutils/test/test_parsers/test_rst/test_citations.py | 19 | #! /usr/bin/env python
# $Id: test_citations.py 5510 2008-02-15 09:23:07Z grubert $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
Tests for states.py.
"""
from __init__ import DocutilsTestSupport
def suite():
s = DocutilsTestSupport.ParserTestSui... |
Firefly-Automation/Firefly | refs/heads/firefly3 | Firefly/services/firefly_security_and_monitoring/const.py | 1 | from Firefly.helpers.device import CONTACT, CONTACT_CLOSE, CONTACT_OPEN
LOW_BATTERY_PERCENT = 'low_battery_percent'
CRITICAL_BATTERY_PERCENT = 'critical_battery_percent'
BATTERY_LOW = 'battery_low'
BATTERY_CRITICAL = 'battery_critical'
BATTERY_OKAY = 'battery_okay'
BATTERY_NOT_REPORTED = 'battery_not_reported'
ALARM_A... |
opendaylight/archived-net-virt-platform | refs/heads/master | sdncon/clusterAdmin/tests.py | 16 | #
# Copyright (c) 2013 Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.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.eclipse.org/legal/epl-v10.html
#
# Unless required by applicable l... |
leiferikb/bitpop | refs/heads/master | src/testing/gmock/scripts/fuse_gmock_files.py | 729 | #!/usr/bin/env python
#
# Copyright 2009, 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... |
jamespacileo/django-france | refs/heads/master | tests/regressiontests/app_loading/parent/__init__.py | 12133432 | |
joshmgrant/selenium | refs/heads/master | py/test/selenium/webdriver/common/webserver.py | 24 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... |
mobiuscoin/p2pool-mobi | refs/heads/master | p2pool/bitcoin/networks/terracoin.py | 25 | import os
import platform
from twisted.internet import defer
from .. import data, helper
from p2pool.util import pack
P2P_PREFIX = '42babe56'.decode('hex')
P2P_PORT = 13333
ADDRESS_VERSION = 0
RPC_PORT = 13332
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'terracoinaddress' in (y... |
Gabrielcarvfer/NS3 | refs/heads/master | examples/energy/examples-to-run.py | 4 | #! /usr/bin/env python3
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
# A list of C++ examples to run in order to ensure that they remain
# buildable and runnable over time. Each tuple in the list contains
#
# (example_name, do_run, do_valgrind_run).
#
# See test.py for more ... |
vedujoshi/tempest | refs/heads/master | tempest/lib/services/image/v2/schemas_client.py | 7 | # Copyright 2013 IBM Corp.
# 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... |
snowballhg/node-gyp | refs/heads/master | gyp/test/win/gyptest-link-generate-manifest.py | 103 | #!/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.
"""
Make sure we generate a manifest file when linking binaries, including
handling AdditionalManifestFiles.
"""
import TestGyp
import sys... |
kevinzhang1986/codezero | refs/heads/master | scripts/conts/__init__.py | 12133432 | |
gnavvy/JellyFish | refs/heads/master | script/jelly_fish/__init__.py | 12133432 | |
fr4c74l/diggems | refs/heads/master | game/migrations/__init__.py | 12133432 | |
iogf/nerdirc | refs/heads/master | nerdlib/icon/__init__.py | 12133432 | |
dawnpower/nova | refs/heads/master | nova/tests/unit/virt/libvirt/test_imagebackend.py | 1 | # Copyright 2012 Grid Dynamics
# 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... |
skycucumber/restful | refs/heads/master | python/venv/lib/python2.7/site-packages/migrate/tests/changeset/databases/__init__.py | 12133432 | |
dydek/django | refs/heads/master | tests/i18n/sampleproject/sampleproject/__init__.py | 12133432 | |
ahmed-mahran/hue | refs/heads/master | desktop/core/ext-py/Django-1.6.10/tests/model_validation/__init__.py | 12133432 | |
ytjiang/django | refs/heads/master | django/contrib/gis/db/backends/__init__.py | 12133432 | |
nirmeshk/oh-mainline | refs/heads/master | mysite/search/view_helpers.py | 15 | # This file is part of OpenHatch.
# Copyright (C) 2010 Parker Phinney
# Copyright (C) 2009, 2010 OpenHatch, Inc.
#
# 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 ... |
guillaumelenoir/WAVEPAL | refs/heads/master | wavepal/autocorrelation.py | 1 | import numpy as np
def autocorrelation(x,lag_min,lag_max):
""" autocorrelation computes the autocorrelation of a time series, according to the formulas given in https://en.wikipedia.org/wiki/Autocorrelation
Inputs:
- x [1-dim numpy array of floats]: the time series (the time is supposed to be on a regular grid ... |
keyboardio/Kaleidoscope | refs/heads/master | testing/googletest/googlemock/test/gmock_leak_test.py | 88 | #!/usr/bin/env python
#
# Copyright 2009, 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... |
GhostThrone/django | refs/heads/master | django/contrib/admindocs/utils.py | 411 | "Misc. utility functions/classes for admin documentation generator."
import re
from email.errors import HeaderParseError
from email.parser import HeaderParser
from django.core.urlresolvers import reverse
from django.utils.encoding import force_bytes
from django.utils.safestring import mark_safe
try:
import docut... |
Teamxrtc/webrtc-streaming-node | refs/heads/master | third_party/webrtc/src/chromium/src/third_party/webpagereplay/adb_install_cert.py | 19 | # Copyright 2014 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 ... |
JetBrains/intellij-community | refs/heads/master | python/testData/resolve/PrivateInsideModule.py | 83 | class __VeryPrivate(object): pass
class Public(__VeryPrivate): pass
# <ref> |
buffis/fetch | refs/heads/master | test_fetchinterpreter.py | 1 | import fetchinterpreter
import unittest
from parseractions import *
from BeautifulSoup import BeautifulSoup
TEST_URL = "http://example.com/cool_api"
class TestFunctions(unittest.TestCase):
def setUp(self):
print "Testing: ", self
fetchinterpreter.VARS = {}
def test_fetchaction_get(self):
... |
tmpgit/intellij-community | refs/heads/master | python/testData/mover/nestedBlockDown_afterUp.py | 83 | if True: a = 1 # <- move statement down here
else: b = 2
if another_one:
pass
|
vitan/hue | refs/heads/master | desktop/core/ext-py/Django-1.6.10/tests/i18n/other/locale/de/__init__.py | 12133432 | |
chepazzo/ansible-modules-extras | refs/heads/devel | cloud/rackspace/__init__.py | 12133432 | |
terbolous/CouchPotatoServer | refs/heads/master | libs/gntp/__init__.py | 12133432 | |
ryfeus/lambda-packs | refs/heads/master | Tensorflow/source/tensorflow/contrib/factorization/python/ops/__init__.py | 12133432 | |
clumsy/intellij-community | refs/heads/master | python/lib/Lib/site-packages/django/conf/locale/vi/__init__.py | 12133432 | |
JianyuWang/neutron | refs/heads/master | neutron/openstack/__init__.py | 12133432 | |
greencoder/hopefullysunny-django | refs/heads/master | manage.py | 1 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
if os.path.exists('PRODUCTION'):
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hopefullysunny.production")
os.environ['DJANGO_SETTINGS_MODULE'] = 'hopefullysunny.production'
else:
os.environ.setdefault("DJANGO_SET... |
p0psicles/SickRage | refs/heads/master | lib/unidecode/x0af.py | 253 | data = (
'ggyeols', # 0x00
'ggyeolt', # 0x01
'ggyeolp', # 0x02
'ggyeolh', # 0x03
'ggyeom', # 0x04
'ggyeob', # 0x05
'ggyeobs', # 0x06
'ggyeos', # 0x07
'ggyeoss', # 0x08
'ggyeong', # 0x09
'ggyeoj', # 0x0a
'ggyeoc', # 0x0b
'ggyeok', # 0x0c
'ggyeot', # 0x0d
'ggyeop', # 0x0e
'ggy... |
CubicERP/geraldo | refs/heads/master | site/newsite/site-geraldo/django/contrib/contenttypes/generic.py | 13 | """
Classes allowing "generic" relations through ContentType and object-id fields.
"""
from django.core.exceptions import ObjectDoesNotExist
from django.db import connection
from django.db.models import signals
from django.db import models
from django.db.models.fields.related import RelatedField, Field, ManyToManyRel
... |
abramovd/Newster | refs/heads/master | newster/fca/context.py | 1 | class Context(object):
def __init__(self, cross_table=[], objects=[], attributes=[]):
"""Create a context from cross table and list of objects, list
of attributes
cross_table - the list of bool lists
objects - the list of objects
attributes - the list of attributes
... |
gdub/django | refs/heads/master | django/contrib/redirects/__init__.py | 808 | default_app_config = 'django.contrib.redirects.apps.RedirectsConfig'
|
felixma/nova | refs/heads/master | nova/virt/event.py | 76 | # Copyright 2013 Red Hat, 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 applicable law or agre... |
janusnic/youtube-dl-GUI | refs/heads/master | youtube_dl/extractor/ellentv.py | 12 | # coding: utf-8
from __future__ import unicode_literals
import json
from .common import InfoExtractor
from ..utils import (
ExtractorError,
parse_iso8601,
)
class EllenTVIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?(?:ellentv|ellentube)\.com/videos/(?P<id>[a-z0-9_-]+)'
_TESTS = [{
'u... |
mF2C/COMPSs | refs/heads/master | compss/programming_model/generate_datatype_enums.py | 1 | #!/usr/bin/python
#
# Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
#
# 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
... |
InjectionSoftwareDevelopment/csuCTF | refs/heads/master | api/api/annotations.py | 9 | """ API annotations and assorted wrappers. """
import json, traceback
import api
from api.common import WebSuccess, WebError, WebException, InternalException, SevereInternalException
from datetime import datetime
from functools import wraps
from flask import session, request, abort
write_logs_to_db = False # Default... |
texastribune/tt_disposal_wells | refs/heads/master | example/example_usage/__init__.py | 12133432 | |
FujitsuEnablingSoftwareTechnologyGmbH/tempest | refs/heads/monasca-tests | tempest/services/orchestration/__init__.py | 12133432 | |
tlksio/tlksio | refs/heads/develop | env/lib/python3.4/site-packages/django/conf/locale/bn/__init__.py | 12133432 | |
egabancho/invenio-groups | refs/heads/master | invenio_groups/upgrades/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.