repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
JioEducation/edx-platform
refs/heads/master
lms/djangoapps/django_comment_client/migrations/__init__.py
12133432
bernardokyotoku/skillplant
refs/heads/master
django/contrib/staticfiles/management/__init__.py
12133432
mcanthony/cython
refs/heads/master
Cython/Compiler/Optimize.py
5
from __future__ import absolute_import import sys import copy import codecs from . import TypeSlots from .ExprNodes import not_a_constant import cython cython.declare(UtilityCode=object, EncodedString=object, bytes_literal=object, Nodes=object, ExprNodes=object, PyrexTypes=object, Builtin=object, ...
m0r13/derpbot
refs/heads/master
derpbot/plugins/imdb.py
1
from derpbot import plugin import urllib import urllib2 import json def get_imdb_info(title): url = "http://imdbapi.com/?" + urllib.urlencode(dict(t=title)) data = urllib2.urlopen(url).read() data = json.loads(data) return data class IMDBPlugin(plugin.Plugin): def __init__(self, bot, config): ...
ivanbusthomi/inasafe
refs/heads/develop
safe/report/test/test_util.py
1
# coding=utf-8 """Unittest for report utilities.""" import logging import unittest from safe.definitions.exposure import ( exposure_structure, exposure_population, exposure_road) from safe.definitions.exposure_classifications import ( generic_structure_classes, generic_road_classes) from safe.defin...
duyetdev/openerp-6.1.1
refs/heads/master
openerp/addons/mrp_repair/report/order.py
9
# -*- 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...
riteshshrv/django
refs/heads/master
django/core/cache/backends/locmem.py
586
"Thread-safe in-memory cache backend." import time from contextlib import contextmanager from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache from django.utils.synch import RWLock try: from django.utils.six.moves import cPickle as pickle except ImportError: import pickle # Global in-memor...
yinquan529/platform-external-chromium_org
refs/heads/master
media/tools/layout_tests/layouttest_analyzer_helpers.py
120
# 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. """Helper functions for the layout test analyzer.""" from datetime import datetime from email.mime.multipart import MIMEMultipart from email.mime.text i...
romain-intel/bcc
refs/heads/master
tools/runqlen.py
3
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # runqlen Summarize scheduler run queue length as a histogram. # For Linux, uses BCC, eBPF. # # This counts the length of the run queue, excluding the currently running # thread, and shows it as a histogram. # # Also answers run queue occupa...
oVirt/vdsm
refs/heads/master
tests/network/unit/ip_address_test.py
1
# Copyright 2016-2021 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in...
LighthouseHPC/lighthouse
refs/heads/master
sandbox/lily/django_orthg/dojango/forms/widgets.py
3
import datetime import time from django.forms import * from django.utils import formats from django.utils.encoding import StrAndUnicode, force_unicode from django.utils.html import conditional_escape from django.utils.safestring import mark_safe from django.forms.util import flatatt from django.utils import datetime_s...
tta/gnuradio-tta
refs/heads/master
gnuradio-examples/python/digital/pick_bitrate.py
12
# # Copyright 2005,2006 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later versi...
huor/incubator-hawq
refs/heads/master
tools/bin/gppylib/commands/dca.py
12
#!/usr/bin/env python # 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 # "Li...
Barbarian1010/pychess
refs/heads/master
testing/frc_castling.py
20
from __future__ import print_function import unittest from pychess.Utils.const import * from pychess.Utils.lutils.leval import LBoard from pychess.Utils.lutils.lmove import FLAG from pychess.Utils.lutils.lmovegen import genCastles, newMove # TODO: add more test data data = ( ("r3k2r/8/8/8/8/8/8/R3K2R w AH - 0 1", [(...
blockstack/blockstack-server
refs/heads/master
integration_tests/blockstack_integration_tests/scenarios/name_import_update_transfer.py
1
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Blockstack ~~~~~ copyright: (c) 2014-2015 by Halfmoon Labs, Inc. copyright: (c) 2016 by Blockstack.org This file is part of Blockstack Blockstack is free software: you can redistribute it and/or modify it under the terms of the GNU General...
ovnicraft/edx-platform
refs/heads/master
common/test/acceptance/tests/studio/test_studio_rerun.py
122
""" Acceptance tests for Studio related to course reruns. """ import random from bok_choy.promise import EmptyPromise from nose.tools import assert_in from ...pages.studio.index import DashboardPage from ...pages.studio.course_rerun import CourseRerunPage from ...pages.studio.overview import CourseOutlinePage from .....
alianmohammad/pd-gem5-latest
refs/heads/master
src/arch/x86/isa/insts/simd128/floating_point/data_conversion/__init__.py
91
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
KiChjang/servo
refs/heads/master
tests/wpt/web-platform-tests/webdriver/tests/minimize_window/__init__.py
12133432
Bogh/django-oscar
refs/heads/master
sites/sandbox/apps/__init__.py
12133432
viniciusgama/blog_gae
refs/heads/master
django/utils/__init__.py
12133432
jpypi/dup-image-search
refs/heads/master
db/create_database.py
1
#!/usr/bin/env python2 """ create_database.py Creates the initial database for image hashing. :author: Brandon Arrendondo :author: James Jenkins :license: MIT """ import sys import argparse from db import hash_db def main(argv): parser = argparse.ArgumentParser() parser.add_argument("--...
vtoomas/pupy
refs/heads/master
client/additional_imports.py
10
import socket import threading import Queue import collections import SocketServer import struct import os import sys import time import traceback import uuid import subprocess import StringIO import imp import hashlib import base64 import logging import re import ssl import tempfile import string import datetime impor...
ConeyLiu/spark
refs/heads/master
python/pyspark/sql/tests/test_session.py
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 "License"); you may not us...
avinassh/Bitbucket-import
refs/heads/master
templates.py
1
from string import Template sel_script_template = Template("""<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openq...
daxxi13/CouchPotatoServer
refs/heads/develop
libs/CodernityDB/__init__.py
45
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011-2013 Codernity (http://codernity.com) # # 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/L...
tornadozou/tensorflow
refs/heads/master
tensorflow/python/framework/test_util_test.py
51
# 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...
xleng/YCM_WIN_X86
refs/heads/master
third_party/ycmd/third_party/waitress/waitress/tests/fixtureapps/runner.py
40
def app(): # pragma: no cover return None def returns_app(): # pragma: no cover return app
jorge2703/scikit-learn
refs/heads/master
examples/cluster/plot_ward_structured_vs_unstructured.py
320
""" =========================================================== Hierarchical clustering: structured vs unstructured ward =========================================================== Example builds a swiss roll dataset and runs hierarchical clustering on their position. For more information, see :ref:`hierarchical_clus...
normanjaeckel/WLANSimulationGame
refs/heads/master
wlan_simulation_game/wsgi.py
1
""" WSGI config. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wlan_simulation_game_settings") from django.core.wsgi imp...
darkenk/scripts
refs/heads/master
android/project_creator/venv/lib/python3.5/site-packages/pip/_vendor/colorama/ansitowin32.py
450
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. import re import sys import os from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style from .winterm import WinTerm, WinColor, WinStyle from .win32 import windll, winapi_test winterm = None if windll is not None: winterm = WinTerm() def ...
sujithshankar/anaconda
refs/heads/master
pyanaconda/ui/tui/spokes/storage.py
1
# Text storage configuration spoke classes # # Copyright (C) 2012-2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This pr...
rrampage/rethinkdb
refs/heads/next
external/v8_3.30.33.16/build/gyp/test/win/gyptest-link-pdb.py
135
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that the 'Profile' attribute in VCLinker is extracted properly. """ import TestGyp import os import sys if sys.platform == ...
broferek/ansible
refs/heads/devel
lib/ansible/modules/windows/win_product_facts.py
35
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Dag Wieers (@dagwieers) <dag@wieers.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supporte...
feigames/Odoo
refs/heads/master
addons/mass_mailing/__openerp__.py
312
# -*- 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 o...
dannyboi104/SickRage
refs/heads/master
lib/simplejson/__init__.py
448
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
xinjiguaike/edx-platform
refs/heads/master
common/djangoapps/track/utils.py
230
"""Utility functions and classes for track backends""" from datetime import datetime, date import json from pytz import UTC class DateTimeJSONEncoder(json.JSONEncoder): """JSON encoder aware of datetime.datetime and datetime.date objects""" def default(self, obj): # pylint: disable=method-hidden "...
alexsalo/genenetwork2
refs/heads/master
wqflask/flask_security/registerable.py
3
# -*- coding: utf-8 -*- """ flask.ext.security.registerable ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Flask-Security registerable module :copyright: (c) 2012 by Matt Wright. :license: MIT, see LICENSE for more details. """ from flask import current_app as app from werkzeug.local import LocalProxy from .co...
jessedhillon/zulip
refs/heads/master
zerver/worker/queue_processors.py
116
from __future__ import absolute_import from django.conf import settings from django.core.handlers.wsgi import WSGIRequest from django.core.handlers.base import BaseHandler from zerver.models import get_user_profile_by_email, \ get_user_profile_by_id, get_prereg_user_by_email, get_client from zerver.lib.context_man...
chugunovyar/factoryForBuild
refs/heads/master
env/lib/python2.7/site-packages/matplotlib/backends/backend_mixed.py
10
from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import six from matplotlib.backends.backend_agg import RendererAgg from matplotlib.tight_bbox import process_figure_for_rasterizing class MixedModeRenderer(object): """ A helper c...
cern-it-sdc-id/davix
refs/heads/devel
test/pywebdav/lib/delete.py
4
import os import string import urllib from StringIO import StringIO from utils import gen_estring, quote_uri, make_xmlresponse from davcmd import deltree class DELETE: def __init__(self,uri,dataclass): self.__dataclass=dataclass self.__uri=uri def delcol(self): """ delete a collectio...
nathanial/lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/django/core/handlers/__init__.py
12133432
a10networks/a10sdk-python
refs/heads/master
a10sdk/core/A10_file/file_geo_location_oper.py
2
from a10sdk.common.A10BaseClass import A10BaseClass class FileList(A10BaseClass): """This class does not support CRUD Operations please use parent. :param file: {"type": "string", "format": "string"} :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/devi...
cwyark/micropython
refs/heads/master
tests/cpydiff/types_bytearray_sliceassign.py
45
""" categories: Types,bytearray description: Array slice assignment with unsupported RHS cause: Unknown workaround: Unknown """ b = bytearray(4) b[0:1] = [1, 2] print(b)
catapult-project/catapult
refs/heads/master
third_party/gsutil/gslib/vendored/boto/boto/awslambda/__init__.py
22
# Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights ...
Anonymous-X6/django
refs/heads/master
tests/defer_regress/tests.py
269
from __future__ import unicode_literals from operator import attrgetter from django.apps import apps from django.contrib.contenttypes.models import ContentType from django.contrib.sessions.backends.db import SessionStore from django.db.models import Count from django.db.models.query_utils import ( DeferredAttribu...
MoutainOne/opendcp
refs/heads/master
orion/shells/encode.py
5
#!python import json import sys filename = sys.argv[1] lines = list(open(filename)) text = ''.join(lines) encoded = json.dumps(text) print encoded[1:len(encoded)-1]
bsmrstu-warriors/Moytri--The-Drone-Aider
refs/heads/master
Lib/UserString.py
312
#!/usr/bin/env python ## vim:ts=4:et:nowrap """A user-defined wrapper around string objects Note: string objects have grown methods in Python 1.6 This module requires Python 1.6 or later. """ import sys import collections __all__ = ["UserString","MutableString"] class UserString(collections.Sequence): def __init...
zorroblue/scikit-learn
refs/heads/master
sklearn/cluster/spectral.py
7
# -*- coding: utf-8 -*- """Algorithms for spectral clustering""" # Author: Gael Varoquaux gael.varoquaux@normalesup.org # Brian Cheung # Wei LI <kuantkid@gmail.com> # License: BSD 3 clause import warnings import numpy as np from ..base import BaseEstimator, ClusterMixin from ..utils import check_rand...
X-DataInitiative/tick
refs/heads/master
tick/solver/history/__init__.py
2
# License: BSD 3 clause # import tick.base from .history import History __all__ = ["History"]
mcxiaoke/python-labs
refs/heads/master
archives/penti/decorators.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mcxiaoke # @Date: 2015-08-14 15:55:34 from __future__ import print_function def hello(level): def decorator(func,*args, **kwargs): print('before hello',level) func(*args, **kwargs) print('after hello') return decorator @hello...
dennis-sheil/commandergenius
refs/heads/sdl_android
project/jni/python/src/Lib/encodings/mac_centeuro.py
593
""" Python Character Mapping Codec mac_centeuro generated from 'MAPPINGS/VENDORS/APPLE/CENTEURO.TXT' with gencodec.py. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,inp...
jacquesd/indico
refs/heads/master
indico/modules/events/management/controllers.py
2
# This file is part of Indico. # Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN). # # Indico 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 (a...
drjeep/django
refs/heads/master
tests/file_uploads/__init__.py
12133432
riteshshrv/django
refs/heads/master
tests/logging_tests/__init__.py
12133432
kevgathuku/ponycheckup
refs/heads/master
ponycheckup/check/__init__.py
12133432
ingokegel/intellij-community
refs/heads/master
python/testData/addImport/relativeImportWithDotsOnly/foo/bar/__init__.py
12133432
nagyistoce/edx-platform
refs/heads/master
common/djangoapps/contentserver/tests/__init__.py
12133432
pwong-mapr/private-hue
refs/heads/HUE-1096-abe
desktop/core/ext-py/Django-1.4.5/tests/regressiontests/test_utils/__init__.py
12133432
muranga/laughing-octo-nemesis
refs/heads/master
src/ansiapp/__init__.py
12133432
GuneetAtwal/kernel_mt6589
refs/heads/nightlies
tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py
12980
# SchedGui.py - Python extension for perf script, basic GUI code for # traces drawing and overview. # # Copyright (C) 2010 by Frederic Weisbecker <fweisbec@gmail.com> # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Free Software # Foundation. ...
tartavull/google-cloud-python
refs/heads/master
language/google/cloud/language/__init__.py
2
# Copyright 2016 Google 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 agreed to in writing, ...
Fluent-networks/floranet
refs/heads/master
floranet/lora/bands.py
1
class LoraBand(object): """Base class for Lora radio bands.""" BANDS = {'AU915', 'US915', 'EU868'} def _rx1receive(self, txch, txdr, rx1droffset): """Get first receive window parameters Args: txch (int): Transmit channel txdr (str): Transmit d...
pigeonflight/strider-plone
refs/heads/master
docker/appengine/lib/django-1.5/django/contrib/auth/tests/urls.py
100
from django.conf.urls import patterns, url from django.contrib.auth import context_processors from django.contrib.auth.urls import urlpatterns from django.contrib.auth.views import password_reset from django.contrib.auth.decorators import login_required from django.contrib.messages.api import info from django.http impo...
NextThought/pypy-numpy
refs/heads/so-path
numpy/core/tests/test_ufunc.py
30
from __future__ import division, absolute_import, print_function import sys import numpy as np from numpy.testing import * import numpy.core.umath_tests as umt import numpy.core.operand_flag_tests as opflag_tests from numpy.compat import asbytes from numpy.core.test_rational import * class TestUfunc(TestCase): d...
40123237/w17test
refs/heads/master
static/Brython3.1.0-20150301-090019/Lib/unittest/test/testmock/support.py
829
import sys def is_instance(obj, klass): """Version of is_instance that doesn't access __class__""" return issubclass(type(obj), klass) class SomeClass(object): class_attribute = None def wibble(self): pass class X(object): pass def examine_warnings(func): def wrapper(): w...
cainmatt/django
refs/heads/master
tests/select_related_regress/__init__.py
12133432
amith01994/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/localflavor/fi/__init__.py
12133432
rockneurotiko/django
refs/heads/master
django/contrib/flatpages/templatetags/__init__.py
12133432
pascalchevrel/bedrock
refs/heads/master
tests/functional/firefox/channel/__init__.py
12133432
Titulacion-Sistemas/PythonTitulacion-EV
refs/heads/master
Lib/site-packages/logilab/common/test/data/deprecation.py
14
# placeholder used by unittest_deprecation def moving_target(): pass
MoKee/android_kernel_htc_m7
refs/heads/jb-mr2_mkt
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
40223214/-2015cd_midterm2
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/site-packages/turtle.py
619
import math from javascript import console from browser import document, html import _svg _CFG = {"width" : 0.5, # Screen "height" : 0.75, "canvwidth" : 400, "canvheight": 300, "leftright": None, "topbottom": None, "mode": "standard", # TurtleScre...
kelseyoo14/Wander
refs/heads/master
venv_2_7/lib/python2.7/site-packages/pandas/io/excel.py
9
""" Module parse to/from Excel """ #---------------------------------------------------------------------- # ExcelFile class import os import datetime import abc import numpy as np from pandas.core.frame import DataFrame from pandas.io.parsers import TextParser from pandas.io.common import _is_url, _urlopen, _validat...
aapav01/android_kernel_samsung_ms013g-2
refs/heads/MM-caf-port
tools/perf/scripts/python/sched-migration.py
11215
#!/usr/bin/python # # Cpu task migration overview toy # # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> # # perf script event handlers have been generated by perf script -g python # # This software is distributed under the terms of the GNU General # Public License ("GPL") version 2 as published by the Fre...
geerlingguy/ansible-modules-extras
refs/heads/devel
packaging/os/urpmi.py
73
#!/usr/bin/python -tt # -*- coding: utf-8 -*- # (c) 2013, Philippe Makowski # Written by Philippe Makowski <philippem@mageia.org> # Based on apt module written by Matthew Williams <matthew@flowroute.com> # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
JioEducation/edx-platform
refs/heads/master
common/djangoapps/track/contexts.py
126
"""Generates common contexts""" import logging from opaque_keys.edx.locations import SlashSeparatedCourseKey from opaque_keys.edx.keys import CourseKey from opaque_keys import InvalidKeyError from util.request import COURSE_REGEX log = logging.getLogger(__name__) def course_context_from_url(url): """ Extrac...
postlund/pyatv
refs/heads/master
tests/support/test_device_info.py
1
"""Unit tests for device_info.""" from pyatv.const import DeviceModel from pyatv.support.device_info import lookup_internal_name, lookup_model, lookup_version def test_lookup_existing_model(): assert lookup_model("AppleTV6,2") == DeviceModel.Gen4K def test_lookup_homepod(): assert lookup_model("AudioAccess...
mbauskar/alec_frappe5_erpnext
refs/heads/develop
erpnext/patches/v4_2/__init__.py
12133432
jasag/Phytoliths-recognition-system
refs/heads/master
code/__init__.py
12133432
msabramo/ansible
refs/heads/devel
lib/ansible/modules/cloud/openstack/__init__.py
12133432
hlin117/statsmodels
refs/heads/master
statsmodels/genmod/_prediction.py
27
# -*- coding: utf-8 -*- """ Created on Fri Dec 19 11:29:18 2014 Author: Josef Perktold License: BSD-3 """ import numpy as np from scipy import stats # this is similar to ContrastResults after t_test, partially copied and adjusted class PredictionResults(object): def __init__(self, predicted_mean, var_pred_mean...
kantel/processingpy
refs/heads/master
sketches/modes/PythonMode/examples/Topics/Geometry/Icosahedra/icosahedron.py
6
from shape3d import Shape3D class Icosahedron(Shape3D): def __init__(self, radius=150): Shape3D.__init__(self) self.topPent = [PVector() for _ in range(5)] self.bottomPent = [PVector() for _ in range(5)] c = dist(cos(0) * radius, sin(0) * radius, ...
djipko/rdopkg
refs/heads/master
tests/test_push_update.py
4
import os import shutil import rdopkg.shell from rdopkg.utils.cmd import git from common import ASSETS_DIR from common import cfind FILE_LISTS = { 'griz.yml': { 'grizzly/epel-6/potato-1.0.0-3.el6.noarch.rpm', 'grizzly/epel-6/potato-1.0.0-3.el6.src.rpm', 'grizzly/fedora-20/potato-1.0.0-2....
da1z/intellij-community
refs/heads/master
python/testData/refactoring/move/namespacePackageUsedInMovedFunction/before/src/a.py
79
import nspkg def func(): print(nspkg)
odoo-arg/odoo_l10n_ar
refs/heads/master
base_vat_ar/models/res_country.py
1
# -*- encoding: utf-8 -*- ############################################################################## # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licens...
dulems/hue
refs/heads/master
apps/jobbrowser/src/jobbrowser/urls.py
28
#!/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...
Stratos42/EveBot
refs/heads/master
plugins.disabled/quote.py
1
import random import re import time from util import hook def add_quote(db, chan, nick, add_nick, msg): db.execute('''insert or fail into quote (chan, nick, add_nick, msg, time) values(?,?,?,?,?)''', (chan, nick, add_nick, msg, time.time())) db.commit() def del_quote...
mheap/ansible
refs/heads/devel
test/units/plugins/action/test_win_updates.py
4
# -*- coding: utf-8 -*- # (c) 2018, Jordan Borean <jborean@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest from ansible.compat....
ging/horizon
refs/heads/master
openstack_dashboard/dashboards/admin/networks/tables.py
4
# Copyright 2012 NEC Corporation # # 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 ag...
darkoc/clowdflows
refs/heads/master
workflows/migrations/0017_auto__add_field_abstractwidget_wsdl_method.py
6
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'AbstractWidget.wsdl_method' db.add_column('workflows_abstractwidget', 'wsdl_method', self....
anonion0/nsec3map
refs/heads/master
n3map/statusline.py
1
import math def compose_leftright(leftlabels, leftvalues, rightlabels, rightvalues): left = ('; '.join([lbl + " = " + val for lbl,val in zip(leftlabels,leftvalues)])+'; ') right = ' ' +'; '.join([lbl + " = " + val for lbl,val in zip(rightlabels,rightvalues)]) + ' ;;' return left,right def format_statusli...
google/mirandum
refs/heads/master
alerts/extralife/migrations/0001_initial.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('main', '0018_auto_20160802_1524'), ] operations = [ migrations.CreateModel( name='ExtralifeAlertConfig', ...
bnagy/francis
refs/heads/master
exploitaben/lib/analyzers/x86_lldb.py
1
# BEGIN LICENSE ### # Use of the triage tools and related source code is subject to the terms # of the license below. # # ------------------------------------------------------------------------ # Copyright (C) 2011 Carnegie Mellon University. All Rights Reserved. # Portions Copyright 2013 BlackBerry Ltd. All Rights Re...
wheeler-microfluidics/dmf-control-board-firmware
refs/heads/master
pavement.py
3
import os import re import subprocess as sp import sys from paver.easy import task, needs, path, sh from paver.setuputils import setup import conda_helpers as ch import path_helpers as ph import platformio_helpers as pioh import versioneer DEFAULT_ARDUINO_BOARDS = ['mega2560'] setup(name='dmf-control-board-firmwar...
NalinG/coala
refs/heads/master
tests/bearlib/abstractions/__init__.py
12133432
maur1th/naxos
refs/heads/master
app/forum/user/migrations/__init__.py
12133432
marckuz/django
refs/heads/master
tests/schema/__init__.py
12133432
wearespindle/flindt
refs/heads/develop
backend/flindt/management/commands/__init__.py
12133432
luogangyi/Ceilometer-oVirt
refs/heads/stable/juno
ceilometer/tests/compute/virt/libvirt/__init__.py
12133432
falleco/sample-websockets
refs/heads/master
socketio_django/socketio_django/__init__.py
12133432