text
stringlengths
12
6.59M
""" Classes which implement tasks which builder has to be capable of doing. Logic above these classes has to set the workflow itself. """ import logging from dock.core import DockerTasker, LastLogger from dock.util import get_baseimage_from_dockerfile, split_repo_img_name_tag, LazyGit, wait_for_command, \ join_im...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import __version__ = '0.4.4'
from __future__ import print_function # this is here for the version check to work on Python 2. import sys # This must be at the very top, before importing anything else that might break! # Keep all other imports below with the 'noqa' magic comment. if sys.version_info < (3, 5): print("#" * 49, file=sys.stderr) ...
#!/usr/bin/env python # coding: utf-8 """ This method labels segments using the 2D-FMC method described here: Nieto, O., Bello, J.P., Music Segment Similarity Using 2D-Fourier Magnitude Coefficients. Proc. of the 39th IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP). Florence,...
''' Module of classes used to create visualizations of data produced by the experiment and learners. ''' from __future__ import absolute_import, division, print_function __metaclass__ = type import mloop.utilities as mlu import mloop.learners as mll import mloop.controllers as mlc import numpy as np import logging imp...
# -*- coding: utf-8 -*- # # Copyright (C) 2015-2018: Alignak team, see AUTHORS.txt file for contributors # # This file is part of Alignak. # # Alignak 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, eit...
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
#!/usr/bin/python # -*- coding: utf-8 -*- import sqlite3 import os.path from PIL import Image import piexif import argparse # Commandline Handling parser = argparse.ArgumentParser(description='Export faces from Lightroom DB') parser.add_argument('-d', '--database', help='Input Database', required=True) parser.add_ar...
#!/usr/bin/env python # -*- coding: UTF-8 -*- import serial from socket import * import time import subprocess import os import optparse import sys import signal import logging import re from Queue import Queue from threading import Thread __author__ = 'bmasquelier cedric02' # # Python script for Arduidom communication...
from datetime import datetime from django.core.management import CommandError from corehq.apps.hqcase.management.commands.ptop_fast_reindexer import PtopReindexer from dimagi.utils.modules import to_function from fluff import FluffPillow import gevent import signal from gevent.queue import Queue, Empty CHUNK_SIZE = 50...
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # # License: Simplified BSD import warnings from math import sqrt import numpy as np from scipy import linalg import logging logger = logging.getLogger('mne') from .debiasing import compute_bias from .. import verbose def groups_norm2(A, n_orient): ""...
#!/usr/bin/env python import sys, argparse, re, gzip, inspect, os from multiprocessing import Pool, cpu_count from seqtools.format.gpd import GPDStream def main(args): inf = None if re.search('\.gz$',args.input): inf = gzip.open(args.input) else: inf = open(args.input) of = sys.stdout if args.out...
#!/usr/bin/env python import sys # add the parent directory to sys.path import os,sys,inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.append(parentdir) from xos.config import Config def help(): print "syntax: %s get n...
""" Provides an APIView class that is the base of all views in REST framework. """ from __future__ import unicode_literals import sys from django.conf import settings from django.core.exceptions import PermissionDenied from django.db import models from django.http import Http404 from django.http.response import HttpR...
#!/usr/bin/env python # # 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, modify, merge, publish, # distribute, subl...
import numpy as np import itertools import logging import time import traceback from collections import Mapping from ..conventions import cf_encoder from ..core.utils import FrozenOrderedDict from ..core.pycompat import iteritems, dask_array_type, OrderedDict # Create a logger object, but don't add any handlers. Leav...
import logging from django.test import Client from django.conf import settings from django.urls import reverse from django.db import IntegrityError from rest_framework.parsers import JSONParser from io import BytesIO import json from ambulance.models import Call, Patient, AmbulanceCall, CallStatus, CallPriority, \ ...
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.desk.form import assign_to from frappe.utils.jinja import validate_template from dateutil...
#!/usr/bin/env python """ A tool that automatically formats Python code to conform to the PEP 8 style guide. """ import copy import os import re import sys import inspect try: from cStringIO import StringIO except ImportError: try: from StringIO import StringIO except ImportError: from io im...
from restclients_core.util.mock import load_resource_from_path from restclients_core.models import MockHTTP from restclients_core.exceptions import ImproperlyConfigured from restclients_core.cache import NoCache from restclients_core.util.performance import PerformanceDegradation from importlib import import_module fro...
# -*- Mode: Python; py-indent-offset: 4 -*- # vim: tabstop=4 shiftwidth=4 expandtab # # Copyright (C) 2005-2009 Johan Dahlin <johan@gnome.org> # # types.py: base types for introspected items. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public...
import subprocess, time, os from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.test import TestCase from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied from django.contrib.gis.geos import Point from django.utils import timezone from django....
#!/usr/bin/env python # # Copyright (C) 2010-2011 Hideo Hattori # Copyright (C) 2011-2013 Hideo Hattori, Steven Myint # # 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, in...
#!/usr/bin/env python import codecs from fractions import Fraction import logging import os import pprint import sys from decimal import * from simfile import * import yaml try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper import synctools __all__ ...
import time from django.test import TestCase from django.contrib.auth.models import User from django.conf import settings from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from io import BytesIO import json from ambulances.models import Profile, Ambulance, \ Ambulanc...
from abc import ABCMeta, abstractmethod class ModelABC(object): __metaclass__ = ABCMeta @abstractmethod def __init__(self, model, n_vars, param_order, model_name): self._model = model self._n_vars = n_vars self.model_name = model_name self.param_order = param_order @a...
#!/usr/bin/env python # # GUI Autoplay mode (Jukebox) for Organ Donor Organelle # # Tkinter GUI functions used to control MIDO MIDI interface library to play MIDI files # from the filesystem and provide a fun, obvious user interface. This program runs under # the GUI supervisor, so it expects to run forever until it re...
""" Long-running tasks for the Deis Controller API This module orchestrates the real "heavy lifting" of Deis, and as such these functions are decorated to run as asynchronous celery tasks. """ from __future__ import unicode_literals import requests import threading from celery import task from django.conf import se...
import json import time import unittest from django.contrib.auth.models import User from django.core.management import call_command from django.test import LiveServerTestCase, TestCase from django.utils.six import StringIO from wagtail.tests.utils import WagtailPageTests, WagtailTestUtils from wagtail.images.tests.uti...
import os import pytest from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.pool import NullPool from apistar.backends.sqlalchemy_backend import SQLAlchemyBackend from app import app from db_base import Base from utils import get_component from projects.tests import * @py...
import logging import threading import time import re from collections import defaultdict from typing import Optional, Union import pytz_deprecation_shim as pytz from directory.models import Researches from doctor_schedule.models import ScheduleResource from laboratory.settings import ( SYSTEM_AS_VI, SOME_LIN...
from collections import OrderedDict from django.db.models import Q from rest_framework import status from rest_framework.permissions import IsAuthenticated from guardian.shortcuts import get_objects_for_user from accounts.models import Child, DemographicData, Organization, User from accounts.serializers import (ChildS...
from django.shortcuts import render from rest_framework import views, generics, viewsets from rest_framework.response import Response from rest_framework.parsers import MultiPartParser, FormParser, FileUploadParser from django.template.loader import render_to_string from django.db.models import Q from django.conf impor...
import json import logging import MySQLdb import os from dirq.queue import Queue, QueueError from django.conf import settings from rest_framework.response import Response from rest_framework.views import APIView from apel.db.loader import Loader, LoaderException class IndexView(APIView): """An example URL.""" ...
import django_filters from django.shortcuts import render, get_object_or_404 from django.contrib.auth.models import User from rest_framework.decorators import detail_route, list_route from rest_framework import viewsets, views, filters #, status from .models import Volunteer, Assignment from django.core.mail import sen...
from rest_framework.response import Response from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import AllowAny from ac_mediator.exceptions import * from api.request_distributor import get_request_distributor from api.response_aggregator import get_response_aggregator fro...
# Create your views here. from django.http import HttpResponse from django.http import HttpResponseNotAllowed, HttpResponseBadRequest, HttpResponseForbidden from django.utils import simplejson from django.contrib.auth.models import User from api import models from api import utils from api import permissions import da...
# -*- coding: utf-8 -*- """ Store advertisement in database """ import logging import json from datetime import date, datetime from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from models import Advertisement, ObjectType, Municipality # from ..models imp...
#!/usr/local/bin/python2.7 def api_front(self, **kwargs): action = kwargs.get('action') bitmap_filename = kwargs.get('bitmap_filename') offset = kwargs.get('offset') rgbseed = kwargs.get('rgbseed') addvalpos = kwargs.get('addvalpos') rgborder = kwargs.get('rgborder') password = kwargs.get...
### Import our stuff import matplotlib.pyplot as plt import numpy as np import pandas as pd ### Set up initial values position = 555 # feet velocity = 0 # feet/second acceleration = -32.17 # feet / second^2 time_steps = np.linspace(0, 5, 501) # creates two entries at time zero time_step_size = time_steps[1] - time_ste...
#!/bin/env python import argparse import getpass from fabric import api as fab from fabric import state as fab_state from fabric.main import find_fabfile, load_fabfile, parse_arguments from aws import __version__ from libaws.conf import settings from libaws.ec2 import EC2Service from libaws.elb import ELBService d...
from __future__ import unicode_literals import django from django.db import models from django.contrib.gis.db import models as geomodels from django.db.models.fields.related import OneToOneField from django.db.models.query import QuerySet from django.core.exceptions import ObjectDoesNotExist try: from django.db.mo...
# -*- coding: utf8 -*- """ Git utility with interfaces Will create a git_util.ini during import if missing (may take some time) includes other utility functions """ import configparser as cp import os import re import subprocess import sys import time import urllib.parse import wapj_logger # TODO : remote info of g...
import json, urlparse, urllib from django.conf import settings from django.core import urlresolvers from mongoengine.django import auth from piplmesh.account import models class MongoEngineBackend(auth.MongoEngineBackend): # TODO: Implement object permission support supports_object_permissions = False #...
# Copyright 2012 Jussi Pakkanen # 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, ...
class Solution(object): def checknum(self,s): if not s: return False intnum=int(s) lens=len(s) if intnum>=0 and intnum<=9 and lens>1: return False if intnum>=10 and intnum<=99 and lens>2: return False if intnum>=100 and...
# -*- coding: utf-8 -*- """ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in...
import math import operator import numpy as np import matplotlib.pyplot as plt from scipy.optimize import linear_sum_assignment def dim(simplex): # Returns scalar return simplex[4] # def no_zeros(arr): # return arr[np.nonzero(arr)[0]] def boundary(simplex): # Returns set k = dim(simplex) if k == 0: return set...
#!/usr/bin/python import logging, sys ## @brief del $to_find from existing meth # to check the signature with other meths ## @param meth method to find ## @returns meth string without $to_find def over_meth(meth): meth = meth.replace("NS_IMETHOD_ ", "") meth = meth.replace("NS_IMETHOD ", "") meth = meth....
""" Defines the base logic for nodes used within core. """ import logging import os import shutil import socket import threading from socket import AF_INET, AF_INET6 from core import utils from core.constants import MOUNT_BIN, VNODED_BIN from core.emulator.data import LinkData, NodeData from core.emulator.enumeration...
from _ast import In from django.core.mail import send_mail from django.forms import model_to_dict import json import logging import os from copy import deepcopy from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, render_to_response, redirect from django.template import Conte...
#!/usr/bin/python # -*- coding: utf-8 -*- """The Dallinger command-line utility.""" import imp import inspect import os import pkg_resources import re try: from pipes import quote except ImportError: # Python >= 3.3 from shlex import quote import shutil import sys import tempfile import threading import t...
""" Tests for authentication.authentication. """ import json import os import re import unittest from flask.ext.login import make_secure_token from requests import codes import responses from werkzeug.http import parse_cookie from authentication.authentication import ( app, bcrypt, load_user_from_id, ...
from _ast import In from django.core.mail import send_mail from django.forms import model_to_dict import json import logging import os from copy import deepcopy from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, render_to_response, redirect from django.template import Conte...
"""Miscellaneous tools for Heroku.""" from __future__ import unicode_literals import json from six.moves import shlex_quote as quote import signal import os import psutil import re import six import sys import subprocess import time import traceback from dallinger.config import SENSITIVE_KEY_NAMES from dallinger.uti...
from sqlalchemy import Column, Integer, String, Boolean from sqlalchemy import ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship Base = declarative_base() class Machine(Base): __tablename__ = 'machine' uuid = Column(String, primary_key=True, autoincrem...
#!/usr/bin/python ''' Primary pygame file. Deals with all the stuff. Application structure taken from brendanwhitfield/planetary ''' # python import random # gtk from gi.repository import Gtk # pygame import pygame from pygame.locals import QUIT, MOUSEBUTTONUP, MOUSEMOTION, VIDEORESIZE, ACTIVEEVENT # app import Co...
from django.core.mail import send_mail from django.forms import model_to_dict import json import logging import os from copy import deepcopy from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, render_to_response from django.template import Context, Template, RequestContext fr...
# -*- encoding: utf-8 -*- ############################################################################## # # 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...
import random from app.table import Table from collections import namedtuple PULMONIC = Table('app/data/pulmonic.csv') VOWELS = Table('app/data/vowels.csv') # A Rule is a namedtuple with the following fields: # name: a string representing the process' name # target: a string representing the process' target ...
#!/usr/bin/python # -*- coding: cp1254 -*- # Srm 1.1 ################################################################## # # Copyright (C) 2011-2012 PythEch # # This Source Code Form is subject to the terms of the Mozilla # Public License, v. 2.0. If a copy of the MPL was not distributed # with this file,...
import sys import os import re MYDIR=os.path.dirname(sys.argv[0]) if '' == MYDIR: MYDIR='.' ################################# # Get info from configure.ac # # file # ################################# configureAcFile = open (MYDIR + '/configure.ac', 'rb') AC_INIT_LINE=configureAcFile.r...
""" Helper functions for making fixtures that setup specific environment """ from contextlib import contextmanager from django.contrib.auth.models import (User, Group) from django.core.files.base import ContentFile from dashboard_app.models import ( Bundle, BundleStream, ) class test_loop(o...
# -*- coding: utf-8 -*- """ Sahana Eden Project Model @copyright: 2011-2012 (c) Sahana Software Foundation @license: MIT 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 witho...
# coding=utf-8 import logging import os import time from requests import HTTPError from deprecated import deprecated from atlassian import utils from .errors import ( ApiError, ApiNotFoundError, ApiPermissionError, ApiValueError, ApiConflictError, ) from .rest_client import AtlassianRestAPI log = ...
import random from app.table import Table from collections import namedtuple PULMONIC = Table('app/data/pulmonic.csv') VOWELS = Table('app/data/vowels.csv') # A Rule is a namedtuple with the following fields: # name: a string representing the process' name # target: a string representing the process' target ...
# -*- coding: utf-8 -*- from __future__ import division __author__ = """John Kirkham""" __email__ = "kirkhamj@janelia.hhmi.org" from ._version import get_versions __version__ = get_versions()['version'] del get_versions from . import _utils def dice(u, v): """ Finds the Dice dissimilarity between two 1...
""" ====================================================== PipelineExome.py - common tasks for Variant Calling ====================================================== :Author: David Sims & Tom Smith :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- Usage ----- Type:: python <script_name>.py --help fo...
from __future__ import absolute_import # Implementation of RAKE - Rapid Automtic Keyword Exraction algorithm # as described in: # Rose, S., D. Engel, N. Cramer, and W. Cowley (2010). # Automatic keyword extraction from indi-vidual documents. # In M. W. Berry and J. Kogan (Eds.), Text Mining: Applications and Theory.unk...
""" Copyright (c) 2015-2022 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. Script for building docker image. This is expected to run inside container. """ import functools import json import logging import signal ...
# -*- coding: utf-8 -*- # This software and any associated files are copyright 2010 Brian Carver and # Michael Lissner. # # 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...
import os import fcntl import subprocess import threading import getpass import signal from gmusicapi import Mobileclient class AudioPlayerProtocolV1: def play_message_for(self, stream_url): return "play {0}\n".format(stream_url) def pause_message(self): return "pause \n" def unpause_mess...
import re import functools from slackbot.bot import respond_to from app.modules.shogi_input import ShogiInput from app.modules.shogi_output import ShogiOutput from app.slack_utils.user import User from app.helper import channel_info, should_exist_shogi @respond_to('start with <?@?([\d\w_-]+)>?') @channel_info def ...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013 ABF OSIELL (<http://osiell.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU ...
import os import sys import json from django.test.utils import setup_test_environment from django.core.urlresolvers import reverse from django.core.management import call_command from urllib.request import urlopen import urllib import re import requests #New Imports from django.utils import unittest from django.test ...
# -*- coding: utf-8 -*- # # Copyright © 2009-2011 Alexander Kojevnikov <alexander@kojevnikov.com> # # muspy 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, or # (at your...
from app import app from models import Blob from flask import request, url_for import os, requests, json, logging from pprint import pprint from subprocess import call nodelist = [] def add_node(): port = app.config['NODE_PORT'] masterURL = app.config['MASTER_URL'] pprint('Registering node at port ' + port +...
from django.db.models import Avg, Max, Min from .models import ResponseLog def get_metrics(start_date, end_date, platform): """ Function to get a dict with metrics for the given date range and platform. Args: start_date (date): Start date to get metrics for. end_date (date): End date to ...
import os, random, string, datetime from datetime import time, datetime, timedelta from pytz import timezone from models import * import os, random, string from datetime import time from pytz import timezone from models import * import re import csv from app import db def get_food_resource_booleans(): booleans = [] ...
import csv import os import re import unicodedata from datetime import datetime, time, timedelta, timezone from functools import wraps from io import BytesIO, StringIO from itertools import chain from numbers import Number from os import path from urllib.parse import urlparse import ago import dateutil import pyexcel ...
from flask import request, jsonify from .managers import APIAdmin from app import app from .myLogger import viewLog import traceback @app.route('/') def index(): return '', 200 @app.route('/keyboard') def keyboard(): home_message = APIAdmin.process("home").get_message() return jsonify(home_message), 200...
# -*- coding: utf8 -*- import os import sys import socket import math import time import threading from flask import render_template, request from werkzeug import secure_filename from app import app, line, watchdog sys.path.insert(0, os.path.abspath('..')) from flux import FLUX from fluxclient.robot import FluxRobot,...
# -*- coding: utf-8 -*- import json from flask import ( render_template, request, flash, jsonify, ) from utils import ( s3_upload, test_conn, insert_file_upload_meta, fetch_file_upload_meta, slugify, ) from word_count import count_words from app import app @app.route('/', methods=[...
from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.template.loader import get_template from django.template import Context from django.views.decorators.cache import cache_page from app.models import * import urllib from google.appengine.api import mail...
from __future__ import absolute_import, print_function from flask import render_template from . import app @app.route('/') @app.route('/index') def index(): return send_file('index.html')
from flask import render_template, session from app import app, host, port, user, passwd, db from app.helpers.database import con_db, query_db import flask_wtf from flask_bootstrap import Bootstrap from flask_appconfig import AppConfig from wtforms.validators import Required from flask_wtf import Form import wtforms fr...
""" Definition of views. """ from django.shortcuts import render from django.http import HttpRequest from django.template import RequestContext from datetime import datetime import app.models import random from django.http import HttpResponse import getOptions def home(request): """Renders the home page.""" ...
from argparse import ArgumentParser import logging from .cubing import cubing, BLOCK_LEN from .downsampling import downsample_mags, DEFAULT_EDGE_LEN from .compress import compress_mag_inplace from .metadata import write_webknossos_metadata from .utils import add_verbose_flag, add_jobs_flag from .mag import Mag def ...
# The MIT License # # Copyright (c) 2010 Mikael Lind # # 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, modify, mer...
#!/usr/bin/python import numpy as np import numpy.linalg as lg import sys import subprocess as sp import os import errno import shutil import re import numpy.linalg as lg from __tools__ import MyParser from __tools__ import make_sure_path_exists from __tools__ import XmlParser from __tools__ import cd from __tools__ i...
''' Project: Farnsworth Author: Karandeep Singh Nagra ''' from __future__ import unicode_literals from django.contrib.auth.models import User from django.conf import settings from django.db import models from base.models import UserProfile from managers.models import Manager from workshift.fields import DayField fr...
""" Django settings for worldli project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) im...
import threading, inspect, shlex try: import Queue except ImportError: import queue as Queue try: import readline except ImportError: import pyreadline as readline class clicmd(object): def __init__(self, desc, order = 0): self.desc = desc self.order = order def __call__(self, f...
# -*- coding: utf-8 -*- import MySQLdb from bd import * import random class BDInterface: conexion = None def connect(self): self.conexion = MySQLdb.connect(BDHOST,BDUSER,BDPASS,BDNAME) def disconnect(self): self.conexion.close() def insertarConsejo(self,text): cursor = sel...
import sys import json import os.path from ctypes import c_void_p import OpenGL.GL as gl import OpenGL.GLU as glu import cyglfw3 as glfw import PIL.Image as Image import numpy as np try: # python 3.3 or later from types import MappingProxyType except ImportError as err: MappingProxyType = dict class JSob...
""" API MAPPING FOR Zendesk API V2 """ mapping_table = { # Tickets 'list_all_tickets': { 'path': '/tickets.json', 'method': 'GET', }, 'show_ticket': { 'path': '/tickets/{{ticket_id}}.json', 'valid_params': ['include'], 'method': 'GET', }, 'show_many_tick...
from gp.gene import Gene from random import random, randint from math import floor class GPModel: def __init__(self, args=None, populationSize=None, maxGeneration=None, mutateRate=None, eliteRate=None, crossRate=None, crossType=None, verifyNum=None, proof=None, tactics=None): self.p...
import logging from collections import namedtuple, defaultdict import numpy as NP from scipy.interpolate import RectBivariateSpline from constants import SHELL_HEIGHT, TECU_TO_NS from level import LeveledArc from util import shell_mapping from ipp import cnv_azel2latlon from teqc import rinex_info from ..ionex.read_i...
#!/usr/bin/env python """Build scriptharness documentation. At some point it would be good to automate all CI/Release tasks for scriptharness; this is a good start. """ from __future__ import print_function, division, absolute_import, \ unicode_literals from jinja2 import Template import os impo...
# -*- coding: utf-8 -*- """ Copyright (C) 2013 Danilo Bargen 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, modify, merg...