repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
leo524/7mos-fourm
refs/heads/master
node_modules/nodebb-plugin-markdown/node_modules/pygmentize-bundled/vendor/pygments/build-3.3/pygments/styles/murphy.py
364
# -*- coding: utf-8 -*- """ pygments.styles.murphy ~~~~~~~~~~~~~~~~~~~~~~ Murphy's style from CodeRay. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.style import Style from pygments.token import Keyword, Name, Comment,...
zero-rp/miniblink49
refs/heads/master
v8_7_5/tools/try_perf.py
3
#!/usr/bin/env python # Copyright 2014 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # for py2/py3 compatibility from __future__ import print_function import argparse import os import subprocess import sys BOTS = { ...
kejbaly2/sniprd
refs/heads/master
source/sniprd/utils.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Comfortably generate reports - Utils """ from __future__ import unicode_literals, absolute_import import ConfigParser import datetime from dateutil.relativedelta import relativedelta as delta from dateutil.relativedelta import MO as MONDAY import logging import os fro...
PeterPetrik/QGIS
refs/heads/master
python/pyplugin_installer/qgsplugindependenciesdialog.py
49
# coding=utf-8 """Plugin dependencies selection dialog .. 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 Foundation; either version 2 of the License, or (at your option) any later version....
OpenAcademy-OpenStack/nova-scheduler
refs/heads/master
nova/tests/objects/test_instance_action.py
5
# Copyright 2013 IBM Corp. # # 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...
taichatha/youtube-dl
refs/heads/master
youtube_dl/extractor/freespeech.py
165
from __future__ import unicode_literals import re import json from .common import InfoExtractor class FreespeechIE(InfoExtractor): IE_NAME = 'freespeech.org' _VALID_URL = r'https://www\.freespeech\.org/video/(?P<title>.+)' _TEST = { 'add_ie': ['Youtube'], 'url': 'https://www.freespeech.o...
s-ludwig/FrameworkBenchmarks
refs/heads/master
frameworks/CSharp/HttpListener/setup.py
65
import subprocess import sys import setup_util import os def start(args, logfile, errfile): if os.name != 'nt': return 1 try: setup_util.replace_text("HttpListener/HttpListener/App.config", "localhost", args.database_host) subprocess.check_call("powershell -Command .\\setup.ps1 start", cwd="HttpList...
kmaglione/olympia
refs/heads/master
media/__init__.py
12133432
jamespacileo/django-france
refs/heads/master
django/conf/locale/hi/__init__.py
12133432
yephper/django
refs/heads/master
tests/empty/no_models/__init__.py
12133432
UrLab/beta402
refs/heads/master
www/management/__init__.py
12133432
jaredweiss/nupic
refs/heads/master
tests/integration/nupic/regions/__init__.py
12133432
JackLivio/sdl_core
refs/heads/master
src/3rd_party-static/gmock-1.7.0/scripts/generator/cpp/__init__.py
12133432
benchoufi/PRJ-medtec_sigproc
refs/heads/master
echopen-leaderboard/bootcamp/questions/migrations/__init__.py
12133432
Dino0631/RedRain-Bot
refs/heads/develop
cogs/lib/youtube_dl/extractor/freshlive.py
59
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, try_get, unified_timestamp, ) class FreshLiveIE(InfoExtractor): _VALID_URL = r'https?://freshlive\.tv/[^/]+/(?P<id>\d+)' ...
dslomov/intellij-community
refs/heads/master
python/testData/refactoring/extractsuperclass/multifile/target.new.py
83
class Suppa: def foo(self): print "bar"
khoanguyen0791/cs170
refs/heads/master
CS170_homework/Asg 61.py
1
from PIL import Image from colorPixelListPIL import * def negative_color(pic,n): span = 256/n width, height = pic.size ni = Image.new("RGB", (width,height),(255,255,255)) for w in range(width): for h in range(height): pix = pic.getpixel((w,h)) (r,g,b) = pix n...
rachitnaruzu/codearena
refs/heads/master
codelabs/__init__.py
12133432
MoritzS/django
refs/heads/master
tests/migrations/test_migrations_atomic_operation/__init__.py
12133432
eneldoserrata/marcos_openerp
refs/heads/master
addons/report_geraldo/lib/geraldo/site/newsite/site-geraldo/django/contrib/localflavor/ro/__init__.py
12133432
seocam/django
refs/heads/master
django/conf/locale/es_MX/__init__.py
12133432
Kazade/NeHe-Website
refs/heads/master
google_appengine/lib/django-1.4/tests/regressiontests/localflavor/fr/__init__.py
12133432
googleapis/python-dialogflow
refs/heads/master
google/cloud/dialogflow_v2/services/intents/transports/__init__.py
4
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
haosu1987/duktape
refs/heads/master
tests/perf/test-prop-read.py
10
def test(): obj = { 'xxx1': 1, 'xxx2': 2, 'xxx3': 3, 'xxx4': 4, 'foo': 123 } i = 0 while i < 1e8: ign = obj['foo'] i += 1 test()
titasakgm/brc-stock
refs/heads/master
openerp/addons/report_geraldo/lib/geraldo/site/newsite/site-geraldo/django/bin/profiling/__init__.py
12133432
marinho/geraldo
refs/heads/master
site/newsite/site-geraldo/common/appengine_utilities/__init__.py
12133432
orekyuu/intellij-community
refs/heads/master
python/lib/Lib/site-packages/django/contrib/localflavor/ie/__init__.py
12133432
alx-eu/django
refs/heads/stable/1.5.x
django/conf/locale/hi/__init__.py
12133432
Endika/django
refs/heads/master
tests/migrations/test_migrations_squashed_complex/__init__.py
12133432
ZoranPavlovic/kombu
refs/heads/master
examples/simple_task_queue/__init__.py
12133432
roysoup/Restam
refs/heads/stable
restam/drinks/__init__.py
12133432
tbeckham/eutester
refs/heads/master
testcases/stress_tests/stress_instance_test.py
6
#!/usr/bin/python import time from eucaops import Eucaops from eutester.eutestcase import EutesterTestCase import os class InstanceBasicsTest(EutesterTestCase): def __init__(self): #### Pre-conditions self.setuptestcase() self.setup_parser() self.parser.add_argument("--test-zone", ...
imsplitbit/nova
refs/heads/master
nova/tests/test_cinder.py
2
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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/LICEN...
mgit-at/ansible
refs/heads/devel
lib/ansible/modules/network/meraki/meraki_switchport.py
36
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Kevin Breit (@kbreit) <kevin.breit@kevinbreit.net> # 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 = { ...
frostidaho/qtile
refs/heads/ida_dev2
libqtile/widget/caps_num_lock_indicator.py
4
# -*- coding: utf-8 -*- # Copyright (C) 2018 Juan Riquelme González # # 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, co...
ryanahall/django
refs/heads/master
tests/template_tests/filter_tests/test_length.py
521
from django.template.defaultfilters import length from django.test import SimpleTestCase from django.utils.safestring import mark_safe from ..utils import setup class LengthTests(SimpleTestCase): @setup({'length01': '{{ list|length }}'}) def test_length01(self): output = self.engine.render_to_string...
Parisson/TimeSide
refs/heads/master
timeside/core/tools/utils.py
1
import unicodedata import re def slugify(value): """ Made after django.utils.text slugify function. Convert to ASCII. Convert spaces to hyphens. Remove characters that aren't alphanumerics, underscores, or hyphens. Convert to lowercase. Also strip leading and trailing whitespace. Convert spaces to...
coen-hyde/dotfiles
refs/heads/master
libs/eb/lib/elasticbeanstalk/exception.py
11
#!/usr/bin/env python #============================================================================== # Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Amazon Software License (the "License"). You may not use # this file except in compliance with the License. A copy of the...
hfp/tensorflow-xsmm
refs/heads/master
tensorflow/contrib/crf/python/kernel_tests/crf_test.py
25
# 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...
mrquim/repository.mrquim
refs/heads/master
plugin.video.live.magellan/websocket/_app.py
9
""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, ...
shaded-enmity/dnf
refs/heads/master
dnf/rpm/connection.py
13
# connection.py # Maintain RPMDB connections. # # Copyright (C) 2012-2013 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...
ashray/VTK-EVM
refs/heads/yiq
Common/DataModel/Testing/Python/TestQuadricClustering.py
20
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() def GetRGBColor(colorName): ''' Return the red, green and blue components for a color as doubles. ''' rgb = [0.0, 0.0, 0.0] # black vtk.vtkNamedColors...
mobiledrc/docker
refs/heads/master
gitserver/Dockerfile/toolkit/data/GitCommitHandler.py
2
''' Licensed Materials - Property of IBM (c) Copyright IBM Corporation 2014. All Rights Reserved. Note to U.S. Government Users Restricted Rights: Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ''' import os import urllib from data.Common import HttpStatus, ItemNotFo...
gitsimon/tq_website
refs/heads/master
courses/models/style.py
2
from django.db import models from django.db.models import SET_NULL from djangocms_text_ckeditor.fields import HTMLField from parler.models import TranslatableModel, TranslatedFields class Style(TranslatableModel): name = models.CharField(max_length=30, unique=True, blank=False) parent_style = models.ForeignKe...
lmallin/coverage_test
refs/heads/master
python_venv/lib/python2.7/site-packages/numpy/lib/tests/test_type_check.py
9
from __future__ import division, absolute_import, print_function import numpy as np from numpy.compat import long from numpy.testing import ( TestCase, assert_, assert_equal, assert_array_equal, run_module_suite ) from numpy.lib.type_check import ( common_type, mintypecode, isreal, iscomplex, isposinf, isn...
Cerberus98/quark
refs/heads/master
quark/db/migration/alembic/cli.py
6
# Copyright 2012 New Dream Network, LLC (DreamHost) # # 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 a...
rawwell/django
refs/heads/master
django/contrib/formtools/models.py
679
""" models.py (even empty) currently required by the runtests.py to enable unit tests """
yencarnacion/jaikuengine
refs/heads/master
.google_appengine/lib/django-1.4/django/core/cache/backends/filebased.py
90
"File-based cache backend" import hashlib import os import shutil import time try: import cPickle as pickle except ImportError: import pickle from django.core.cache.backends.base import BaseCache class FileBasedCache(BaseCache): def __init__(self, dir, params): BaseCache.__init__(self, params) ...
stickybath/BetaMaleBot
refs/heads/master
src/core/declarations.py
1
def init(): from utilDatabase import database import re #initialize function global botConfigPath global dbInfo global ircInfo global markovInfo global telegramInfo global twitterInfo global urlRegex global model global modelInitialized botConfigPath = '' #ini...
sxjscience/tvm
refs/heads/master
python/tvm/topi/arm_cpu/conv2d_gemm.py
1
# 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 u...
dongjiaqiang/hadoop-20
refs/heads/master
src/examples/python/pyAbacus/JythonAbacus.py
123
# # 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...
SOM-st/RPySOM
refs/heads/master
src/som/primitives/true_primitives.py
1
from som.primitives.primitives import Primitives from som.vm.globals import trueObject, falseObject from som.vmobjects.primitive import UnaryPrimitive, BinaryPrimitive def _not(_rcvr): return falseObject def _or(_rcvr, _arg): return trueObject class TruePrimitivesBase(Primitives): def install_primiti...
Ziqi-Li/bknqgis
refs/heads/master
Shapely/shapely/geometry/multipoint.py
5
"""Collections of points and related utilities """ import sys if sys.version_info[0] < 3: range = xrange from ctypes import byref, c_double, c_void_p, cast, POINTER from ctypes import ArgumentError from shapely.geos import lgeos from shapely.geometry.base import ( BaseMultipartGeometry, exceptNull, geos_geo...
translate/virtaal
refs/heads/master
virtaal/modes/workflowmode.py
6
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010-2011 Zuza Software Foundation # # This file is part of Virtaal. # # 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 ...
lostdj/Jaklin-OpenJFX
refs/heads/jaklin-master
modules/web/src/main/native/Tools/QueueStatusServer/handlers/syncqueuelogs.py
122
# Copyright (C) 2013 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 ...
marionleborgne/nupic.research
refs/heads/master
htmresearch/frameworks/nlp/classification_metrics.py
9
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2016, Numenta, Inc. Unless you have purchased from # Numenta, Inc. a separate commercial license for this software code, the # following terms and conditions apply: # # This pro...
asedunov/intellij-community
refs/heads/master
python/testData/formatter/extraBlankLinesBetweenMethodsAndAtTheEnd.py
79
class Foo(object): def wrong_blank_lines(self): pass def next_method(self): pass
vbshah1992/microblog
refs/heads/master
flask/lib/python2.7/site-packages/werkzeug/testsuite/contrib/sessions.py
99
# -*- coding: utf-8 -*- """ werkzeug.testsuite.sessions ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Added tests for the sessions. :copyright: (c) 2013 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import unittest import shutil from tempfile import mkdtemp, gettempdir from werkzeug.testsuite...
willthames/ansible-review
refs/heads/master
lib/ansiblereview/__main__.py
1
#!/usr/bin/env python from __future__ import print_function import logging import optparse import os import sys from ansiblereview.version import __version__ from ansiblereview import classify from ansiblereview.utils import info, warn, read_config from appdirs import AppDirs from pkg_resources import resource_filenam...
vishnun/python-programs
refs/heads/master
permutations.py
1
def swap(arr, i,j): temp = arr[i] arr[i] = arr[j] arr[j] = temp def perm(A, start, end, result): if start == end: result.append(A) else: for i in range(start, end+1): swap(A, i, start) perm(A, start+1, end, result) swap(A, i, start) def get_permutations(arr): result = [] perm(arr,0,len(arr) -1,...
denfromufa/PTVS
refs/heads/master
Python/Tests/TestData/RenameItemsTest/ProgramX.py
927
print 'hello world'
sszlm/MissionPlanner
refs/heads/master
Lib/encodings/iso8859_13.py
93
""" Python Character Mapping Codec iso8859_13 generated from 'MAPPINGS/ISO8859/8859-13.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...
mrGeen/eden
refs/heads/master
tests/unit_tests/modules/s3/s3gis/GeoRSSLayer.py
43
s3gis_tests = load_module("tests.unit_tests.modules.s3.s3gis") def test_GeoRSSLayer(): # use debug to show up errors # without debug, errors get to be turned into session warnings # and the layer skipped altogether. No datastructure. url = "test://test_GeoRSS" current.request.utcnow = datetime.dat...
maartenq/ansible
refs/heads/devel
lib/ansible/utils/module_docs_fragments/gcp.py
34
# Copyright: (c) 2018, Google Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # GCP doc fragment. DOCUMENTATION = ''' options: project: description: - The Google Cloud Platform project to use. ...
noahwilliamsson/micropython
refs/heads/wpa-enterprise
tests/basics/fun_kwargs.py
118
def f1(a): print(a) f1(123) f1(a=123) try: f1(b=123) except TypeError: print("TypeError") def f2(a, b): print(a, b) f2(1, 2) f2(a=3, b=4) f2(b=5, a=6) f2(7, b=8) try: f2(9, a=10) except TypeError: print("TypeError") def f3(a, b, *args): print(a, b, args) f3(1, b=3) try: f3(1, a=3) ...
Jgarcia-IAS/Fidelizacion_odoo
refs/heads/master
openerp/addons/l10n_de/__openerp__.py
260
# -*- 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...
jjohnson42/confluent
refs/heads/master
confluent_server/confluent/messages.py
2
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2014 IBM Corporation # Copyright 2015-2019 Lenovo # # 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/licens...
pigeonflight/strider-plone
refs/heads/master
docker/appengine/google/appengine/ext/remote_api/handler.py
5
#!/usr/bin/env python # # Copyright 2007 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 o...
yelster/python-nvd3
refs/heads/develop
nvd3/stackedAreaChart.py
13
#!/usr/bin/python # -*- coding: utf-8 -*- """ Python-nvd3 is a Python wrapper for NVD3 graph library. NVD3 is an attempt to build re-usable charts and chart components for d3.js without taking away the power that d3.js gives you. Project location : https://github.com/areski/python-nvd3 """ from .NVD3Chart import NVD...
indictranstech/reciphergroup-erpnext
refs/heads/master
erpnext/projects/report/project_wise_stock_tracking/__init__.py
12133432
marcospereirampj/gestao_empresarial
refs/heads/master
gestao/financeiro/admin_model/__init__.py
12133432
FriedrichK/volunteer_planner
refs/heads/develop
registration/migrations/__init__.py
12133432
thanhacun/odoo
refs/heads/8.0
openerp/addons/base/ir/ir_default.py
342
# -*- 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...
foreversand/QSTK
refs/heads/master
QSTK/qstktest/__init__.py
12133432
axiom-data-science/pygc
refs/heads/master
pygc/tests/__init__.py
12133432
OpenTransitTools/view_header_footer
refs/heads/master
ott/view_header_footer/__init__.py
12133432
hforge/ikaaro
refs/heads/master
ikaaro/messages.py
3
# -*- coding: UTF-8 -*- # Copyright (C) 2007 Henry Obein <henry@itaapy.com> # Copyright (C) 2007 Nicolas Deram <nicolas@itaapy.com> # Copyright (C) 2007 Sylvain Taverne <sylvain@itaapy.com> # Copyright (C) 2007-2008 Juan David Ibáñez Palomar <jdavid@itaapy.com> # # This program is free software: you can redistribute it...
doheekim/chuizonetest
refs/heads/master
lib/mako/ext/pygmentplugin.py
13
# ext/pygmentplugin.py # Copyright (C) 2006-2014 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from pygments.lexers.web import \ HtmlLexer, XmlLexer, JavascriptLexer, CssLexer from py...
karlgluck/heroes-of-the-storm-replay-parser
refs/heads/master
manage.py
12
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webserver.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
allisongpatterson/SoftwareSystems
refs/heads/master
hw03/thinkplot.py
88
"""This file contains code for use with "Think Stats", by Allen B. Downey, available from greenteapress.com Copyright 2010 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ import math import matplotlib import matplotlib.pyplot as pyplot import numpy as np # customize some matplotlib attrib...
akiradeveloper/linux
refs/heads/master
tools/perf/scripts/python/failed-syscalls-by-pid.py
1996
# failed system call counts, by pid # (c) 2010, Tom Zanussi <tzanussi@gmail.com> # Licensed under the terms of the GNU GPL License version 2 # # Displays system-wide failed system call totals, broken down by pid. # If a [comm] arg is specified, only syscalls called by [comm] are displayed. import os import sys sys.pa...
dontnod/nimp
refs/heads/master
nimp/utils/version.py
1
# -*- coding: utf-8 -*- # Copyright (c) 2014-2019 Dontnod Entertainment # 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,...
robdobsn/SpideyWall
refs/heads/master
MbedTests/TestSendUDP - test pads and nodes.py
1
import socket import colorsys from time import sleep import datetime import select try: input = raw_input except NameError: pass def FindLed(): for ii in range(100): cmdmsg = bytearray.fromhex("0000000103") s.sendto(cmdmsg, (SERVER_ADDRESS, PORT)) ready = select.select([s], [], [], 10) ...
ric2b/Vivaldi-browser
refs/heads/master
chromium/tools/clang/pylib/clang/compile_db_test.py
3
#!/usr/bin/env vpython # Copyright 2019 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. """Tests for compile_db.""" import sys import unittest import compile_db # Input compile DB. _TEST_COMPILE_DB = [ # Verifies ...
ChrisHirsch/robotframework
refs/heads/master
src/robot/model/tagstatistics.py
22
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
Typecraft/norsourceparser
refs/heads/develop
setup.py
1
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'typecraft_python>=0.5.1' ] test_requirements = [ 't...
gangadharkadam/saloon_erp_install
refs/heads/master
erpnext/patches/v5_0/replace_renamed_fields_in_custom_scripts_and_print_formats.py
114
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import re def execute(): # NOTE: sequence is important renamed_fields = get_all_renamed_fields() for dt, script_field, ref_dt_field i...
graeme-f/edenstart
refs/heads/master
modules/__init__.py
386048
cryptapus/electrum-server
refs/heads/master
src/ircthread.py
6
#!/usr/bin/env python # Copyright(C) 2011-2016 Thomas Voegtlin # # 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, m...
swiftix/swift
refs/heads/master
test/Driver/Inputs/crash-after-generating-pch.py
27
#!/usr/bin/env python # crash.py - Sends SIGKILL to self. -*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for ...
diorcety/intellij-community
refs/heads/master
python/helpers/pydev/pydevd_additional_thread_info.py
53
import sys from pydevd_constants import * #@UnusedWildImport from _pydev_imps import _pydev_thread from pydevd_frame import PyDBFrame import weakref #======================================================================================================================= # AbstractPyDBAdditionalThreadInfo #=============...
Edraak/edraak-platform
refs/heads/master
lms/djangoapps/instructor/settings/devstack.py
24
"""Devstack environment variables unique to the instructor plugin.""" def plugin_settings(settings): """Settings for the instructor plugin.""" # Set this to the dashboard URL in order to display the link from the # dashboard to the Analytics Dashboard. settings.ANALYTICS_DASHBOARD_URL = None
geminy/aidear
refs/heads/master
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/testing/gmock/scripts/generator/cpp/gmock_class_test.py
395
#!/usr/bin/env python # # Copyright 2009 Neal Norwitz All Rights Reserved. # Portions Copyright 2009 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
mfitzp/smrtr
refs/heads/master
apps/discuss/views.py
1
from django.db import models from django.template import RequestContext, loader from django.contrib.auth import authenticate, login, logout from django.shortcuts import render_to_response, get_object_or_404 from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.core.urlreso...
pquentin/libcloud
refs/heads/trunk
libcloud/test/container/test_kubernetes.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 use ...
niklasf/syzygy-tables.info
refs/heads/master
syzygy_tables_info/model.py
1
# This file is part of the syzygy-tables.info tablebase probing website. # Copyright (C) 2015-2020 Niklas Fiekas <niklas.fiekas@backscattering.de> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Fo...
bartosh/zipline
refs/heads/master
tests/pipeline/test_frameload.py
5
""" Tests for zipline.pipeline.loaders.frame.DataFrameLoader. """ from unittest import TestCase from mock import patch from numpy import arange, ones from numpy.testing import assert_array_equal from pandas import ( DataFrame, DatetimeIndex, Int64Index, ) from zipline.lib.adjustment import ( ADD, ...
phoebusliang/parallel-lettuce
refs/heads/master
tests/integration/lib/Django-1.2.5/django/contrib/gis/geos/prototypes/predicates.py
623
""" This module houses the GEOS ctypes prototype functions for the unary and binary predicate operations on geometries. """ from ctypes import c_char, c_char_p, c_double from django.contrib.gis.geos.libgeos import GEOM_PTR from django.contrib.gis.geos.prototypes.errcheck import check_predicate from django.contrib.gis...
kbrebanov/ansible
refs/heads/devel
lib/ansible/plugins/lookup/__init__.py
12
# (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...
tsabi/Odoo-tsabi-fixes
refs/heads/master
addons/website_event/controllers/main.py
25
# -*- 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 ...