text
stringlengths
3
1.05M
# Copyright (c) 2018, 2019, 2020 Nordic Semiconductor ASA # Copyright 2018, 2019 Foundries.io Ltd # # SPDX-License-Identifier: Apache-2.0 ''' Parser and abstract data types for west manifests. ''' import configparser import enum import errno import logging import os from pathlib import PurePosixPath, Path import re i...
# Copyright 2018-2020 Xanadu Quantum Technologies 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...
# Time: O(n * sqrt(n)) # Space: O(1) class Solution(object): def sumFourDivisors(self, nums): """ :type nums: List[int] :rtype: int """ result = 0 for num in nums: facs, i = [], 1 while i*i <= num: if num % i: ...
/** * Created by rhett on 2/17/16. */ 'use strict'; //var path = require('path'); var fs = require('fs'); var error = require('if-err'); var q = require('q'); var File = require('./file'); var engines = require('./engines'); /** * Template getter * * @param {String} name string name of template o fetch...
from sys import stdin, stdout def doesNotContainAnagrams(passphrase): isAnagram = lambda word1, word2: sorted(word1) == sorted(word2) for word in range(len(passphrase)): for otherWord in range(len(passphrase)): if isAnagram(passphrase[word], passphrase[otherWord]) and word != otherWord: ...
'use strict' const debug = require('debug') const log = Object.assign(debug('libp2p:dialer'), { error: debug('libp2p:dialer:err') }) const errCode = require('err-code') const multiaddr = require('multiaddr') const TimeoutController = require('timeout-abort-controller') const anySignal = require('any-signal') const ...
(function() { var checker = Object.create(null); function isArray(arg) { return arg instanceof Array; } function isObject(arg) { return arg instanceof Object; // weak check, need to improve } function deepEqual(input, inputToCompare) { if (input === inputToCompare) { return true; } ...
P_CROSS_ULOOP(16, { pd = (ps1 - ps2) >> 1; }, { pd = (ps1 + ps2) >> 1; })
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests the GRR hunt collectors.""" from __future__ import unicode_literals import unittest import zipfile import mock from grr_response_proto import flows_pb2 from dftimewolf import config from dftimewolf.lib import state from dftimewolf.lib.collectors import grr_hunt...
// OCHamcrest by Jon Reid, https://qualitycoding.org/ // Copyright 2017 hamcrest.org. See LICENSE.txt #import <OCHamcrestIOS/HCBaseMatcher.h> NS_ASSUME_NONNULL_BEGIN /*! * @abstract Matchers numbers close to a value, within a delta range. */ @interface HCIsCloseTo : HCBaseMatcher - (instancetype)initWithValue:...
import React from 'react'; import Main from './pages/Main'; import './pages/Theme.css'; import i18n from './i18n'; import Logo3927 from './resources/images/logo3927.png'; import Logo2048 from './resources/images/logo2048.png'; import Logo1024 from './resources/images/logo1024.png'; import Logo512 from './resources/imag...
""" @package mi.instrument.teledyne.workhorse.driver @file marine-integrations/mi/instrument/teledyne/workhorse/driver.py @author Sung Ahn @brief Driver for the Teledyne Workhorse class instruments Release notes: Generic Driver for ADCPS-K, ADCPS-I, ADCPT-B and ADCPT-DE """ import time import struct import re from con...
import os.path as path import pandas as pd from sklearn.model_selection import train_test_split import numpy as np from .config import DATA_DIR from .downloader import download URL = 'http://scrippsco2.ucsd.edu/assets/data/atmospheric/stations/in_situ_co2/monthly/monthly_in_situ_co2_mlo.csv' class CO2Data: def...
import inspect import re import exomerge # get list of functions and members # ignore uppercase values # ignore special functions # ignore hidden functions functions = [x for x in dir(exomerge.ExodusModel) if x == x.lower() and x[0] != '_'] example_header = '\nExample' # descriptions for ...
var LocaleSymbols_ar_TN = new LocaleSymbols({ MonthNames:["\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a", "\u0634\u0628\u0627\u0637", "\u0622\u0630\u0627\u0631", "\u0646\u064a\u0633\u0627\u0646", "\u0623\u064a\u0627\u0631", "\u062d\u0632\u064a\u0631\u0627\u0646", "\u062a\u0645\u0648\u0632", "\u06...
import glob import os import subprocess import imageio import numpy as np import torch def make_gif(working_directory, filename): options = '-delay 8 -loop 0' subprocess.call('convert %s %s/_tmp_*.png %s' % (options, working_directory, filename), shell=True) for filename in glob.glob(...
const http = require('http'); const https = require('https'); const express = require('express'); const cors = require('cors'); const fs = require('fs'); require('dotenv').config({ path: "./.env"}); const mainRouter = require('./routes/search.js'); const app = express(); /*app use CORS*/ app.use(cors({ origin: ["htt...
'use strict' const fs = require('fs') const assert = require('assert') const bench = require('nanobench') let str = fs.readFileSync('big.txt') str = str + str + str + str console.log('Sample text size:', str.length) const quicklyCountSubstrings = require('quickly-count-substrings') const countSubstring = require('co...
# For each row in the DataFrame, translate it to English. # Store the original language in the original_lang column. # Store the new translation in the translated_desc column. import boto3 # Create boto3 client to translate translate = boto3.client('translate', region_name='us-east-1', aws_a...
# coding: utf-8 import numpy as np def AND(x1, x2): x = np.array([x1, x2]) w = np.array([0.5, 0.5]) b = -0.7 tmp = np.sum(w * x) + b if tmp <= 0: return 0 else: return 1 if __name__ == "__main__": for xs in [(0, 0), (1, 0), (0, 1), (1, 1)]: y = AND(xs[0], xs[1]) ...
__author__ = 'sz372' import cv2 import os _decoder = cv2.text.OCRTesseract_create() def ocr(roi): # Temporarily disable stderr # Tesseract prints out annoying error messages tmpfd = os.dup(2) os.close(2) text, comp_rect, comp_texts, comp_conf = _decoder.run(roi) os.dup2(tmpfd, 2) os.close...
""" List of countries that Spotify is available in. The list is based on: https://support.spotify.com/us/article/where-spotify-is-available/ Last updated: 2021-08-16 """ COUNTRIES = { "AL": "Albania", "DZ": "Algeria", "AG": "Antigua and Barbuda", "AD": "Andorra", "AO": "Angola", "AR": "Argenti...
"""The tests for the androidtv platform.""" import base64 import copy import logging from unittest.mock import patch from androidtv.constants import APPS as ANDROIDTV_APPS, KEYS from androidtv.exceptions import LockNotAcquiredException import pytest from homeassistant.components.androidtv.const import ( CONF_ADB_...
from http import HTTPStatus from django.test import Client, TestCase from django.urls import reverse from ..models import Group, Post, User class PagesURLTests(TestCase): @classmethod def setUpClass(cls): super().setUpClass() cls.user = User.objects.create_user(username="vasya") ...
""" Managing Attack Logs. ======================== """ import numpy as np from textattack.attack_results import FailedAttackResult, SkippedAttackResult from . import CSVLogger, FileLogger, VisdomLogger, WeightsAndBiasesLogger class AttackLogManager: """Logs the results of an attack to all attached loggers.""" ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); tslib_1.__exportStar(require("./components/OverflowSet/index"), exports); //# sourceMappingURL=OverflowSet.js.map
/*========================================================================= Program: OsiriX Copyright (c) OsiriX Team All rights reserved. Distributed under GNU - LGPL See http://www.osirix-viewer.com/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even ...
defineSuite([ 'Core/RectangleOutlineGeometry', 'Core/arrayFill', 'Core/Cartesian2', 'Core/Cartesian3', 'Core/Ellipsoid', 'Core/GeometryOffsetAttribute', 'Core/GeographicProjection', 'Core/Math', 'Core/Matrix2', 'Core/Rectangle', ...
import numpy as np from datetime import datetime import netCDF4 as netCDF def nc_create_roms_bdry_file(filename, grd, ocean_time): # create file nc = netCDF.Dataset(filename, 'w') nc.Description = 'ROMS file' nc.Author = 'pyroms_toolbox.nc_create_roms_file' nc.Created = datetime.now().strftime("%...
/* $Id: upnpreplyparse.c,v 1.15 2013/06/06 21:36:40 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2013 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ #include <stdlib...
/* * Copyright 2018 Luke Klinker * * 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 agr...
__project__ = 'OSADOL.' __author__ = 'Jeys_Ozzius.' __descript__ = "Copyright (c) 2017 Anirban Ghosh(Anirban83314) & Debashis Biswas(deb991)." __URL__ = 'https://github.com/Anirban83314/OutLook-Automation-All-scopes-with-APP-utility.' __NB__ = 'For more information, please see github page & all commit details.' __Ciphe...
export const trimVal = n => n.toFixed().padStart(3) export const trimColor = ([r, g, b]) => [trimVal(r), trimVal(g), trimVal(b)]
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('snowball', '0006_kline'), ] operations = [ migrations.AddField( model_name='kline', name='price_last...
# encoding: utf-8 # author: Yicheng Wang # contact: wyc@whu.edu.cn # datetime:2020/9/28 10:08 """ average stds but not vars of all classes, .../(eps + std), bias-corrected """ import torch from torch.nn.modules.batchnorm import _BatchNorm as origin_BN from warnings import warn from SampleRateLearning import global_var...
# Generated by Django 2.2.9 on 2021-08-15 12:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0001_initial'), ] operations = [ migrations.AlterField( model_name='post', name='text_title', f...
import Mock from 'mockjs' import { param2Obj } from '@/utils' const List = [] const count = 100 for (let i = 0; i < count; i++) { List.push(Mock.mock({ id: '@increment', timestamp: +Mock.Random.date('T'), author: '@cname', reviewer: '@cname', 'name|1': ['HUAWEI', 'apple', 'Lenovo', 'DELL'], ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from sklearn.cluster import KMeans, SpectralClustering, DBSCAN from sklearn.metrics import * from sklearn.decomposition import PCA from local_utils import * import os from clustering_methods import ClusteringMethods import matplotlib.pyplot as plt from mpl_toolkits.mplot3d ...
from __future__ import print_function import os import unittest import numpy as np from pyNastran.bdf.bdf import BDF, BDFCard, CBAR, PBAR, PBARL, GRID, MAT1 from pyNastran.bdf.field_writer_8 import print_card_8 from pyNastran.bdf.cards.test.utils import save_load_deck class TestBars(unittest.TestCase): """test ...
__author__ = "Johannes Köster" __copyright__ = "Copyright 2021, Johannes Köster" __email__ = "johannes.koester@uni-due.de" __license__ = "MIT" import inspect import itertools import os from snakemake import sourcecache from snakemake.sourcecache import ( LocalSourceFile, SourceCache, SourceFile, infer_...
/*! jQuery UI - v1.11.4 - 2016-04-21 * http://jqueryui.com * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(){});
import React from 'react' import { Link } from '../routes' import slug from '../helpers/slug' function ChannelsGrid (props){ return( <div className={`channels ${props.layoutSeries}`}> { props.channels.map((channel)=>( <Link route='channel' params={{ slug: slug(channel.ti...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z", opacity: ".87" }), React.createElement("path", { d: "M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8...
import React from 'react' import { Link } from 'gatsby' export default ({ headings }) => ( <ul> {headings.items .map(item => ( <li key={item.title}> <Link to={item.url}>{item.title}</Link> </li> ))} </ul> ) // export default ({headings}) => <pre...
"""Unit tests for pyatv.conf.""" import pytest from pyatv import conf, exceptions from pyatv.const import DeviceModel, OperatingSystem, Protocol ADDRESS_1 = "127.0.0.1" ADDRESS_2 = "192.168.0.1" NAME = "Alice" PORT_1 = 1234 PORT_2 = 5678 PORT_3 = 1111 PORT_4 = 5555 IDENTIFIER_1 = "id1" IDENTIFIER_2 = "id2" IDENTIFIE...
// // FDHomeHeadView.h // FreshDi // // Created by Yin jianxun on 16/9/11. // Copyright © 2016年 YinJianxun. All rights reserved. // #import <UIKit/UIKit.h> #import "HotView.h" #import "PageScrollView.h" #import "HomeHeadData.h" #import "BrandView.h" #import "HeadlineView.h" @interface FDHomeHeadView : UIView //@...
import Vue from 'vue' import VueRouter from 'vue-router' Vue.use(VueRouter) const Home = { template: '<div>home</div>' } // In Webpack we can use special require syntax to signify a "split point" // Webpack will automatically split and lazy-load the split modules. // - https://webpack.js.org/guides/code-splitting-re...
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "util.h" #define BUF_SIZE 10 #define BUF2_SIZE 1000 int main(void) { static const char file_path[] = "rr-test-file"; static const char link_path[] = "rr-test-link"; char* buf = allocate_guard(BUF_SIZE, 'q'); char* buf2 = ...
export default function PMMatDop(par, visi3D, objbase) { this.type="PMMat"; var self=this; this.par=par this.visi3D=visi3D this.objbase=objbase; this.pmTexture = this.par.tex; this.ser = window.location.href; var arrParams = window.location.href.split("?"); var arrP...
# Generated by Django 2.1.4 on 2019-01-04 23:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='GPSPoint', fields=[ ...
# -*- coding: utf-8 -*- """ Entity forms """ from django.conf import settings from django import forms from django.utils.translation import ugettext_lazy as _ from django.template.defaultfilters import slugify from bazar.forms import CrispyFormMixin from bazar.utils.imports import safe_import_module from bazar.models ...
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-%typedarray%.prototype.subarray description: ToInteger(begin) info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 7. Let relativeBegin be ? To...
// Fetched from channel: beta, with url http://builds.emberjs.com/beta/ember-data.min.js // Fetched on: 2014-04-16T15:04:04Z /*! * @overview Ember Data * @copyright Copyright 2011-2014 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see l...
/* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:17:03 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrameworks/PassKitUI...
const Joi = require('joi'); const constants = require('../constants'); const { NAME_MIN, NAME_MAX } = constants; const schema = Joi.object().keys({ name: Joi.string() .min(NAME_MIN) .max(NAME_MAX) .required(), username: Joi.string().email({ minDomainAtoms: 2 }), }); async function validateRegisterHo...
#!/usr/bin/env python """ gridded module: This module defines the gridded.Dataset -- The core class that encapsulates the gridded data model """ # py2/3 compatibility from __future__ import absolute_import, division, print_function, unicode_literals from gridded.grids import Grid from gridded.variable import Var...
import React from 'react' // import { Link } from 'react-router-dom'; import Main from '../layouts/Main' import Education from '../components/Resume/Education' import Experience from '../components/Resume/Experience' import Skills from '../components/Resume/Skills' import Courses from '../components/Resume/Courses' /...
var searchData= [ ['onresize_153',['OnResize',['../class_open_g_l_1_1_open_g_l_app.html#a5e7b6c65ce41fca21fb7b721cebcebee',1,'OpenGL::OpenGLApp']]], ['openglapp_154',['OpenGLApp',['../class_open_g_l_1_1_open_g_l_app.html#afa6467b1176f0494376daf38f9f00018',1,'OpenGL::OpenGLApp::OpenGLApp(const char *name, int width,...
# coding: utf-8 import picamera # import numpy as np from picamera.array import PiRGBAnalysis import sys import os from io import BytesIO from http.server import HTTPServer, BaseHTTPRequestHandler from PIL import Image import cv2 as cv import pytesseract import re PORT = int(sys.argv[1]) class MyOcrAnalyzer(PiRGBAna...
import * as THREE from 'three' import vertexShader from './sprite-vertex.glsl' import fragmentShader from './sprite-fragment.glsl' export default class SpritesContainer { constructor (SpriteClass, maxCount) { this.SpriteClass = SpriteClass this.maxCount = maxCount // Texture defines base shape. this...
# 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 required by applica...
# -*- coding: utf-8 -*- # Calcula fatorial import time as t import sys sys.setrecursionlimit(1000000) # **************** funcao em teste ******************* def fatIT(n, acc=1): while not n < 2: n,acc = n - 1, n * acc return acc # **************************************************** def main(): ...
import { Color, rect, pt, Rectangle } from "lively.graphics"; import { arr, Path, obj, fun, promise, string } from "lively.lang"; import { connect } from "lively.bindings"; import { morph, easings, StyleSheet, HorizontalLayout, GridLayout, config, Icon } from "lively.morphic"; import Window from "lively.co...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, August 24, 2019 at 9:42:39 PM Mountain Standard Time * Operating System: Version 12.4 (Build 16M568) * Image Source: /System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elia...
from __future__ import division from builtins import range from past.utils import old_div import numpy def polarPolygon2cartesian(polarPolygon): polygon = [] for nr,point in enumerate(polarPolygon): polygon.append([polarPolygon[nr][1]*numpy.cos(polarPolygon[nr][0]), polarPolygon...
(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{3641:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return i}));r(6),r(7);var n=r(0);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&...
const fetch = require("node-fetch"); const Discord = require('discord.js'); const Sequelize = require('sequelize') const sequelize = new Sequelize({ database: "d6lsn880r2ke6u", username: "lkbyceoovbufyv", password: process.env.DB_PASSWORD, host: "ec2-63-34-97-163.eu-west-1.compute.amazonaws.com", po...
#include <stdlib.h> #include <stdio.h> int main(void){ 15.75; printf("This is one way to show a float-> %f\n",1.575E1); printf("This is another-> %f \n",1575e-2); printf("\nHere's one more -> %f",.001575e4); return 0; }
import _ from 'lodash'; import Joyride, { STATUS } from 'react-joyride'; import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from './actions'; const commonStepProps = { disableBeacon: true, placement: 'auto', }; const steps = [ { ...
import socket import sys HOST = '127.0.0.1' # Endereco IP do Servidor ex: '192.168.1.10' PORT = 5000 # Porta que o Servidor esta udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) dest = (HOST, PORT) print('Para sair use CTRL+X\n') msg = input() while (msg != '\x18'): udp.sendto (msg.encode('utf-8')...
def flatten_resource(resources): flat_result = {'uuid': [], 'name': [], 'type': []} for resource in resources: flat_result['uuid'].append(resource['uuid']) flat_result['name'].append(resource['name']) flat_result['type'].append(resource['type']) return flat_result def parse_log_m...
lista=[] listaf=[] pessoas=[['miguel',18],['teresa',65],['emerson',33]] print(pessoas[0][0]) print(pessoas[0]) galera=list() galera.append(pessoas[:]) print(galera) print(galera[0][0][1]) for p in pessoas: print(f'o nome da pessoa é {p[0]} e sua idade é {p[1]}') for k in range(2): nome=input('digite um nome:...
import plotly.graph_objects as go import pandas as pd path = '/home/duck/data' csv_file_path = path + '/basedata/product_mix.csv' image_path = path + '/images' axis_range = 500 print('\tStart /home/duck/scripts/generate_product_mix_graph.py…') df = pd.read_csv(csv_file_path, index_col=0) max_ducks = df.iloc[0]['ma...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EventUtils = void 0; const _ = require("lodash"); class EventUtils { static isEvent(proto) { return _.has(proto, "context") && _.has(proto, "data"); } static isLegacyEvent(proto) { return _.has(proto, "data"...
#!/usr/bin/env python # coding: utf-8 from __future__ import absolute_import, division, print_function import os import numpy as np import torch import torch.nn as nn from torchvision import transforms from tqdm import tqdm from dataset.cinnamon import Cinnamon, classToRGB from dataset.deep_globe import is_image_file...
# -*- coding: utf-8 -*- from model.contact import Contact import random def test_edit_name(app, db, json_contacts, check_ui): contact = json_contacts if len(db.get_contact_list()) == 0: app.contact.create(contact) old_contact = db.get_contact_list() c = random.choice(old_contact) app.conta...
// function myMap() { // var myCenter = new google.maps.LatLng(40.7205238,-74.0431689); // var mapCanvas = document.getElementById("map"); // var mapOptions = {center: myCenter, zoom: 20}; // var map = new google.maps.Map(mapCanvas, mapOptions); // var marker = new google.maps.Marker({position:myC...
import { useState, useCallback } from 'react'; const useInputs = (initialForm) => { const [form, setForm] = useState(initialForm); const onChange = useCallback((e) => { const { name, value } = e.target; setForm((form) => ({ ...form, [name]: value })); }, []); const reset = useCallback(() => setForm(i...
class IDisposable: """ Defines a method to release allocated resources. """ def Dispose(self): """ Dispose(self: IDisposable) Performs application-defined tasks associated with freeing,releasing,or resetting unmanaged resources. """ pass def __enter__(self,*args): """ __enter__(self: ID...
# Python program to swap two variables x = 5 y = 10 # To take inputs from the user #x = input('Enter value of x: ') #y = input('Enter value of y: ') # create a temporary variable and swap the values x,y=y,x print('The value of x after swapping: {}'.format(x)) print('The value of y after swapping: {}'.f...
# # Copyright (c) 2018 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
/** * @file 仪表盘-增加部件详情组件 * @author zttonly, Lohoyo */ import Component from '@lib/san-component'; import ListItemInfo from '@components/list-item-info'; import './widget.less'; export default class WidgetItem extends Component { static template = /* html */` <div class="widget-item" s-if="definition">...
/* The contents of this file are subject to the Netscape Public License * Version 1.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.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS IS" *...
const util = require("../util"); var path = require("path"); module.exports = { name: "move", aliases: ["mv"], exec: async (msg, args) => { console.log(Date() + " " + msg.member.user.id + " aka " + msg.member.user.tag + " is calling " + path.basename(__filename) + " with " + args.join(" ")); cons...
function w(t,n,i=e=>e){let e=Object.create(null);e.options=n||{},e.reviver=i,e.value="",e.entry=[],e.output=[],e.col=1,e.row=1;let l=/"|,|\r\n|\n|\r|[^",\r\n]+/y,a=/^(\r\n|\n|\r)$/,u=[],o="",r=0;for(;(u=l.exec(t))!==null;)switch(o=u[0],r){case 0:switch(!0){case o==='"':r=3;break;case o===",":r=0,s(e);break;case a.test(...
var searchData= [ ['randomdefaultlm_3962',['RandomDefaultLM',['../class_quant_lib_1_1_random_default_l_m.html',1,'QuantLib']]], ['randomdefaultmodel_3963',['RandomDefaultModel',['../class_quant_lib_1_1_random_default_model.html',1,'QuantLib']]], ['randomizedlds_3964',['RandomizedLDS',['../class_quant_lib_1_1_rand...
import 'select2'; import $ from 'jquery'; import _ from 'underscore'; import Backbone from 'backbone'; import CostCenterCollection from '../../../../scripts/manager/models/CostCenterCollection'; import EditPersonView from '../../../../scripts/manager/views/EditPersonView'; import OutsideAffiliationLookupCollection fr...
#!/usr/bin/env python3 # Copyright (C) 2018 Guido Dassori <guido.dassori@gmail.com> # import sys sys.path.insert(0, './') import spruned from spruned.application import migrations if sys.version > '3.5.2': # pragma: no cover import argparse import asyncio from spruned.application.context import ctx ...
'''Shared objects for integration testing.''' import os from plaid import Client def create_client(): '''Create a new client for testing.''' return Client(os.environ['CLIENT_ID'], os.environ['SECRET'], os.environ['PUBLIC_KEY'], 'sandbox', ...
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-rel-xr-w32-bld/build/dom/interfaces/events/nsIDOMMozTouchEvent.idl */ #ifndef __gen_nsIDOMMozTouchEvent_h__ #define __gen_nsIDOMMozTouchEvent_h__ #ifndef __gen_nsIDOMMouseEvent_h__ #include "nsIDOMMouseEvent.h" #endif /* For IDL files that ...
/* FixedArray.h -- active or inactive FixedArray of arbitrary rank Copyright (C) 2014-2017 European Centre for Medium-Range Weather Forecasts Author: Robin Hogan <r.j.hogan@ecmwf.int> This file is part of the Adept library. The FixedArray class has functionality modelled on Fortran-90 arrays - th...
const _ = require('lodash') const path = require('path') const fs = require('../lib/fs') // grab the current version and a few other properties // from the root package.json const { version, description, author, homepage, license, bugs, repository, keywords, } = require('@packages/root') // the rest ...
/*******************************************************************************/ /* Copyright (C) 1994 - 2015, Performance Dynamics Company */ /* */ /* This software is licensed as described in the file COPYING, which ...
(function( window, undefined ) { kendo.cultures["rm"] = { name: "rm", numberFormat: { pattern: ["-n"], decimals: 2, ",": "'", ".": ".", groupSize: [3], percent: { pattern: ["-n%","n%"], decimals:...
""" Support for reading and writing the `AXT`_ format used for pairwise alignments. .. _AXT: http://genome.ucsc.edu/goldenPath/help/axt.html """ from bx.align import * import itertools from bx import interval_index_file # Tools for dealing with pairwise alignments in AXT format class MultiIndexed( object ): "...
""" Tests for `galkin` module. """ import pytest import numpy.testing as npt import lenstronomy.Util.multi_gauss_expansion as mge import numpy as np from lenstronomy.LightModel.light_model import LightModel from lenstronomy.LensModel.lens_model import LensModel from lenstronomy.Analysis.lens_analysis import LensAnalysi...
#ifndef _incl_datamgr_h #define _incl_datamgr_h /* Costanti ================================================================= */ /* Codici dei comandi (usati nel programma per alcune verifiche): * (Comandi liberi: * 0, 1, 11, 13, 15, 17, 19, 21, 23, 25, 41, 53, 55, 57, 59, 61, 63) */ #define CmdCode_None ...
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Tests for join expansion """ from copy import deepcopy import os from shutil import rmtree from tempfile import mkdtemp import networkx as nx from nipype.testing import (assert_equal, assert_true) impo...
/* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a different devtool...
import os class Empresa(): def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""): self.nombre=nom self.ruc=ruc self.direccion=dire self.telefono=tele self.ciudad=ciud self.tipoEmpresa=tipEmpr def datosEmpresa(self):#3 self.nombre=input("Ingres...