gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# Copyright 2016 Pinterest, 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 writi...
import sys import uuid import gam from gam.var import * from gam import controlflow from gam import display from gam import gapi from gam.gapi import directory as gapi_directory from gam import utils def delete(): cd = gapi_directory.build() resourceId = sys.argv[3] gapi.call(cd.mobiledevices(), ...
import numpy import chainer from chainer.backends import cuda from chainer.functions.activation import lstm from chainer.functions.array import reshape from chainer.functions.array import stack from chainer.functions.connection import linear from chainer.functions.connection import n_step_rnn from chainer.functions.co...
""" Machine learning chunker for CoNLL 2000 """ __author__ = "Pierre Nugues" import time import conll_reader from sklearn.feature_extraction import DictVectorizer from sklearn import svm from sklearn import linear_model from sklearn import metrics from sklearn import tree from sklearn.naive_bayes import GaussianNB fro...
#!/usr/bin/python ############################################################################## # # Copyright 2014 Realm 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.ap...
from cattle import ApiError from common_fixtures import * # NOQA def _create_virtual_machine(client, sim_context, **kw): args = { 'imageUuid': sim_context['imageUuid'], 'requestedHostId': sim_context['host'].id, } args.update(kw) return client.create_virtual_machine(**args) def te...
# Copyright 2013 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...
# -*- test-case-name: admin.test.test_release -*- # Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Helper utilities for the Flocker release process. XXX This script is not automatically checked by buildbot. See https://clusterhq.atlassian.net/browse/FLOC-397 """ import json import os import sys impor...
"""A generic class to build line-oriented command interpreters. Interpreters constructed with this class obey the following conventions: 1. End of file on input is processed as the command 'EOF'. 2. A command is parsed out of each line by collecting the prefix composed of characters in the identchars member. 3. A ...
#!/usr/bin/env python # # WvTest: # Copyright (C)2007-2012 Versabanq Innovations Inc. and contributors. # Licensed under the GNU Library General Public License, version 2. # See the included file named LICENSE for license information. # You can get wvtest from: http://github.com/apenwarr/wvtest # im...
# Copyright 2013 OpenStack Foundation # Copyright 2015 Mirantis, 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/license...
#!/usr/bin/env python3 import argparse from datetime import datetime from dateutil import tz import json import sys import requests class Updater(object): def __init__(self, server, year): self._server = server self._year = year self._current_round = 0 self._teams = {} sel...
"""" Folium Features Tests --------------------- """ import os import warnings from branca.element import Element import folium from folium import Map, Popup, GeoJson, ClickForMarker import pytest @pytest.fixture def tmpl(): yield (""" <!DOCTYPE html> <head> <meta http-equiv="content-type" conten...
from warnings import warn import numpy as np from numpy import (atleast_2d, ComplexWarning, arange, zeros_like, imag, diag, iscomplexobj, tril, triu, argsort, empty_like) from .decomp import _asarray_validated from .lapack import get_lapack_funcs, _compute_lwork __all__ = ['ldl'] def ldl(A, lower...
from __future__ import unicode_literals from django import forms from django.contrib.contenttypes.forms import generic_inlineformset_factory from django.contrib.contenttypes.models import ContentType from django.core.exceptions import FieldError from django.db import IntegrityError from django.db.models import Q from ...
import os import sys import numpy as np import ConfigParser from errno import ENOENT from numpy import loadtxt from pandas import read_excel, read_csv from collections import OrderedDict from scipy.interpolate import interp1d from distutils.util import strtobool from astropy.io import fits as astropyfits # Function t...
""" ================================== Wolfcamp Example - Single las file ================================== This example shows the full petrophysical workflow avaiable in PetroPy for a single wolfcamp las file courtesy of University Lands Texas. The workflow progresses in these 11 steps 1. Read las file and create ...
from ipaddress import IPv4Address, IPv6Address, IPv6Network from contextlib import contextmanager import tempfile import os import random import unittest import requests import iprir from iprir.record import RIRRecord, ip_to_int from iprir.parser import parse_file, parse_string from iprir.database import DB from ipri...
#!/usr/bin/env python # # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2013 YAMAMOTO Takashi <yamamoto at valinux co jp> # # 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...
#!/usr/bin/env python # # geo.py is a python module with no dependencies on extra packages, # providing some convenience functions for working with geographic # coordinates # # Copyright (C) 2010 Maximilian Hoegner <hp.maxi@hoegners.de> # # This program is free software: you can redistribute it and/or modify # it unde...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import json import o...
# 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...
# -*- coding: utf-8 -*- """ continuity.cli.github ~~~~~~~~~~~~~~~~~~~~~ Continuity GitHub CLI commands. :copyright: 2015 by Jonathan Zempel. :license: BSD, see LICENSE for more details. """ from .commons import (FinishCommand as BaseFinishCommand, GitHubCommand as BaseGitHubCommand, ...
#!/usr/bin/env python import keyword import wx import wx.stc as stc import images #---------------------------------------------------------------------- demoText = """\ ## This version of the editor has been set up to edit Python source ## code. Here is a copy of wxPython/demo/Main.py to play with. """ ...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function import readline import getpass import sys import cmd import imp import re import os import shlex from . import restshlib DEBUG = False HELP_TEXT = '''Usage: command [<command...
# Django settings for leyaproject project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS if os.getenv('SERVER_SOFTWARE', '').startswith('Google App Engine'): # Running on production App Engine, so use a Google Cloud SQL database. ...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """Use blog post test to test user permissions logic""" import frappe import frappe.defaults import unittest import json import frappe.model.meta from frappe.permissions import (...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2002-2007 Zuza Software Foundation # # This file is part of translate. # # translate 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...
from __future__ import unicode_literals import base64 import calendar import datetime import re import sys import unicodedata from binascii import Error as BinasciiError from email.utils import formatdate from django.utils.datastructures import MultiValueDict from django.utils.encoding import force_str, force_text fr...
# -*- coding: utf-8 -*- """ Copyright 2018 Dispel, LLC Apache 2.0 License, see https://github.com/dispel/jak/blob/master/LICENSE for details. """ import os import click from . import helpers from . import outputs from . import __version_full__ from . import diff as diff_logic from . import decorators from . import sta...
""" Kind of like htmlgen, only much simpler. The only important symbol that is exported is ``html``. This builds ElementTree nodes, but with some extra useful methods. (Open issue: should it use ``ElementTree`` more, and the raw ``Element`` stuff less?) You create tags with attribute access. I.e., the ``A`` anchor ...
# The MIT License (MIT) # # Copyright (c) 2014 Richard Moore # # 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, mod...
# Copyright (C) 2021 Nippon Telegraph and Telephone 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/LICE...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, json import frappe.permissions import frappe.async from frappe import _ from frappe.utils.csvutils import getlink from frappe.utils.dateutils import parse_date ...
#!/usr/bin/env python """Calculates the spin and density structure factors. This script crawls down a directory finding all the estimator file, i.e. those whose name is 'estimators.dat'. It reads each file and store the estimator data in a database. Then you calculate the structure factors reading the data you ned fro...
# Many pieces shamelessly borrowed from scikit-learn # Licence: BSD from abc import abstractmethod, abstractproperty from abc import ABCMeta import inspect import warnings import numpy as np import six ############################################################################### class ModelMixin(object): ...
from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.rename_doc import get_link_fields from frappe.model.dynamic_links import dynamic_link_queries from frappe.permissions import reset_perms def execute(): frappe.reload_doctype("DocType") frappe.reload_doctype("Communication") ...
"""Timeseries plotting functions.""" from __future__ import division import numpy as np import pandas as pd from scipy import stats, interpolate import matplotlib as mpl import matplotlib.pyplot as plt from .external.six import string_types from . import utils from . import algorithms as algo from .palettes import c...
#!/usr/bin/env python # encoding: utf-8 import json import base64 from threading import Timer from observable import Observable from .events import Events from ..core import tostr, clean_decrypted RENEW_HANDICAP = 60 stripped = lambda s: ''.join([c for c in s if ord(c) > 31 or ord(c) == 9]) class Subscription(Observa...
#!/usr/bin/env python # Copyright (c) 2013 Shane Quigley, < shane at softwareontheside.info > # 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 limitati...
import shutil import sys from pathlib import Path import pytest from porcupine import get_tab_manager from porcupine.plugins import directory_tree as plugin_module from porcupine.plugins.directory_tree import _focus_treeview, _stringify_path, get_path def test_adding_nested_projects(tree, tmp_path): def get_pat...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Copyright 2014: Mirantis 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 b...
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. # # # Parts of this code is from IPyVolume (24.05.2017), used here under # this copyright and license with permission from the author # (see https://github.com/jupyter-widgets/ipywidgets/pull/1387) """ Functions for ge...
# -*- coding: UTF-8 -*- import sys import time from vulkan import * from PySide2 import (QtGui, QtCore) import numpy as np from PIL import Image import glm validationLayers = [ 'VK_LAYER_LUNARG_standard_validation' ] deviceExtensions = [ VK_KHR_SWAPCHAIN_EXTENSION_NAME ] enableValidationLayers = True cl...
# 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 # distribu...
# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2010, Eucalyptus Systems, Inc. # # 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 # w...
# 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...
from django.shortcuts import render from appCerebro.models import Proyecto, Ejercicio, Variable, Usuario, Realizacion, Datos from django.views.decorators.csrf import csrf_exempt import json from django.utils import simplejson from datetime import datetime from django.http import HttpResponse, HttpResponseRedirect, H...
# -*- coding: utf-8 -*- """ Tools to manipulate Neo objects. .. autosummary:: :toctree: _toctree/neo_tools extract_neo_attributes get_all_spiketrains get_all_events get_all_epochs :copyright: Copyright 2014-2020 by the Elephant team, see `doc/authors.rst`. :license: Modified BSD, see LICENSE.txt ...
""" Author: Yotam Gingold <yotam (strudel) yotamgingold.com> License: Public Domain [CC0](http://creativecommons.org/publicdomain/zero/1.0/) Let the energy E = | G*x - U |^2_M where: x is a row-by-col image flattened into a vector with row-by-col entries. G is the gradient operator, U are the target gradie...
from .._abstract.abstract import BaseSecurityHandler, BaseAGSServer from ..security.security import AGSTokenSecurityHandler import json, types ######################################################################## class MobileServiceLayer(BaseAGSServer): """ Represents a single mobile service layer """ ...
import json import re from django.contrib.gis.geos import Point from rest_framework import serializers from rest_framework import viewsets from rest_framework.settings import api_settings from rest_framework_jsonp.renderers import JSONPRenderer from django_filters import rest_framework as filters from froide.helpe...
from __future__ import absolute_import from django.conf import settings from django.contrib.auth import authenticate, login, get_backends from django.contrib.auth.views import login as django_login_page, \ logout_then_login as django_logout_then_login from django.core.urlresolvers import reverse from zerver.decora...
from dilap.geometry.vec3 import vec3 from dilap.geometry.pointset import pointset #import dilap.topology.meshes.trimesh as tmsh import dilap.topology.trimesh as tmsh #import dilap.mesh.tools as dtl import dilap.core.plotting as dtl import matplotlib.pyplot as plt import unittest,numpy,math import pdb #python3 -m u...
import keyword from pycharm_generator_utils.util_methods import * from pycharm_generator_utils.constants import * class emptylistdict(dict): """defaultdict not available before 2.5; simplest reimplementation using [] as default""" def __getitem__(self, item): if item in self: return dict...
from pyftpdlib.ftpserver import AbstractedFS from JumpScale import j import os # --- filesystem class AbstractedFS(object): """A class used to interact with the file system, providing a cross-platform interface compatible with both Windows and UNIX style filesystems where all paths use "/" separator. ...
# # 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 # ...
# NOTE: Please avoid the use of numpy.testing since NPYV intrinsics # may be involved in their functionality. import pytest, math, re import itertools from numpy.core._simd import targets from numpy.core._multiarray_umath import __cpu_baseline__ class _Test_Utility: # submodule of the desired SIMD extension, e.g. ...
import gzip import sys import os from .config import get_db_dir defaultdir = get_db_dir() ''' From nodes.dmp tax_id -- node id in GenBank taxonomy database parent tax_id -- parent node id in GenBank taxonomy database rank ...
from __future__ import absolute_import, unicode_literals from mopidy.core import PlaybackState from mopidy.internal import deprecation from mopidy.mpd import exceptions, protocol @protocol.commands.add('consume', state=protocol.BOOL) def consume(context, state): """ *musicpd.org, playback section:* ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 f...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions #validation from django.core.exceptions import ValidationError class CheckoutForm(forms.Form...
# 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 ...
# elf tools # supports loading elves into the emulator, and saving emulator state as an elf import struct import utils def nt_string_at(a, i): end = a.find(b'\x00', i) if end == -1: end = len(a) return a[i:end].decode('ascii') def nt_string_append(a, s): i = len(a) return a + s.encode('as...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
""" Tests for VARMAX models Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function import numpy as np import pandas as pd import os import re import warnings from statsmodels.datasets import webuse from statsmodels.tsa.statespace import dynamic_factor from .r...
#!/bin/env python #Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details __doc__='testscript for reportlab.pdfgen' __version__=''' $Id$ ''' #tests and documents new low-level canvas from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, printLocation setOutDir(__name__) ...
"""Component to interface with cameras.""" import asyncio import base64 import collections from contextlib import suppress from datetime import timedelta import logging import hashlib from random import SystemRandom import attr from aiohttp import web import async_timeout import voluptuous as vol from homeassistant.c...
""" users must be at least 22 to use the form users past their full retirement age will get only their current benefit amount Well need to ask user for DOB and current annual earnings returns estimated benefit at 62, 67, and 70 based the value of the dollar today inputs needed: Date of birth: 8/14/1956 Curren...
# S.D. Peckham # October 14, 2009 import os import os.path import sys import numpy import bov_files import file_utils import rti_files #------------------------------------------------------------------- # # unit_test() # # class rts_file(): # # open_file() # open_new_file() # add_grid() # ...
from collections import OrderedDict, Counter, namedtuple import random import functools import json import math import uuid import io import csv import datetime from flask import Flask, render_template, current_app, Markup, abort, url_for from flask import make_response, request from flask.json import jsonify from sql...
""" test indexing with ix """ import pytest from warnings import catch_warnings import numpy as np import pandas as pd from pandas.core.dtypes.common import is_scalar from pandas.compat import lrange from pandas import Series, DataFrame, option_context, MultiIndex from pandas.util import testing as tm from pandas.e...
# Copyright 2017 Scalyr 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 writing, so...
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # 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 applicabl...
# Copyright 2011 Isaku Yamahata # 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 b...
# -*- coding: utf-8 -*- # Copyright 2021 ProjectQ-Framework (www.projectq.ch) # # 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 # # ...
"""Tests for homekit_controller config flow.""" from unittest import mock import unittest.mock from unittest.mock import AsyncMock, patch import aiohomekit from aiohomekit.exceptions import AuthenticationError from aiohomekit.model import Accessories, Accessory from aiohomekit.model.characteristics import Characterist...
# Copyright 2020 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...
# This file is part of beets. # Copyright 2016, 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 the rights to use, copy, ...
# 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 ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= ## @file ostap/fitting/minuit.py # Module with decoration of some (T)Minuit functions for efficient use in python # @author Vanya BELYAEV Ivan.Belyaev@itep.ru # @date 2011-06-07 # =========...
""" This module contains an C{L{OpenIDStore}} implementation backed by flat files. """ import string import os import time from errno import EEXIST, ENOENT try: from tempfile import mkstemp except ImportError: # Python < 2.3 import warnings warnings.filterwarnings("ignore", ...
# Copyright 2016 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
import os import time import csv import datetime import math from fractions import * try: import urllib.parse as urllib except ImportError: import urllib from _login import Downloader def collectTrends(username, password, terms, startDt, endDt, granularity='d', geo='', cat='', gprops='', tz='', sum=False...
# 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from configparser import NoOptionError, NoSectionError from configparser_extended import ExtendedConfigParser, SectionProxyExtended try: from backports.configparser.helpers import OrderedDict except ImportError: from collections import OrderedDict f...
from django.shortcuts import render from django.http import HttpResponse from django.template import Context, loader, RequestContext from django.template import loader, Context from django.shortcuts import render_to_response, redirect from django.views.decorators.csrf import csrf_exempt from django import forms import ...
# # BitBake Graphical GTK User Interface # # Copyright (C) 2011 Intel Corporation # # Authored by Joshua Lock <josh@linux.intel.com> # Authored by Dongxiao Xu <dongxiao.xu@intel.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License ve...
# ccbb libraries import ccbb_pyutils.pandas_utils as ns_pandas # project-specific libraries import dual_crispr.construct_file_extracter as ns_extracter import dual_crispr.count_files_and_dataframes as ns_count __author__ = "Amanda Birmingham" __maintainer__ = "Amanda Birmingham" __email__ = "abirmingham@ucsd.edu" __s...
#!/usr/bin/python import pygame import pygame.gfxdraw from . import ( coord, dungeon, grid, level, monster, timer, tower, tower_selector, ) from . gui import ( button, ) class Player(pygame.sprite.Sprite): def __init__(self): self.rect = pygame.Rect(0, 0, 5, ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ib-downloader4.py Created on Tue Jul 5 15:53:45 2016 @author: nwillemse """ import time import argparse import pandas as pd from datetime import datetime from ib.ext.Contract import Contract from ib.opt import Connection class Downloader: def __init__( ...
#!/usr/bin/env python # Copyright 2014-2021 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...
# Copyright (c) 2020 University of Chicago. # # 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 t...
import os import copy import shutil import tempfile import os.path as op import bento.convert.commands from bento.errors \ import \ UsageException from bento.compat.api.moves \ import \ unittest from bento.core.package \ import \ PackageDescription from bento.core.node \ impor...
import datetime from django.http import Http404, HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.utils.translation import u...
#!/usr/bin/env python import eventlet import time import threading from oslo.config import cfg from virtman.drivers import fcg from virtman.drivers import dmsetup from virtman.drivers import iscsi from virtman.drivers import volt from virtman.path import connection_to_str from virtman.path import Path from virtman.ut...
# Copyright (C) 2016 iNuron NV # # This file is part of Open vStorage Open Source Edition (OSE), # as available from # # http://www.openvstorage.org and # http://www.openvstorage.com. # # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU Affero General Public Li...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # Wrapper around the crawlutils module that provides: # (a) an autonomous push mode via command-line invocation, and # (b) a network pull mode via an HTTP REST interface (xxx CURRENTLY DISABLED) ## import os import sys import logging import logging.handlers import time imp...