text
stringlengths
3
1.05M
import { PromotionPermissions } from 'src/module/sw-promotion/helper/promotion.helper'; import template from './sw-promotion-persona-form.html.twig'; import './sw-promotion-persona-form.scss'; import PersonaCustomerGridService from '../../service/persona-customer-grid.service'; const { Component } = Shopware; const { ...
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js"; import { isPhone } from "@ui5/webcomponents-base/dist/Device.js"; import Popup from "./Popup.js"; // Template import DialogTemplate from "./generated/templates/DialogTemplate.lit.js"; // Styles import dialogCss from "./generated/themes/Dial...
# 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 ...
# coding: utf-8 """ Onshape REST API The Onshape REST API consumed by all clients. # noqa: E501 The version of the OpenAPI document: 1.113 Contact: api-support@onshape.zendesk.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 im...
var MichalPolakToken = artifacts.require('./MichalPolakToken.sol') module.exports = function (deployer) { deployer.deploy(MichalPolakToken) }
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
composer.sequence( params => { params['input'] = { 'input-param1': params['input-param1'] // add more transformations here } return params; }, composer.task('composer-demo-nh/simple1', { merge: true }), params => { params['input'] = { ...
# Funções decoradoras e decoradores def saudacao(): print('Bom dia meu chegado') variavel_saudadora = saudacao # Não pode usar parênteses variavel_saudadora() # Consigo executar a variável como função, já que atribui ela a função anteriormente
/*! @file @brief タブウィンドウ @author MIK @date 2003.5.30 */ /* Copyright (C) 2003, MIK Copyright (C) 2004, MIK, Kazika Copyright (C) 2005, ryoji Copyright (C) 2006, ryoji, fon Copyright (C) 2007, ryoji Copyright (C) 2012, Moca, syat Copyright (C) 2013, Uchi, aroka, novice, syat, ryoji Copyright (C) 2018-2021, ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement("g", null, React.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4...
function getPopulate(field) { const items = field.trim().split(' '); const data = { path: items[0] }; let temp = data; if (items.length > 0) { for (let index = 1; index < items.length; index += 1) { temp.populate = { path: items[index], }; temp = temp.populate; } } return d...
var group__group__rtc__general__functions = [ [ "Cy_RTC_Init", "group__group__rtc__general__functions.html#ga4c6aca12f876f94707818e7a5dcdbf82", null ], [ "Cy_RTC_SetDateAndTime", "group__group__rtc__general__functions.html#ga47268d3ac315e0d41b4795362bc444a8", null ], [ "Cy_RTC_GetDateAndTime", "group__group...
import argparse import os import numpy as np import torch import torch.nn.functional as F from PIL import Image from unet import UNet from utils import resize_and_crop, normalize, split_img_into_squares, hwc_to_chw, merge_masks, dense_crf from utils import plot_img_and_mask from torchvision import transforms def p...
var vel = 60 console.log(`A velocidade do seu carro é ${vel}Km/h`) if (vel >60){ //condição simples console.log(`Você ultrapassou o limite de velocidade. MULTADO!`) } console.log(`Dirija sempre usando cinto de segurança!`)
from matplotlib.colors import Normalize,LinearSegmentedColormap,cbook,ma from matplotlib.cm import datad import numpy as np """These functions allow for the creation of 'divergent' colorbars out of *any* two existing matplotlib colorbars. They are stitched together such that the split between the two colorbars always...
from ._fraction import Fraction # noqa from ._fraction_value import FractionValue # noqa
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
# proxy module from traitsui.qt4.constants import *
import React from 'react' // import {Link} from 'react-router-dom' // import {Signup} from './signUp' // import {AboutUs} from './' // import BitcoinInfo from './BitcoinsInfo' import Fade from 'react-reveal/Fade' //import {Typewriter} from '../helper/typewriter' // const txtElement = document.querySelector('.txt-type'...
export const blueColors = [ "bg-blue-600", "bg-blue-700", "bg-blue-800", "bg-blue-900", ]; export const redColors = [ "bg-red-600", "bg-red-700", "bg-red-800", "bg-red-900", ]; export const pinkColors = [ "bg-pink-100", "bg-pink-200", "bg-pink-300", "bg-pink-400", ]; export const orangeColors = ...
// FORM EDIT PART // Get csrf token from Flask backend const csrfToken = document.getElementById('csrf').firstChild.value // Get route id const projectId = document.getElementById('projectId').innerHTML const stakeholderId = document.getElementById('stakeholderId').innerHTML const activityId = document.getElementById...
from __future__ import division, print_function import numpy import numba from math import floor @numba.jit(nopython=True) def interpolation_search(x, z): n = len(x) assert n > 1 if z < x[1] or n == 2: return 0 elif z >= x[-2]: return n - 2 imin = 0 imax = n - 1 while imax ...
var fs = require('fs'); var tu = require('../utils/protractor-utils.js'); describe('product page', function () { describe('verify product pages', function () { beforeEach(function () { browser.manage().deleteAllCookies(); browser.driver.manage().window().setSize(1200, 1000); ...
from talon import Context, Module, actions, app, ui ctx = Context() ctx.matches = r""" tag: user.vim tag: user.snippets mode: user.c mode: command and code.language: c """ ctx.lists["user.snippets"] = { "define": "def", "if not define": "#ifndef:", "main": "main", "for loop": "for", "for eye loop"...
import datetime import inspect import os import shutil import time import orjson from biothings.hub.dataload.dumper import BaseDumper from biothings.hub.dataload.storage import IgnoreDuplicatedStorage from biothings.hub.dataload.uploader import BaseSourceUploader from utils.date import add_date from config import DAT...
# Copyright 2021 The Kubeflow 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 in...
/** * Coding Interview Prep #19 * Category: Data Structures * Title: Perform a Union on Two Sets * Instructions: Add an union method. * */ class Sett { constructor() { // This will hold the set this.dictionary = {}; this.length = 0; } // This method will check for the presence of an element an...
import typing as T import numpy as np import pytest from mlnext.utils import check_ndim from mlnext.utils import check_shape from mlnext.utils import check_size from mlnext.utils import flatten from mlnext.utils import RangeDict from mlnext.utils import rename_keys from mlnext.utils import truncate @pytest.mark.par...
#include <stdio.h> main() { printf("hello world\n"); }
from django.shortcuts import render,redirect from abads.models import ABExperiment,ExperimentAd from random import randint # Create your views here. def index(request): return render(request, 'abads/index.html') def test(request): return render(request, 'abads/test.html') def get_ad(request,exp_id): exp=...
#!/usr/bin/env python # Copyright (C) 2015 Indeed 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 a...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @interface GroupAtAllPBProxy : NSObject { } + (id)getInstance; + (id)getOIDBSSOPkg:(long long)arg1 serviceType:(long long)arg2 buffer:(id)arg3; + (int)removeS...
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
import * as actions from '../actions/qrModal' const initialState = { data: '', visible: false }; const notifications = (state = initialState, action) => { switch (action.type) { case actions.QR_MODAL_OPEN: return { ...state, visible: true, ...
#ifndef __NET_TC_DEF_H #define __NET_TC_DEF_H #include <net/act_api.h> struct tcf_defact { struct tcf_common common; u32 tcfd_datalen; void *tcfd_defdata; }; #define to_defact(pc) \ container_of(pc, struct tcf_defact, common) #endif /* __NET_TC_DEF_H */
from item import Item from phone import Phone item1 = Item("MyItem", 1000) item1.name = "OtherItem" print(item1.name) item1.send_mail() item2 = Phone("MyPhone", 1000) item1.apply_discount() print(f"Discounted item1 price = {item1.price}") item2.apply_discount() print(f"Discounted item2 price = {item2.price}")
### # Copyright (c) 2020, Triple A # All rights reserved. # # ### """ StreamlabsIRC: Uses Streamlabs API to play ASCII in IRC channels requested by donations. """ import sys import supybot from supybot import world # Use this for the version of this plugin. __version__ = "" # XXX Replace this with an appropriate au...
/*************************************************************************** * PHAST: PHylogenetic Analysis with Space/Time models * Copyright (c) 2002-2005 University of California, 2006-2010 Cornell * University. All rights reserved. * * This source code is distributed under a BSD-style license. See the * fi...
import {fd, database} from './IA/DataKeeper.js' class TextSender{ static sendMsg(msg, num, client){ return new Promise(function(resolve, reject){ client .sendText(num, msg) .then((result) => {resolve(result)}) .catch((error) => {reject(error)}) ...
from selenium import webdriver from time import sleep import os from webdriver_manager.chrome import ChromeDriverManager import lists import sys import json import smtplib import re import psycopg2 from lists import except_list from secrets import * from email.message import EmailMessage from webdriver_manager.chrom...
import { observable, computed, action } from 'mobx'; import { COMPLETED, UNCOMPLETED } from '../constants/filters'; import TodoModel from './TodoModel'; export default class TodoListModel { @observable todos = []; @observable activeFilter = UNCOMPLETED; @computed get filteredTodos() { switch (this.activeF...
(function($){$.fn.appear=function(fn,options){var settings=$.extend({data:undefined,one:true,accX:0,accY:0},options);return this.each(function(){var t=$(this);t.appeared=false;if(!fn){t.trigger("appear",settings.data);return}var w=$(window);var check=function(){if(!t.is(":visible")){t.appeared=false;return}var a=w.scro...
#!/opt/python/gcc/2.7.11/bin/python from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax = fig.gca(projection='3d') #X = np.arange(-32, 32, 1) #Y = np.arange(-32, 32, 1)...
import click from IPython import embed import os import sys sys.path.insert(0, ".") env = os.getenv("schedulerEnv", "default") from sanic.log import logger from scheduler_service import create_app try: import config except ImportError: from scheduler_service.config import configs config = configs.get(env)...
import torch import torch.nn as nn import torch.nn.functional as F import pdb def get_distillation_loss(student, teacher, X, temp, kd_type='ce'): assert kd_type in ['ce', 'l2'], 'unknown distillation type' stu_logits = student(X) tea_logits = teacher(X).detach() # soft labels if kd_type == 'ce': kd_loss =...
/* * LaunchDarkly REST API * Build custom integrations with the LaunchDarkly REST API * * OpenAPI spec version: 5.3.0 * Contact: support@launchdarkly.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen versi...
/* Copyright 2012 10gen 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 ...
import numpy as np import pandas as pd import scipy.stats as stats import pylab as pl import matplotlib.pyplot as plt path = r"C:\Users\ZHA244\Coding\QLD\baffle_creek\baffle-creek-buoy-quality-2013-all-forpca.csv" df = pd.read_csv(path) df.drop(['Unnamed: 0'], axis=1, inplace=True) statistic = df.describe().T print(st...
// Copyright (c) 2020 Uber Technologies, 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 without limitation the rights // to use, copy, modify, merge...
import json def write_json(file_name, content): with open(file_name, 'w') as output_file: json.dump(content, output_file) def read_json(file_name): with open(file_name, 'r') as input_file: return json.load(input_file)
# -*- coding: utf-8 -*- # Copyright (c) 2018, unilatex and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestJenisBarang(unittest.TestCase): pass
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from .box_head.box_head_v1 import build_roi_box_head # from .mask_head.mask_head import build_roi_mask_head # from .keypoint_head.keypoint_head import build_roi_keypoint_head class CombinedROIHeads(torch.nn.ModuleDict): """ ...
import { state } from 'cerebral'; /** * sets the state.health to the props.value passed in * * @param {object} providers the providers object * @param {object} providers.store the cerebral store * @param {object} providers.props the cerebral props object */ export const setHealthCheckAction = ({ props, store }) ...
window.$ = window.jQuery = require('jquery'); require('bootstrap-sass'); $(document).ready(function() { $('#dataTables-example').DataTable({ responsive: true }); });
# Lint as: python3 # Copyright 2019 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 ...
import praw import os def bot_login(): print ("Logging in..") try: r = praw.Reddit(username = os.environ["reddit_username"], password = os.environ["reddit_password"], client_id = os.environ["client_id"], client_secret = os.environ["client_secret"], ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "grb2.h" #include "wgrib2.h" #include "fnlist.h" /* * Prob.c * * Some routines for probablilty forecasts * * 11/2008: Public Domain: Wesley Ebisuzaki * 12/2008: fixed return code * 1/2008: ncep bug fix * 3/2018: move ncep bu...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA 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 cop...
import importlib import json import pytest from fixture.application import Application import os.path # for path to the config_file from fixture.db import DbFixture from model.group import Group import Json # warning! for the compiler to read the json file in the root directory it needs to be made working # or __file...
# Copyright 2021 Toyota Research Institute. All rights reserved. from tridet.layers.bev_nms import bev_nms from tridet.layers.iou_loss import IOULoss from tridet.layers.smooth_l1_loss import smooth_l1_loss
module.exports = { "env": { "browser": true, "commonjs": true, "es6": true }, "extends": ["eslint:recommended", "plugin:react/recommended"], "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module...
from django.contrib.auth import get_user_model from rest_framework import serializers from rest_framework.validators import UniqueValidator from dockerapi.models import ContainerVul,ImageInfo from dockerapi.serializers import ImageInfoSerializer from user.models import UserProfile, RegisterCode, Comment import datetime...
/* Created RJudd February 16, 2000 */ /* SPAWARSYSCEN D857 */ /********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied,...
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":35,"id":644,"methods":[{"el":30,"sc":5,"sl":28},{"el":34,"sc":5,"sl":32}],"name":"AssertionErrorWrapper","sl":22}]} // JSON: {test_ID : {"methods": [ID1, ID2, ID3...], "name" : "te...
import keras.backend as K from keras.layers import Input, merge from keras.layers.convolutional import Convolution2D from keras.layers.core import Activation, Dense, Dropout from keras.layers.normalization import BatchNormalization from keras.layers.pooling import AveragePooling2D, GlobalAveragePooling2D from keras.mod...
import Vue from 'https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.esm.browser.js' new Vue({ el: "#container", data: { age: "30 years" } })
import { combineReducers } from 'redux'; import { reducer as topics } from './topics'; const reducers = combineReducers({ topics, }); export default reducers;
#ifndef INCLUDED_MPHALPORT_H #define INCLUDED_MPHALPORT_H #include "py/ringbuf.h" #include "lib/utils/interrupt_char.h" extern ringbuf_t stdin_ringbuf; extern void mp_hal_set_interrupt_char(int c); // needed for machine.I2C #define mp_hal_delay_us_fast(us) mp_hal_delay_us(us) #define mp_hal_pin_od_low(pin) #define...
from rpython.rlib.objectmodel import specialize from . import ast, oop @specialize.argtype(0) def unknown_lit(lit): return TypeError('Unknown lit %r for type %r' % (lit, type(lit))) @specialize.argtype(0) def wrap_lit(lit): if lit is None: w_value = oop.w_nil elif isinstance(lit, bool): ...
from flask import current_app from changes.queue.task import tracked_task from changes.utils.imports import import_string class SuspiciousOperation(Exception): pass @tracked_task def fire_signal(signal, kwargs): for listener, l_signal in current_app.config['EVENT_LISTENERS']: if l_signal == signal:...
const querystring = require('querystring') const { Switch } = require('./base') class Shelly2 extends Switch { constructor(id, host, mode = 'relay') { super(id, host) this._defineProperty('relay0', [112, 1101], false, Boolean) this._defineProperty('relay1', [122, 1201], false, Boolean) this._defin...
# -*- coding: utf-8 -*- from abc import ABCMeta from functools import wraps from inspect import iscoroutinefunction from typing import ( Any, Callable, ClassVar, Coroutine, Generic, NoReturn, Type, TypeVar, Union, overload, ) from typing_extensions import final from returns.pr...
import abc from collections import namedtuple from datetime import datetime from enum import Enum import logging import numpy as np import os import shutil import subprocess import sys import tempfile import venv from util import dir_changer, execute_wrapper class LibraryType(Enum): """ Every test case has d...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:39:33 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
from django.db.models import AutoField PK_ID = 'id' # default name of primary key field class dse_value_parser(classmethod): """ """ def __init__(self, *args, **kw): """ """ func = args[0] func.is_dse_value_parser = True super(dse_value_parser, self).__init__(...
import socket import json import unittest class ListTest(unittest.TestCase): @staticmethod def __send(data): sock = socket.socket() host = socket.gethostbyname(socket.gethostname()) port = 6969 json_data = json.dumps(data) sock.connect((host, port)) sock.send(j...
import { check } from 'meteor/check'; import { API } from '../../../../api'; import { hasPermission } from '../../../../authorization'; import { LivechatDepartment, LivechatDepartmentAgents } from '../../../../models'; import { Livechat } from '../../../server/lib/Livechat'; API.v1.addRoute('livechat/department', { a...
import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY', '12345') SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'postgresql+psycopg2://postgres@localhost/amazonva_dev') # SQLALCHEMY_DATABASE_URI = 'postgresql://post' print(os.environ.get('DATABASE_URL')) MAIL_SERVER = 'smtp.googlemail.com' MA...
# Lint as: python3 # Copyright 2018 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 ...
nas = [[1,2,3],[2,3,4],[3,4,5]] i = 0 result = set(nas[i]) while i < (len(nas)-1): i += 1 result = set(result).intersection(set(nas[i])) print result
/* eslint-disable import/no-named-as-default */ // @flow import React from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import LinearProgress from '../../components/ProgressBar'; import { makeSelectBalanceLoading } from '../App/sel...
from collections import defaultdict, UserDict from functools import partial import asyncio from asyncio.queues import Queue, QueueEmpty from operator import itemgetter from hashlib import md5 from plyer import browser, call, sms, email from mywidgets import PaddedBoxLayout, WrappedLabel from kivyevents import KivyEven...
#!/usr/bin/env python # -*- coding: utf-8 -*- from Interface import screenInterface screenInterface
const presence = new Presence({ clientId: "685491676155871281", mediaKeys: false }); presence.on('UpdateData', () => { const presenceData = { largeImageKey: "pypi" }, Path = document.location.pathname, Details = {}; presenceData.startTimestamp = Math.floor...
var win = Ti.UI.currentWindow; // // Login Button // var fbButton = Titanium.Facebook.createLoginButton({ 'style':'wide', 'apikey':'9494e611f2a93b8d7bfcdfa8cefdaf9f', 'sessionProxy':'http://api.appcelerator.net/p/fbconnect/', bottom:10 }); win.add(fbButton); var b1 = Ti.UI.createButton({ title:'Upload Photo', wi...
# coding: utf-8 """ vserver Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class GetMemberServerImageInstanceListRequest(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit t...
import numpy as np import matplotlib.pyplot as plt import sectionproperties.pre.sections as sections from sectionproperties.analysis.cross_section import CrossSection # rectangle dimensions d_list = [] b_list = np.linspace(0.2, 1, 20) j_list = [] # list holding torsion constant results # number of elements for each ...
/** @file * @brief mDNS responder * * This listens to mDNS queries and responds to them. */ /* * Copyright (c) 2017 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #if defined(CONFIG_NET_DEBUG_MDNS_RESPONDER) #define SYS_LOG_DOMAIN "mdns" #define NET_LOG_ENABLED 1 #endif #include <zephyr.h> #inc...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, to any person o...
from __future__ import division import time import torch import torch.nn as nn from torch.autograd import Variable import numpy as np import cv2 from util import * from darknet import Darknet from preprocess import prep_image, inp_to_image import pandas as pd import random import argparse import pickle as pkl import r...
import os import subprocess from graphs import homology from Utils import ColourClass, FancyApp, Utilities class RunHomology(FancyApp.FancyApp): def __init__(self, args): super(RunHomology, self).__init__() self.colour = ColourClass.bcolors.BOLD_GREEN self.fasta = args.fasta self...
#============================================================================== # # This code was developed as part of the Astronomy Data and Computing Services # (ADACS; https:#adacs.org.au) 2017B Software Support program. # # Written by: Dany Vohl, Lewis Lakerink, Shibli Saleheen # Date: December 2017 # # It is...
from Objects.Turf import Turf class Wall(Turf): def __init__(self): super().__init__() self.isWall = True self.name = "Wall" self.sprite = "wall" self.density = True
from distutils.core import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='applepyautomator', packages=['applepyautomator'], version='0.3', license='MIT', description='applepyautomator is a simplified implementation of applescript automation for macOs in python3. ...
"use strict"; var token = 'hogehogefugafuga'; module.exports = token;
""" This file produces the plots for one scenario. The plots are produced for only one calculation method. This is not useful to compare different calculation methods but to see the outputs of only one simulation. """ import json import re import subprocess import os import sqlite3 as lite import copy import glob impo...
/* * Copyright 2014 Advanced Micro Devices, 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 without limitation * the rights to use, copy, modify, m...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
#import .instance
# -*- coding: utf-8 -*- """ --Orr Natural Selection Simulation-- A simple model of natural selection based on Orr, 2009. Fitness and its role in evolutionary genetics. Nature Reviews (Genetics) vol. 10, p. 531-539. author: Ricardo A. S. Cerboncini website: rcerboncini.freesite.vip github repository: https://github.com...