text
stringlengths
5.09k
178k
domain
stringclasses
106 values
#!/usr/bin/python import os import sys from stat import * import zmq import netifaces import threading import time import math import socket import signal import argparse from urlparse import urlparse import shutil import subprocess import ConfigParser import linuxcnc import preview from machinekit import service from...
codeparrot/github-code-clean
# Copyright 2012 OpenStack Foundation # 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 requi...
codeparrot/github-code-clean
import datetime from django.utils import timezone import mock import pytest import pytz import random import string from framework.celery_tasks import handlers from framework.exceptions import PermissionsError from framework.sessions import set_session from website.project.model import has_anonymous_link from website....
codeparrot/github-code-clean
# Copyright (c) 2013 VMware, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. 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 # # U...
codeparrot/github-code-clean
"""Wrapper for Xi Generated with: tools/genwrappers.py xinput Do not modify this file. """ __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('Xi') _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64'): # Some bu...
codeparrot/github-code-clean
# Copyright (c) 2009 by Kenjiro Taura. All rights reserved. # Copyright (c) 2008 by Kenjiro Taura. All rights reserved. # Copyright (c) 2007 by Kenjiro Taura. All rights reserved. # Copyright (c) 2006 by Kenjiro Taura. All rights reserved. # Copyright (c) 2005 by Kenjiro Taura. All rights reserved. # # THIS MATERIAL IS...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'User.session_nonce' db.add_column( 'auth_user'...
codeparrot/github-code-clean
from __future__ import print_function from statsmodels.compat.python import iterkeys, lzip, range, reduce import numpy as np from scipy import stats from statsmodels.base.data import handle_data from statsmodels.tools.data import _is_using_pandas from statsmodels.tools.tools import recipr, nan_dot from statsmodels.stat...
codeparrot/github-code-clean
from sqlalchemy import bindparam from sqlalchemy import exc from sqlalchemy import func from sqlalchemy import insert from sqlalchemy import inspect from sqlalchemy import literal_column from sqlalchemy import null from sqlalchemy import or_ from sqlalchemy import select from sqlalchemy import testing from sqlalchemy i...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2015, Adrian Sampson. # # 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 t...
codeparrot/github-code-clean
# # Symbol Table # from __future__ import absolute_import import copy import re from .Errors import warning, error, InternalError from .StringEncoding import EncodedString from . import Options, Naming from . import PyrexTypes from .PyrexTypes import py_object_type, unspecified_type from .TypeSlots import \ pyf...
codeparrot/github-code-clean
##################################################################### # -*- coding: utf-8 -*- # # # # Frets on Fire X (FoFiX) # # Copyright (C) 2006 Sami Kyöstilä ...
codeparrot/github-code-clean
"""Utilities for saving/loading Checkpointable objects.""" # Copyright 2017 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.apa...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import io import sys import os import re import itertools import warnings import weakref from operator import itemgetter, index as opindex import numpy as np from . import format from ._datasource import DataSource from numpy.core.multiarray import pack...
codeparrot/github-code-clean
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2014 IBM Corp. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you...
codeparrot/github-code-clean
# # (C) Copyright 2003-2007 Hewlett-Packard Development Company, L.P. # # This program 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 of the # License. # # This program is distribut...
codeparrot/github-code-clean
#!/usr/bin/python from threading import Thread, Condition, currentThread from threading import RLock as Lock import re import time import sys import string import socket import os import platform import traceback import ssl import glob from collections import deque, OrderedDict import chardet import codecs import new i...
codeparrot/github-code-clean
import json import logging import numbers from datetime import date from datetime import datetime from datetime import timedelta import pytz import requests import six from pyecobee.ecobee_object import EcobeeObject from pyecobee.enumerations import AckType from pyecobee.enumerations import FanMode from pyecobee.enum...
codeparrot/github-code-clean
"""Tests for the niftoaster script""" import os import os.path import nose.tools # if nose refuses to show the diffs, uncomment the next line #nose.tools.assert_equal.im_self.maxDiff = None from tests.test_nif import call_niftoaster @nose.tools.raises(SystemExit) # --help uses sys.exit() def test_help(): call_ni...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unicodedata from fontTools.misc.py23 import unichr _scriptsText = """ # Scripts-9.0.0.txt # Date: 2016-03-02, 18:55:13 GMT # © 2016 Unicode®, Inc. # Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other count...
codeparrot/github-code-clean
# 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 may ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright (C) 2005-2019 Francisco José Rodríguez Bogado, # # Diego Muñoz Escalante. # # (pacoqueen@users.sourceforge.ne...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import print_function import sys, os, unittest import socket, ctypes, errno import cpylmnl as mnl import cpylmnl.linux.netlinkh as netlink import cpylmnl.linux.netfilter.nfnetlinkh as nfnl import cpylmnl.linux.netfilter.nf_conntrack_commonh as nfctcm import cpylmnl.linux.netfi...
codeparrot/github-code-clean
# 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 Li...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.5.1) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x48\xcc\ \xff\ \xd8\xff\xe0\x00\x10\x4a\x46\x49\x46\x00\x01\x01\x01\x00\x48\x00\ \x48\x00\x00\xf...
codeparrot/github-code-clean
#!/usr/bin/python import zmq from PyQt4 import QtCore, QtGui, QtSql import os import sys import tempfile import time import subprocess import simplejson import pickle from os.path import expanduser home = expanduser("~") dirSelf = os.path.dirname(os.path.realpath(__file__)) sys.path.append(dirSelf.rstrip(os.sep).rstr...
codeparrot/github-code-clean
from django.contrib.auth import models as auth_models from rest_framework.test import APIClient import pytest import json from django.core.urlresolvers import reverse from barbados.barbadosweb.test_fixtures import * @pytest.fixture def harbourmaster_user(): user = tests.UserFactory.create() user.groups.add(a...
codeparrot/github-code-clean
from __future__ import print_function import abc import math import itertools import os import re import shutil import sys import time import traceback import pexpect import fnmatch from pymavlink import mavwp, mavutil from pysim import util, vehicleinfo # a list of pexpect objects to read while waiting for # messag...
codeparrot/github-code-clean
# This file is part of Booktype. # Copyright (c) 2012 Aleksandar Erkalovic <aleksandar.erkalovic@sourcefabric.org> # # Booktype 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 Foundation, either version 3 of the Li...
codeparrot/github-code-clean
# -*- coding:Utf-8 -*- """ Body Class =========== This class implements the body model .. autosummary:: :toctree: /generated Body.__init__ Body.__repr__ Body.load Body.center Body.posvel Body.settopos Body.setccs Body.setdcs Body.setacs Body.loadC3D Body.plot3d Bo...
codeparrot/github-code-clean
# Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright 2012 Varnish Software AS # # 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 ...
codeparrot/github-code-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
# Copyright 2012 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
codeparrot/github-code-clean
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Views tests for the OSF.""" from __future__ import absolute_import import datetime as dt from rest_framework import status as http_status import json import time import unittest from future.moves.urllib.parse import quote from flask import request import mock import ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- try: # Python 2.7 from collections import OrderedDict except: # Python 2.6 from gluon.contrib.simplejson.ordered_dict import OrderedDict from gluon import current from gluon.html import * from gluon.storage import Storage from s3 import ICON, S3DataListLayout, s3_unicode, S3SQ...
codeparrot/github-code-clean
from Screen import Screen from ServiceScan import ServiceScan from Components.config import config, ConfigSubsection, ConfigSelection, ConfigYesNo, ConfigInteger, getConfigListEntry, ConfigSlider, ConfigEnableDisable, ConfigFloat from Components.ActionMap import NumberActionMap, ActionMap from Components.Sources.Static...
codeparrot/github-code-clean
# -*- 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...
codeparrot/github-code-clean
import numpy as NP import numpy.ma as MA import scipy as SP from scipy import interpolate from skimage import img_as_float import skimage.morphology as morphology from skimage.filters import median from skimage.filters.rank import mean from skimage.restoration import unwrap_phase import astropy.convolution as CONV impo...
codeparrot/github-code-clean
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Pently audio engine # Music assembler # # Copyright 2015-2017 Damian Yerrick # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use of this software. # # Pe...
codeparrot/github-code-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # This library is free software, distributed under the terms of # the GNU Lesser General Public License Version 2. # See the COPYING file included in this archive # # The docstrings in this module contain epytext markup; API documentation # may be created by processing this...
codeparrot/github-code-clean
# # Custom partitioning classes. # # Copyright (C) 2012-2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is d...
codeparrot/github-code-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of cjklib. # # cjklib 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 3 of the License, or # (at your option) any later versi...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
# # 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...
codeparrot/github-code-clean
# Copyright (c) 2010-2012 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/LICENSE-2.0 # # Unless required by applicable law or agree...
codeparrot/github-code-clean
# Copyright (c) 2014-2020 The Khronos Group Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and/or associated documentation files (the "Materials"), # to deal in the Materials without restriction, including without limitation # the rights to use, copy, modify, m...
codeparrot/github-code-clean
# Copyright (C) 2001-2010 Python Software Foundation # Contact: email-sig@python.org # email package unit tests import re import time import base64 import unittest import textwrap from io import StringIO, BytesIO from itertools import chain from random import choice try: from threading import Thread except Import...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import print_function # pylint: disable-msg=W0612,E1101 from copy import deepcopy from datetime import datetime, timedelta, time import sys import operator import re import csv import nose import functools import itertools from itertools import product, permutations from distuti...
codeparrot/github-code-clean
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## ...
codeparrot/github-code-clean
from __future__ import print_function import re, sys, datetime, csv, pkgutil from . import net, shared try: from io import StringIO except ImportError: from cStringIO import StringIO def pkgdata(name): data = pkgutil.get_data("pythonwhois", name) if sys.version_info < (3, 0): return data else: return data.d...
codeparrot/github-code-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
codeparrot/github-code-clean
from __future__ import print_function #!/usr/bin/python # -*- coding: utf-8 -*- """ Functions for KPP input/output file Processing Notes ------- These functions are specifically for GEOS-Chem versions v11-1g and later. They have been tested on v11-2d-R1,v11-2d-R2, v11-2d-R3, v12.0, v12.1, v12.2., v12.3 ... """ impor...
codeparrot/github-code-clean
# Orca # # Copyright 2004-2009 Sun Microsystems Inc. # Copyright 2010 Joanmarie Diggs # # 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, or (at your op...
codeparrot/github-code-clean
#!/usr/bin/python ####################################################### # Xpath tool v2.0 - Automated Xpath Sql Injection # # Author: Nasir khan (r0ot h3x49) # ####################################################### import os, re from Payload.GeomtPayloads import * from _compat import ( ...
codeparrot/github-code-clean
# # Copyright (c) 2016 NEC Corporation. # 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 re...
codeparrot/github-code-clean
# Copyright 2016 Joel Dunham # # 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 writi...
codeparrot/github-code-clean
""" Test script for doctest. """ from test import support from test.support import import_helper from test.support import os_helper import doctest import functools import os import sys import importlib import importlib.abc import importlib.util import unittest import tempfile import shutil import types import contextl...
codeparrot/github-code-clean
#!/usr/bin/env python """ Copyright (c) 2015, Nagoya University 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 ...
codeparrot/github-code-clean
from __future__ import print_function, division import decimal import fractions import math import re as regex from collections import defaultdict from .core import C from .containers import Tuple from .sympify import converter, sympify, _sympify, SympifyError from .singleton import S, Singleton from .expr import Exp...
codeparrot/github-code-clean
""" numpy.ma : a package to handle missing or invalid values. This package was initially written for numarray by Paul F. Dubois at Lawrence Livermore National Laboratory. In 2006, the package was completely rewritten by Pierre Gerard-Marchant (University of Georgia) to make the MaskedArray class a subclass of ndarray,...
codeparrot/github-code-clean
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
codeparrot/github-code-clean
"""HTML form handling for web clients. ClientForm is a Python module for handling HTML forms on the client side, useful for parsing HTML forms, filling them in and returning the completed forms to the server. It has developed from a port of Gisle Aas' Perl module HTML::Form, from the libwww-perl library, but the inte...
codeparrot/github-code-clean
""" SALTS XBMC Addon Copyright (C) 2014 tknorris 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. T...
codeparrot/github-code-clean
'''CTS: Cluster Testing System: Tests module There are a few things we want to do here: ''' from __future__ import absolute_import from __future__ import print_function from six.moves import range from six.moves import input __copyright__ = ''' Copyright (C) 2000, 2001 Alan Robertson <alanr@unix.sh> Licensed under ...
codeparrot/github-code-clean
import warnings from copy import copy import capstone as cs import collections import re import struct from .abstractcpu import ( Cpu, CpuException, Interruption, InstructionNotImplementedError, RegisterFile, Abi, SyscallAbi, Operand, instruction, ) from .arm import HighBit, Armv7O...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # This file is part of Cockpit. # # Copyright (C) 2013 Red Hat, Inc. # # Cockpit 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, or # (at your...
codeparrot/github-code-clean
# Copyright (c) 2010-2012 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/LICENSE-2.0 # # Unless required by applicable law or agree...
codeparrot/github-code-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
codeparrot/github-code-clean
""" Create SQL statements for QuerySets. The code in here encapsulates all of the SQL construction so that QuerySets themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get ...
codeparrot/github-code-clean
# Copyright (C) 2006-2011 Canonical Ltd # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distribute...
codeparrot/github-code-clean
# Copyright (c) 2013 OpenStack Foundation # 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 ...
codeparrot/github-code-clean
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may #...
codeparrot/github-code-clean
""" mbed SDK Copyright (c) 2011-2014 ARM Limited 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 wr...
codeparrot/github-code-clean
# Copyright 2012 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
codeparrot/github-code-clean
"""Test whether all elements of cls.args are instances of Basic. """ # NOTE: keep tests sorted by (module, class name) key. If a class can't # be instantiated, add it here anyway with @SKIP("abstract class) (see # e.g. Function). import os import re import warnings import io from sympy import (Basic, S, symbols, sqr...
codeparrot/github-code-clean
#!/usr/bin/env python # __version__ = '0.11.2803' import socket import re import urllib import urllib2 from optparse import OptionParser import hashlib import os import sys import random import paramiko from paramiko import SSHClient from time import sleep from cm_api.api_client import ApiResource, ApiException fro...
codeparrot/github-code-clean
__VERSION__="ete2-2.2rev1056" # -*- coding: utf-8 -*- # #START_LICENSE########################################################### # # # This file is part of the Environment for Tree Exploration program # (ETE). http://ete.cgenomics.org # # ETE is free software: you can redistribute it and/or modify it # under the t...
codeparrot/github-code-clean
#datplot_ui #by Blaise Thompson - blaise@untzag.com # #a program to plot .dat files (file formats as saved by COLORS) #with a user friendly interface and all the 'normal' features built in # #built around fscolors.py, by Dan Kohler #import general python pakages-------------------------------------------------- #os i...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # Created: Thu Mar 11 23:12:01 2010 # by: The Resource Compiler for PyQt (Qt v4.5.2) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x02\x3f\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x...
codeparrot/github-code-clean
import sys import os import xml.dom.minidom from xml.dom.minidom import getDOMImplementation from xml.dom.minidom import parseString import re import textwrap import xml.etree.ElementTree as ET import time import usage import utils import constraint PACEMAKER_WAIT_TIMEOUT_STATUS = 62 RESOURCE_RELOCATE_CONSTRAINT_PREF...
codeparrot/github-code-clean
import os import platform from twisted.internet import defer from . import data from p2pool.util import math, pack, jsonrpc @defer.inlineCallbacks def check_genesis_block(bitcoind, genesis_block_hash): try: yield bitcoind.rpc_getblock(genesis_block_hash) except jsonrpc.Error_for_code(-5): def...
codeparrot/github-code-clean
from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse from rest_framework import serializers from rest_framework import generics from rest_framework import status from rest_framework.generics import GenericAPIView from core.models import *...
codeparrot/github-code-clean
# # Copyright 2008 The ndb 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 applicable l...
codeparrot/github-code-clean
# # Copyright (C) 2003-2013 Greg Landrum and Rational Discovery LLC # All Rights Reserved # """ This is a rough coverage test of the python wrapper it's intended to be shallow, but broad """ from __future__ import print_function import os,sys,tempfile,gzip import unittest, doctest from rdkit import RDConfig...
codeparrot/github-code-clean
from datetime import datetime, timedelta import difflib import json from django.conf import settings from django.contrib.sites.models import Site from django.core import mail from django.core.cache import cache from django.utils.encoding import smart_str import mock from bleach import clean from nose import SkipTest ...
codeparrot/github-code-clean
# -*- coding: utf8 -*- #*************************************************************************** #* * #* Copyright (c) 2009, 2010 * #* Yorik van Havre <yorik@uncreated.net>, Ken Cline <cline@frii...
codeparrot/github-code-clean
# Copyright 2015 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
codeparrot/github-code-clean
""" Acceptance tests for studio related to the outline page. """ import json from datetime import datetime, timedelta import itertools from pytz import UTC from bok_choy.promise import EmptyPromise from nose.plugins.attrib import attr from common.test.acceptance.pages.studio.settings_advanced import AdvancedSettingsPa...
codeparrot/github-code-clean
# encoding: UTF-8 from collections import OrderedDict #重传方式 RESUME_TYPE = OrderedDict() #ERR-错误信息 DFITCSECRspInfoField = OrderedDict() DFITCSECRspInfoField['requestID'] = 'long' DFITCSECRspInfoField['sessionID'] = 'long' DFITCSECRspInfoField['accountID'] = 'string' DFITCSECRspInfoField['er...
codeparrot/github-code-clean
from __future__ import division, absolute_import, print_function import sys import pytest import numpy as np import numpy.core._multiarray_tests as _multiarray_tests from numpy import array, arange, nditer, all from numpy.testing import ( assert_, assert_equal, assert_array_equal, assert_raises, HAS_REFCOUNT,...
codeparrot/github-code-clean
from __future__ import unicode_literals from operator import attrgetter import warnings from django.apps import apps from django.core import checks from django.core.exceptions import FieldDoesNotExist from django.db import connection, connections, router, transaction from django.db.backends import utils from django.d...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## ...
codeparrot/github-code-clean
from pyroSAR.gamma.auxil import process def adapt_filt(int, sm, width, low_SNR_thr='-', filt_width='-', xmin='-', xmax='-', ymin='-', ymax='-', logpath=None, outdir=None, shellscript=None): """ | Adaptive bandpass filtering of interferograms | Copyright 2016, Gamma Remote Sensing, v3.5 clw ...
codeparrot/github-code-clean
# coding: utf-8 import datetime import decimal import importlib import operator import os import sqlalchemy as sa from sqlalchemy import and_ from sqlalchemy import ARRAY from sqlalchemy import BigInteger from sqlalchemy import bindparam from sqlalchemy import BLOB from sqlalchemy import BOOLEAN from sqlalchemy import...
codeparrot/github-code-clean
#!/usr/bin/env python '''unit testing code for pysam. Execute in the :file:`tests` directory as it requires the Makefile and data files located there. ''' import unittest import os import shutil import sys import collections import subprocess import logging import array if sys.version_info.major >= 3: from io imp...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals import io import re import os import sys import math # required for ordinal date calculations import logging import xml.etree.ElementTree as ET from functools import reduce import sys if sys.version[0] == '2': r...
codeparrot/github-code-clean
#!/usr/bin/env python # Copyright (c) 2011-2019, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. """ Read IRIS Data Format ^^^^^^^^^^^^^^^^^^^^^ Reads data from Vaisala's IRIS data formats IRIS (Vaisala Sigmet Interactive Radar Information System) See M211318EN-F Programming...
codeparrot/github-code-clean