repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
hatwar/buyback-erpnext
refs/heads/master
erpnext/hr/doctype/upload_attendance/__init__.py
12133432
Anonymouslemming/ansible
refs/heads/devel
test/units/modules/packaging/__init__.py
12133432
kentastudillo/super-code-mailchimp-subscription
refs/heads/master
requests/packages/urllib3/contrib/__init__.py
12133432
Radagast-red/golem
refs/heads/develop
apps/blender/__init__.py
12133432
guarddogofww/cs108test
refs/heads/master
extensions/deviceicon/__init__.py
12133432
lupien/pyHegel
refs/heads/master
pyHegel/derivative.py
1
# -*- coding: utf-8 -*- ########################## Copyrights and license ############################ # # # Copyright 2011-2015 Christian Lupien <christian.lupien@usherbrooke.ca> # # ...
chuckwong/learngit
refs/heads/master
caoqing.py
62
print ('非常感谢老师的教程,正在学习跟git和python,看了老师的博客受益匪浅!')
fhaoquan/kbengine
refs/heads/master
kbe/res/scripts/common/Lib/lib2to3/tests/test_util.py
147
""" Test suite for the code in fixer_util """ # Testing imports from . import support # Python imports import os.path # Local imports from lib2to3.pytree import Node, Leaf from lib2to3 import fixer_util from lib2to3.fixer_util import Attr, Name, Call, Comma from lib2to3.pgen2 import token def parse(code, strip_leve...
bertnotbob/django-property
refs/heads/master
homes_to_let/urls.py
2
from django.conf.urls import url from .views import HomePageView, SearchPageView, DetailPageView, UpdateDistanceView urlpatterns = [ url(r'^$', HomePageView.as_view(), name='home'), url(r'^search/$', SearchPageView.as_view(), name='search'), url(r'^search/details/(?P<slug>[-\w]+)/$', DetailPageView.as_vie...
signed/intellij-community
refs/heads/master
python/testData/completion/unknownNewReturnType.after.py
83
def foo(): return foo() class Template(object): def __new__(cls): return foo() def xyzzy(self): pass t = Template() t.xyzzy()
zetaresearch/spyck
refs/heads/master
spyck/crawler/aylien_concept.py
1
from . import Crawler from aylienapiclient import textapi import re class CrawlerAylienConcept(Crawler): def create_my_table(self): self.db.execute('CREATE TABLE IF NOT EXISTS %s(' 'entity_news_id INTEGER' ');' % self.name()) self.db.execute('CR...
ubic135/odoo-design
refs/heads/master
addons/l10n_cn/__init__.py
339
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2007-2014 Jeff Wang(<http://jeff@osbzr.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
alexus37/AugmentedRealityChess
refs/heads/master
pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/raw/GL/SGIS/point_parameters.py
9
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
LEX2016WoKaGru/pyClamster
refs/heads/master
examples/matching/cloud_clustering_stereo2.py
1
# -*- coding: utf-8 -*- """ Created on 13.06.16 Created for pyclamster @author: Tobias Sebastian Finn, tobias.sebastian.finn@studium.uni-hamburg.de Copyright (C) {2016} {Tobias Sebastian Finn} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Pub...
nelango/ViralityAnalysis
refs/heads/master
model/lib/sklearn/utils/tests/test_fast_dict.py
252
""" Test fast_dict. """ import numpy as np from nose.tools import assert_equal from sklearn.utils.fast_dict import IntFloatDict, argmin from sklearn.externals.six.moves import xrange def test_int_float_dict(): rng = np.random.RandomState(0) keys = np.unique(rng.randint(100, size=10).astype(np.intp)) value...
cyanfish/heltour
refs/heads/master
heltour/tournament/migrations/0106_auto_20161031_0546.py
1
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-10-31 05:46 from django.db import migrations import django.db.models.deletion import select2.fields class Migration(migrations.Migration): dependencies = [ ('tournament', '0105_seasonplayer_final_rating'), ] operations = [ mig...
AOKP/external_chromium_org
refs/heads/kitkat
chrome/common/extensions/docs/server2/integration_test.py
23
#!/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. # Run build_server so that files needed by tests are copied to the local # third_party directory. import build_server build_server.main...
Justin-Yuan/Image2Music-Generator
refs/heads/master
library/jython2.5.3/Lib/test/test_support.py
15
"""Supporting definitions for the Python regression tests.""" if __name__ != 'test.test_support': raise ImportError, 'test_support must be imported from the test package' import sys import time class Error(Exception): """Base class for regression test exceptions.""" class TestFailed(Error): """Test fail...
govarguz/espressopp
refs/heads/currentMaster
src/esutil/GammaVariate.py
7
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
sahiljain/catapult
refs/heads/master
systrace/PRESUBMIT.py
9
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. def CheckChangeOnUpload(input_api, output_api): return _CommonChecks(input_api, output_api) def CheckChangeOnCommit(input_api, output_api): return _Co...
liberation/django-elasticsearch
refs/heads/master
django_elasticsearch/tests/__init__.py
4
from django_elasticsearch.tests.test_indexable import EsIndexableTestCase from django_elasticsearch.tests.test_indexable import EsAutoIndexTestCase from django_elasticsearch.tests.test_qs import EsQuerysetTestCase from django_elasticsearch.tests.test_views import EsViewTestCase from django_elasticsearch.tests.test_seri...
alishakiba/kaggle-ndsb
refs/heads/master
configurations/bagging_10_convroll_all_broaden_7x7_weightdecay.py
6
import numpy as np import theano import theano.tensor as T import lasagne as nn import data import load import nn_plankton import dihedral import dihedral_fast import tmp_dnn import tta validation_split_path = "splits/bagging_split_10.pkl" patch_size = (92, 92) augmentation_params = { 'zoom_range': (1 / 1.6...
sebalix/OpenUpgrade
refs/heads/8.0
addons/website_payment/__init__.py
389
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
wisfern/vnpy
refs/heads/master
examples/CtaBacktesting/runBacktesting.py
4
# encoding: UTF-8 """ 展示如何执行策略回测。 """ from __future__ import division from vnpy.trader.app.ctaStrategy.ctaBacktesting import BacktestingEngine, MINUTE_DB_NAME if __name__ == '__main__': from vnpy.trader.app.ctaStrategy.strategy.strategyKingKeltner import KkStrategy # 创建回测引擎 engine = BacktestingEn...
40123248/2015cd_midterm
refs/heads/master
static/Brython3.1.0-20150301-090019/Lib/unittest/test/test_skipping.py
744
import unittest from .support import LoggingResult class Test_TestSkipping(unittest.TestCase): def test_skipping(self): class Foo(unittest.TestCase): def test_skip_me(self): self.skipTest("skip") events = [] result = LoggingResult(events) test = Foo("t...
fzimmermann89/pyload
refs/heads/stable
module/plugins/accounts/HellshareCz.py
1
# -*- coding: utf-8 -*- import re import time from module.plugins.internal.Account import Account class HellshareCz(Account): __name__ = "HellshareCz" __type__ = "account" __version__ = "0.23" __status__ = "testing" __description__ = """Hellshare.cz account plugin""" __license__ ...
nkhuyu/zerorpc-python
refs/heads/master
tests/test_heartbeat.py
18
# -*- coding: utf-8 -*- # Open Source Initiative OSI - The MIT License (MIT):Licensing # # The MIT License (MIT) # Copyright (c) 2015 François-Xavier Bourlet (bombela+zerorpc@gmail.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files...
illicitonion/givabit
refs/heads/master
lib/sdks/google_appengine_1.7.1/google_appengine/lib/django_1_2/tests/modeltests/m2m_recursive/__init__.py
12133432
adwiputra/LUMENS-repo
refs/heads/master
processing/lidar/fusion/__init__.py
12133432
jgsogo/neutron
refs/heads/master
webapp/neutron/models/informer.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging from django.db import models from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import python_2_unicode_compatible from django.core.validators import MaxValueValidator, MinValueValidat...
grlee77/scipy
refs/heads/master
tools/validate_runtests_log.py
16
#!/usr/bin/env python """ Take the test runner log output from the stdin, looking for the magic line nose runner prints when the test run was successful. In an ideal world, this should be done directly in runtests.py using the nose API, some failure modes are fooling nose to terminate the python process with zero exi...
scrollback/kuma
refs/heads/master
vendor/packages/nose/functional_tests/test_issue120/support/some_test.py
10
def some_test(): pass
uclouvain/OSIS-Louvain
refs/heads/master
base/tests/views/learning_units/test_formations_tab.py
1
############################################################################## # # OSIS stands for Open Student Information System. It's an application # designed to manage the core business of higher education institutions, # such as universities, faculties, institutes and professional schools. # The core ...
tchx84/sugar
refs/heads/master
src/jarabe/journal/volumestoolbar.py
2
# Copyright (C) 2007, 2011, One Laptop Per Child # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is d...
yavalvas/yav_com
refs/heads/master
build/matplotlib/examples/pylab_examples/pie_demo2.py
6
""" Make a pie charts of varying size - see http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.pie for the docstring. This example shows a basic pie charts with labels optional features, like autolabeling the percentage, offsetting a slice with "explode" and adding a shadow, in different sizes. """ import ma...
kustodian/ansible
refs/heads/devel
lib/ansible/modules/cloud/azure/azure_rm_iothubconsumergroup.py
21
#!/usr/bin/python # # Copyright (c) 2019 Yuwei Zhou, <yuwzho@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
gdkar/pyglet
refs/heads/master
experimental/mt_media/drivers/openal/lib_alc.py
35
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
cloudcopy/seahub
refs/heads/master
seahub/options/views.py
4
# -*- coding: utf-8 -*- from django.http import HttpResponse, HttpResponseBadRequest, \ HttpResponseRedirect , Http404 from django.views.decorators.http import require_POST from django.contrib import messages from django.utils.translation import ugettext as _ from seahub.auth.decorators import login_required from ...
mtrbean/scipy
refs/heads/master
scipy/weave/examples/wx_example.py
100
""" This is taken from the scrolled window example from the demo. Take a look at the DoDrawing2() method below. The first 6 lines or so have been translated into C++. """ from __future__ import absolute_import, print_function import sys sys.path.insert(0,'..') import inline_tools from wxPython.wx import * ...
jazcollins/models
refs/heads/master
object_detection/utils/shape_utils_test.py
7
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Alwnikrotikz/client175
refs/heads/master
lyricwiki.py
4
# -*- coding: utf-8 -*- # lyricwiki.py # # Copyright 2009 Amr Hassan <amr.hassan@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either v...
xNUTs/PTVS
refs/heads/master
Python/Tests/TestData/DebuggerProject/EGGceptionOnImport.py
18
import os, sys sys.path.append(os.path.abspath('EGG.egg')) import EGG.import_handled_exception try: import EGG.import_unhandled_exception except ValueError: pass
idovear/odoo
refs/heads/master
addons/hr_evaluation/__init__.py
432
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
gt-ros-pkg/rcommander-core
refs/heads/master
nodebox_qt/src/graph/proximity.py
1
import heapq from sets import Set from random import random from warnings import warn #--- PRIORITY QUEUE ---------------------------------------------------------------------------------- # Currently not in use. INFINITY = 1e20 class priorityqueue(dict): def push(self, e, w): self[e] = w ...
modulexcite/letsencrypt
refs/heads/master
letsencrypt/tests/errors_test.py
33
"""Tests for letsencrypt.errors.""" import unittest from acme import messages from letsencrypt import achallenges from letsencrypt.tests import acme_util class FaiiledChallengesTest(unittest.TestCase): """Tests for letsencrypt.errors.FailedChallenges.""" def setUp(self): from letsencrypt.errors imp...
dvliman/jaikuengine
refs/heads/master
.google_appengine/lib/django_1_3/django/contrib/webdesign/__init__.py
12133432
ewulczyn/talk_page_abuse
refs/heads/master
src/__init__.py
12133432
bswartz/manila
refs/heads/master
manila/db/migrations/alembic/versions/fdfb668d19e1_add_gateway_to_network_allocations_table.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 the Li...
denis-gordeev/parsers
refs/heads/master
vk.py
1
import codecs, re f = codecs.open('vk/MDK_0.txt','r','cp1251') r = f.readlines() f.close() x = [] ''' for line in r: if not re.search('\t|cerrar|editar|Me|Compartir|Sugerir|Adjuntar|foto|desarrolladores|vide|enlaces|nastya|evgenia|aleksandra|deos|gif|ginas|ksenia|segui|ivaro|Comentar|mostrar|Hace|temas|introducir|<...
stackforge/networking-hyperv
refs/heads/master
releasenotes/source/conf.py
1
# -*- coding: utf-8 -*- # 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...
RedBeard0531/ycmd
refs/heads/master
cpp/ycm/tests/gmock/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...
mohsinjuni/androguard
refs/heads/master
tools/api/dvm_permissions_unformatted.py
12
PERMISSIONS = { "BIND_DEVICE_ADMIN": { "android.app.admin.DeviceAdminReceiver": [ ["C", "ACTION_DEVICE_ADMIN_ENABLED", "public static final String"], ], }, "FACTORY_TEST": { "android.content.pm.ApplicationInfo": [ ["C", "FLAG_FACTORY_TEST", "public static fina...
teoliphant/scipy
refs/heads/master
scipy/signal/tests/test_dltisys.py
4
# Author: Jeffrey Armstrong <jeff@approximatrix.com> # April 4, 2011 import numpy as np from numpy.testing import TestCase, run_module_suite, assert_equal, \ assert_array_almost_equal, assert_array_equal, \ assert_allclose from scipy.signal import dlsim, dstep, dimp...
kenshay/ImageScript
refs/heads/master
ProgramData/SystemFiles/Python/Lib/site-packages/OpenGL/raw/GLES1/EXT/multi_draw_arrays.py
8
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLES1 import _types as _cs # End users want this... from OpenGL.raw.GLES1._types import * from OpenGL.raw.GLES1 import _errors from OpenGL.constant import Constant as _C import...
2ndQuadrant/ansible
refs/heads/master
lib/ansible/modules/network/avi/avi_vrfcontext.py
31
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.2 # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses...
grimmjow8/ansible
refs/heads/devel
lib/ansible/modules/cloud/ovirt/ovirt_hosts_facts.py
13
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (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 #...
buguelos/odoo
refs/heads/master
addons/hr_timesheet_invoice/report/__init__.py
433
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
ionelmc/python-lazy-object-proxy
refs/heads/master
src/lazy_object_proxy/utils.py
1
# flake8: noqa try: from .utils_py3 import __aenter__ from .utils_py3 import __aexit__ from .utils_py3 import __aiter__ from .utils_py3 import __anext__ from .utils_py3 import __await__ from .utils_py3 import await_ except (ImportError, SyntaxError): await_ = None def identity(obj): r...
GehenHe/Recognize-Face-on-Android
refs/heads/master
tensorflow/contrib/framework/python/framework/experimental.py
179
# 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...
lmallin/coverage_test
refs/heads/master
python_venv/lib/python2.7/site-packages/pandas/errors/__init__.py
6
# flake8: noqa """ expose public exceptions & warnings """ from pandas._libs.tslib import OutOfBoundsDatetime class PerformanceWarning(Warning): """ Warnings shown when there is a possible performance impact. """ class UnsupportedFunctionCall(ValueError): """ If attempting to call a numpy f...
LMSlay/wiper
refs/heads/master
viper/core/ui/__init__.py
12133432
Remiz/nextbus-stats
refs/heads/master
nextbusstats/routes/management/commands/__init__.py
12133432
ratpack/FrameworkBenchmarks
refs/heads/master
frameworks/PHP/phreeze/__init__.py
12133432
actwithus/actwithus
refs/heads/master
awuimport/awuimport/views.py
12133432
ykaneko/quantum
refs/heads/master
quantum/db/migration/alembic_migrations/versions/54c2c487e913_lbaas.py
7
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013 OpenStack Foundation # # 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...
tseaver/google-cloud-python
refs/heads/master
iam/google/cloud/iam_credentials_v1/gapic/__init__.py
12133432
huangkuan/hack
refs/heads/master
lib/google/protobuf/util/__init__.py
12133432
maxamillion/product-definition-center
refs/heads/master
pdc/apps/common/migrations/0001_initial.py
8
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # from __future__ import unicode_literals from django.db import models, migrations import pdc.apps.common.validators class Migration(migrations.Migration): dependencies = [ ] ...
alanjw/GreenOpenERP-Win-X86
refs/heads/7.0
openerp/addons/crm_partner_assign/report/crm_lead_report.py
53
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
SCOAP3/invenio
refs/heads/master
invenio/modules/upgrader/upgrades/invenio_2012_11_15_hstRECORD_marcxml_longblob.py
15
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2012 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later...
gregdek/ansible
refs/heads/devel
test/sanity/code-smell/no-illegal-filenames.py
52
#!/usr/bin/env python # a script to check for illegal filenames on various Operating Systems. The # main rules are derived from restrictions on Windows # https://msdn.microsoft.com/en-us/library/aa365247#naming_conventions import os import re import struct from ansible.module_utils.basic import to_bytes ILLEGAL_CHA...
nvoron23/arangodb
refs/heads/devel
3rdParty/V8-4.3.61/build/gyp/test/mac/gyptest-deployment-target.py
246
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that MACOSX_DEPLOYMENT_TARGET works. """ import TestGyp import sys if sys.platform == 'darwin': test = TestGyp.TestGyp(for...
paterson/servo
refs/heads/master
tests/wpt/css-tests/tools/wptserve/tests/functional/docroot/test_tuple_2.py
467
def main(request, response): return [("Content-Type", "text/html"), ("X-Test", "PASS")], "PASS"
sid88in/incubator-airflow
refs/heads/master
airflow/migrations/versions/947454bf1dff_add_ti_job_id_index.py
14
# -*- coding: utf-8 -*- # # 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 #...
chauhanhardik/populo_2
refs/heads/master
common/lib/xmodule/xmodule/modulestore/split_mongo/id_manager.py
189
""" An implementation of IdReader and IdGenerator that manages ids for the SplitMongo storage mechanism. """ from opaque_keys.edx.locator import LocalId, DefinitionLocator from xmodule.x_module import OpaqueKeyReader, AsideKeyGenerator from xmodule.modulestore.split_mongo import BlockKey # TODO: Migrate split_mongo ...
VitalPet/account-financial-tools
refs/heads/8.0
account_credit_control/__init__.py
40
# -*- coding: utf-8 -*- ############################################################################## # # Author: Nicolas Bessi, Guewen Baconnier # Copyright 2012-2014 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Publi...
kernc/scikit-learn
refs/heads/master
doc/tutorial/text_analytics/solutions/exercise_02_sentiment.py
46
"""Build a sentiment analysis / polarity model Sentiment analysis can be casted as a binary text classification problem, that is fitting a linear classifier on features extracted from the text of the user messages so as to guess wether the opinion of the author is positive or negative. In this examples we will use a ...
sloanyang/Scrapy-BrowserBenchmark
refs/heads/master
bbenchmark/hanzo/httptools/tests/parse_test.py
4
"""Tests for http parsing.""" import unittest2 from hanzo.httptools.messaging import \ RequestMessage, \ ResponseMessage get_request_lines = [ "GET / HTTP/1.1", "Host: example.org", "", "", ] get_request = "\r\n".join(get_request_lines) get_response_lines = [ "H...
GoogleCloudPlatformBook/lunchmates-api
refs/heads/master
config.py
1
# Configuration import os if os.getenv('SERVER_SOFTWARE', '!Dev').startswith('Dev'): subdomain = 'localhost' else: subdomain = 'lunch--mates.appspot.com'
hmoco/osf.io
refs/heads/develop
addons/box/tests/test_serializer.py
32
# -*- coding: utf-8 -*- """Serializer tests for the Box addon.""" import mock import pytest from addons.base.tests.serializers import StorageAddonSerializerTestSuiteMixin from addons.box.tests.utils import MockBox from addons.box.tests.factories import BoxAccountFactory from tests.base import OsfTestCase from addons.b...
snnn/tensorflow
refs/heads/master
tensorflow/contrib/rnn/__init__.py
7
# 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...
applift/vitess
refs/heads/master
py/vtproto/vttest_pb2.py
11
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: vttest.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflec...
ita1024/samba
refs/heads/master
python/samba/tests/dcerpc/misc.py
44
# Unix SMB/CIFS implementation. # Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) a...
halldor/django-mailer
refs/heads/master
mailer/engine.py
4
import time import smtplib import logging from lockfile import FileLock, AlreadyLocked, LockTimeout from socket import error as socket_error from django.conf import settings from django.core.mail import send_mail as core_send_mail from django.core.mail import get_connection from mailer.models import Message, DontSen...
mbr0wn/gnuradio
refs/heads/master
gr-fec/python/fec/polar/helper_functions.py
6
#!/usr/bin/env python # # Copyright 2015 Free Software Foundation, Inc. # # SPDX-License-Identifier: GPL-3.0-or-later # # import numpy as np import time, sys import copy def bsc_channel(p): ''' binary symmetric channel (BSC) output alphabet Y = {0, 1} and W(0|0) = W(1|1) and W(1|0) = W(0|1) thi...
jaredjennings/shaney
refs/heads/master
shaney/generators/per_iac.py
1
# shaney - prepare Puppet code with LaTeX comments for multiple audiences. # Based on <https://github.com/afseo/cmits>. # Copyright (C) 2015 Jared Jennings, jjennings@fastmail.fm. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published...
raveslave/ti-linux-3.14.26
refs/heads/processor-sdk-1.0
scripts/analyze_suspend.py
445
#!/usr/bin/python # # Tool for analyzing suspend/resume timing # Copyright (c) 2013, Intel Corporation. # # This program is free software; you can redistribute it and/or modify it # under the terms and conditions of the GNU General Public License, # version 2, as published by the Free Software Foundation. # # This prog...
lindareijnhoudt/resync
refs/heads/master
resync/test/test_examples_from_spec.py
2
"""Tests on the examples in the specification documents """ import re import sys import unittest from resync.resource import Resource from resync.source_description import SourceDescription from resync.capability_list import CapabilityList from resync.resource_list import ResourceList,ResourceListOrdered from resync.re...
michelts/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/django/contrib/databrowse/__init__.py
344
from django.contrib.databrowse.sites import DatabrowsePlugin, ModelDatabrowse, DatabrowseSite, site
pchauncey/ansible
refs/heads/devel
lib/ansible/modules/cloud/cloudstack/cs_vpc.py
26
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2016, René Moser <mail@renemoser.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it an/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licen...
xwolf12/django
refs/heads/master
django/contrib/gis/sitemaps/__init__.py
769
# Geo-enabled Sitemap classes. from django.contrib.gis.sitemaps.kml import KMLSitemap, KMZSitemap __all__ = ['KMLSitemap', 'KMZSitemap']
thnee/ansible
refs/heads/devel
lib/ansible/modules/network/radware/vdirect_runnable.py
18
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2017 Radware LTD. # # 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...
therewillbecode/ichnaea
refs/heads/master
ichnaea/api/submit/views.py
1
""" Implementation of a submit specific HTTP service view. """ from redis import RedisError from ichnaea.api.exceptions import ( ParseError, ServiceUnavailable, UploadSuccess, ) from ichnaea.api.views import BaseAPIView from ichnaea.data.tasks import queue_reports class BaseSubmitView(BaseAPIView): ...
SpaceKatt/CSPLN
refs/heads/master
apps/scaffolding/win/web2py/applications/admin/controllers/webservices.py
37
from gluon.admin import * from gluon.fileutils import abspath, read_file, write_file from gluon.tools import Service from glob import glob import shutil import platform import time import base64 import os try: from cStringIO import StringIO except ImportError: from StringIO import StringIO service = Service(g...
zdohnal/system-config-printer
refs/heads/master
statereason.py
2
#!/usr/bin/python3 ## Copyright (C) 2007, 2008, 2009, 2010, 2012, 2013, 2014 Red Hat, Inc. ## Authors: ## Tim Waugh <twaugh@redhat.com> ## Jiri Popelka <jpopelka@redhat.com> ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published b...
40223201/40223201
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/browser/session_storage.py
428
# session storage in browser import sys from javascript import JSObject from .local_storage import LocalStorage class SessionStorage(LocalStorage): storage_type = "session_storage" def __init__(self): if not sys.has_session_storage: raise EnvironmentError("SessionStorage not available") ...
opengeogroep/inasafe
refs/heads/master
safe_qgis/tools/test/test_shakemap_importer.py
1
""" InaSAFE Disaster risk assessment tool developed by AusAid and World Bank - **GUI Test Cases.** Contact : ole.moller.nielsen@gmail.com .. note:: 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 Foun...
indictranstech/tele-erpnext
refs/heads/develop
erpnext/stock/doctype/packing_slip_item/packing_slip_item.py
121
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class PackingSlipItem(Document): pass
xen0l/ansible
refs/heads/devel
lib/ansible/modules/monitoring/sensu_client.py
27
#!/usr/bin/python # (c) 2017, Red Hat Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
roadmapper/ansible
refs/heads/devel
lib/ansible/modules/network/nxos/nxos_igmp_snooping.py
18
#!/usr/bin/python # # 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 distribut...