repo_name stringlengths 5 100 | ref stringlengths 12 67 | path stringlengths 4 244 | copies stringlengths 1 8 | content stringlengths 0 1.05M ⌀ |
|---|---|---|---|---|
cbxbiker61/wicd | refs/heads/master | gtk/prefs.py | 1 | #!/usr/bin/python
""" prefs -- Wicd Preferences Dialog.
Displays the main settings dialog window for wicd and
handles recieving/sendings the settings from/to the daemon.
"""
#
# Copyright (C) 2008-2009 Adam Blackburn
# Copyright (C) 2008-2009 Dan O'Reilly
#
# This program is free software; you can redistribut... |
dmacvicar/spacewalk | refs/heads/master | client/solaris/smartpm/smart/channels/deb_dir_info.py | 5 | #
# Copyright (c) 2004 Conectiva, Inc.
#
# Written by Gustavo Niemeyer <niemeyer@conectiva.com>
#
# This file is part of Smart Package Manager.
#
# Smart Package Manager 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 Fou... |
nesterione/problem-solving-and-algorithms | refs/heads/master | problems/Checkio/Electronic Station/LetterQueue.py | 1 | def letter_queue(commands):
queue = []
for command in commands:
cm = command.split(' ')
if cm[0]=="PUSH":
queue.append(cm[1])
elif cm[0]=="POP":
if len(queue)>0:
queue.pop(0)
return ''.join(queue)
if __name__ == '__main__':
#These "asserts" using only for self-checki... |
matmutant/sl4a | refs/heads/master | python/src/Lib/lib-tk/FixTk.py | 49 | import sys, os
# Delay import _tkinter until we have set TCL_LIBRARY,
# so that Tcl_FindExecutable has a chance to locate its
# encoding directory.
# Unfortunately, we cannot know the TCL_LIBRARY directory
# if we don't know the tcl version, which we cannot find out
# without import Tcl. Fortunately, Tcl will itself ... |
akelge/oxylib | refs/heads/master | salog/__init__.py | 1 | """
@package oxylib.salog
@details Oxylib standard library - SQL Logging module
$Id$
"""
__headUrl__ = '$HeadURL$'
from handlers import *
|
ajoaoff/django | refs/heads/master | tests/queryset_pickle/models.py | 281 | import datetime
from django.db import DJANGO_VERSION_PICKLE_KEY, models
from django.utils import six
from django.utils.translation import ugettext_lazy as _
def standalone_number():
return 1
class Numbers(object):
@staticmethod
def get_static_number():
return 2
class PreviousDjangoVersionQuer... |
fkie-cad/iva | refs/heads/master | frontend/iva/handlers/alert_status_handler.py | 1 | from django.http import HttpResponse
from django.template import loader
from alerts.alerts import Alerts
from inventory.software_cve_matches import CVEMatches
from .request_handler_utils import *
from alerts.alerts import STATUS
template = loader.get_template('iva/alert_status.html')
def handle_request(request):
... |
kres/flash | refs/heads/master | 7_multiprocess_epoll/concurrent_client.py | 1 | import eventlet
from eventlet.green import urllib2
i = 0
def gen():
i = 1000
while i :
i -= 1
if i % 2:
yield "http://localhost:6060/bar/good"
else :
yield "http://localhost:6060/bar/bad"
def fetch(url):
#print("opening", url)
body = urllib2.urlopen(url).read()
#print("done with", url)
return url... |
coreycb/horizon | refs/heads/master | horizon/utils/lazy_encoder.py | 20 | # Copyright 2016 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... |
kinverarity1/lt-talk-emailer | refs/heads/master | fix_path.py | 4 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), 'libs')) |
cathay4t/libstoragemgmt | refs/heads/master | plugin/nstor/__init__.py | 12133432 | |
ProvincalInovationManagement/provinceManagement | refs/heads/master | registration/management/commands/__init__.py | 12133432 | |
Bogh/django-oscar | refs/heads/master | src/oscar/apps/dashboard/ranges/models.py | 12133432 | |
Sibada/VIC | refs/heads/master | tests/unit/vic_run/test_latent_heat_from_snow.py | 12133432 | |
tushar7795/MicroBlog | refs/heads/master | db_upgrade.py | 103 | #!flask/bin/python
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
api.upgrade(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
print('Current database version: ' + str(v))
|
wanghaven/nupic | refs/heads/master | examples/tp/hello_tm.py | 9 | #!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions ... |
neilmayhew/pathway | refs/heads/develop | src/Test/OpenOfficeConvert/TestFiles/testView.py | 2 | #!/usr/bin/env python
#Boa:App:BoaApp
import wx
import tvf
modules ={u'tvf': [1, 'Main frame of Application', u'tvf.py']}
class BoaApp(wx.App):
def OnInit(self):
self.main = tvf.create(None)
self.main.Show()
self.SetTopWindow(self.main)
return True
def main():
application = ... |
makinacorpus/mapnik2 | refs/heads/master | scons/scons-local-1.2.0/SCons/Tool/sunf95.py | 12 | """SCons.Tool.sunf95
Tool-specific initialization for sunf95, the Sun Studio F95 compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The... |
B-UMMI/INNUca | refs/heads/master | src/SPAdes-3.14.0-Linux/share/spades/joblib2/functools.py | 17 | ### python 2.4 doesn't have functools.py module
### this file added according http://stackoverflow.com/questions/12274814/functools-wraps-for-python-2-4
"""functools.py - Tools for working with functions and callable objects
2 """
# Python module wrapper for _functools C module
# to allow utilities written in Pyt... |
zhengjue/mytornado | refs/heads/master | myblog/common/db.py | 16 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Michael Liao'
'''
Database operation module.
'''
import time, uuid, functools, threading, logging
# Dict object:
class Dict(dict):
'''
Simple dict but support access as x.y style.
>>> d1 = Dict()
>>> d1['x'] = 100
>>> d1.x
100
... |
sameetb-cuelogic/edx-platform-test | refs/heads/master | lms/djangoapps/instructor/views/__init__.py | 223 | """
This is the UserPreference key for the user's recipient invoice copy
"""
INVOICE_KEY = 'pref-invoice-copy'
|
benthomasson/ansible | refs/heads/devel | lib/ansible/plugins/action/dellos6.py | 12 | # 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distrib... |
promptworks/keystone | refs/heads/master | keystone/contrib/example/migrate_repo/__init__.py | 12133432 | |
vladryk/horizon | refs/heads/master | openstack_dashboard/dashboards/project/volumes/test.py | 27 | # Copyright 2012 Nebula, 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 agree... |
subutai/htmresearch | refs/heads/master | projects/speech_commands/run_experiment.py | 2 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2018, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... |
davet321/rpi-linux | refs/heads/dave-4.8.y | scripts/gdb/linux/tasks.py | 333 | #
# gdb helper commands and functions for Linux kernel debugging
#
# task & thread tools
#
# Copyright (c) Siemens AG, 2011-2013
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
#
# This work is licensed under the terms of the GNU GPL version 2.
#
import gdb
from linux import utils
task_type = utils.CachedType(... |
saydulk/django | refs/heads/master | tests/migrations/migrations_test_apps/migrated_app/models.py | 12133432 | |
fredericlepied/ansible | refs/heads/devel | lib/ansible/modules/network/junos/junos_vrf.py | 11 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Ansible by Red Hat, inc
#
# This file is part of Ansible by Red Hat
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Li... |
hermantai/sorno-py-scripts | refs/heads/master | sorno/tests/__init__.py | 12133432 | |
bluevoda/BloggyBlog | refs/heads/master | lib/python3.4/site-packages/django/contrib/gis/db/backends/postgis/__init__.py | 12133432 | |
Seedstars/django-react-redux-base | refs/heads/master | tests/python/utils/__init__.py | 12133432 | |
neithere/django-navigation | refs/heads/master | navigation/templatetags/__init__.py | 12133432 | |
KanchanChauhan/erpnext | refs/heads/develop | erpnext/buying/print_format/__init__.py | 12133432 | |
jmoiron/pdf2zip | refs/heads/master | tests/__init__.py | 12133432 | |
mishudark/indie | refs/heads/master | django_mongoengine/debug_toolbar/templatetags/__init__.py | 12133432 | |
smmribeiro/intellij-community | refs/heads/master | python/testData/inspections/PyUnresolvedReferencesInspection3K/NotImportedSubmodulesOfNamespacePackage/nspkg1/m3.py | 12133432 | |
manqala/erpnext | refs/heads/develop | erpnext/docs/user/manual/en/schools/__init__.py | 12133432 | |
chyeh727/django | refs/heads/master | django/template/context_processors.py | 204 | """
A set of request processors that return dictionaries to be merged into a
template context. Each function takes the request object as its only parameter
and returns a dictionary to add to the context.
These are referenced from the 'context_processors' option of the configuration
of a DjangoTemplates backend and use... |
felix-d/boto | refs/heads/develop | boto/pyami/copybot.py | 153 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modi... |
alazyer/oscar | refs/heads/master | frobshop/oscar/apps/offer/migrations/0024_auto__add_field_range_is_public.py | 15 | # -*- coding: 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 'Range.is_public'
db.add_column(u'offer_range', 'is_public',
self.gf('d... |
nsol-nmsu/ns3-smartgrid | refs/heads/ndnSIM-v2 | src/uan/bindings/modulegen__gcc_ILP32.py | 12 | from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers
import pybindgen.settings
import warnings
class ErrorHandler(pybindgen.settings.ErrorHandler):
def handle_error(self, wrapper, exception, traceback_):
warnings.warn("exception %r in wrapper %s" % (exception, wrapper))
... |
kg-bot/SupyBot | refs/heads/master | plugins/SahadHelp/test.py | 1 | ###
# Copyright (c) 2013, KG-Bot
# 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 condition... |
leansoft/edx-platform | refs/heads/master | common/test/acceptance/tests/lms/test_lms_edxnotes.py | 84 | """
Test LMS Notes
"""
from uuid import uuid4
from datetime import datetime
from nose.plugins.attrib import attr
from ..helpers import UniqueCourseTest
from ...fixtures.course import CourseFixture, XBlockFixtureDesc
from ...pages.lms.auto_auth import AutoAuthPage
from ...pages.lms.course_nav import CourseNavPage
from .... |
RockySteveJobs/python-for-android | refs/heads/master | python3-alpha/python3-src/Lib/ctypes/macholib/dylib.py | 320 | """
Generic dylib path manipulation
"""
import re
__all__ = ['dylib_info']
DYLIB_RE = re.compile(r"""(?x)
(?P<location>^.*)(?:^|/)
(?P<name>
(?P<shortname>\w+?)
(?:\.(?P<version>[^._]+))?
(?:_(?P<suffix>[^._]+))?
\.dylib$
)
""")
def dylib_info(filename):
"""
A dylib name can take one of the ... |
anaran/kuma | refs/heads/master | vendor/packages/translate/lang/wo.py | 30 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2009 Zuza Software Foundation
#
# This file is part of the Translate Toolkit.
#
# 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... |
rspavel/spack | refs/heads/develop | var/spack/repos/builtin/packages/py-pudb/package.py | 5 | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyPudb(PythonPackage):
"""Full-screen console debugger for Python"""
homepage = "htt... |
OpenPymeMx/OCB | refs/heads/7.0 | addons/google_docs/google_docs.py | 53 | ##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2012 OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General... |
mjirayu/sit_academy | refs/heads/master | lms/djangoapps/verify_student/management/commands/tests/test_verify_student.py | 101 | """
Tests for django admin commands in the verify_student module
Lots of imports from verify_student's model tests, since they cover similar ground
"""
from nose.tools import assert_equals
from mock import patch
from django.test import TestCase
from django.conf import settings
from student.tests.factories import Use... |
antepsis/anteplahmacun | refs/heads/master | sympy/simplify/traversaltools.py | 124 | """Tools for applying functions to specified parts of expressions. """
from __future__ import print_function, division
from sympy.core import sympify
def use(expr, func, level=0, args=(), kwargs={}):
"""
Use ``func`` to transform ``expr`` at the given level.
Examples
========
>>> from sympy im... |
suonto/kubernetes | refs/heads/master | hack/update_owners.py | 30 | #!/usr/bin/env python
# Copyright 2016 The Kubernetes 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 appli... |
tocodeil/python-course-examples | refs/heads/master | 20_classes_lab/spec.py | 1 | import unittest
ex1 = __import__('01')
ex2 = __import__('02')
class TestEx1(unittest.TestCase):
def test_sum_positive(self):
summer = ex1.Summer()
summer.add(10)
summer.add(20, 30)
self.assertEqual(60, summer.total())
def test_sum_negative(self):
summer = ex1.Summer()... |
vvv1559/intellij-community | refs/heads/master | python/testData/postfix/isNone/topLevel_after.py | 39 | if True is None:
<caret> |
innotechsoftware/Quantum-GIS | refs/heads/master | python/plugins/sextante/otb/OTBAlgorithm.py | 1 | # -*- coding: utf-8 -*-
"""
***************************************************************************
OTBAlgorithm.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
**************************... |
crepererum/invenio | refs/heads/master | invenio/legacy/bibsort/washer.py | 13 | # -*- mode: python; coding: utf-8; -*-
#
# This file is part of Invenio.
# Copyright (C) 2010, 2011, 2012, 2014 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
# Licen... |
Kwentar/Dream-Crusher | refs/heads/master | app/vk_api.py | 1 | import json
from urllib.error import URLError
from urllib.parse import urlencode
from urllib.request import urlopen, http, Request
class VkError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class VkApi:
def __init__(self, token):
... |
takis/django | refs/heads/master | tests/forms_tests/widget_tests/test_checkboxselectmultiple.py | 161 | from django.forms import CheckboxSelectMultiple
from .base import WidgetTest
class CheckboxSelectMultipleTest(WidgetTest):
widget = CheckboxSelectMultiple()
def test_render_value(self):
self.check_html(self.widget, 'beatles', ['J'], choices=self.beatles, html=(
"""<ul>
<li><l... |
savi-dev/nova | refs/heads/silver | nova/virt/baremetal/__init__.py | 7 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2011 University of Southern California
#
# 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/... |
StephenKing/ryu | refs/heads/master | ryu/services/protocols/bgp/rtconf/common.py | 20 | # Copyright (C) 2014 Nippon Telegraph and Telephone 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 appli... |
hyunoklee/turtlebot3_RBIZ | refs/heads/master | line_detect/include/duckietown_utils/__init__.py | 1 |
import logging
logging.basicConfig()
logger = logging.getLogger('duckietown_utils')
logger.setLevel(logging.DEBUG)
|
ekasitk/sahara | refs/heads/master | sahara/service/edp/spark/__init__.py | 12133432 | |
liyitest/rr | refs/heads/master | openstack_dashboard/test/jasmine/__init__.py | 12133432 | |
adityacs/ansible | refs/heads/devel | lib/ansible/utils/module_docs_fragments/__init__.py | 12133432 | |
dwf/glmnet-python | refs/heads/master | glmnet/__init__.py | 12133432 | |
canhhs91/greenpointtrees | refs/heads/master | src/oscar/apps/partner/migrations/__init__.py | 12133432 | |
ff94315/hiwifi-openwrt-HC5661-HC5761 | refs/heads/master | staging_dir/target-mipsel_r2_uClibc-0.9.33.2/usr/lib/python2.7/encodings/shift_jis_2004.py | 816 | #
# shift_jis_2004.py: Python Unicode Codec for SHIFT_JIS_2004
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
#
import _codecs_jp, codecs
import _multibytecodec as mbc
codec = _codecs_jp.getcodec('shift_jis_2004')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEnc... |
dims/nova | refs/heads/master | nova/tests/functional/api_sample_tests/test_server_password.py | 9 | # Copyright 2015 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 a... |
kiwicopple/MyMDb | refs/heads/master | venv/Lib/site-packages/markupsafe/_constants.py | 1535 | # -*- coding: utf-8 -*-
"""
markupsafe._constants
~~~~~~~~~~~~~~~~~~~~~
Highlevel implementation of the Markup string.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
HTML_ENTITIES = {
'AElig': 198,
'Aacute': 193,
'Acirc': 194,
'Agrave': 1... |
uranusjr/mosql | refs/heads/dev | mosql/mysql.py | 2 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''It applies the MySQL-specific stuff to :mod:`mosql.util`.
The usage:
::
import mosql.mysql
If you want to patch again:
::
mosql.mysql.patch()
It will replace the functions in :mod:`mosql.util` with its functions.
'''
import mosql.util
char_escape_map = ... |
sgoo/puush-linux | refs/heads/master | src/puush-sw.py | 1 | #!/usr/bin/env python
from gtk.gdk import screen_get_default
from puush import screenshot
if __name__ == '__main__':
# Get the root and active window
root = screen_get_default()
if root.supports_net_wm_hint('_NET_ACTIVE_WINDOW') and root.supports_net_wm_hint('_NET_WM_WINDOW_TYPE'):
# You definitely do not wa... |
weidongxu84/info-gatherer | refs/heads/master | django/conf/locale/fy_NL/formats.py | 1293 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
# DATE_FORMAT =
# TIME_FORMAT =
# DATETIME_FORMAT =
# YEAR_MONTH_FORMAT =
# MONTH_DA... |
eschleicher/flask_shopping_list | refs/heads/master | venv/lib/python3.4/site-packages/pip/_vendor/requests/packages/chardet/euctwprober.py | 2993 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org 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 Reserved.
#
# Con... |
kronicz/ecommerce-2 | refs/heads/master | lib/python2.7/site-packages/pip/_vendor/cachecontrol/controller.py | 317 | """
The httplib2 algorithms ported for use with requests.
"""
import re
import calendar
import time
from email.utils import parsedate_tz
from pip._vendor.requests.structures import CaseInsensitiveDict
from .cache import DictCache
from .serialize import Serializer
URI = re.compile(r"^(([^:/?#]+):)?(//([^/?#]*))?([^?... |
craigbeck/generator-pymod | refs/heads/master | app/templates/main.py | 1 |
def main():
pass
if __name__ == '__main__':
main()
|
pombredanne/metamorphosys-desktop | refs/heads/master | metamorphosys/META/models/DynamicsTeam/MSD_FailChecker/post_processing/get_velocity.py | 3 | # Copyright (C) 2013-2015 MetaMorph Software, Inc
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this data, including any software or models in source or binary
# form, as well as any drawings, specifications, and documentation
# (collectively "the Data"), to deal in the Data ... |
draugiskisprendimai/odoo | refs/heads/8.0 | openerp/tools/import_email.py | 337 | # -*- coding: 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... |
javachengwc/hue | refs/heads/master | apps/metastore/setup.py | 39 | # 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 may not use this file ex... |
bitcity/django | refs/heads/master | tests/select_for_update/models.py | 632 | from django.db import models
class Person(models.Model):
name = models.CharField(max_length=30)
|
ProfessionalIT/customers | refs/heads/master | persianas_paludo/src/webapps/web/contrib/__init__.py | 12133432 | |
peterayeni/django-kong-admin | refs/heads/master | kong_admin/migrations/__init__.py | 12133432 | |
XtracT/script.media.organizer | refs/heads/master | resources/__init__.py | 12133432 | |
kushalbhola/MyStuff | refs/heads/master | Practice/PythonApplication/env/Lib/site-packages/pandas/tests/arrays/categorical/__init__.py | 12133432 | |
zdary/intellij-community | refs/heads/master | python/testData/inspections/PyMissingConstructorInspection/noConstructor.py | 83 | class Kl:
pass
class Kl2(Kl):
def __init__(self):
pass
|
OnionIoT/Onion-Docs | refs/heads/master | Omega2/Kit-Guides/Starter/sevenSeg code/mohamed/shiftRegister.py | 1 | import onionGpio
class shiftRegister:
#Initializes the GPIO objects based on the pin numbers
def __init__(self, dataPin, serialClock, registerClock):
self.ser = onionGpio.OnionGpio(dataPin)
self.srclk = onionGpio.OnionGpio(serialClock)
self.rclk = onionGpio.OnionGpio(registerClock)
#Pulses the latchpin... |
jamiefolsom/edx-platform | refs/heads/master | common/test/acceptance/tests/studio/test_studio_help.py | 64 | """
Test the Studio help links.
"""
from .base_studio_test import StudioCourseTest
from ...pages.studio.index import DashboardPage
from ...pages.studio.utils import click_studio_help, studio_help_links
class StudioHelpTest(StudioCourseTest):
"""Tests for Studio help."""
def test_studio_help_links(self):
... |
fixmydjango/fixmydjango | refs/heads/master | fix_my_django/urls.py | 2 | # coding: utf-8
from django.contrib import admin
from django.conf.urls import include, url
from django.contrib.sitemaps.views import sitemap
from django.views.decorators.cache import cache_page
from django.views.generic import TemplateView
from error_posts.sitemaps import (
IndexSitemap, ErrorPostSitemap
)
urlp... |
fuhongliang/erpnext | refs/heads/develop | erpnext/hub_node/page/hub/__init__.py | 12133432 | |
Belgabor/django | refs/heads/master | tests/regressiontests/model_inheritance_regress/__init__.py | 12133432 | |
Jaccorot/django-cms | refs/heads/develop | cms/templatetags/__init__.py | 12133432 | |
petecummings/NewsBlur | refs/heads/master | apps/social/tests.py | 6666 | """
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 a... |
Jackysonglanlan/devops | refs/heads/master | IDEs/sublime/shared-pkgs/Packages/backrefs/st3/backrefs/uniprops/unidata/quickcheck.py | 3 | """Unicode Properties from Unicode version 6.1.0 (autogen)."""
from __future__ import unicode_literals
unicode_nfc_quick_check = {
"^m": "\x00-\u02ff\u0305\u030d-\u030e\u0310\u0312\u0315-\u031a\u031c-\u0322\u0329-\u032c\u032f\u0332-\u0337\u0339-\u0341\u0343-\u0344\u0346-\u0652\u0656-\u093b\u093d-\u09bd\u09bf-\u09d... |
tthtlc/volatility | refs/heads/master | volatility/plugins/overlays/native_types.py | 58 | import copy
## The following is a conversion of basic C99 types to python struct
## format strings. NOTE: since volatility is analysing images which
## are not necessarily the same bit size as the currently running
## platform you may not use platform specific format specifiers here
## like l or L - you must use i or ... |
ytsarev/rally | refs/heads/master | tests/cmd/commands/test_task.py | 1 | # Copyright 2013: Mirantis 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 b... |
akintoey/django | refs/heads/master | tests/migrations/test_migrations/__init__.py | 12133432 | |
divio/askbot-devel | refs/heads/diviointernal | askbot/utils/__init__.py | 12133432 | |
JackPrice/ansible-modules-extras | refs/heads/devel | packaging/__init__.py | 12133432 | |
robcza/intelmq | refs/heads/master | intelmq/tests/bots/parsers/cymru_full_bogons/__init__.py | 12133432 | |
slyphon/pants | refs/heads/master | tests/python/pants_test/backend/python/tasks/checkstyle/test_print_statements.py | 6 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
from pants.backend.p... |
bjori/mongo-c-driver | refs/heads/master | examples/parse_handshake_cfg.py | 1 | import sys
# Should be in EXACT same order as from src/mongoc/mongoc-handshake-private.h.
# The values are implicit (so we assume 1st entry is 1 << 0,
# second entry is 1 << 1 and so on).
MD_FLAGS = [
"MONGOC_MD_FLAG_ENABLE_CRYPTO",
"MONGOC_MD_FLAG_ENABLE_CRYPTO_CNG",
"MONGOC_MD_FLAG_ENABLE_CRYPTO_COMMON_C... |
fitoria/django-privatebeta | refs/heads/master | privatebeta/migrations/__init__.py | 12133432 | |
alikins/subscription-manager | refs/heads/master | src/rhsm_debug/__init__.py | 12133432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.