text
stringlengths
5.09k
178k
domain
stringclasses
106 values
# 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
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
codeparrot/github-code-clean
"""Pipeline.py - an ordered set of modules to be executed CellProfiler is distributed under the GNU General Public License. See the accompanying file LICENSE for details. Copyright (c) 2003-2009 Massachusetts Institute of Technology Copyright (c) 2009-2015 Broad Institute All rights reserved. Please see the AUTHORS ...
codeparrot/github-code-clean
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
codeparrot/github-code-clean
''' Treadmill Animal Tracking and Feedback Control (c) Andrew J. Spence Structure and Motion Lab Royal Veterinary College 11 Mar 2013 aspence at rvc dot ac dot uk www.spencelab.com $ Revision 0.5 Alpha $ The code is released under the GNU GPL Version 3. You should have recieved a copy of this license with this code, i...
codeparrot/github-code-clean
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: TFG # Author: David Candal # Description: SDR ZigBee # Generated: Sat Oct 15 23:07:57 2016 ################################################## if __name__ == '__main__': import ct...
codeparrot/github-code-clean
from __future__ import division from sympy import (Add, Basic, S, Symbol, Wild, Float, Integer, Rational, I, sin, cos, tan, exp, log, nan, oo, sqrt, symbols, Integral, sympify, WildFunction, Poly, Function, Derivative, Number, pi, NumberSymbol, zoo, Piecewise, M...
codeparrot/github-code-clean
# Copyright(C) 2011,2012,2013,2014 by Abe developers. # DataStore.py: back end database access for Abe. # 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 Foundation, either version 3 of the # License...
codeparrot/github-code-clean
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, Inc. # Copyright (c) 2011 Citrix Systems, Inc. # 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. Yo...
codeparrot/github-code-clean
from __future__ import division, print_function, absolute_import import itertools import warnings from numpy.testing import (assert_, assert_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_array_equal, dec, TestCase, run_module_suite, assert_allclose) from numpy import mgr...
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
# # 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 us...
codeparrot/github-code-clean
# # Copyright (c) SAS Institute Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
codeparrot/github-code-clean
#!/usr/bin/env python u""" notation3.py - Standalone Notation3 Parser Derived from CWM, the Closed World Machine Authors of the original suite: * Dan Connolly <@@> * Tim Berners-Lee <@@> * Yosi Scharf <@@> * Joseph M. Reagle Jr. <reagle@w3.org> * Rich Salz <rsalz@zolera.com> http://www.w3.org/2000/10/swap/notation3....
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
# -*- coding: utf-8 -*- """ This is the common settings file, intended to set sane defaults. If you have a piece of configuration that's dependent on a set of feature flags being set, then create a function that returns the calculated value based on the value of FEATURES[...]. Modules that extend this one can change th...
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 use ...
codeparrot/github-code-clean
#!/usr/bin/env python ##===--- fix_includes.py - rewrite source files based on iwyu output ------===## # # The LLVM Compiler Infrastructure # # This file is distributed under the University of Illinois Open Source # License. See LICENSE.TXT for details. # ##===--------------------------------------...
codeparrot/github-code-clean
from __future__ import unicode_literals import datetime import re from datetime import date from decimal import Decimal from django import forms from django.core.exceptions import ImproperlyConfigured from django.db import models from django.forms.models import ( BaseModelFormSet, _get_foreign_key, inlineformset_...
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 us...
codeparrot/github-code-clean
# Natural Language Toolkit: Drawing utilities # # Copyright (C) 2001-2012 NLTK Project # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT """ Tools for graphically displaying and interacting with the objects and processing classes defined by...
codeparrot/github-code-clean
#----------------------------------------------------------------------------- # ply: yacc.py # # Author(s): David M. Beazley (dave@dabeaz.com) # Modifications for pyglet by Alex Holkner (alex.holkner@gmail.com) (<ah>) # Modifications for ctypesgen by Tim Maxwell (timmaxw@gmail.com) (<tm>) # # Copyright (C) 2001-2006, ...
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 # ============================================================================================= # MODULE DOCSTRING # ============================================================================================= """ Molecular chemical entity representation and routines to interface with cheminform...
codeparrot/github-code-clean
"""JSON implementations of assessment.authoring sessions.""" # pylint: disable=no-init # Numerous classes don't require __init__. # pylint: disable=too-many-public-methods,too-few-public-methods # Number of methods are defined in specification # pylint: disable=protected-access # Access to protected method...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright (C) 2009, 2010, 2012 Google Inc. All rights reserved. # Copyright (C) 2009 Torch Mobile Inc. # Copyright (C) 2009, 2013 Apple Inc. All rights reserved. # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) # # Redistribution and use in source and binary forms, with or without ...
codeparrot/github-code-clean
import math import random import bpy,bmesh from mathutils import * from mathutils.noise import * from math import * global dimX,dimY, NORMFAC BICUBIC = False ## don't make True not enabled at the moment NORMFAC = 1 dimX = 1024 dimY = 1024 floodn = .01 ## normalized flood cutoff value mountn = .5 ## normalized mount c...
codeparrot/github-code-clean
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: https://sick-rage.github.io # # This file is part of SickRage. # # SickRage is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the L...
codeparrot/github-code-clean
# coding: utf-8 import wx import dataset import xlsxwriter from xlsxwriter.workbook import Workbook import xlwt import tagtool import codecs import csv import csvkit from stuf import stuf # import the newly created GUI file import JukuPlanner import subprocess import os import sys import glob import funzioni import cal...
codeparrot/github-code-clean
# coding: utf-8 from __future__ import unicode_literals import itertools import json import os.path import re import time import traceback from .common import InfoExtractor, SearchInfoExtractor from ..jsinterp import JSInterpreter from ..swfinterp import SWFInterpreter from ..compat import ( compat_chr, com...
codeparrot/github-code-clean
import shutil, time, os, sys, json, tempfile, copy, shlex, atexit, subprocess, hashlib, cPickle, re, errno from subprocess import Popen, PIPE, STDOUT from tempfile import mkstemp from distutils.spawn import find_executable import jsrun, cache, tempfiles import response_file import logging, platform, multiprocessing # ...
codeparrot/github-code-clean
# Lint as: python2, python3 # 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.apache.org/licenses/LICENSE-2.0 # ...
codeparrot/github-code-clean
# Copyright 2021 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
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
# Copyright (c) 1999-2007 Gary Strangman; All Rights Reserved. # # 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...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- import datetime import hashlib import itertools import json import operator import os import re import time import urlparse import uuid from math import log10 from django.conf import settings from django.core.cache import cache from django.core.exceptions import ObjectDoesNotExist from django.c...
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 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 use ...
codeparrot/github-code-clean
from collections import defaultdict import random from operator import gt from sympy.core.decorators import deprecated from sympy.core import Basic, C from sympy.utilities.exceptions import SymPyDeprecationWarning # this is the logical location of these functions from sympy.core.compatibility import ( as_int, com...
codeparrot/github-code-clean
# 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...
codeparrot/github-code-clean
#._cv_part guppy.heapy.UniSet import guppy class UniSet(object): __slots__ = '_hiding_tag_', 'fam', '_origin_' _help_url_ = 'heapy_UniSet.html#heapykinds.UniSet' _instahelp_ = '' _doc_nodes = """nodes: ImmNodeSet The actual objects contained in x. These are called nodes because they are treated wit...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Python twisted server, implements an HTTP socket-server and command queue to execute python commands, parse XTSM, and manage data in user-specific contexts. Created on Thu May 16 18:24:40 2013 This software is described at https://amo.phys.psu.edu/GemelkeLabWiki/index.php/Pyth...
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 us...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Objects representing various types of MediaWiki, including Wikibase, pages. This module also includes objects: * Link: an internal or interwiki link in wikitext. * Revision: a single change to a wiki page. * Property: a type of semantic data. * Claim: an instance of a semantic assertion. ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ MIT License Copyright (c) 2017 Igor Kroitor 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,...
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
""" Interfaces to the QEMU monitor. :copyright: 2008-2010 Red Hat Inc. """ from __future__ import division import logging import os import re import select import socket import threading import time import six try: import json except ImportError: logging.warning("Could not import json module. " ...
codeparrot/github-code-clean
# Copyright 2013 Sean Kelleher. All rights reserved. # Use of this source code is governed by a GPL # license that can be found in the LICENSE file. from pygme.cpu import reg8, reg16, reg_flag class Flags: def __init__(self): self.z = reg_flag.RegFlag("Z") self.n = reg_flag.RegFlag("N") ...
codeparrot/github-code-clean
#!/usr/bin/python3 # -*- coding: utf-8 -*- '''Pychemqt, Chemical Engineering Process simulator Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@gmail.com> 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 Softwa...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import base64 import hashlib import hmac import json import phonenumbers import plivo import pycountry import pytz import six import time import requests from collections import defaultdict from datetime import datetime, ...
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
# # 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
from collections import Counter, defaultdict, deque from collections.abc import Sequence from functools import partial, wraps from heapq import merge from itertools import ( combinations, chain, compress, count, cycle, dropwhile, groupby, islice, repeat, starmap, takewhile, ...
codeparrot/github-code-clean
(-1.151277918489523357e-02+1.661384573948669329e+40j) (-1.151277918489523357e-02+1.661384573948669329e+40j) (-1.151277918489523357e-02+1.661384573948669329e+40j) (-1.151277918489523357e-02+1.661384573948669329e+40j) (-1.151277918489523357e-02+1.661384573948669329e+40j) (-1.151277918489523357e-02+1.661384573948669...
codeparrot/github-code-clean
from rply import ParserGenerator from hippy.lexer import PRECEDENCES, ALL_RULES, BaseLexer, Lexer from hippy import consts from rpython.rlib.objectmodel import specialize, we_are_translated from hippy.ast import ( Block, Assignment, RefAssignment, Stmt, ConstantInt, BinOp, Variable, NamedVariable, ConstantStr, ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # # Copyright (C) 2009, 2010, 2012 Google Inc. All rights reserved. # Copyright (C) 2009 Torch Mobile Inc. # Copyright (C) 2009, 2013 Apple Inc. All rights reserved. # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) # # Redistribution and use in source and binary forms, with or without ...
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
<<<<<<< HEAD <<<<<<< HEAD """Test the arraymodule. Roger E. Masse """ import unittest from test import support import weakref import pickle import operator import io import math import struct import sys import warnings import array from array import _array_reconstructor as array_reconstructor try: # Try to de...
codeparrot/github-code-clean
import numpy import scipy import theano from theano import gof, scalar, tensor from theano.compat import izip from theano.tensor import blas from theano.tensor.opt import register_specialize, register_canonicalize from theano.sparse import (CSC, CSR, csm_properties, csm_grad, usmm, csm_indic...
codeparrot/github-code-clean
# configobj.py # A config file reader/writer that supports nested sections in config files. # Copyright (C) 2005-2014: # (name) : (email) # Michael Foord: fuzzyman AT voidspace DOT org DOT uk # Nicola Larosa: nico AT tekNico DOT net # Rob Dennis: rdennis AT gmail DOT com # Eli Courtwright: eli AT courtwright DOT org #...
codeparrot/github-code-clean
# Copyright (C) 2006 Steve Conklin <sconklin@redhat.com> # This file is part of the sos project: https://github.com/sosreport/sos # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # version 2 of the GNU General Public Lic...
codeparrot/github-code-clean
########################################################################### # # Copyright 2004 Donour Sizemore (donour@uchicago.edu) # Copyright 2009 Secons Ltd. (www.obdtester.com) # Copyright 2014 Francisco Ruiz # # This file is part of pyOBD. # # pyOBD is free software; you can redistribute it and/or modify # it und...
codeparrot/github-code-clean
#!/usr/bin/env python # coding=utf-8 # # Bombman - free and open-source Bomberman clone # # Copyright (C) 2016 Miloslav Číž # # 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 ...
codeparrot/github-code-clean
# Modules importing from math import * from random import randint from random import choice import copy import time ########################################################################################### def scenario(p): # Declare global variables global profPeriod global profSubject global sbjPeriod global s...
codeparrot/github-code-clean
# This file is part of MSMTools. # # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER) # # MSMTools 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 ...
codeparrot/github-code-clean
import collections.abc import copy import datetime import decimal import operator import uuid import warnings from base64 import b64decode, b64encode from functools import partialmethod, total_ordering from django import forms from django.apps import apps from django.conf import settings from django.core import checks...
codeparrot/github-code-clean
from __future__ import unicode_literals import logging import shlex import subprocess from collections import namedtuple from .main import special_command, RAW_QUERY TableInfo = namedtuple( "TableInfo", [ "checks", "relkind", "hasindex", "hasrules", "hastriggers", ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- from __future__ import print_function import nose from numpy.testing.decorators import slow from datetime import datetime from numpy import nan from pandas import date_range,bdate_range, Timestamp from pandas.core.index import Index, MultiIndex, Int64Index from pandas.core.api import Categori...
codeparrot/github-code-clean
from __future__ import division """Diff Match and Patch Copyright 2006 Google Inc. http://code.google.com/p/google-diff-match-patch/ 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.a...
codeparrot/github-code-clean
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # # License: BSD (3-clause) import numpy as np import os import os.path as op from scipy import sparse, linalg from copy import deepcopy from .io.constants import FIFF from .io.tree import dir...
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 (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
# =========================================================================== # eXe # Copyright 2004-2006, University of Auckland # Copyright 2004-2009 eXe Project, http://eXeLearning.org/ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as...
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
#!/usr/bin/env python # pep8.py - Check Python source code formatting, according to PEP 8 # Copyright (C) 2006-2009 Johann C. Rocholl <johann@rocholl.net> # Copyright (C) 2009-2014 Florent Xicluna <florent.xicluna@gmail.com> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this soft...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'G:\WorkDir\gas-sensing_resistors\system_set.ui' # # Created: Sat Mar 05 20:54:17 2016 # by: PyQt4 UI code generator 4.11.3 # # WARNING! All changes made in this file will be lost! import sys from PyQt4 import QtCore, QtGui from AT_mplCa...
codeparrot/github-code-clean
import logging import sys from itertools import chain from django import forms from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.forms import Select, model_to_dict from django.utils.datastructures i...
codeparrot/github-code-clean
from exception import ParserException from device import Firewall, Gateway, FirewallInterface from security import ACL, InterfaceACL, SecurityZone, SecurityConduit, ConduitFirewallArchitecture, RuleInteraction from enums import RuleOperation, RuleInteractionType, GraphAttribute, SecurityElement, ServiceProtocol, RuleEf...
codeparrot/github-code-clean
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides objects describing the basic parameters of the pseudopotentials used in Abinit, and a parser to instantiate pseudopotential objects.. """ import abc import collections import json impor...
codeparrot/github-code-clean
""" Stars catalog HD. [ra,dec,mag,HD,label] """ STARS=[ [0.023271056693257724,-0.09961466705757638,4.61,28], [0.024870941840919196,0.23380624585188484,5.51,87], [0.027343491614577834,1.019912237223753,5.96,123], [0.027561657771077126,-0.8565203304162173,5.7,142], [0.028070712136242133,1.1204335058650041,5.59,144], [0...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ This file contains the general logic for magnet control. Qudi 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. ...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- """ Copyright (C) <2010> Autin L. TSRI This file git_upy/hostHelper.py is part of upy. upy 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 Lic...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import time from datetime import datetime import uuid import sets from functools import partial import openerp import openerp.addons.decimal_precision as dp from openerp import tools, models, SUPERUSER_I...
codeparrot/github-code-clean
# -*- coding: utf-8 -*- # Resource object code # # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x04\x4a\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x10\x00\x00\x00\x10\x08\x06\x00\x00\x00\x1f\xf3\xff\x61\ \x00\x00...
codeparrot/github-code-clean
# May you do good and not evil # May you find forgiveness for yourself and forgive others # May you share freely, never taking more than you give. -- SQLite source code # # As we enjoy great advantages from the inventions of others, we should be glad # of an opportunity to serve others by an invention of ours, and thi...
codeparrot/github-code-clean
""" This is the common settings file, intended to set sane defaults. If you have a piece of configuration that's dependent on a set of feature flags being set, then create a function that returns the calculated value based on the value of FEATURES[...]. Modules that extend this one can change the feature configuration ...
codeparrot/github-code-clean
# Documentation for Zulip's authentication backends is split across a few places: # # * https://zulip.readthedocs.io/en/latest/production/authentication-methods.html and # zproject/prod_settings_template.py have user-level configuration documentation. # * https://zulip.readthedocs.io/en/latest/development/authenticat...
codeparrot/github-code-clean
__author__ = 'CwT' from idaapi import * from idautils import * from idc import * import struct import os import hashlib Access_Flag = {'public': 1, 'private': 2, 'protected': 4, 'static': 8, 'final': 0x10, 'synchronized': 0x20, 'volatile': 0x40, 'bridge': 0x40, 'transient': 0x80, 'vararg...
codeparrot/github-code-clean
import itertools import logging import sys from collections import defaultdict from functools import reduce from typing import Dict, List import angr import claripy import networkx import pyvex from archinfo import ArchARM from ... import BP, BP_BEFORE, BP_AFTER, SIM_PROCEDURES, procedures from ... import options as ...
codeparrot/github-code-clean
from header_sounds import * from ID_factions import * # default values: # sf_priority_5 # sf_vol_10 sounds = [ ("click", sf_2d|sf_vol_1,["drum_3.wav"]), ("gong", sf_2d|sf_priority_9|sf_vol_7, []), ("quest_taken", sf_2d|sf_priority_9|sf_vol_7, []), ("quest_completed", sf_2d|sf_priority_9|sf_vol_7, []), ("quest_su...
codeparrot/github-code-clean
from __future__ import unicode_literals from __future__ import with_statement from copy import deepcopy import logging import warnings from django.conf import settings from django.conf.urls import patterns, url from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned, ValidationError from django....
codeparrot/github-code-clean
""" The ``irradiance`` module contains functions for modeling global horizontal irradiance, direct normal irradiance, diffuse horizontal irradiance, and total irradiance under various conditions. """ import datetime from collections import OrderedDict from functools import partial import numpy as np import pandas as ...
codeparrot/github-code-clean
"""Pexpect is a Python module for spawning child applications and controlling them automatically. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup scripts for duplicating software package installations on different servers. It can be u...
codeparrot/github-code-clean
# # Author: Joris Vankerschaver 2013 # from __future__ import division, print_function, absolute_import import numpy as np import scipy.linalg from scipy.misc import doccer from scipy.special import gammaln, psi, multigammaln from scipy._lib._util import check_random_state __all__ = ['multivariate_normal', ...
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 us...
codeparrot/github-code-clean
from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import # pyeq2 is a collection of equations expressed as Python classes # # Copyright (C) 2013 James R. Phillips # 2548 Vera Cruz Drive # Birmingham, AL 35235 USA # # email: zunzun@zunzun.com # ...
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 sys import struct import traceback import envi import envi.bits as e_bits from envi.archs.arm.const import * from envi.archs.arm.regs import * # FIXME: codeflow needs to identify the following pattern as a call with fallthrough # (currently identifying the xref and making the fallthrough into a fun...
codeparrot/github-code-clean
import math from numpy import * def i4_bit_hi1 ( n ): #*****************************************************************************80 # ## I4_BIT_HI1 returns the position of the high 1 bit base 2 in an integer. # # Example: # # N Binary BIT # ---- -------- ---- # 0 0 0 # ...
codeparrot/github-code-clean