text stringlengths 3 1.05M |
|---|
import io
import requests
import sys
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth.forms import AuthenticationForm
from django.contr... |
import reducer from './customersReducer';
import * as types from '../actions/types';
const initialState = {
isFetching: false,
errors: null,
list: []
};
describe('customers reducer', () => {
it('should return initial state', () => {
expect(reducer(undefined, {})).toEqual(initialState)
})
it('should ... |
import Joi from 'joi';
export function orderItemValidate(req, res, next) {
const orderItemValiation = Joi.object({
itemName: Joi.string().required().trim(),
description: Joi.string().required().trim(),
quantity: Joi.string().required().trim(),
rideId: Joi.number()
});
const result = orderItemV... |
/**
* OEML - REST API
* This section will provide necessary information about the `CoinAPI OEML REST API` protocol. <br/> This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> <br/><br/> Implemented Standards: * [HTTP1.... |
import React, { useState } from 'react';
import { connect } from 'react-redux';
import {
editStaffById,
toggleStaffEditComponent,
} from '../../../../../actions';
import { withRouter } from 'react-router-dom';
import Dropdown from 'react-dropdown';
import 'react-dropdown/style.css';
import {
FormWrap,
Input,
... |
deepmacDetailCallback("0050c260a000/36",[{"a":"Rua Attilio Giaretta, 110 Itatiba SP BR 13257-584","o":"Gradual Tecnologia Ltda.","d":"2008-07-30","t":"add","s":"ieee","c":"BR"}]);
|
const CustomError = require("../extensions/custom-error");
module.exports = class DepthCalculator {
calculateDepth(arr) {
let depth = 1;
for (let index = 0; index < arr.length; index++) {
if (Array.isArray(arr[index])) {
depth = this.calculateDepth(arr.flat(1)) + 1;
... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import vuetify from './plugins/vuetify'
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.config.productionTip = false
Vue.use(VueAxios, axios)
new Vue({
router,
vuetify,
axios,
render: function (h) { return h(App) }
... |
# pointsToSpheres.py copyright (c) 2005 by Charl P. Botha <cpbotha@ieee.org>
# $Id$
# see module documentation
import gen_utils
from module_base import ModuleBase
from module_mixins import ScriptedConfigModuleMixin
import module_utils
import wx
import vtk
class pointsToSpheres(ScriptedConfigModuleMixin, ModuleBase):
... |
console.log(" rectangle js is called")
//creates a class for rectangle
class Rectangle{
// passes the parameters for the rectangle through
constructor(x,y,w,h,fillColour){
this.x = x;
this.y = y;
this.w = w;
this.h = h;
this.fillColour = fillColour;
}
update(){... |
module.exports = {
moduleFileExtensions: ['js'],
moduleDirectories: ['node_modules', 'src'],
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
// Transform file imports into file names
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/jest/fileTransfo... |
import React from "react"
import styled from "@emotion/styled"
import { css } from "@emotion/core"
import Image from "../image/index"
export default function FirstView({ TitleText }) {
const FirstView = styled.div`
@media (max-width: 1079px) {
height: 40vh;
div {
height: 40vh;
}
}
... |
const webpack = require("webpack");
const path = require("path");
module.exports = {
mode: "development",
devtool: "source-map",
entry: {
index: "./example/index",
split: "./example/split",
diff: "./example/diff"
},
output: {
path: path.join(__dirname, "example/static"),
filename: "[name]... |
# Copyright 2021 Dakewe Biotech Corporation. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... |
import React, { Component } from 'react';
import firebase from '../../firebase';
import AvatarEditor from 'react-avatar-editor';
import {
Grid,
Header,
Icon,
Dropdown,
Image,
Modal,
Input,
Button
} from 'semantic-ui-react';
export class UserPanel extends Component {
state = {
user: this.props.cur... |
__all__ = ['math', 'test_utils']
|
import pytest
from webu.utils.abi import (
is_probably_enum,
)
@pytest.mark.parametrize(
'abi_type,should_match',
(
('SomeEnum.SomeValue', True),
('Some_Enum.Some_Value', True),
('SomeEnum.someValue', True),
('SomeEnum.some_value', True),
('__SomeEnum__.some_value'... |
webpackJsonp([86],{"+DCz":function(e,t,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.demos=void 0;var s=o("ZVBC"),n=a(s),l=o("LxkL"),d=a(l),i=t.demos=[{component:n.default,code:"<span class=\"xml\"><span class=\"hljs-tag\"><<span class=\"hljs-na... |
var createError = require('http-errors');
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var indexRouter = require('./routes/index');
var lockersRouter = require('./routes/lockers');
var reservacionesRouter = require('./routes/... |
/*! elementor - v3.2.3 - 05-05-2021 */
(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[723],{2937:(e,t,i)=>{e.exports=i(7841)},7841:(e,t,i)=>{i(6344);var n=i(7252).Object;e.exports=function defineProperties(e,t){return n.defineProperties(e,t)}},6344:(e,t,i)=>{var n=i(2570);n(n.S+n.F*!i(3752),"Object"... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A vanilla Metropolis-Hastings sampler
"""
from __future__ import (division, print_function, absolute_import,
unicode_literals)
__all__ = ["MHSampler"]
import numpy as np
from . import autocorr
from .sampler import Sampler
# === MHSampler =... |
import React, { Fragment, useEffect } from 'react'
import { Link } from 'react-router-dom'
import Spinner from '../layout/Spinner'
import Repos from '../repos/Repos'
import PropTypes from 'prop-types'
const User = ({ loading, user, repos, loadUser, loadUserRepos, match }) => {
// componentDidMount() {
// /... |
# 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 ... |
export const SET_SEARCH_TERM = 'SET_SEARCH_TERM';
export const SET_CURRENT_MODAL = 'SET_CURRENT_MODAL';
export const SET_CURRENT_PLAYER = 'SET_CURRENT_PLAYER';
export const SET_USER_DATA = 'SET_USER_DATA';
export const SET_ACTIVE_SCHOOL = 'SET_ACTIVE_SCHOOL';
export const LOGOUT = 'LOGOUT';
export const UPDATE_MESSAGE_... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* global ERROR_DIALOG_CLOSED_BY_USER */
/* global ERROR_INVAL... |
var env = require('dotenv').config().parsed;
var manifest = require('./build/asset-manifest.json');
var fs = require('fs');
jsTemplate = `$$.getScript("$base$js");`;
const base = env["PUBLIC_URL"];
const css = manifest['main.css'];
const js = manifest['main.js'];
fs.writeFileSync('build/embed.js', `$.getScript("${bas... |
"""
RetinaNet介绍:
1、是由一个主干网和两个任务子网络组成的简单同一网络。主干网使用卷积神经网络负责从整个图片提取特征,
将主干网络提取到的特征送入两个子网络: 第一个子网络使用卷积分类,第二个子网络使用卷积来边框回归。
2、分类子网络和边框回归子网络共享结构,参数独立。
3、子网络是附加在FPN的每一层的一个小的FCN;参数共享。
对于给定的金字塔层级输出的C个通道的Feature Map,子网络使用4个3×3的卷积层,每层的通道数任然是C,接着是一个ReLU激活层;
然后跟一个通道数位KA(K是类别数,A是anchor数)的3×3的卷积... |
# Generated by Django 2.2.7 on 2019-12-15 15:22
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0141_seat_sorting_rank'),
]
operations = [
migrations.AddField(
model_name='cartposit... |
function DEb(){}
function xEb(){}
function WEc(){}
function Wbc(){}
function Ybc(b){this.b=b}
function YEc(){var b;this.N=(b=$doc.createElement(Gxd),b.type=x4d,b);this.N[Wld]=y4d}
function FEb(){AEb=new DEb;mC((jC(),iC),43);!!$stats&&$stats(dD(u4d,rmd,-1,-1));AEb.Rd();!!$stats&&$stats(dD(u4d,EJd,-1,-1))}
function CEb()... |
const { ZoneFile } = require('zone-file')
const isAliased = resource => Object.keys(resource)
.find(key => key === 'AliasTarget')
const getSOARecord = recordSets => {
const parts = recordSets
.find(resource => resource.Type === 'SOA')
.ResourceRecords[0].Value.split(' ')
return {
mname: parts[0],
... |
#------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... |
import React from 'react'
import {ReactComponent as FullKeyboard} from '../keys2.svg'
class Keyboard extends React.Component{
render(){
return(
<div className="keyboard-container">
<FullKeyboard onMouseDown={(e)=>{
this.props.playKey(e)
}} onMouseUp={(e)=>{
this.props.endKey(e)
}}/>
</... |
/**
* Module dependencies.
*/
const Chai = require('chai');
const should = require('should');
const expect = Chai.expect;
const securityPassword = require('../../src/helpers/security-password');
Chai.config.includeStack = true;
const defaultPassword = 'password';
const defaultSalt = 'salt';
describe('# SecurityPa... |
export default class InfoBox extends React.Component {
render() {
if(!this.props.message && !this.props.children) return null;
let boxClass = `alert alert-${this.props.level}`;
return <div className={boxClass} role="alert">
<strong>
<i className="fas fa-info-circle"></i> {this.props.ti... |
def add(a, b):
print(f"ADDING {a} + {b}")
return a + b
def subtract(a, b):
print(f"SUBTRACTING {a} - {b}")
return a - b
def multiply(a, b):
print(f"MULTIPLYING {a} * {b}")
return a * b
def divide(a, b):
print(f"DIVIDING {a} / {b}")
return a / b
print("Let's do some math with just fun... |
/**
Preload file that will be executed in the renderer process
*/
import { ipcRenderer } from 'electron';
import path from 'path';
import fs from 'fs';
const INJECT_JS_PATH = path.join(__dirname, '../../', 'inject/inject.js');
const log = require('loglevel');
/**
* Patches window.Notification to set a callback on a... |
webpackHotUpdate("cms",{
/***/ "./src/components/Navbar.js":
/*!**********************************!*\
!*** ./src/components/Navbar.js ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(_... |
/*
* Copyright (C) 2013 salesforce.com, 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 ... |
// Copyright 2017 The Kubernetes 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 a... |
import Vue from 'vue'
import App from './App.vue'
// import SliderAction from '../../src';
// Vue.use(SliderAction);
Vue.config.productionTip = false
new Vue({
render: h => h(App),
}).$mount('#app')
|
// namespaces
var dwv = dwv || {};
/**
* State class.
* Saves: data url/path, display info.
* @constructor
* @param {Object} app The associated application.
*/
dwv.State = function (app)
{
/**
* Save the application state as JSON.
*/
this.toJSON = function () {
// store each slice drawin... |
import * as React from "react";
import "../utils/style.css";
function UimCornerLeftDown(props) {
return /*#__PURE__*/React.createElement("svg", Object.assign({}, props, {
viewBox: "0 0 24 24",
width: props.size || '1em',
height: props.size || '1em',
fill: "currentColor",
className: `ui-svg-inline... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])... |
angular
.module('mosspaperCommon.services')
.factory('itemsManager', function ($http, $q, itemsAPIService) {
var itemsManager = {
_pool: {},
_retrieveInstance: function (itemId, itemData) {
var instance = this._pool[itemId];
if (instance) {
... |
import sys
from ciphey.basemods.Checkers.brandon import Brandon
from ciphey.Decryptor.Encoding.encodingParent import EncodingParent
from ciphey.__main__ import make_default_config
import unittest
from loguru import logger
config = make_default_config("")
class TestEncoding(unittest.TestCase):
def test_english_y... |
def deslocar_letra(letra, posicao):
valor_ascii = ord(letra.upper()) - 65
if valor_ascii < 0 or valor_ascii > 25:
return letra
referencia_numerica = (valor_ascii) % 26
nova_letra = chr(((referencia_numerica + posicao) % 26) + 65)
return nova_letra
if __name__ == '__main__':
arquivo... |
import {
codegen,
constants,
functions
} from 'vega-expression';
import {
isTuple
} from 'vega-dataflow';
import {
selectionResolve,
selectionTest,
selectionVisitor
} from 'vega-selections';
import {
cumulativeLogNormal,
cumulativeNormal,
cumulativeUniform,
densityLogNormal,
densityNormal,
... |
function divWithText(text) {
var result = document.createElement("div");
var textNode = document.createTextNode(text);
result.appendChild(textNode);
return result;
}
// Styling the text by setting the position and color.
function textAt(text, x, y) {
var node = divWithText(text);
node.setAttrib... |
from pydantic import BaseModel
from typing import Optional
from ..helpers import ModificationContext
from .pose import Pose
from .velocity import Velocity
class RobotShape(BaseModel):
outline: list[tuple[float, float]] = [(-0.5, -0.5), (0.5, -0.5), (0.75, 0), (0.5, 0.5), (-0.5, 0.5)]
height: float = 0.5
cla... |
macDetailCallback("c0fbf9a00000/28",[{"d":"2021-03-13","t":"add","s":"ieee-mam.csv","a":"Tiandi(Changzhou) Automation Co., Ltd. Changzhou Jiangsu CN 213015","c":"CN","o":"Tiandi(Changzhou) Automation Co., Ltd."}]);
|
import React, { Component } from "react";
import UpdatedComponent from "./withCounter";
export class HoverCounter extends Component {
render() {
const { count, incrementCount } = this.props;
return (
<div>
<h2 onMouseOver={incrementCount}> Hovered {count} times</h2>
</div>
);
}
}
ex... |
(function() {
var app = angular.module('listant', []);
app.controller('ListantController', function() {
this.products = gems;
});
app.controller('TabController', function() {
this.tab = 1;
this.selectTab = function(setTab) {
this.tab = setTab;
};
this.isSelected = function(checkTab... |
'use strict';
const { Events } = require('discord.js').Constants;
const { games } = require('../CommonFunctions');
module.exports = class UpdateGuildStatistics extends require('../models/BaseEventHandler') {
constructor(bot) {
super(bot, 'handlers.statsupdate', Events.GUILD_MEMBER_UPDATE);
}
as... |
export const component = {
'input': true,
'tableView': true,
'inputMask': '(999) 999-9999',
'label': 'Phone Number',
'key': 'phoneNumber',
'placeholder': '',
'prefix': '',
'suffix': '',
'multiple': false,
'protected': false,
'unique': false,
'persistent': true,
'defaultValue': '',
'validate'... |
# pylint: disable=E1101
import numpy as np
from apdt.ml.utils import batch_norm, layer_norm
try:
import tensorflow as tf
except:
pass
def cnn2d_weight(**kwarg):
'''Construct weight for 2-D CNN.
Parameter
---------
name: str
the variable name scope to be used.
input_dim:... |
import { state } from 'cerebral';
/**
* call to remove consolidate cases
*
* @param {object} providers the providers object
* @param {object} providers.applicationContext the application context
* @param {object} providers.get the cerebral get function
* @returns {Promise} async action
*/
export const removeCon... |
// Student Affairs IT - Mozilla LockDown Settings
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);
|
/* @flow */
import chalk from 'chalk'
import {getNavy} from '../'
import {getUrlFromService} from '../util/service-host'
import table from '../util/table'
const SMALL_WINDOW_COLUMNS = 185
function getStatus(service, state) {
let statusString = service.status === 'exited'
? chalk.red(service.status)
: serv... |
import React, {Component} from "react";
import classes from "./TextInput.module.css"
export class TextInput extends Component {
render() {
return (
<input className={classes.TextInput}
value={this.props.value}
style={this.props.style}
on... |
describe("Ext.form.field.Date", function() {
var component, makeComponent;
function spyOnEvent(object, eventName, fn) {
var obj = {
fn: fn || Ext.emptyFn
},
spy = spyOn(obj, 'fn');
object.addListener(eventName, obj.fn);
return spy;
}
function cl... |
[
{
"result": {
"Created": "Siegrin",
"soal": "Menjadi komandan upacara 17-an, komandan upacara harus siap",
"jawaban": "Serak",
"desc": "Jawaban: Serak (Harus siap serak, kan teriak-teriak)",
"poin": 5
}
},
{
"result": {
"Created": "FarhanXCode7",
"so... |
/**
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
function (head, req) { // jshint ignore:line
var rows = [];
var row;
while (row = getRow()) { // jshint ignore: line
var sanitized = JSON.parse(JSON.stringify(row.value));
delete sanitized._id;
delete sanitized._rev;
rows.push(sanitized);
}
send(JSON.stringify({ docs:... |
import '@polymer/polymer/polymer-legacy.js';
import 'd2l-localize-behavior/d2l-localize-behavior.js';
window.D2L = window.D2L || {};
window.D2L.PolymerBehaviors = window.D2L.PolymerBehaviors || {};
window.D2L.PolymerBehaviors.LabsFilterDropdown = window.D2L.PolymerBehaviors.LabsFilterDropdown || {};
/**
* Localizes ... |
from pvinspect.data.image import *
from pvinspect.preproc.calibration import *
from pvinspect.preproc.calibration import _calibrate_flatfield, _compensate_flatfield
from pvinspect.preproc.stitching import *
from pvinspect.data import datasets
import numpy as np
from skimage.exposure import rescale_intensity
from skimag... |
$(document).ready(function () {
if ($("#contracts_tbl").length) {
var contracts_tbl = $("#contracts_tbl");
contracts_tbl.on('preXhr.dt', function (e, settings, data) {
data.name = $('#name').val();
}).dataTable({
"processing": true,
"serverSide": true,... |
# Copyright European Organization for Nuclear Research (CERN)
#
# 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
#
# Authors:
# - Vincent Garonne, <v... |
'use strict';
require('../../init');
const
HttpStatus = require('http-status-codes'),
apiRouter = require('../../../src/api/api-router');
describe('App Handler', () => {
let handler;
beforeEach(() => {
handler = apiRouter.handler;
});
it('should return NOT_FOUND response for unmapped response', do... |
import { flat } from "./flat";
export function flatMap(callback) {
return flat.call(Array.prototype.map.apply(this, arguments));
}
|
/**
* Copyright 2017 The AMP HTML 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 require... |
import ctypes as c
from EGGS_labrad.lib.config.andor_config import AndorConfig as config
import os
'''Adopted from https://code.google.com/p/pyandor/'''
class AndorInfo(object):
def __init__(self):
self.width = None
self.height = None
self.min_temp = None
self.max_temp = None
... |
import { AppRegistry } from 'react-native';
import App from './src';
import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, () => App);
|
var _ = require('lodash');
var debuglog = require('debuglog')('yog/plugins');
var loader = require('../../lib/loader.js');
var MIDDLEWARE_DEBUG = process.env.MIDDLEWARE_DEBUG === "true";
function core(app, conf){
var startTime = function(name){
return function(req, res, next){
req.__MIDDLEWARE_... |
'use strict'
const sizeUpBtn = document.getElementById('sizeUp')
const sizeDownBtn = document.getElementById('sizeDown')
let size
sizeUpBtn.onclick = function () {
size = localStorage.getItem('size')
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.executeScript(
... |
var class_rubo_soldier =
[
[ "Create", "class_rubo_soldier.html#a6e483862257327a8f27bf98a72948339", null ]
]; |
import React from 'react';
import {
Dropdown,
Card,
Icon,
Button,
Message,
Input
} from 'semantic-ui-react';
import { DataConsumer } from '../../../context/data';
import { NrqlQuery, NerdGraphMutation, navigation } from 'nr1';
import { deleteWorkload } from '../../../../shared/lib/utils';
import { toast } f... |
// @flow
'use strict';
import fs from 'fs';
import path from 'path';
import findUp from 'find-up';
import readPkg from 'read-pkg';
import readPkgUp from 'read-pkg-up';
import loadJsonFile from 'load-json-file';
import readModuleGlobs from './readModuleGlobs';
type Module = { pkg: Object, path: string };
type Workspace... |
const PhaseNames = require('../../Constants/PhaseNames.js');
const GoodsCard = require('../../goodscard.js');
class HawleysRose extends GoodsCard {
setupCardAbilities(ability) {
this.whileAttached({
effect: ability.effects.addKeyword('abomination')
});
this.whileAttached({
... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App/App';
import 'bootstrap/dist/css/bootstrap.min.css';
import { BrowserRouter } from "react-router-dom";
ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<App/>
</BrowserRouter... |
module.exports = {
// Uncommenting the defaults below
// provides for an easier quick-start with Ganache.
// You can also follow this format for other networks;
// see <http://truffleframework.com/docs/advanced/configuration>
// for more details on how to specify configuration options!
//
networks: {
d... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['sr']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Претражи сервер","url":"УР... |
"""Fixtures for Hass.io."""
import os
import pytest
from homeassistant.components.hassio.handler import HassIO, HassioAPIError
from homeassistant.core import CoreState
from homeassistant.setup import async_setup_component
from . import HASSIO_TOKEN
from tests.async_mock import Mock, patch
@pytest.fixture
def hass... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const structure_1 = require("@dikac/t-object/boolean/structure");
const undefinable_1 = require("@dikac/t-undefined/boolean/undefinable");
const positive_1 = require("@dikac/t-number/boolean/positive");
const type_1 = require("@dikac/t-object/... |
!function(a,b,c,d){"use strict";function e(b,c){g=this,this.element=a(b),this.options=a.extend({},h,c),this._defaults=h,this._name=f,this.init()}var f="ripples",g=null,h={};e.prototype.init=function(){var c=this.element;c.on("mousedown touchstart",function(d){if(!g.isTouch()||"mousedown"!==d.type){c.find(".ripple-wrapp... |
module.exports={A:{A:{"1":"A B","2":"L D H F iB"},B:{"1":"C E d K N I J AB"},C:{"1":"0 1 3 4 7 8 9 h i j k l m n o M q r s t u v w x y z JB BB CB DB GB HB","2":"2 6 fB FB G L D H F A B C E d K N I J O P Q R S T U V W X Y Z a b c e f g ZB YB"},D:{"1":"0 1 3 4 6 7 8 9 U V W X Y Z a b c e f g h i j k l m n o M q r s t u v... |
/* This script generates mock data for local development.
This way you don't have to point to an actual API,
but you can enjoy realistic, but randomized data,
and rapid page loads due to local, static data.
*/
/* eslint-disable no-console */
import jsf from 'json-schema-faker';
import {schema} from './mockDataSch... |
const { PrismaClient } = require('@prisma/client');
async function main(raw = true) {
const prisma = new PrismaClient();
let charInfo;
try {
if (raw) {
charInfo = await prisma.ak_operator.findFirst({
where: {
name: 'Sora',
},
include: {
ak_operator_handbook: ... |
module.exports = {
name: "hark",
ns: "webrtc",
description: "Hark",
phrases: {
active: "Harking"
},
ports: {
input: {
stream: {
title: "Stream",
type: "HTMLElement",
description: "e.g. document.querySelector('audio')",
required: true
}
},
output: {... |
import React from 'react'
import { Link } from 'gatsby'
import logo from '../img/logo.svg'
import facebook from '../img/social/facebook.svg'
import instagram from '../img/social/instagram.svg'
import twitter from '../img/social/twitter.svg'
import vimeo from '../img/social/vimeo.svg'
const Footer = class extends Reac... |
var searchData=
[
['questions_20and_20answers_0',['Questions and Answers',['../md_docs_faq.html',1,'']]],
['quickmenu_1',['quickMenu',['../kernel__utility_8php.html#a968ebfd30d4d63e55078ab5668e991ff',1,'kernel_utility.php']]]
];
|
import '../utils'
import api from '../api'
import './requireAuth'
import HyNetworking from './network'
const middlewares = Vue => {
Vue.prototype.$api = api.api
Vue.prototype.$conf = api.conf
Vue.prototype.$ebus = Vue.prototype.$ebus || new Vue()
}
const autoMock = () => {
if (process.env.NODE_ENV === 'develo... |
import math
from math import e
def main():
num_lyst = [math.pi, e, -math.pi, -e]
num_names = ["pi", "e", "pi", "e"]
for num in range(len(num_lyst)):
print(f"{num_names[num]} is {num_lyst[num]}")
print(f"Ceiling of {num_names[num]} is {math.ceil(num_lyst[num])}")
print(f"Floor of {nu... |
import React from "react";
import PropTypes from "prop-types";
import withStyles from "@material-ui/core/styles/withStyles";
import _ from "lodash";
import { Grid, Button, Fab } from "@material-ui/core";
import Close from "@material-ui/icons/Close";
import MoreHoriz from "@material-ui/icons/MoreHoriz";
import Notificat... |
const { Module } = require('module')
const hyper = require('./config')
const rectCoef = 2 / 3 // w / h
const composers = {
horizontal: subs => {
let cy = Math.max(...subs.map(sub => sub.get('height'))) / 2
subs.reduce((acc, sub, i) => {
sub.set('y', cy - sub.get('height') / 2)
... |
import * as types from "../actions/actionTypes";
import initialState from "./initialState";
export default function signupReducer(
state = initialState.signupSuccess,
action
) {
switch (action.type) {
case types.SIGNUP_SUCCESS:
return true;
default:
return state;
}
}
|
const requests_start_time = {};
const assign = require('lodash').assign;
const obfuscator = require('../lib/obfuscator');
const buildLogItemCollector = require('./log_item_collector');
const LOG_ON_RESPONSE_SYMBOL = Symbol();
module.exports.watch = function (logger, server, options) {
options = assign({}, {
ign... |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
from datetime import datetime
import numpy as np
import pandas as pd
from featuretools import variable_types
from featuretools.entityset import EntitySet, Relationship
def make_ecommerce_entityset(with_integer_time_index=False):
""" Makes a entityset with the following shape:
R Regions
... |
import { render, screen } from "@testing-library/react";
import { renderHook } from "@testing-library/react-hooks";
import { act } from "react-dom/test-utils";
import { useLikedPhotos } from "../../hooks/useLikedPhotos";
import LikedPhotos from "../LikedPhotos";
describe("Liked photo", () => {
it("should contain an ... |
Sys.Observer = function() {
#if DEBUG
throw Error.invalidOperation();
#endif
}
Sys.Observer.registerClass("Sys.Observer");
Sys.Observer.makeObservable = function(target) {
/// <summary>Makes an object directly observable by adding observable methods to it.</summary>
/// <param name="target" mayBeN... |