repo_name
stringlengths
5
100
ref
stringlengths
12
67
path
stringlengths
4
244
copies
stringlengths
1
8
content
stringlengths
0
1.05M
⌀
lsaffre/lino_book
refs/heads/master
lino_book/projects/lydia/tests/dumps/18.12.0/ana_account.py
2
# -*- coding: UTF-8 -*- logger.info("Loading 20 objects to table ana_account...") # fields: id, ref, seqno, designation loader.save(create_ana_account(1,u'1',1,['Operation costs', 'Diplome', 'Operation costs'])) loader.save(create_ana_account(2,u'1100',2,['Wages', 'L\xf6hne und Geh\xe4lter', 'Salaires'])) loader.save(c...
insidenothing/3D-Printing-Software
refs/heads/master
skein_engines/skeinforge-50/fabmetheus_utilities/fabmetheus_tools/interpret_plugins/xml_plugins/__init__.py
120
#This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module. import os import sys numberOfLevelsDeepInPackageHierarchy = 4 packageFilePath = os.path.abspath(__file__) for level in range( numberOfLevelsDeepInPackageHierarchy + 1 ): packageFilePath =...
elenbert/allsky
refs/heads/master
src/webdatagen/sky-ambient-datagen.py
1
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import matplotlib.dates as mdates import csv import MySQLdb import sys import config def plot_sky_ambient_temp(data, output_file): xdata = [] ydata1 = [] ydata2 = [] print 'Plotting sky and ambient graph using ' + str(len(data)) + ' db record...
vnsofthe/odoo-dev
refs/heads/master
addons/website_forum/models/__init__.py
456
# -*- coding: utf-8 -*- import gamification import res_users import forum
nokute78/fluent-bit
refs/heads/master
tests/internal/data/pack/utf8_gen.py
3
# Fluent Bit / Pack utf-8 samples to JSON # ======================================= import os import json import msgpack def gen_json(f): print f with io.open(f, 'rb') as raw: data = raw.read() out_mp = f[:-4] + ".mp" out_json = f[:-4] + ".json" # Write messagepack fmp = open(out_m...
flavour/eden
refs/heads/master
controllers/assess.py
5
# -*- coding: utf-8 -*- """ Assessments """ module = request.controller if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ----------------------------------------------------------------------------- def index(): """ RESTful CRUD controller """ s3_redirect_d...
wonder-sk/QGIS
refs/heads/master
python/ext-libs/nose2/plugins/junitxml.py
11
""" Output test reports in junit-xml format. This plugin implements :func:`startTest`, :func:`testOutcome` and :func:`stopTestRun` to compile and then output a test report in junit-xml format. By default, the report is written to a file called ``nose2-junit.xml`` in the current working directory. You can configure the...
iisc-sa-open/trsl
refs/heads/master
trsl/sets/set_building.py
1
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- # Copyright of the Indian Institute of Science's Speech and Audio group. """ Used to build sets from the vectors provided by KMeans clustering """ import json import sys from sklearn.cluster import KMeans def build_sets(num_words=None, num_clusters=None, vectors=Non...
kanagasabapathi/python-for-android
refs/heads/master
python-build/python-libs/gdata/tests/all_tests_cached.py
87
#!/usr/bin/env python # # Copyright (C) 2009 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...
ihh/dart
refs/heads/master
python/XGram/test/codonml.py
1
import sys, time, string, re, optparse USAGE="""module for calculating PAML-like ka/ks values with Xrate. """ from XGram.Generator.Prebuilt import Codons from XGram.Model import Annotation import XGram.Run import Bio.Data.CodonTable ##----------------------------------------------------------------------------------...
ruibarreira/linuxtrail
refs/heads/master
usr/lib/python2.7/dist-packages/reportlab/pdfbase/_fontdata_widths_timesbolditalic.py
56
widths = {'A': 667, 'AE': 944, 'Aacute': 667, 'Acircumflex': 667, 'Adieresis': 667, 'Agrave': 667, 'Aring': 667, 'Atilde': 667, 'B': 667, 'C': 667, 'Ccedilla': 667, 'D': 722, 'E': 667, 'Eacute': 667, 'Ecircumflex': 667, 'Edieresis': 667, 'Egrave': 667, 'Eth': 722, 'Euro': 500, 'F': 667, 'G': 722, '...
edespino/gpdb
refs/heads/master
src/test/tinc/ext/unittest2/main.py
166
"""Unittest main program""" import sys import os import types from unittest2 import loader, runner try: from unittest2.signals import installHandler except ImportError: installHandler = None __unittest = True FAILFAST = " -f, --failfast Stop on first failure\n" CATCHBREAK = " -c, --catch Catc...
mgit-at/ansible
refs/heads/devel
lib/ansible/modules/net_tools/exoscale/exo_dns_record.py
57
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2016, René Moser <mail@renemoser.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 = {'metadata_version': '1.1', ...
yati-sagade/RyDyrect
refs/heads/master
django/core/management/commands/sqlall.py
313
from optparse import make_option from django.core.management.base import AppCommand from django.core.management.sql import sql_all from django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the CREATE TABLE, custom SQL and CREATE INDEX SQL statements for the given model module n...
tectronics/crossepg
refs/heads/master
scripts/mediaprem/mediaprem.py
1
#!/usr/bin/python # mediaprem.py by Ambrosa http://www.ambrosa.net # this module is used for download EPG data from Mediaset website # derived from E2_LOADEPG __author__ = "ambrosa http://www.ambrosa.net" __copyright__ = "Copyright (C) 2008-2011 Alessandro Ambrosini" __license__ = "CreativeCommons by-nc-sa http://cre...
ivan-fedorov/intellij-community
refs/heads/master
python/testData/quickFixes/PyAddPropertyForFieldQuickFixTest/useProperty_after.py
80
class A: @property def x(self): return self._x def __init__(self): self._x = 1 def _foo(self): print(self._x) a = A() a._foo() print(a.x) print(a.x)
vnsofthe/odoo
refs/heads/8.0
addons/account_followup/wizard/account_followup_print.py
217
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
jpshort/odoo
refs/heads/8.0
openerp/addons/base/res/res_request.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 GNU...
jk1/intellij-community
refs/heads/master
python/testData/refactoring/pullup/abstractMethodPy2AddMeta/Class.py
160
from SuperClass import Parent class Child(Parent): def my_method(self, foo): bar = foo def my_method_2(self, foo): bar = foo
barbuza/django
refs/heads/master
django/contrib/gis/geoip2/base.py
335
import os import socket import geoip2.database from django.conf import settings from django.core.validators import ipv4_re from django.utils import six from django.utils.ipv6 import is_valid_ipv6_address from .resources import City, Country # Creating the settings dictionary with any settings, if needed. GEOIP_SETT...
GuozhuHe/MyBlog
refs/heads/master
app/main/errors.py
1
# -*- coding: utf-8 -*- from flask import render_template, request, jsonify from . import main @main.app_errorhandler(403) def forbidden(e): if request.accept_mimetypes.accept_json and \ not request.accept_mimetypes.accept_html: response = jsonify({'error': 'forbidden'}) response.statu...
Dhivyap/ansible
refs/heads/devel
lib/ansible/modules/network/f5/bigip_gtm_wide_ip.py
21
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
codeadict/kushillu
refs/heads/master
kushillu/migrations/0001_initial.py
1
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import kushillu.models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='BuildInfo', fields=[ ('i...
yhyuan/weewx
refs/heads/master
bin/weewx/drivers/ws28xx.py
7
# Copyright 2013 Matthew Wall # See the file LICENSE.txt for your full rights. # # Thanks to Eddie De Pieri for the first Python implementation for WS-28xx. # Eddie did the difficult work of decompiling HeavyWeather then converting # and reverse engineering into a functional Python implementation. Eddie's # work was b...
ronekko/chainer
refs/heads/master
chainer/training/extensions/util.py
13
import os if os.name == "nt": import ctypes _STD_OUTPUT_HANDLE = -11 class _COORD(ctypes.Structure): _fields_ = [("X", ctypes.c_short), ("Y", ctypes.c_short)] class _SMALL_RECT(ctypes.Structure): _fields_ = [("Left", ctypes.c_short), ("Top", ctypes.c_short), ("Righ...
jordiclariana/ansible
refs/heads/devel
lib/ansible/modules/crypto/openssl_privatekey.py
23
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Yanis Guenane <yanis+ansible@guenane.org> # # 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 optio...
bl4ckic3/ROPgadget
refs/heads/master
ropgadget/version.py
4
#!/usr/bin/env python2 ## -*- coding: utf-8 -*- ## ## Jonathan Salwan - 2014-05-12 - ROPgadget tool ## ## http://twitter.com/JonathanSalwan ## http://shell-storm.org/project/ROPgadget/ ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public Licen...
sandeepgupta2k4/tensorflow
refs/heads/master
tensorflow/contrib/learn/python/learn/learn_io/data_feeder.py
88
# 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...
umyuu/Sample
refs/heads/master
src/Python3/Q106883/exsample.py
1
# -*- coding: utf-8 -*- from PIL import Image from PIL.ExifTags import TAGS from pathlib import Path # JPGファイルのEXIF情報から撮影日時(DateTimeOriginal)情報を取得 def get_exif(img, field='DateTimeOriginal'): for k, v in img._getexif().items(): if TAGS.get(k) == field: return v return None def main(): ...
christer155/PTVS
refs/heads/master
Python/Tests/TestData/DebuggerProject/InputFunction.py
18
fob = 'fob' # required to allow non-raw input() to succeed a = input("Provide A: ") print(a)
sombree/android_external_skia
refs/heads/cm-12.1
tools/find_run_binary.py
163
#!/usr/bin/python # Copyright (c) 2014 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. """Module that finds and runs a binary by looking in the likely locations.""" import os import subprocess import sys def run_comman...
ghxandsky/zstack-utility
refs/heads/master
sftpbackupstorage/test/test_connect.py
3
''' @author: frank ''' import unittest import time from sftpbackupstorage import sftpbackupstorage from zstacklib.utils import http from zstacklib.utils import jsonobject class Test(unittest.TestCase): def testName(self): server = sftpbackupstorage.SftpBackupStorageAgent() server.http...
turbokongen/home-assistant
refs/heads/dev
tests/components/mobile_app/__init__.py
30
"""Tests for the mobile app integration."""
linjoahow/lego_Automatic-assembly
refs/heads/master
static/Brython3.1.0-20150301-090019/Lib/_codecs.py
526
def ascii_decode(*args,**kw): pass def ascii_encode(*args,**kw): pass def charbuffer_encode(*args,**kw): pass def charmap_build(*args,**kw): pass def charmap_decode(*args,**kw): pass def charmap_encode(*args,**kw): pass def decode(*args,**kw): """decode(obj, [encoding[,errors]]) -> ob...
jobiols/odoo-addons
refs/heads/11.0
product_create_restriction/__manifest__.py
1
############################################################################## # # Copyright (C) 2019 jeo Software (http://www.jeosoft.com.ar) # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # ...
orezpraw/partycrasher
refs/heads/master
partycrasher/api/report_type.py
2
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2017 Joshua Charles Campbell # 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 o...
iirob/python-opcua
refs/heads/master
opcua/common/events.py
2
import copy from opcua import ua import opcua from opcua.ua.uaerrors import UaError from opcua.common import ua_utils class Event(object): """ OPC UA Event object. This is class in inherited by the common event objects such as BaseEvent, other auto standard events and custom events Events are use...
AloneRoad/Inforlearn
refs/heads/1.0-rc3
django/contrib/sites/admin.py
662
from django.contrib import admin from django.contrib.sites.models import Site class SiteAdmin(admin.ModelAdmin): list_display = ('domain', 'name') search_fields = ('domain', 'name') admin.site.register(Site, SiteAdmin)
bitglue/shinysdr
refs/heads/master
shinysdr/main.py
1
#!/usr/bin/env python # Copyright 2013, 2014, 2015, 2016 Kevin Reid <kpreid@switchb.org> # # This file is part of ShinySDR. # # ShinySDR 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 th...
mjudsp/Tsallis
refs/heads/master
sklearn/model_selection/_split.py
21
""" The :mod:`sklearn.model_selection._split` module includes classes and functions to split the data based on a preset strategy. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Girsel <olivier.grisel@ensta.org> # Ragha...
mikemow/youtube-dl
refs/heads/master
youtube_dl/extractor/fivetv.py
139
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import int_or_none class FiveTVIE(InfoExtractor): _VALID_URL = r'''(?x) http:// (?:www\.)?5-tv\.ru/ (?: ...
lmazuel/azure-sdk-for-python
refs/heads/master
azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_parameters_py3.py
1
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
Athrun29/horizon
refs/heads/master
openstack_dashboard/test/integration_tests/pages/identity/projectspage.py
3
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
heke123/chromium-crosswalk
refs/heads/master
third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/wpt/wpt/tools/wptserve/wptserve/ranges.py
329
from utils import HTTPException class RangeParser(object): def __call__(self, header, file_size): prefix = "bytes=" if not header.startswith(prefix): raise HTTPException(416, message="Unrecognised range type %s" % (header,)) parts = header[len(prefix):].split(",") rang...
ptroja/spark2014
refs/heads/master
testsuite/gnatprove/tests/OA30-010__current_task_in_entry_body/test.py
842
from test_support import * prove_all()
cccfran/sympy
refs/heads/master
sympy/polys/monomials.py
24
"""Tools and arithmetics for monomials of distributed polynomials. """ from __future__ import print_function, division from textwrap import dedent from sympy.core import S, C, Symbol, Mul, Tuple, Expr, sympify from sympy.core.compatibility import exec_, iterable, xrange from sympy.polys.polyutils import PicklableWit...
kushalbhola/MyStuff
refs/heads/master
Practice/PythonApplication/env/Lib/site-packages/pandas/tests/indexes/timedeltas/test_construction.py
2
from datetime import timedelta import numpy as np import pytest import pandas as pd from pandas import Timedelta, TimedeltaIndex, timedelta_range, to_timedelta from pandas.core.arrays import TimedeltaArray import pandas.util.testing as tm class TestTimedeltaIndex: def test_verify_integrity_deprecated(self): ...
cademarkegard/airflow
refs/heads/master
airflow/contrib/plugins/metastore_browser/main.py
62
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
slongwang/selenium
refs/heads/master
py/selenium/webdriver/support/color.py
71
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
wwiitanen/Catlang
refs/heads/master
termcolor/termcolor.py
2
# coding: utf-8 # Copyright (c) 2008-2011 Volvox Development Team # # 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...
rlr/splice
refs/heads/master
migrations/old_versions/2732064ad441_.py
6
"""empty message Revision ID: 2732064ad441 Revises: 1e9d9b330237 Create Date: 2015-06-10 18:12:26.328127 """ # revision identifiers, used by Alembic. revision = '2732064ad441' down_revision = '1e9d9b330237' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
alexkau/foos
refs/heads/master
players/models.py
1
from django.db import models # Create your models here. class Player(models.Model): name = models.CharField(max_length=200) class Game(models.Model): Team team1 = class Game2v2(models.Model): player1_1 = Models.ForeignKey(Player) player1_2 = Models.ForeignKey(Player) player2_1 = Models.ForeignKey(Player) play...
jwalgran/otm-core
refs/heads/develop
opentreemap/otm1_migrator/migrations/0001_initial.py
9
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='MigrationEvent', fields=[ ('id', models.AutoFie...
homann/stand-browser
refs/heads/master
test/test_stand_browser_dockwidget.py
1
# coding=utf-8 """DockWidget test. .. 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. """ __author__ = ...
CubicERP/odoo
refs/heads/8.1
addons/website_forum_doc/models/documentation.py
368
# -*- coding: utf-8 -*- from openerp.osv import osv, fields class Documentation(osv.Model): _name = 'forum.documentation.toc' _description = 'Documentation ToC' _inherit = ['website.seo.metadata'] _order = "parent_left" _parent_order = "sequence, name" _parent_store = True def name_get(s...
apple/llvm-project
refs/heads/llvm.org/main
mlir/test/python/dialects/tosa.py
4
# RUN: %PYTHON %s from mlir.ir import * import mlir.dialects.tosa as tosa # Just make sure the dialect is populated with generated ops. assert tosa.AddOp
grahame/sedge
refs/heads/master
sedge/urlhandling.py
1
import os import re import urllib.request import urllib.parse import requests from .exceptions import SecurityException is_https = re.compile(r"^https:") is_file = re.compile(r"^file:") def get_contents(target, verify_ssl): """ read the contents of target, which might be a https or file URL, or just a lo...
NERC-CEH/jules-jasmin
refs/heads/master
job_runner/job_runner/tests/integration/test_job_service.py
1
""" # Majic # Copyright (C) 2014 CEH # # 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 pr...
bbc/kamaelia
refs/heads/master
Sketches/RJL/bittorrent/BitTorrent/BitTorrent/defer.py
5
# The contents of this file are subject to the BitTorrent Open Source License # Version 1.1 (the License). You may not copy or use this file, in either # source code or executable form, except in compliance with the License. You # may obtain a copy of the License at http://www.bittorrent.com/license/. # # Software di...
keras-team/keras-contrib
refs/heads/master
keras_contrib/layers/capsule.py
2
# -*- coding: utf-8 -*- from __future__ import absolute_import from keras import backend as K from keras import activations from keras import regularizers from keras import initializers from keras import constraints from keras.layers import Layer from keras_contrib.utils.test_utils import to_tuple class Capsule(Laye...
KontorConsulting/odoo
refs/heads/8.0
openerp/tools/graph.py
441
#!/usr/bin/env python # -*- 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 unde...
LarsMichelsen/pmatic
refs/heads/master
ccu_pkg/python/lib/python2.7/encodings/string_escape.py
587
# -*- coding: iso-8859-1 -*- """ Python 'escape' Codec Written by Martin v. Löwis (martin@v.loewis.de). """ import codecs class Codec(codecs.Codec): encode = codecs.escape_encode decode = codecs.escape_decode class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input, final=False): ...
joopert/home-assistant
refs/heads/dev
homeassistant/components/rainmachine/sensor.py
5
"""This platform provides support for sensor data from RainMachine.""" import logging from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from . import ( DATA_CLIENT, DOMAIN as RAINMACHINE_DOMAIN, PROVISION_SETTINGS, RESTRICTIONS_UNIVERSAL, ...
latlontude/oceanbase
refs/heads/master
oceanbase_0.4/tools/deploy/benchmark/benchmark.py
12
ob_user='admin' ob_password='admin' simon_host = '10.253.2.72' simon_port = 7466 simon_cluster = 'daily_perf_regression' cs_rows=10000 ups_rows=10000 test_threads=2 max_seconds=60 max_requests=100000000 test_mode='read' range_size = 0 point_query = 0 range_query = 0 range_sum_query = 0 range_order_query = 0 range...
Bajoo/client-pc
refs/heads/master
bajoo/gui/form/members_share_form.py
1
# -*- coding: utf-8 -*- import logging import wx import wx.dataview as dv from wx.lib.newevent import NewCommandEvent from ..translator import Translator from ..event_promise import ensure_gui_thread from ..base_view import BaseView from .base_form import BaseForm from ..validator import EmailValidator from ...commo...
VoigtLab/MIT-BroadFoundry
refs/heads/master
dialout-designs/bin/composite_sequences.py
1
#!/usr/bin/env python ''' Composite Part Sequences ======================== Script to generate the reference sequences for composite part pools. Usage: ------ python composite_sequences.py -R -p POOL_DESIGN_FILENAME -f PARTS_FASTA_FILENAME -i INVERSE_PRIMER_SEQS -L SELF_CIRC_SEQ > OUTPUT_FILENA...
EdLogan18/logan-repository
refs/heads/master
plugin.video.gdrive/resources/lib/kodi_common.py
3
''' Copyright (C) 2013-2015 ddurdle This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is di...
spasovski/zamboni
refs/heads/master
apps/translations/tests/test_models.py
2
# -*- coding: utf-8 -*- from contextlib import nested import django from django.conf import settings from django.db import connections, reset_queries from django.test.utils import override_settings from django.utils import translation from django.utils.functional import lazy import jinja2 import multidb from mock imp...
csulmone/gyp
refs/heads/master
test/make/gyptest-dependencies.py
344
#!/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 .d files and all.deps are properly generated. """ import TestGyp # .d files are only used by the make build. test = Test...
weblabdeusto/weblabdeusto
refs/heads/master
server/launch/sample_balanced2_concurrent_experiments/main_machine/lab_and_experiment2/experiment66/server_config.py
968
#!/usr/bin/env python #-*-*- encoding: utf-8 -*-*- weblab_xilinx_experiment_xilinx_device = 'FPGA' weblab_xilinx_experiment_port_number = 1 # This should be something like this: # import os as _os # xilinx_home = _os.getenv('XILINX_HOME') # if xilinx_home == None: # if _os.name == 'nt': # xilinx_home = r'C:...
EmoryUniversity/SATO
refs/heads/master
step_tear/simulatecerr.py
2
#! /usr/bin/python import sys import math def main(): for line in sys.stdin: sp =line.strip().split() print ' '.join(("set object rect from", sp[1] + "," + sp[2], "to", sp[3] + "," + sp[4])) sys.stdout.flush() if __name__ == '__main__': main()
AntouanK/rethinkdb
refs/heads/next
external/v8_3.30.33.16/testing/gmock/test/gmock_leak_test.py
779
#!/usr/bin/env python # # Copyright 2009, 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...
simonwydooghe/ansible
refs/heads/devel
test/units/modules/net_tools/test_hetzner_firewall.py
10
# (c) 2019 Felix Fontein <felix@fontein.de> # 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 import pytest from ansible.module_utils.hetzner import BASE_URL from ansible.modules.net_to...
sunqb/oa_qian
refs/heads/master
flask/Lib/encodings/cp949.py
816
# # cp949.py: Python Unicode Codec for CP949 # # Written by Hye-Shik Chang <perky@FreeBSD.org> # import _codecs_kr, codecs import _multibytecodec as mbc codec = _codecs_kr.getcodec('cp949') class Codec(codecs.Codec): encode = codec.encode decode = codec.decode class IncrementalEncoder(mbc.MultibyteIncrement...
aymeric-spiga/bibweb
refs/heads/master
demo.py
1
#! /usr/bin/env python import ads lk="demo.link" ads.makelink(n="Feynman",fn="Richard",ini="R.P.",name=lk) ads.makepage('feynman',\ retrieve = True,\ linkads = lk,\ listyear = range(2015,1900,-1),\ title = "<CENTER><H2><EM><font color='#B8860B;'>Richard Feynman's p...
enthought/etsproxy
refs/heads/master
enthought/mayavi/filters/cut_plane.py
1
# proxy module from __future__ import absolute_import from mayavi.filters.cut_plane import *
DailyActie/Surrogate-Model
refs/heads/master
01-codes/OpenMDAO-Framework-dev/openmdao.test/src/openmdao/test/nosetimer.py
1
""" :: This plugin provides test timings to identify which tests might be taking the most time. From this information, it might be useful to couple individual tests' nose's `--with-profile` option to profile problematic tests. This plugin is heavily influenced by nose's `xunit` plugin. ...
bcajes/litegraph
refs/heads/master
litegraph/components.py
1
from litegraph.interfaces import (IVertex, IEdge) from litegraph.fields import * from zope.interface import implements from zope.component import adapts from collections import defaultdict class Vertex(object): implements (IVertex) def __init__(self, vertex_id=None,...
PeterPetrik/QGIS
refs/heads/master
python/plugins/db_manager/db_plugins/data_model.py
18
# -*- coding: utf-8 -*- """ /*************************************************************************** Name : DB Manager Description : Database manager plugin for QGIS Date : May 23, 2011 copyright : (C) 2011 by Giuseppe Sucameli email : brush.tyler@...
blueboxgroup/neutron
refs/heads/master
neutron/plugins/cisco/extensions/_qos_view.py
50
# Copyright 2011 Cisco Systems, 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 requir...
niulinlnc/hr_biometric_machine-1
refs/heads/10.0
hr_zkteco_machine/zklib/zkworkcode.py
4
from struct import pack, unpack from datetime import datetime, date from zkconst import * def zkworkcode(self): """Start a connection with the time clock""" command = CMD_DEVICE command_string = 'WorkCode' chksum = 0 session_id = self.session_id reply_id = unpack('HHHH', self.data_recv[:8])[3]...
fzheng/codejam
refs/heads/master
lib/python2.7/site-packages/nose/plugins/collect.py
96
""" This plugin bypasses the actual execution of tests, and instead just collects test names. Fixtures are also bypassed, so running nosetests with the collection plugin enabled should be very quick. This plugin is useful in combination with the testid plugin (``--with-id``). Run both together to get an indexed list ...
robertwhaskell/smallearth
refs/heads/master
smallearth/smallearth/wsgi.py
1
""" WSGI config for smallearth project. 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
j2sol/ansible
refs/heads/devel
examples/scripts/yaml_to_ini.py
175
# (c) 2012, 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) any lat...
z0by/django
refs/heads/master
tests/migrations2/test_migrations_2/0001_initial.py
429
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("migrations", "0002_second")] operations = [ migrations.CreateModel( "OtherAuthor", [ ("id", mode...
smartfile/django-1.4
refs/heads/master
tests/regressiontests/admin_scripts/broken_app/models.py
259
from django.db import modelz
skycucumber/Messaging-Gateway
refs/heads/master
webapp/venv/lib/python2.7/site-packages/twisted/test/test_defer.py
23
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for L{twisted.internet.defer}. """ from __future__ import division, absolute_import import warnings import gc, traceback import re from twisted.python import failure, log from twisted.python.compat import _PY3 from twisted.intern...
wojciechtanski/robotframework
refs/heads/master
src/robot/running/dynamicmethods.py
5
# 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...
muadibbm/gini
refs/heads/master
backend/src/gloader/xml/xpath/Util.py
10
######################################################################## # # File Name: Util.py # # """ General Utilities for XPath apps. WWW: http://4suite.org/4XSLT e-mail: support@4suite.org Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved. See http://4suite.org/COPYRIGHT for ...
czq13/THUF35
refs/heads/master
Tools/autotest/pysim/aircraft.py
164
import math, util, rotmat, time import random from rotmat import Vector3, Matrix3 class Aircraft(object): '''a basic aircraft class''' def __init__(self): self.home_latitude = 0 self.home_longitude = 0 self.home_altitude = 0 self.ground_level = 0 self.frame_height = 0.0 ...
JingZhou0404/phantomjs
refs/heads/master
src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/steps/abstractstep.py
129
# Copyright (C) 2010 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 th...
li-ch/mind
refs/heads/master
SmartLearning/smartlearn.py
1
import learn as l import random #General information for Q-Learning. #A state is a list, where each entry in the list corresponds to a state feature. #For instance, if we use as state features the number of active flows in 3 links, the return value could be [32, 45, 75] #Be careful to use a fixed ordering for the stat...
OPENi-ict/ntua_demo
refs/heads/master
openiPrototype/openiPrototype/APIS/Activity/Nutrition/models.py
1
__author__ = 'mpetyx' from django.db import models from OPENiapp.APIS.Context.models import OpeniContextAwareModel class OpeniNutrition(OpeniContextAwareModel): # id is missing because it is the default url = models.TextField() object_type = models.TextField() service = models.TextField() From ...
t-miyamae/teuthology
refs/heads/master
teuthology/test/test_repo_utils.py
10
import logging import os import os.path from pytest import raises import shutil import subprocess from ..exceptions import BranchNotFoundError from .. import repo_utils from .. import parallel repo_utils.log.setLevel(logging.WARNING) class TestRepoUtils(object): src_path = '/tmp/empty_src' # online_repo_url ...
WANdisco/amplab-hive
refs/heads/trunk
metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py
3
# # Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TException, TApplicationException import fb303.FacebookService from ttypes import * from thrift.Thrift import TProcessor from thrift...
commial/miasm
refs/heads/master
test/arch/x86/unit/mn_pushpop.py
3
#! /usr/bin/env python2 import sys from asm_test import Asm_Test_16, Asm_Test_32 from miasm.core.utils import pck16, pck32 def init_regs(test): test.myjit.cpu.EAX = 0x11111111 test.myjit.cpu.EBX = 0x22222222 test.myjit.cpu.ECX = 0x33333333 test.myjit.cpu.EDX = 0x44444444 test.myjit.cpu.ESI = 0x5...
dagurval/bitcoinxt
refs/heads/master
qa/rpc-tests/test_framework/murmurhash.py
2
# murmurhash.py # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # This python code was copied from # https://raw.githubusercontent.com/jgarzik/python-bitcoinlib/417afe9e5868430e620301131f098645c081a90c/bitcoin/hash.py impo...
lukexyz/Market-Analysis-Project
refs/heads/master
analysis.py
1
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np from sklearn.linear_model import LinearRegression from sklearn.cross_validation import train_test_split class MarketValue(object): def __init__(self, df): print('Graphing Market Analysis...') # Create ML m...
neogis-de/PPPP_utilities
refs/heads/master
postgis/rc_py_generate_bezier_curve.py
2
# -*- coding: utf-8 -*- """ Thales IGN @author Lionel Atty, Rémi Cura 05/2015 """ import numpy as np from math import pi import shapely def input_geom_to_np(binary_multipoint_geom,in_server): """convert a multipoint in wbk to nummpy array""" from shapely import wkb return np.array( wkb.loads(binary_mul...
dparlevliet/zelenka-report-storage
refs/heads/master
server-local/twisted/runner/__init__.py
31
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Twisted runner: run and monitor processes Maintainer: Andrew Bennetts classic inetd(8) support: Future Plans: The basic design should be final. There are some bugs that need fixing regarding UDP and Sun-RPC support. Perhaps some day xinetd...