text
stringlengths
3
1.05M
from mock import mock from django import test from django.core.exceptions import ValidationError from django_grapesjs.forms.fields import GrapesJsField from django_grapesjs.forms.widgets import GrapesJsWidget __all__ = ('GrapesJsWidgetTestCase', ) class GrapesJsWidgetTestCase(test.TestCase): def test_get_format...
/* * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * 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.apac...
"""IMex Tools. # *- coding: utf8 -*- # Copyright (c) 2019 Hygor Costa # # This file is part of Py_IMEX. # # # You should have received a copy of the GNU General Public License # along with HUM. If not, see <http://www.gnu.org/licenses/>. # # Created: Jul 2019 # Author: Hygor Costa """ from collections import namedtup...
from typing import List, Union from gsf.core.expressions import Expression from gsf.core.types import Time from gsf.dynamic_system.dynamic_systems import DiscreteEventDynamicSystem from gsf.models.core import ModelState from gsf.models.models import DiscreteEventModel GeneratorState = Union[Expression, List[int]] c...
import React from "react" import { IconContext } from "react-icons" import {GiFeather} from "react-icons/gi" import styled, {keyframes} from "react-emotion" import { rhythm, scale } from "../utils/typography" import presets, { colors } from "../utils/presets" import Button from "./button" import { vP, vPHd, vPVHd, vP...
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( int_or_none, parse_duration, parse_iso8601, ) class AirMozillaIE(InfoExtractor): _VALID_URL = r'https?://air\.mozilla\.org/(?P<id>[0-9a-z-]+)/?' _TEST = { 'url': 'htt...
from machine import PWM from machine import Pin class Led(): """ 创建LED类 """ def __init__(self, rpin, gpin, bpin, sfreq=1000): """ 构造函数 :param pin: 接LED的管脚,必须支持PWM :param freq: PWM的默认频率是1000 """ self.pin_red = Pin(rpin) self.pin_green = Pin(gpin) ...
from tests.utils import service_ok import pytest from owslib.wfs import WebFeatureService SERVICE_URL = 'https://www.ldproxy.nrw.de/rest/services/kataster/?f=json' @pytest.mark.online @pytest.mark.skipif(not service_ok(SERVICE_URL), reason='service is unreachable') def test_wfs3_ldproxy(): ...
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
#ifndef PSACSACSKETCH_H #define PSACSACSKETCH_H #include "common.h" struct PSACSketch:public Sketch{ public: PSACSketch(uint d, uint w); ~PSACSketch(); void ConfigPro(uint *pro); void ConfigThres(uint *thres); void Insert(cuc *str); uint Query(cuc *str, bool ml = FALSE); void PrintCounter(cuc* str, uint acc_v...
import * as React from "react"; import { Link, useStaticQuery, graphql } from "gatsby"; import "../styles/modified/custom.compressed.css"; import * as custom from "../styles/layout.module.css"; const Layout = ({ pageTitle, children }) => { const data = useStaticQuery(graphql` query { site { siteM...
'use strict'; var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault'); var _typeof = require('@babel/runtime/helpers/typeof'); Object.defineProperty(exports, '__esModule', { value: true, }); exports['default'] = exports.DEFAULT_SCROLLING_RESET_TIME_INTERVAL = void 0; var _classCallChe...
/** * * NavBar * */ import React, { useEffect } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'connected-react-router'; import { Menu, Dropdown, Icon, notification } from 'antd'; import { Link } from 'react-router-dom'; import { FormattedMessage } fro...
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import os import subprocess import time from tests.utils import get_config_file_path logger = logging.getLogger(__name__) class ServerManager(object): """Runs vault process running with test configuration and associates a hvac Client instance with thi...
/*====================================================== ************ Photo Browser ************ ======================================================*/ var PhotoBrowser = function (params) { var pb = this, i; var defaults = { photos : [], initialSlide: 0, spaceBetween: 20, ...
# NOTHING TO SEE HERE MY GUY
import Promise from 'bluebird' import {exec} from 'child_process' import PublishRelease from 'publish-release' import got from 'got' import loadJsonFile from 'load-json-file' import writeJsonFile from 'write-json-file' import path from 'path' import { stdout as log } from 'single-line-log' import prettyBytes from 'pret...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
var canemcode=true; var canimgcode=true; var canmediacode=true; var canimgsign=true; var emotnum=72; var isSimple=false; var emotdir='file:///android_asset/emot/'; var icondir='file:///android_asset/images/files/'; var tdclass; String.format = function () { if (arguments.length == 0) return null; var str = argumen...
export * from './eosapi' export * from './myvoteeos' export * as axiosUtil from './axios' export * as charactersUtil from './get-last-characters' export * from './use-imperative-query'
from selenium.webdriver.firefox.webdriver import WebDriver from tests_group.group_lib import GroupBase from tests_contract.contract_lib import ContactBase class SessionHelper: def __init__(self, app): self.app = app def login(self, user_name, password): wd = self.app.wd self.app.open_...
//manufacturesOptions import { manufacturesColumns, clickClearFilter } from './columns/manufacturesColumns'; import { paginationOptions } from './pagination'; export { manufacturesColumns, paginationOptions, clickClearFilter };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.Snooze = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentC...
var callbackArguments = []; var argument1 = function callback(){callbackArguments.push(arguments)}; var argument2 = function callback(){callbackArguments.push(arguments)}; var argument3 = function callback(){callbackArguments.push(arguments)}; var argument4 = function callback(){callbackArguments.push(arguments)}...
"""Module for representing UDS sentence and document graphs.""" from logging import info, warning from abc import ABC, abstractmethod from overrides import overrides from functools import lru_cache from typing import Union, Optional, Any from typing import Dict, List, Tuple from memoized_property import memoized_prope...
import random hellos = [ 'Hello,', ] def get_hello(): return random.choice(hellos)
""" Django settings for myapp_32451 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import o...
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
""" DeepLabCut Toolbox https://github.com/AlexEMG/DeepLabCut A Mathis, alexander.mathis@bethgelab.org M Mathis, mackenzie@post.harvard.edu This script generates a data structure in pandas, that contains the (relative) physical address of the image as well as the labels. These data are extracted from the "labeling.csv"...
import matplotlib.pyplot as plt import numpy as np from scipy import signal plt.close('all') batch_nmse_train_log = np.loadtxt('batch_nmse_train_log.txt') N_iters_plot = 10000 x = np.array([[i for i in range(N_iters_plot)]]).T y1 = batch_nmse_train_log[0:N_iters_plot,0] y2 = batch_nmse_train_log[0:N_iters_plot,1] y...
'use strict' const phantom = require('phantom') const assert = require('assert') const app = require('../support/app') const baseURL = 'http://localhost:3001' describe.skip('Advanced Integration', function () { it('adds elements to the page on setup', (done) => { let sitepage = null let phInstance = null ...
let callback = [] document.addEventListener('click', ev => { let {target} = ev callback.forEach(item => { if (target === item.el || item.el.contains(target)) { return } else { item.callback() } }) }) export default { bind: function (el, binding, vnode) {...
'use strict'; /** * Module dependencies */ var path = require('path'), config = require(path.resolve('./config/config')), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), mongoose = require('mongoose'), User = mongoose.model('User'), nodemailer = require('...
from django.shortcuts import render # Create your views here. def about(request): context = {} return render(request, 'scientiapy/about.html', context)
#pragma once /* Copyright © 2018-2020 N. Van Bossuyt. */ /* This code is licensed under the MIT License. */ /* See: LICENSE.md */ #include <libsystem/runtime.h> uint convert_string_to_uint(co...
# -*- coding: utf-8 -*- # Copyright (c) 2020, PibiCo and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class Variable(Document): pass
jVectorMap=(function(){var a=$('[data-toggle="jvector-map"]'),e={100:"#f8f9ff",200:"#f4f5fd",300:"#eeeff8",400:"#e6e7f1",500:"#dfe0ea",600:"#d1d2db",700:"#a6a6b9",800:"#7a7b97",900:"#3b3e66"},n={primary:"#4191ff",secondary:"#070919",info:"#18e1a5",success:"#1bc943",danger:"#f83245",warning:"#f4772e"},o="transparent";a....
/* */ 'use strict'; /** * @class * Initializes a new instance of the StorageAccountRegenerateKeyParameters class. * @constructor * @member {string} keyName * */ function StorageAccountRegenerateKeyParameters() { } /** * Defines the metadata of StorageAccountRegenerateKeyParameters * * @returns {object} met...
#Keras model #------------------------------------------ from keras.models import Sequential from keras.layers import Dense, Activation x_train = list('1234567890') y_train = list('MFASTYUIOP') x_test = list('1234') y_test = list('MFIU') model = Sequential() model.add(Dense(units=64, imput_dim=100)) model.add(Activ...
import Express from 'express' import Delogger from 'delogger' import compression from 'compression' import cookieParser from 'cookie-parser' import bodyParser from 'body-parser' import https from 'https' import http from 'http' import fs from 'fs' import Path from 'path' import EnforceHttps from './module/enforceHttps...
# 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...
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:44:19 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/Frameworks/NetworkExtension.framework/NetworkExtension * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 ...
from ..model import GroupMsg def from_these_groups(*groups): """只接受这些群组的消息 GroupMsg""" def deco(func): async def inner(ctx): nonlocal groups assert isinstance(ctx, GroupMsg) from_group = ctx.FromGroupId if from_group in groups: return aw...
def generate_thumbnail(run): """ Return one thumbnail image to represent a Run if any image-like data can be found. Logs details to the stderr. Parameters ---------- run: BlueskyRun Returns ------- image: np.array, None """ uid = run.metadata["start"]["uid"] if "prima...
import math import torch.nn as nn import models.utils.dist_adapter as dist from .utils.checkpoint import checkpoint class ResConvBlock(nn.Module): def __init__(self, n_in, n_state): super().__init__() self.model = nn.Sequential( nn.ReLU(), nn.Conv2d(n_in, n_state, 3, 1, 1), ...
import 'element-ui/lib/theme-chalk/index.css' import { Button, Table, TableColumn, Autocomplete } from 'element-ui'; import clickoutside from 'element-ui/src/utils/clickoutside.js' console.log(clickoutside) export default { install (Vue) { const components = [ Button, Table, TableColumn, ...
import React from 'react'; import PropTypes from 'prop-types'; const PointingUp = (props) => { const { color, size, ...otherProps } = props; return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strok...
#MagBot import os BOT_TOKEN = os.environ["BOT_TOKEN_HIDDEN"]
""" gRPC server for unary PRC sample in Python author: Atsushi Sakai """ import grpc import addressbook_pb2 import addressbook_pb2_grpc def main(): print("start!!") with grpc.insecure_channel('localhost:50051') as channel: stub = addressbook_pb2_grpc.RequestAddressBookWithUnaryRPCStub(channel) ...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2010 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
# read the file named abc.mat import scipy.io as scio file = '/Users/xuepenghui/PycharmProjects/practice/abc.mat' data = scio.loadmat(file) sample = data['persons'] # print(sample) # print(type(sample)) # print(sample[0]) # print(sample[0][0]) # print(sample[0][0][0]) # print(sample[0][0][0][0]) # for i in range(101):...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPause = (props) => ( <SvgIcon {...props}> <path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/> </SvgIcon> ); AvPause = pure(AvPause); AvPause.displayName = 'AvPause'; AvPause.muiName = 'SvgIcon'; export default AvP...
from deepspeech import Model import json import datetime # forked from https://progur.com/2018/02/how-to-use-mozilla-deepspeech-tutorial.html import scipy.io.wavfile as wav import sys """PyAudio example: Record a few seconds of audio and save to a WAVE file.""" import pyaudio import wave RATE = 16000 BLOCKS_PER_SECON...
from flask import Flask app = Flask(__name__) from andrewrosss_dev import routes from ._version import get_versions __version__ = get_versions()['version'] del get_versions
import os import shutil from pathlib import Path from typing import List import logging log = logging.getLogger(__name__) from .baseClasses import PythonBatchCommandBase import utils class MacDock(PythonBatchCommandBase): """ Change Dock items (Mac only) If 'path_to_item' is not None item will be added ...
export function deckStatusLabel(status) { if(!status.isValid) { return 'Invalid'; } const category = 'Tournament'; return `${category} (Legal)`; }
from typing import List from zulint.custom_rules import RuleList MYPY = False if MYPY: from zulint.custom_rules import Rule whitespace_rules = [ # This linter should be first since bash_rules depends on it. {"pattern": r"\s+$", "strip": "\n", "description": "Fix trailing whitespace"}, {"pattern": "\t...
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 The version of the OpenAPI document: 1.154.0 Generated by: https://openapi-generator.tech """ import pprint impor...
/*! * css-vars-ponyfill * v2.1.2 * https://jhildenbiddle.github.io/css-vars-ponyfill/ * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com> * MIT license */ (function(global, factory) { typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "functio...
/** * @author Mugen87 / http://github.com/Mugen87 */ import { BufferGeometry, BufferAttribute, LineBasicMaterial, Line, MathUtils } from '../../../build/three.module.js'; function PositionalAudioHelper( audio, range, divisionsInnerAngle, divisionsOuterAngle ) { this.audio = audio; this.range = range || 1; ...
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
compiler = require('marko/compiler'); module.exports = { process(src, filepath) { const compiledSrc = compiler.compileFile(filepath); return compiledSrc; } };
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "GPUTraceOutline.h" @class GPUGLStateMirror, IDELaunchSession, NSMutableArray, NSMutableDictionary; __attribute__((visibility("hidden"))) @interface GPUGLTraceOutline : GP...
var debug = require('debug')('bleno'); var events = require('events'); var os = require('os'); var util = require('util'); var UuidUtil = require('./uuid-util'); var PrimaryService = require('./primary-service'); var Characteristic = require('./characteristic'); var Descriptor = require('./descriptor'); var binding...
"use strict"; const { calculateTags } = require("../src/index"); const nock = require("nock"); test("No other tags", async () => { const scope = nock("https://api.github.com") .get("/repos/owner/repo/tags") .reply(200, [ { name: "0.0.1", }, ]); const tags = await calculateTags( ...
#!/usr/bin/env python import sys import os import math # ensure that the kicad-footprint-generator directory is available #sys.path.append(os.environ.get('KIFOOTPRINTGENERATOR')) # enable package import from parent directory #sys.path.append("D:\hardware\KiCAD\kicad-footprint-generator") # enable package import fro...
#pragma once #include <sstream> #include <stdio.h> #include <string> inline std::string NowTime(); enum TLogLevel { logERROR, logWARNING, logINFO, logDEBUG, logDEBUG1, logDEBUG2, logDEBUG3, logDEBUG4 }; enum TLogDest { logCONSOLe, logFILE, logBOTH }; #ifndef FILELOG_MAX_LEVEL #define FILELOG_MAX_LEVEL logDEBUG4 #en...
# # Author: Cunren Liang # Copyright 2015-present, NASA-JPL/Caltech # import os import copy import shutil import logging import numpy as np import isceobj from mroipac.ampcor.Ampcor import Ampcor from isceobj.Alos2Proc.Alos2ProcPublic import cullOffsetsRoipac from isceobj.Alos2Proc.Alos2ProcPublic import meanOffset f...
""" * Copyright 2008 Google Inc. * Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net> * * 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....
import React from 'react'; import { Box, Button, Keyboard, Text, Calendar, MaskedInput, DropButton } from "grommet"; import { Schedule } from "grommet-icons"; const DropContent = ({ date: initialDate, time: initialTime, onClose }) => { const [date, setDate] = React.useState(); cons...
class StringKeyFrameCollection(Freezable, ISealable, IList, ICollection, IEnumerable): """ Represents a collection of System.Windows.Media.Animation.StringKeyFrame objects. StringKeyFrameCollection() """ def Add(self, keyFrame): """ Add(self: StringKeyFrameCollection,keyFrame: Strin...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ !function(){CKEDITOR.dialog.add("templates",function(e){function t(e,t){var l=CKEDITOR.dom.element.createFromHtml('<a href="javascript:void(0)" tabIndex="-1" role="option" ><...
#!/usr/bin/env """ NARRuv_quiver_plot.py """ #System Stack import datetime #Science Stack from netCDF4 import MFDataset, num2date import numpy as np # Visual Stack import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.dates import MonthLocator, DateFormatter import matplotlib.ticker as ticker _...
""" Reddit Flair Analyzer Anthony Torres torresam@umich.edu """ # !/usr/bin/env python3 from collections import Counter import argparse import sys import praw from prawcore import NotFound import matplotlib.pyplot as plt import numpy def setup(): """ Parse command line arguments Returns parsed arguments ...
const loginFormHandler = async (event) => { event.preventDefault(); // Collect values from the login form const email = document.querySelector("#email-login").value.trim(); const password = document.querySelector("#password-login").value.trim(); //alert("BAM") //alert(email) if (email && password) { ...
import json import sys import string from libpgm.nodedata import NodeData from libpgm.graphskeleton import GraphSkeleton from libpgm.discretebayesiannetwork import DiscreteBayesianNetwork from libpgm.lgbayesiannetwork import LGBayesianNetwork from libpgm.hybayesiannetwork import HyBayesianNetwork from libpgm.dyndiscba...
var express = require("express") var app = express() const fs = require('fs') const cors = require('cors') const morgan = require('morgan') const db = require("./database.js") app.use(express.urlencoded({ extended: true })); app.use(express.json()); app.use(cors()); // Server port var port = process.env.PORT || 5555...
Quizes = [ ("Какую долю ваших расходов за месяц занимает косметика?", ["10% (5000 ₽)", "5% (2500 ₽)", "21% (10500 ₽)", "13% (6500 ₽)"], 0), ("Назовите максимальную сумму, которую Вы тратили за раз в одном из магазинов:", ["15200 ₽", "3840 ₽", "7340 ₽", "2710 ₽"...
export default function jsonFromScript( selector = 'script.data', attribute = 'data-attr', scope = document ) { return Array.from( // Only select <script> elements with the given class. scope.querySelectorAll(selector) ).reduce(function(data, element) { return ( (data[element.getAttribute(at...
/* BSD 2-Clause License */ /* Copyright (c) 2020, Luís M. S. Russo */ /* All rights reserved. */ /* Redistribution and use in source and binary forms, with or without */ /* modification, are permitted provided that the following conditions are met: */ /* 1. Redistributions of source code must retain the above copyri...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
# -*-# -*- coding: utf-8 -*- import time from hamcrest import * from amplify.agent.objects.system.object import SystemObject from test.base import BaseTestCase __author__ = 'Arie van Luttikhuizen' __copyright__ = 'Copyright (C) Nginx, Inc. All rights reserved.' __license__ = '' __maintainer__ = 'Arie van Luttikhuize...
let dot_product_project2d = (function() { let origin = [300, 140], scale = 60, scatter = [], axis = [], expectedAxis = [], startAngleX = Math.PI, startAngleY = 0., startAngleZ = 0., axis_len = 2, unit = axis_len/10, svg = null, lib = null; function select_svg(svg_id) { ...
/* * @Author: czy0729 * @Date: 2019-11-17 21:04:23 * @Last Modified by: czy0729 * @Last Modified time: 2020-01-12 16:13:17 */ import React from 'react' import { StyleSheet } from 'react-native' import PropTypes from 'prop-types' import { Iconfont } from '@components' import { Popover as CompPopover } from '@screen...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = [ { name: 'port', alias: 'p', type: Number, defaultValue: 3000, description: 'Port number of websocket' }, { name: 'host', alias: 'h', type: String, ...
import thumbnail from "../../images/thumbnails/transitions.jpg"; export { thumbnail }; export const title = "transitions"; export const description = "GLSL transitions between images";
import React from 'react' import ReactDOM from 'react-dom' import App from './index.js' ReactDOM.render( <App message='Lorem Ipsum' />, document.getElementById('app') )
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOw...
//------------------------------------------------------------------------------ // GB_Adot4B: hard-coded dot4 method for a semiring //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifi...
/* 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 applicable ...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("netlify-cms-lib-util"),require("@emotion/core"),require("prop-types"),require("react"),require("netlify-cms-ui-default"),require("netlify-cms-lib-auth")):"function"==typeof define&&define.amd?define("NetlifyCmsBackendGithub",["ne...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("devtools","sv",{title:"Elementinformation",dialogName:"Dialogrutans namn",tabName:"Fliknamn",elementId:"Element-ID",elementType:"Element-typ"});
import json import logging import re from copy import deepcopy from unittest.mock import patch import responses from click.testing import CliRunner from gribmagic.commands import cli from gribmagic.unity.configuration import MODEL_CONFIG from gribmagic.unity.configuration.constants import KEY_VARIABLES from gribmagic...
from mahjong_calculator import __version__ def test_version(): assert __version__ == '0.1.0'
/* * Linux Socket Filter - Kernel level socket filtering * * Author: * Jay Schulist <jschlst@samba.org> * * Based on the design of: * - The Berkeley Packet Filter * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publi...
""" util.py: Helper functions and constants common to several News Source operations __author__ = "Fernando P. Lopes" __email__ = "fpedrosa@gmail.com" """ import httplib2 # noinspection PyPackageRequirements from bs4 import BeautifulSoup from app import app from app.decorators import async_decorator from app.aml_co...
/* Adicionar itens usando splice () Lembra que no último desafio que mencionamos splice()pode levar até três parâmetros? Bem, você pode usar o terceiro parâmetro, composto de um ou mais elemento (s), para adicionar ao array. Isso pode ser extremamente útil para trocar rapidamente um elemento, ou um conjunto de element...
//--------------------------------------------------------------------------------------- // Copyright (c) 2001-2015 by PDFTron Systems Inc. All Rights Reserved. // Consult legal.txt regarding legal and license information. //--------------------------------------------------------------------------------------- ...
"""Config flow for Tesla Powerwall integration.""" import logging from tesla_powerwall import ( AccessDeniedError, MissingAttributeError, Powerwall, PowerwallUnreachableError, ) import voluptuous as vol from homeassistant import config_entries, core, exceptions from homeassistant.components.dhcp impor...