gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import itertools from sympy import (Add, Pow, Symbol, exp, sqrt, symbols, sympify, cse, Matrix, S, cos, sin, Eq, Function, Tuple) from sympy.functions.special.hyper import meijerg from sympy.simplify import cse_main, cse_opts from sympy.utilities.pytest import XFAIL w, x, y, z = symbols('w,x,y,z') x0, x1, x2, x3,...
#!/usr/bin/env python # coding: utf-8 """ Live service tests ------------------ This module contains tests against live AWS services. In order to run these your AWS access ID and access key need to be specified in the AWS_ACCESS_ID and AWS_ACCESS_ID environment variables respectively. This can be done with something l...
""" The command line interface for the Threema gateway service. """ import binascii import os import re import click import logbook import logbook.more from threema.gateway import Connection from threema.gateway import __version__ as _version from threema.gateway import ( e2e, feature_level, simple, u...
# -*- coding: utf-8 -*- """ python -c "import doctest, ibeis; print(doctest.testmod(ibeis.model.hots.hots_nn_index))" python -m doctest -v ibeis/model/hots/hots_nn_index.py python -m doctest ibeis/model/hots/hots_nn_index.py """ from __future__ import absolute_import, division, print_function # Standard from six.moves ...
#!/usr/bin/env python # # Copyright 2013 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. import optparse import os import shutil import re import sys import textwrap from util import build_utils from util import md5_check...
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: util.py """distutils.util Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules. """ __revision__ = '$...
from __future__ import unicode_literals import time import unittest from django.core.exceptions import ImproperlyConfigured from django.http import HttpResponse from django.test import RequestFactory, SimpleTestCase, override_settings from django.test.utils import require_jinja2 from django.urls import resolve from d...
""" Functions --------- .. autosummary:: :toctree: generated/ fmin_l_bfgs_b """ ## License for the Python wrapper ## ============================== ## Copyright (c) 2004 David M. Cooke <[email protected]> ## Permission is hereby granted, free of charge, to any person obtaining a ## copy of this so...
# 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 # # Unless required by applica...
#!/usr/bin/env python # # Copyright 2012 Facebook # # 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...
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import import csv import operator import os import random import StringIO import numpy as np import PIL.Image import digits from digits.utils import subclass, override, constants from ..interface import DataIngestionInter...
""" Class for polling Ceilometer This class provides means to requests for authentication tokens to be used with OpenStack's Ceilometer, Nova and RabbitMQ """ __authors__ = "Claudio Marques, David Palma, Luis Cordeiro" __copyright__ = "Copyright (c) 2014 OneSource Consultoria Informatica, Lda" __license__ = "Apache 2...
#=============================================================================== # libelf python implementation. Allow listing of sections/symbols. #=============================================================================== import mmap import struct #==============================================================...
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests for chromium.ycm_extra_conf. These tests should be getting picked up by the PRESUBMIT.py in /tools/vim. Currently the tests ...
# Python test set -- part 5, built-in exceptions import os import sys import unittest import pickle, cPickle from test.test_support import (TESTFN, unlink, run_unittest, captured_output, check_warnings, cpython_only) from test.test_pep352 import ignore_deprecation_warnings # XXX This i...
# -*- coding: utf-8 -*- """ zine.notifications ~~~~~~~~~~~~~~~~~~ This module implements an extensible notification system. Plugins can provide different kinds of notification systems (like email, jabber etc.) Each user can subscribe to different kinds of events. The general design is inspir...
import warnings from functools import partial from bulk_update.helper import bulk_update as bulk_update_helper from couchdbkit import ResourceNotFound from dimagi.ext.couchdbkit import * import itertools from corehq.apps.cachehq.mixins import CachedCouchDocumentMixin from dimagi.utils.couch.database import iter_docs ...
# -*- coding: utf-8 -*- """Control parser. This module handles parsing control statement, which add annotations and namespaces to the document. .. see also:: https://wiki.openbel.org/display/BLD/Control+Records """ import logging from typing import Any, Dict, List, Mapping, Optional, Pattern, Set from pyparsi...
# Generated by Snowball 2.1.0 - https://snowballstem.org/ from .basestemmer import BaseStemmer from .among import Among class FrenchStemmer(BaseStemmer): ''' This class implements the stemming algorithm defined by a snowball script. Generated by Snowball 2.1.0 - https://snowballstem.org/ ''' a_0...
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# # 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 # ...
# Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.makeatoon.ClothesGUI from toontown.toon import ToonDNA from direct.fsm import StateData from direct.gui.DirectGui import * from MakeAToonGlobals import * from toontown.toonbase import TTLocalizer from direct.directnotify import DirectNotifyGlobal impor...
import requests from hanga.utils import TrackedFile from hanga import appdirs from json import dumps from os import environ, makedirs from os.path import join, exists try: from configparser import ConfigParser except ImportError: from ConfigParser import ConfigParser class HangaException(Exception): pass ...
import os import logging import math import psutil try: from ConfigParser import RawConfigParser, NoOptionError, NoSectionError except ImportError: from configparser import RawConfigParser, NoOptionError, NoSectionError import mod_wsgi from .platform import Client from ..sampler import Sampler from ..statist...
#!/usr/bin/env python """ 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");...
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Accuracy tests for GCRS coordinate transformations, primarily to/from AltAz. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np from ... import units as u from ...tests....
from abc import ABCMeta, abstractmethod import tensorflow as tf import prettytensor as pt import zutils.tf_math_funcs as tmf import zutils.pt_utils as ptu import net_modules.auto_struct.utils as asu from net_modules import keypoints_2d import math from zutils.py_utils import * import zutils.tf_graph_utils as tgu impor...
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: sdist.py """distutils.command.sdist Implements the Distutils 'sdist' command (create a source distribution).""" __revision__ = '$Id$' import os impo...
import analysis import copy from binaryninja import * ''' We will track the state of each instruction, where the state will be the definitions of all live variables at the conclusion of the execution of the instruction. There can be only one live instance of an instruction at the conclusion of an instruction, though...
import sys import datetime from pymongo.errors import OperationFailure sys.path[0:0] = [""] try: import unittest2 as unittest except ImportError: import unittest import pymongo from bson.tz_util import utc from mongoengine import ( connect, register_connection, Document, DateTimeField ) from mongoen...
# 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...
# pylint: disable=too-many-lines # 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) AutoRe...
# -*- coding: utf-8 -*- """ Read behave's JSON output files and store retrieved information in :mod:`behave.model` elements. Utility to retrieve runtime information from behave's JSON output. REQUIRES: Python >= 2.6 (json module is part of Python standard library) """ __author__ = "Jens Engel" # -- IMPORTS: fro...
# Copyright 2012 Red Hat, Inc. # Copyright 2013 IBM Corp. # 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....
# This file is part of Moksha. # Copyright (C) 2008-2010 Red Hat, 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 b...
#!/usr/bin/env python """ RS 2013/08/19: Stritzinger 2006 MCMC implementation """ # ---------------------------------------------------------------------------- # Dependencies # ---------------------------------------------------------------------------- import numpy as np import mat...
# Copyright 2014 The Oppia 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 ...
#!/usr/local/bin python # -*- coding: utf-8 -*- from SOM.Model import SOM, run from SOM import logger from SOM import Map from SOM import Coefficients as coef from map_eval import map_eval import RPSOM_config import numpy as np import copy class RPSOM: def __init__ (self, epochs=10 , map_size_x=10, map_size_y...
# The MIT License (MIT) # Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors # # 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 wi...
import os import sys import random #legacy optin imports #from foam.ethzlegacyoptinstuff.legacyoptin.xmlrpcmodels import CallBackServerProxy, FVServerProxy from foam.ethzlegacyoptinstuff.legacyoptin.optsmodels import Experiment, ExperimentFLowSpace #,\ #UserOpts, OptsFlowSpace, MatchStruct from foam.ethzlegacyopti...
# 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...
from __future__ import division from jinja2 import Environment, FileSystemLoader from amonone.core import settings from amonone.web.settings import TEMPLATES_DIR from amonone import __version__ from datetime import datetime, time from amonone.utils.dates import ( utc_unixtime_to_localtime, dateformat_local, datefor...
# 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 # distributed under t...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from unittest import TestCase, main import kajiki from kajiki import ir class TestBasic(TestCase): def setUp(self): self.tpl = ir.TemplateNode( ...
import numpy as np import os try: import netCDF4 as netCDF except: import netCDF3 as netCDF import matplotlib.pyplot as plt import time from datetime import datetime from matplotlib.dates import date2num, num2date import pyroms import pyroms_toolbox import _remapping class nctime(object): pass def remap_bdry...
#!/usr/bin/env python # Copyright 2014 The Swarming Authors. All rights reserved. # Use of this source code is governed by the Apache v2.0 license that can be # found in the LICENSE file. import logging import os import sys import unittest ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.pat...
# 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...
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2020 Stefano Gottardo (original implementation module) Generate the data to build a directory of xbmcgui ListItem's SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from _...
# # feed sucker common functions # import re import psycopg2 import psycopg2.extras import psycopg2.extensions import random import urlparse import pdb #from BeautifulSoup import BeautifulSoup, Tag, NavigableString import urllib import urlparse import datetime, pytz import traceback import util import iso_map #cra...
""" :codeauthor: :email:`Jorge Schrauwen <[email protected]>` """ import textwrap import salt.grains.smartos as smartos from tests.support.mock import MagicMock, Mock, mock_open, patch from tests.support.unit import TestCase class SmartOSGrainsTestCase(TestCase): """ Test cases for smartos grains "...
#!/usr/bin/python # # Copyright (C) 2010, 2013 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright notice, # this l...
from __future__ import absolute_import from typing import Any, Optional, Text import logging import re from email.header import decode_header import email.message as message from django.conf import settings from zerver.lib.actions import decode_email_address, get_email_gateway_message_string_from_address, \ int...
from app import db, cache from utils import cache_timeout import datetime dependencies = db.Table( 'dependencies', db.Column('dependency_id', db.Integer, db.ForeignKey('dependency.id')), db.Column('package_id', db.Integer, db.ForeignKey('package.id')) ) keywords = db.Table( 'keywords', db.Column...
# Copyright 2020 The FedLearner 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...
"""WRITEME""" from __future__ import print_function from copy import copy, deepcopy from sys import getsizeof import sys import traceback import numpy import theano from theano.compat import izip from six import reraise from six.moves import StringIO from theano.gof import utils from theano.gof import graph from thean...
""" ======================== Cycle finding algorithms ======================== """ # Copyright (C) 2010-2012 by # Aric Hagberg <[email protected]> # Dan Schult <[email protected]> # Pieter Swart <[email protected]> # All rights reserved. # BSD license. import networkx as nx from networkx.utils import * ...
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
# 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 ...
#=============================================================================== # Copyright (c) 2015, Max Zwiessele # 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...
# # Poly2Tri # Copyright (c) 2009, Mason Green # http://code.google.com/p/poly2tri/ # # 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 co...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting model 'APICachedDocument' db.delete_table('API_apicacheddocument') # Adding model 'APIAc...
#!/usr/bin/env python from __future__ import division import os, sys base_path = os.path.dirname(os.path.dirname(__file__)) if not base_path in sys.path[:1]: sys.path.insert(0, base_path) import logging import os import shutil import subprocess import sys import tempfile import warnings import django from django...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2015 clowwindy # # 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 b...
# # 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...
""" Extreme Deconvolution of Stellar Data ------------------------------------- Figure 6.12 Extreme deconvolution applied to stellar data from SDSS Stripe 82. The top panels compare the color distributions for a high signal-to-noise sample of standard stars (left) with lower signal-to-noise, single epoch, data (right)...
# CRITs environment chooser import errno import glob import os import sys import django import subprocess from pymongo import ReadPreference, MongoClient from mongoengine import connect sys.path.insert(0, os.path.dirname(__file__)) # calculated paths for django and the site # used as starting points for various oth...
#!/usr/bin/env python # # Copyright 2018 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. """Deploys and runs a test package on a Fuchsia target.""" import argparse import os import runner_logs import sys from common_args...
# pylint: disable=no-self-use import os from unittest.mock import Mock, patch from gitman import git, settings from gitman.exceptions import ShellError from .utils import check_calls @patch('gitman.git.call') class TestGit: """Tests for calls to Git.""" @patch('os.path.isdir', Mock(return_value=False)) ...
"""Test the condition helper.""" from logging import ERROR import pytest from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers import condition from homeassistant.helpers.template import Template from homeassistant.setup import async_setup_component from homeassistant.util import dt from...
# 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...
import datetime import gc import random import string import uuid from collections import namedtuple from contextlib import contextmanager from unittest.mock import Mock, patch import requests from flask.testing import FlaskClient from freezegun import freeze_time from sqlalchemy.engine.url import make_url from sqlalc...
''' The MIT License (MIT) Copyright (c) 2013 SinnerSchrader Mobile GmbH 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, ...
#!/usr/bin/env python # encoding: utf-8 import json import logging import tornado.web import tornado.options from jinja2 import Environment, FileSystemLoader from workin.conf import settings from workin.middleware import MiddlewareManager from workin.mixins.flash_message import FlashMessageMixin from workin.mixins.j...
import subprocess import shlex import glob import threading import os import sys import signal from tworpus import settings, data_converter import json from session.models import Session __manager = None def getManager(): """ Singleton wrapper for FetchersManager """ global __manager if __manager...
"""Test that hidden ivars in a shared library are visible from the main executable.""" import unittest2 import subprocess import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class HiddenIvarsTestCase(TestBase): mydir = TestBase.compute...
# Python test set -- part 1, grammar. # This just tests whether the parser accepts them all. from test.support import run_unittest, check_syntax_error import unittest import sys # testing import * from sys import * class TokenTests(unittest.TestCase): def testBackslash(self): # Backslash means line cont...
import logging import json import time import boto3 from botocore.config import Config as BotoCoreConfig from botocore.exceptions import ClientError import signal from abc import ABCMeta, abstractmethod from threading import Thread, Lock from .util import safe_cause logger = logging.getLogger('stefuna') _default_si...
# # Copyright 2017 Netflix, 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...
# Copyright (C) 2012-2013 Claudio Guarnieri. # Copyright (C) 2014-2017 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import collections import json import logging import os from cuckoo.common.abstracts import Processing, B...
from sklearn.neighbors import NearestNeighbors def get_distance(pt1, pt2): """ Finds the distance between two points. """ x1 = pt1[0] y1 = pt1[1] x2 = pt2[0] y2 = pt2[1] return ((x1 - x2) ** 2 + (y1 - y2) ** 2) ** (1 / 2) class Si(): """ Contains the location of the Si atom, as well as e...
import itertools, importlib from collections.abc import Mapping import json class Lazy_Coord(float): """Implements a lazily_evaluated value. Effectively implements a blob of lazy getattrs that can be done arithmetic on. Not actually used at this point. (But it works too well to rip out without me feeling ...
# 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 applicab...
__description__ = \ """ Main class for holding fit parameters, including guesses, values, ranges, etc. """ __date__ = "2016-09-02" __author__ = "Michael J. Harms" import copy import numpy as np class FitParameter: """ Class for storing and manipulating generic fit parameters. """ def __init__(self,na...
# -*- coding: utf-8 -*- # # Copyright 2012 Moskvitin Andrey <[email protected]> # # 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...
# -*- encoding: utf-8 -*- from datetime import datetime from functools import partial import django from datatableview import helpers import six from .testcase import DatatableViewTestCase from .test_app.models import ExampleModel, RelatedM2MModel if django.VERSION < (1, 7): test_data_fixture = 'test_data_leg...
from pipeline import * from utils import triplereader import itertools class NoSubjectAlign(BasePipeline): """ Following the assumption in NoSUB [1] and [2] that sentences in one paragraph all share the same subject. [1] Augenstein, Isabelle, Diana Maynard, and Fabio Ciravegna. "Distantly supervised web ...
import pytest from markupsafe import Markup from jinja2 import Environment from jinja2 import TemplateAssertionError from jinja2 import TemplateRuntimeError class MyDict(dict): pass class TestTestsCase: def test_defined(self, env): tmpl = env.from_string("{{ missing is defined }}|{{ true is defined...
## This file is part of Scapy ## See http://www.secdev.org/projects/scapy for more informations ## Copyright (C) Philippe Biondi <[email protected]> ## This program is published under a GPLv2 license ## Copyright (C) 2005 Guillaume Valadon <[email protected]> ## Arnaud Ebalard <arnaud.ebalard@...
from typing import Any import numpy as np from pandas._libs import index as libindex, lib from pandas._typing import Dtype, Label from pandas.util._decorators import cache_readonly, doc from pandas.core.dtypes.cast import astype_nansafe from pandas.core.dtypes.common import ( is_bool, is_bool_dtype, is_d...
# # Copyright 2018 Analytics Zoo Authors. # # 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...
""" Data structures for sparse float data. Life is made simpler by dealing only with float64 data """ from __future__ import division import warnings import numpy as np from pandas._libs.sparse import BlockIndex, get_blocks import pandas.compat as compat from pandas.compat import lmap from pandas.compat.numpy import...
# # 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...
#!/usr/bin/env python # This file is part of Responder, a network take-over set of tools # created and maintained by Laurent Gaffie. # email: [email protected] # 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...
# =============================================================================== # Copyright 2017 ross # # 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/LICE...
# Copyright 2015, 2017 IBM Corp. # # 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 require...
import configparser import argparse import glob import shlex from os import path import os import re from itertools import chain from collections import OrderedDict #for now, we don't want these prefixes cmd_prefix=re.compile('^[@-]{1,2}') #Special Dictionary to deal with how systemd unit files are structured class ...
import cv2 import numpy as np import signal import sys from flask import Flask, render_template, Response, request from collections import deque from datetime import datetime from time import time, sleep from threading import Thread try: from PyMata.pymata import PyMata class Motors(Thread): MOTOR_1_...
# TNC Python interface # @(#) $Jeannot: tnc.py,v 1.11 2005/01/28 18:27:31 js Exp $ # Copyright (c) 2004-2005, Jean-Sebastien Roy ([email protected]) # 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 Soft...
# -*- coding: utf-8 -*- import pytest from warnings import catch_warnings import numpy as np from pandas import Series, DataFrame, Index, Float64Index from pandas.util.testing import assert_series_equal, assert_almost_equal import pandas.util.testing as tm class TestFloatIndexers(object): def check(self, resul...