repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
40223211/cadpbtest-0420
refs/heads/master
static/Brython3.1.1-20150328-091302/Lib/xml/dom/minicompat.py
781
"""Python version compatibility support for minidom.""" # This module should only be imported using "import *". # # The following names are defined: # # NodeList -- lightest possible NodeList implementation # # EmptyNodeList -- lightest possible NodeList that is guaranteed to # remain empty...
w1ll1am23/home-assistant
refs/heads/dev
homeassistant/components/baidu/__init__.py
36
"""Support for Baidu integration."""
moorescloud/holideck
refs/heads/master
iotas/devices/moorescloud/light/__init__.py
3
print "Hello light"
openstax/openstax-cms
refs/heads/master
snippets/migrations/0004_customizationformcontent.py
2
# Generated by Django 3.0.4 on 2020-09-30 16:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('snippets', '0003_delete_givetoday'), ] operations = [ migrations.CreateModel( name='CustomizationFormContent', field...
ChrisBeaumont/luigi
refs/heads/master
examples/wordcount_hadoop.py
66
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
alshedivat/tensorflow
refs/heads/master
tensorflow/python/ops/distributions/uniform.py
6
# 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...
plumgrid/plumgrid-nova
refs/heads/master
nova/virt/libvirt/imagebackend.py
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Grid Dynamics # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/l...
seanthegeek/crits
refs/heads/master
crits/objects/__init__.py
12133432
SimonSapin/cssselect
refs/heads/master
tests/__init__.py
12133432
Aptitudetech/ERPNext
refs/heads/master
erpnext/hr/doctype/vehicle/__init__.py
12133432
sblancov/hello_world
refs/heads/master
python/flask/api/__init__.py
12133432
Curso-OpenShift/Formulario
refs/heads/master
OverFlow/ProjectFormulario/env/lib/python2.7/site-packages/django/core/checks/compatibility/__init__.py
12133432
ZeroXn/mezzanine
refs/heads/master
mezzanine/generic/migrations/__init__.py
12133432
ENjOyAbLE1991/scrapy
refs/heads/master
scrapy/extensions/httpcache.py
102
from __future__ import print_function import os import gzip from six.moves import cPickle as pickle from importlib import import_module from time import time from weakref import WeakKeyDictionary from email.utils import mktime_tz, parsedate_tz from w3lib.http import headers_raw_to_dict, headers_dict_to_raw from scrapy....
Gazolik/riffPy
refs/heads/master
riffPy/riff/reader.py
1
import chunk from . import CHUNKTYPE_SIZE, CHUNKHEADER_SIZE from .chunk import RiffChunk, ListChunk, FinalChunk from .data import Data class ChunkReader(object): def __init__(self, bigendian=False): self.bigendian = bigendian def read_riff(self, filename): """ Read a RIFF file and put it in...
apehua/pilas
refs/heads/master
pilas/ejemplos/ejemplos/basicos/sonidos.py
6
import pilas # Permite que este ejemplo funcion incluso si no has instalado pilas. import sys sys.path.insert(0, "..") pilas.iniciar() sonido = pilas.sonidos.cargar("explosion.wav") def reproducir_sonido_cuando_hace_click(evento): sonido.reproducir() pilas.escena_actual().click_de_mouse.conectar(reproducir...
nicfit/mishmash
refs/heads/master
mishmash/commands/sync/utils.py
1
import os import nicfit from nicfit.console import pout from nicfit.console.ansi import Fg from ...orm import VARIOUS_ARTISTS_ID from ...orm import Artist, Track, Album log = nicfit.getLogger(__name__) def deleteOrphans(session): num_orphaned_artists = 0 num_orphaned_albums = 0 num_orphaned_tracks = 0 ...
MACBIO/GIS-Scripts
refs/heads/master
ClipDatasets.py
1
import os import subprocess import sys inFolder = sys.argv[1] outFolder = os.path.join(os.path.dirname(inFolder), 'Clipped') ### Fiji ##ulx = 160 ##uly = 0 ##lrx = 195 ##lry = -30 ### Solomon Islands ##ulx = 145 ##uly = 0 ##lrx = 180 ##lry = -20 ### Tonga ##ulx = -180 ##uly = -10 ##lrx = -165 ...
savanu/servo
refs/heads/master
tests/wpt/web-platform-tests/tools/pytest/_pytest/standalonetemplate.py
203
#! /usr/bin/env python # Hi There! # You may be wondering what this giant blob of binary data here is, you might # even be worried that we're up to something nefarious (good for you for being # paranoid!). This is a base64 encoding of a zip file, this zip file contains # a fully functional basic pytest script. # # Pyt...
bospetersen/h2o-3
refs/heads/master
h2o-py/tests/testdir_algos/glm/pyunit_cv_carsGLM.py
1
import sys sys.path.insert(1, "../../../") import h2o, tests import random def cv_carsGLM(ip,port): # read in the dataset and construct training set (and validation set) cars = h2o.import_file(path=h2o.locate("smalldata/junit/cars_20mpg.csv")) # choose the type model-building exercise (multinomial class...
isaac-s/cloudify-manager
refs/heads/master
tests/integration_tests/tests/agentless_tests/test_rest_service_list_filters.py
1
######## # Copyright (c) 2015 GigaSpaces Technologies Ltd. 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...
Cheaterman/kivy
refs/heads/master
kivy/uix/recycleview/__init__.py
7
""" RecycleView =========== .. versionadded:: 1.10.0 The RecycleView provides a flexible model for viewing selected sections of large data sets. It aims to prevent the performance degradation that can occur when generating large numbers of widgets in order to display many data items. The view is generatad by process...
EDUlib/edx-platform
refs/heads/master
cms/djangoapps/contentstore/tests/tests.py
1
""" This test file will test registration, login, activation, and session activity timeouts """ import datetime import time from unittest import mock from ddt import data, ddt, unpack from django.conf import settings from django.core.cache import cache from django.test.utils import override_settings from django.urls...
theo-l/django
refs/heads/master
tests/migrations/test_migrations_squashed_ref_squashed/app1/4_auto.py
133
from django.db import migrations class Migration(migrations.Migration): dependencies = [("app1", "2_squashed_3")]
felliott/waterbutler
refs/heads/develop
waterbutler/providers/gitlab/settings.py
5
from waterbutler import settings config = settings.child('GITLAB_PROVIDER_CONFIG')
bop/bauhaus
refs/heads/master
lib/python2.7/site-packages/tagging/admin.py
20
from django.contrib import admin from tagging.models import Tag, TaggedItem from tagging.forms import TagAdminForm class TagAdmin(admin.ModelAdmin): form = TagAdminForm admin.site.register(TaggedItem) admin.site.register(Tag, TagAdmin)
jank3/django
refs/heads/master
django/db/migrations/questioner.py
85
from __future__ import print_function, unicode_literals import importlib import os import sys from django.apps import apps from django.db.models.fields import NOT_PROVIDED from django.utils import datetime_safe, six, timezone from django.utils.six.moves import input from .loader import MigrationLoader class Migrat...
epaglier/Project-JARVIS
refs/heads/master
mycroft-core/mycroft/client/speech/__init__.py
65
# Copyright 2016 Mycroft AI, Inc. # # This file is part of Mycroft Core. # # Mycroft Core 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 versio...
viewfinderco/viewfinder
refs/heads/master
backend/db/db_client.py
13
# Copyright 2012 Viewfinder Inc. All Rights Reserved. """Interface for client access to datastore backends. Implemented via the DynamoDB client (dynamodb_client) and the local datastore emulation client (local_client). Each client operation takes a callback for asynchronous operation. Client operations: - Get...
WritingTechForJarrod/vision
refs/heads/master
src/vision/marker_detector.py
1
from __future__ import print_function, division, absolute_import, unicode_literals import cv2 import logging import numpy as np import time class ContrastFilter(object): def __init__(self): logging.getLogger('ContrastFilter').debug('AYUPP') def within_range(px0,px1,r): if abs(px0[0]-px1[0]) <= r: if abs(px0[1]-...
jreiher2003/google_app_engine_deployment
refs/heads/master
lib/flask/exthook.py
783
# -*- coding: utf-8 -*- """ flask.exthook ~~~~~~~~~~~~~ Redirect imports for extensions. This module basically makes it possible for us to transition from flaskext.foo to flask_foo without having to force all extensions to upgrade at the same time. When a user does ``from flask.ext.foo import...
SivilTaram/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 "...
ccpgames/eve-metrics
refs/heads/master
web2py/scripts/extract_mysql_models.py
1
''' Create the web2py code needed to access your mysql legacy db. To make this work all the legacy tables you want to access need to have an "id" field. This plugin needs: mysql mysqldump installed and globally available. Under Windows you will probably need to add the mysql executable directory to the PAT...
svaksha/epiMM
refs/heads/master
api/plotli.py
1
#!/usr/bin/env python # encoding: utf-8 from __future__ import (absolute_import, division,print_function, unicode_literals) ################################################################################ """ COPYRIGHT(C) 2013-Now SVAKSHA :: https://github.com/svaksha LICENSE: AGPLv3 License <http://www.gnu.org/license...
Smarsh/django
refs/heads/master
django/contrib/syndication/views.py
20
import datetime from django.conf import settings from django.contrib.sites.models import Site, RequestSite from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist from django.http import HttpResponse, Http404 from django.template import loader, Template, TemplateDoesNotExist, RequestContext from dja...
ckclark/leetcode
refs/heads/master
py/brick-wall.py
1
from collections import Counter class Solution(object): def leastBricks(self, wall): """ :type wall: List[List[int]] :rtype: int """ c = Counter() wall_width = sum(wall[0]) max_non_cut = 0 for row in wall: subsum = 0 for n in ro...
WebSpider/SickRage
refs/heads/master
sickbeard/notifiers/emby.py
13
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage 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,...
fintech-circle/edx-platform
refs/heads/master
cms/djangoapps/course_creators/migrations/__init__.py
12133432
zhakui/QMarkdowner
refs/heads/master
app/__init__.py
12133432
kaoscoach/crits
refs/heads/master
crits/indicators/__init__.py
12133432
rdandy/django-mailer
refs/heads/master
mailer/management/commands/__init__.py
12133432
Khan/khan-linter
refs/heads/master
vendor/py2/pkg_resources/_vendor/__init__.py
12133432
Katello/grinder
refs/heads/master
src/grinder/RHNComm.py
2
# # Copyright (c) 2011 Red Hat, Inc. # # This software is licensed to you under the GNU General Public # License as published by the Free Software Foundation; either version # 2 of the License (GPLv2) or (at your option) any later version. # There is NO WARRANTY for this software, express or implied, # including the im...
arborh/tensorflow
refs/heads/master
tensorflow/python/profiler/traceme.py
3
# Copyright 2019 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...
msmolens/VTK
refs/heads/slicer-v6.3.0-2015-07-21-426987d
ThirdParty/Twisted/twisted/internet/test/test_posixbase.py
33
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.internet.posixbase} and supporting code. """ from __future__ import division, absolute_import from twisted.python.compat import _PY3 from twisted.trial.unittest import TestCase from twisted.internet.defer import Deferred ...
SnappleCap/oh-mainline
refs/heads/master
vendor/packages/sphinx/sphinx/ext/inheritance_diagram.py
15
# -*- coding: utf-8 -*- r""" sphinx.ext.inheritance_diagram ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Defines a docutils directive for inserting inheritance diagrams. Provide the directive with one or more classes or modules (separated by whitespace). For modules, all of the classes in that module will ...
ThiagoGarciaAlves/intellij-community
refs/heads/master
python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/removeQualifiers.py
44
class C: def me<caret>thod(self, x): test = 1 inst = C() inst . method(1) C . method(inst, 42)
RayMick/scikit-learn
refs/heads/master
sklearn/cluster/affinity_propagation_.py
224
""" Algorithms for clustering : Meanshift, Affinity propagation and spectral clustering. """ # Author: Alexandre Gramfort alexandre.gramfort@inria.fr # Gael Varoquaux gael.varoquaux@normalesup.org # License: BSD 3 clause import numpy as np from ..base import BaseEstimator, ClusterMixin from ..utils import a...
xfxf/veyepar
refs/heads/master
dj/scripts/ck_invalid.py
3
#!/usr/bin/python # ck_invalid.py # looks for a big "INVALID" video # which is what melt does when things are broken # todo: look for silence too. # not sure what that algorithem will look like, # so this can wait till I have a problem import os import gslevels from . import gsocr from process import process c...
ukanga/SickRage
refs/heads/master
sickbeard/databases/mainDB.py
2
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: https://sickrage.github.io # # This file is part of SickRage. # # SickRage 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 L...
yaojingwu1992/XlsxWriter
refs/heads/master
xlsxwriter/test/comparison/test_data_validation05.py
8
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
mdworks2016/work_development
refs/heads/master
Python/20_Third_Certification/venv/lib/python3.7/site-packages/pip/_vendor/idna/core.py
12
from . import idnadata import bisect import unicodedata import re import sys from .intranges import intranges_contain _virama_combining_class = 9 _alabel_prefix = b'xn--' _unicode_dots_re = re.compile(u'[\u002e\u3002\uff0e\uff61]') if sys.version_info[0] >= 3: unicode = str unichr = chr class IDNAError(Unico...
smishenk/blink-crosswalk
refs/heads/master
Tools/Scripts/webkitpy/common/system/systemhost_mock.py
46
# Copyright (c) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
NetDBNCKU/GAE-Conference-Web-App
refs/heads/master
django/conf/locale/ro/__init__.py
12133432
ArcherSys/ArcherSys
refs/heads/master
Lib/site-packages/cms/tests/apphooks.py
6
# -*- coding: utf-8 -*- from __future__ import with_statement import sys from django.core.urlresolvers import clear_url_caches, reverse from django.utils import six from django.utils.timezone import now from cms.api import create_page, create_title from cms.app_base import CMSApp from cms.apphook_pool import apphook_...
windyuuy/opera
refs/heads/master
chromium/src/tools/grit/grit/format/policy_templates/writers/xml_formatted_writer.py
10
#!/usr/bin/env python # 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. from grit.format.policy_templates.writers import template_writer class XMLFormattedWriter(template_writer.TemplateWriter): '''...
Liangjianghao/powerline
refs/heads/develop
tests/test_selectors.py
27
# vim:fileencoding=utf-8:noet from __future__ import (unicode_literals, division, absolute_import, print_function) import os import sys from functools import partial import tests.vim as vim_module from tests.lib import Pl from tests import TestCase class TestVim(TestCase): def test_single_tab(self): pl = Pl() ...
recursix/spearmint-salad
refs/heads/master
spearmint_salad/example/__init__.py
1
# -*- coding: utf-8 -*- ''' Created on Mar 31, 2014 @author: alex '''
klabit87/SCH-I545_NA_LL_VZW
refs/heads/master
scripts/rt-tester/rt-tester.py
11005
#!/usr/bin/python # # rt-mutex tester # # (C) 2006 Thomas Gleixner <tglx@linutronix.de> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # import os import sys import getopt import sh...
gangadharkadam/smrterp
refs/heads/develop
erpnext/setup/doctype/sms_parameter/sms_parameter.py
41
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class SMSParameter(Document): pass
EliotBerriot/django
refs/heads/master
tests/migrations/migrations_test_apps/lookuperror_c/migrations/__init__.py
12133432
martinbuc/missionplanner
refs/heads/master
Lib/email/mime/__init__.py
12133432
dennis-sheil/commandergenius
refs/heads/sdl_android
project/jni/python/src/Lib/ctypes/test/test_callbacks.py
50
import unittest from ctypes import * import _ctypes_test class Callbacks(unittest.TestCase): functype = CFUNCTYPE ## def tearDown(self): ## import gc ## gc.collect() def callback(self, *args): self.got_args = args return args[-1] def check_type(self, typ, arg): P...
vipullakhani/mi-instrument
refs/heads/master
mi/dataset/parser/fdchp_a_dcl.py
5
""" @package mi.dataset.parser @file mi/dataset/parser/fdchp_a_dcl.py @author Emily Hahn @brief A parser for the fdchp series a instrument through a DCL """ import re import ntplib from mi.core.log import get_logger from mi.core.common import BaseEnum from mi.core.exceptions import SampleException, UnexpectedDataExc...
gjaldon/otp
refs/heads/maint
lib/asn1/test/asn1_SUITE_data/Cho.py
97
Cho DEFINITIONS IMPLICIT TAGS ::= BEGIN ChoCon ::= CHOICE { nested Cho2, bool0 [0] BOOLEAN, bool1 [1] BOOLEAN, int2 [2] INTEGER } ChoExp ::= CHOICE { int10 [APPLICATION 10] EXPLICIT INTEGER {first(1),last(31)}, bool11 [APPLICATION 11] EXPLICIT BOOLEAN, enum12 [APPLICATION 12] EXPLICIT ENUMERATE...
ddico/project
refs/heads/8.0
analytic_hours_block/hours_block.py
28
# -*- coding: utf-8 -*- ############################################################################## # # Author: Vincent Renaville, ported by Joel Grand-Guillaume # Copyright 2010-2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Af...
TerraFERMA/TerraFERMA
refs/heads/master
buckettools/python/buckettools/debug.py
1
# (originally part of fluidity, modified for buckettools by Cian Wilson) # Copyright (C) 2006 Imperial College London and others. # # Please see the AUTHORS file in the main source directory for a full list # of copyright holders. # # Prof. C Pain # Applied Modelling and Computation Group # Department of Earth Scienc...
scorpilix/Golemtest
refs/heads/develop
golem/resource/__init__.py
12133432
JTarball/docker-django-polymer
refs/heads/master
docker/app/app/backend/apps/_archive/content_2/__init__.py
12133432
letuananh/visualkopasu
refs/heads/main
visko/web/migrations/__init__.py
12133432
aakash-cr7/zulip
refs/heads/master
analytics/__init__.py
12133432
wli/django-allauth
refs/heads/master
allauth/socialaccount/providers/stripe/tests.py
10
# -*- coding: utf-8 -*- from __future__ import unicode_literals from allauth.socialaccount.tests import OAuth2TestsMixin from allauth.tests import MockedResponse, TestCase from .provider import StripeProvider class StripeTests(OAuth2TestsMixin, TestCase): provider_id = StripeProvider.id def get_mocked_resp...
UnionGospelMission/UGM-Database
refs/heads/master
truckmanagement/admin.py
2
from django.contrib import admin # Register your models here. from truckmanagement.models import Truck,Driver,Donor,Donation class DonorAdmin(admin.ModelAdmin): fieldsets=[ ('Name', {'fields':['first_name','last_name','company_name'],}), ('Street Address', {'fields':['address1','address2','city','state',...
ryandougherty/mwa-capstone
refs/heads/heroku
MWA_Tools/build/matplotlib/examples/pylab_examples/centered_ticklabels.py
3
# sometimes it is nice to have ticklabels centered. mpl currently # associates a label with a tick, and the label can be aligned # 'center', 'feft', or 'right' using the horizontal alignment property: # # # for label in ax.xaxis.get_xticklabels(): # label.set_horizntal_alignment('right') # # # but this doesn't...
eerohele/sublime-lxml
refs/heads/master
st3_linux_x64/lxml/html/ElementSoup.py
148
__doc__ = """Legacy interface to the BeautifulSoup HTML parser. """ __all__ = ["parse", "convert_tree"] from soupparser import convert_tree, parse as _parse def parse(file, beautifulsoup=None, makeelement=None): root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement) return root.getroot()
ArcherSys/ArcherSys
refs/heads/master
Lib/site-packages/pip/_vendor/distlib/database.py
129
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2016 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """PEP 376 implementation.""" from __future__ import unicode_literals import base64 import codecs import contextlib import hashlib import logging import os import posixpath import sys import z...
1ns/project-r2
refs/heads/master
web/themes/contrib/bootstrap_sass_starterkit/node_modules/node-gyp/gyp/pylib/gyp/__init__.py
1524
#!/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. import copy import gyp.input import optparse import os.path import re import shlex import sys import traceback from gyp.common import GypErr...
Open-Party/python-beaver
refs/heads/master
docs/conf.py
4
# -*- coding: utf-8 -*- # # beaver documentation build configuration file, created by # sphinx-quickstart on Mon Oct 21 11:21:22 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
bjolivot/ansible
refs/heads/devel
lib/ansible/modules/network/nxos/nxos_vxlan_vtep_vni.py
21
#!/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...
sarakha63/persomov
refs/heads/master
libs/pyasn1/type/namedval.py
172
# ASN.1 named integers from pyasn1 import error __all__ = [ 'NamedValues' ] class NamedValues: def __init__(self, *namedValues): self.nameToValIdx = {}; self.valToNameIdx = {} self.namedValues = () automaticVal = 1 for namedValue in namedValues: if isinstance(na...
mikestebbins/Openaps
refs/heads/master
!ARCHIVE/bg_data_plotting_01.py
2
# coding: utf-8 # In[1]: #get_ipython().magic(u'matplotlib inline') import matplotlib import numpy as np import matplotlib.pyplot as plt import requests import json import pprint import datetime from datetime import date base_url = 'https://mikestebbinscgmtest.azurewebsites.net/api/v1/entries.json?' extra_url='fin...
overtherain/scriptfile
refs/heads/master
software/googleAppEngine/lib/django_1_4/tests/regressiontests/views/tests/shortcuts.py
30
import warnings from django.conf import settings from django.test import TestCase class ShortcutTests(TestCase): urls = 'regressiontests.views.generic_urls' def setUp(self): self.save_warnings_state() warnings.filterwarnings('ignore', category=DeprecationWarning, ...
Arcanemagus/plexpy
refs/heads/master
lib/ipwhois/whois.py
3
# Copyright (c) 2013, 2014, 2015, 2016 Philip Hane # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of c...
fake-name/ReadableWebProxy
refs/heads/master
WebMirror/processor/XmlProcessor.py
1
from . import ProcessorBase import bs4 class XmlProcessor(ProcessorBase.PageProcessor): wanted_mimetypes = ['text/xml', 'application/xml'] want_priority = 40 loggerPath = "Main.Text.XmlProcessor" # def __init__(self, pageUrl, loggerPath, content, pbLut, **kwargs): def __init__(self, baseUrls, pageUrl...
lz1988/company-site
refs/heads/master
tests/regressiontests/forms/tests/models.py
51
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import datetime from django.core.files.uploadedfile import SimpleUploadedFile from django.db import models from django.forms import Form, ModelForm, FileField, ModelChoiceField from django.forms.models import ModelFormMetaclass from djan...
adusca/treeherder
refs/heads/master
treeherder/etl/__init__.py
12133432
retomerz/intellij-community
refs/heads/master
python/testData/refactoring/move/packageImport/before/src/b.py
12133432
imtapps/django-imt-fork
refs/heads/IMT
tests/modeltests/one_to_one/__init__.py
12133432
ymcagodme/Norwalk-Judo
refs/heads/master
django/conf/locale/pt/__init__.py
12133432
manpages/rum
refs/heads/master
prototype.py
1
import sys sys.path.append('.') import json import tornado import tornado.ioloop import tornado.web import sys import rumcfg import storage from requesthandler import handle class Main(tornado.web.RequestHandler): def get(self): self.set_header("Content-Type", "text/html") self.write("Meow?") class Dumb(t...
dr0pz0ne/sibble
refs/heads/add_block_rescue_task_variables
test/units/parsing/vault/test_vault.py
60
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # 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) an...
OpenTrons/opentrons_sdk
refs/heads/master
labware-library/cypress/fixtures/TestLabwareProtocol.py
1
import json from opentrons import protocol_api, types CALIBRATION_CROSS_COORDS = { '1': { 'x': 12.13, 'y': 9.0, 'z': 0.0 }, '3': { 'x': 380.87, 'y': 9.0, 'z': 0.0 }, '7': { 'x': 12.13, 'y': 258.0, 'z': 0.0 } } CALIBRATION_C...
razvanphp/arangodb
refs/heads/devel
3rdParty/V8-3.31.74.1/third_party/python_26/Lib/site-packages/win32/lib/netbios.py
21
import win32wnet import struct import string # Constants generated by h2py from nb30.h NCBNAMSZ = 16 MAX_LANA = 254 NAME_FLAGS_MASK = 0x87 GROUP_NAME = 0x80 UNIQUE_NAME = 0x00 REGISTERING = 0x00 REGISTERED = 0x04 DEREGISTERED = 0x05 DUPLICATE = 0x06 DUPLICATE_DEREG = 0x07 LISTEN_OUTSTANDING = 0x01 CALL_PENDING = 0x02 ...
therandomcode/Fanalytics
refs/heads/master
lib/flask/ext/__init__.py
853
# -*- coding: utf-8 -*- """ flask.ext ~~~~~~~~~ Redirect imports for extensions. This module basically makes it possible for us to transition from flaskext.foo to flask_foo without having to force all extensions to upgrade at the same time. When a user does ``from flask.ext.foo import bar`` i...
Pajinek/spacewalk
refs/heads/master
backend/server/action_extra_data/__init__.py
14
# # Copyright (c) 2008--2015 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a c...
itai12312/workspaces
refs/heads/master
hellodjango/venv/lib/python2.7/site-packages/django/contrib/gis/db/backends/spatialite/introspection.py
221
from django.contrib.gis.gdal import OGRGeomType from django.db.backends.sqlite3.introspection import DatabaseIntrospection, FlexibleFieldLookupDict from django.utils import six class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict): """ Sublcass that includes updates the `base_data_types_reverse` dict f...
NeuralEnsemble/neuroConstruct
refs/heads/master
lib/jython/Lib/test/test_locale.py
72
from test.test_support import run_unittest, verbose import unittest import locale import sys import codecs enUS_locale = None def get_enUS_locale(): global enUS_locale if sys.platform == 'darwin': import os tlocs = ("en_US.UTF-8", "en_US.ISO8859-1", "en_US") if int(os.uname()[2].split...
a-parhom/edx-platform
refs/heads/master
common/djangoapps/edxmako/template.py
18
# Copyright (c) 2008 Mikeal Rogers # # 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...
krsjoseph/youtube-dl
refs/heads/master
youtube_dl/extractor/vimeo.py
64
# encoding: utf-8 from __future__ import unicode_literals import json import re import itertools from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_urllib_parse, compat_urllib_request, compat_urlparse, ) from ..utils import ( ExtractorError, InAdvancePagedList, ...
dav1x/ansible
refs/heads/devel
lib/ansible/modules/cloud/amazon/ec2_snapshot_facts.py
5
#!/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 distributed...