text stringlengths 3 1.05M |
|---|
module.exports = {
siteMetadata: {
title: `Pandas Eating Lots`,
},
plugins: [
`gatsby-plugin-emotion`,
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography`,
},
},
],
}
|
require('./check-versions')()
var config = require('../config')
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
}
var opn = require('opn')
var path = require('path')
var express = require('express')
var webpack = require('webpack')
var proxyMiddleware = require('http-proxy-mid... |
// @flow
import * as React from 'react';
import ExtraText from './ExtraText';
import { CSS_CLASS_NAMES as css, PERIOD, TEXT } from './constants';
import { FieldError } from './FieldError';
import { onBlurValidation, onChangeValidation } from './validation';
import { singleSpaceString } from './utils';
import type {
... |
/* eslint-disable linebreak-style */
/* eslint-disable object-curly-spacing */
/* eslint-disable eol-last */
/* eslint-disable indent */
/* eslint-disable max-len */
// eslint-disable-next-line no-dupe-else-if
const { functions, cors, fastify, requestHandler } = require("../application/lib");
const { updateUser } = re... |
import * as d3 from 'd3'
import React from 'react'
import PropTypes from 'prop-types'
const margins = {
top: 30,
right: 20,
bottom: 30,
left: 10
}
const height = 150
const width = 550
class LevelThermometer extends React.Component {
// pointScale: any
// topAxisFn: any
// bottomAxisFn: any
// topAxis:... |
# -*- coding: utf-8 -*-
import logging
import pytz
from odoo import _, api, fields, models, SUPERUSER_ID
from odoo.tools import format_datetime
from odoo.exceptions import AccessError, UserError, ValidationError
from odoo.tools.translate import html_translate
from dateutil.relativedelta import relativedelta
_logger... |
from django.db import models
from django.contrib.auth.models import User
from django.db import transaction
from django.utils import timezone
from hue.models import Scene as HueScene
from vivint.models import Panel
from watchers.models import CustomEvent
from carrier.models import System
#import apscheduler.job as Tes... |
from .helper import timestamp_to_datetime
import six
class ApiModel(object):
@classmethod
def object_from_dictionary(cls, entry):
# make dict keys all strings
if entry is None:
return ""
entry_str_dict = dict([(str(key), value) for key, value in entry.items()])
ret... |
# -*- coding:utf-8 -*-
"""
"""
import sys
import catboost
import lightgbm
import numpy as np
import xgboost
from sklearn.experimental.enable_hist_gradient_boosting import \
HistGradientBoostingRegressor, HistGradientBoostingClassifier
from hypernets.core.search_space import ModuleSpace
from hypernets.discriminato... |
from .functions import *
from .objects import *
|
/*=========================================================================================
File Name: timezone.js
Description: c3 timezone chart
----------------------------------------------------------------------------------------
Item Name: Modern admin - Clean Bootstrap 4 Dashboard HTML Template
... |
/**
* @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... |
/*document.addEventListener('DOMContentLoaded', function () {*/
/**
* Responsive Navigation
*/ /*
document.querySelector('#menu-toggle').addEventListener('click', function(e){
$('.g-nav').slideToggle(200);
$(document).one('click', function(){
$('.g-nav').slideUp(200);
});
... |
//TODO: удалить модуль в 2023г
const fs = require('fs-extra');
const SqliteConnectionPool = require('./SqliteConnectionPool');
const log = new (require('../core/AppLogger'))().log;//singleton
const migrations = {
'app': require('./migrations/app'),
'readerStorage': require('./migrations/readerStorage'),
};
l... |
// Dependencies
// ===========================================================
var express = require("express");
const path = require('path');
var app = express();
var PORT = process.env.PORT || 3000;
// set up the express app to handle data parsing
app.use(express.urlencoded({ extend: true }));
app.use(express.json()... |
import React from "react"
import { Link } from "gatsby"
import MemberCard from '../components/team_card/index'
import Layout from "../components/layout"
import SEO from "../components/seo";
import style from './css/team.module.css'
function getMembers(data) {
let members = []
let memberList = data.allMarkdownR... |
var Service, Characteristic;
var request = require("request");
module.exports = function(homebridge){
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory("homebridge-thermostat", "Thermostat", Thermostat);
};
function Thermostat(log, config) {
this.log... |
(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[0],{138:function(e,a,t){e.exports=t(169)},166:function(e,a,t){},169:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),o=t(11),i=t.n(o),l=t(59),c=t(12),m=t(30),s=t.n(m),u=t(70),d=t(9),g=t(218),p=t(220),f=t(221),h=t(222),E=t(219),v=t(24),b=t(106),y=t(41),... |
import React, { useContext } from 'react';
import Button from 'react-bootstrap/Button';
import ListGroup from 'react-bootstrap/ListGroup';
import { PlusCircleFill as PlusCircleIcon } from 'react-bootstrap-icons';
import CoterieContext from '../../context/coterie-context';
import CenterPanel from '../common/center-pa... |
module.exports={A:{A:{"2":"pB","8":"H E G D A B"},B:{"1":"EB M","8":"9 C N I J K L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F q H E G D A B C N I J K L g R o S T U V W X Y Z a b c d e f CB h i j k l m n Q p O r s t u v w x y z FB HB DB AB IB JB KB LB MB NB OB PB","8":"mB RB fB eB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 q H E G D A B C N I ... |
import unittest
from Cython.Compiler import PyrexTypes as pt
from Cython.Compiler.ExprNodes import NameNode
from Cython.Compiler.PyrexTypes import CFuncTypeArg
def cfunctype(*arg_types):
return pt.CFuncType(pt.c_int_type,
[ CFuncTypeArg("name", arg_type, None) for arg_type in arg_types ])
def cppclasstyp... |
import axios from 'axios';
import { toast } from 'react-toastify';
import {
DELETE_CALCULATION_WITH_ID,
GET_ALL_CALCULATIONS,
LOAD_CALCULATION
} from './constants';
import {
setChangesMade,
setCurrentTitle,
setSaveCalculationErrors
} from './currentCalculation';
import { hideModal } from './modal';
import ... |
function ipolWidjetController(setups) {
var defSetups = {
label: 'iWidjet',
params: {}
};
if (typeof(setups) === 'undefined') {
setups = {};
}
for (var i in defSetups) {
if (typeof (setups[i]) === 'undefined') {
setups[i] = defSetups[i];
}
}
var label = setups.label;
var params = setups.params;... |
global.mail = {
send: require('./sendMail'),
sendOrder: require('./sendOrder')
};
|
import apiFind from './api/Find';
import apiGet from './api/Get';
import apiUseFind from './api/useFind';
import apiUseGet from './api/useGet';
import useListen from './useListen';
import _PouchDB from './PouchDB';
export { _PouchDB as PouchDB };
import _withDB from './withDB';
export { _withDB as withDB };
import * as... |
// Copyright 2021 Google LLC
//
// 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 ... |
function voting(votes, players) {
Object.keys(votes).reduce(function(a, b)
{ return obj[a] > obj[b] ? a : b }
);
}
module.exports = voting |
import requiredArgs from "../_lib/requiredArgs/index.js";
import { monthsInQuarter } from "../constants/index.js";
/**
* @name quartersToMonths
* @category Conversion Helpers
* @summary Convert number of quarters to months.
*
* @description
* Convert a number of quarters to a full number of months.
*
* @param {... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EditCandidateCommissionAction = void 0;
const util_1 = require("../../util");
const internal_1 = require("../internal");
const action_1 = require("./action");
const external_1 = require("../../util/external");
/**
*
*/
class EditCand... |
module.exports = new Date(2014, 9, 3)
|
import styles from './styles';
import media from './media';
module.exports = {
styles,
media,
};
|
/*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-sort/datatable-sort.js']) {
__coverage__['build/datatable-sort/datatable-... |
Ext.data.JsonP.App_Events({"tagname":"class","name":"App.Events","autodetected":{"members":true},"files":[{"filename":"events.js","href":"events.html#App-Events"}],"alternateClassNames":["Events"],"static":true,"members":[{"name":"Behaviors","tagname":"property","owner":"App.Events","id":"static-property-Behaviors","me... |
import { FETCH_WEATHER } from '../actions/index';
export default (state = [], action) => {
switch(action.type) {
case FETCH_WEATHER:
return [ action.payload.data, ...state ]; // [city, city, city]
}
return state;
} |
import os
import time
import warnings
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from torch import optim
from torch.optim.lr_scheduler import CosineAnnealingLR
from tsformer.datasets.data_factory import data_provider
from tsformer.exp_basic import Exp_Basic
from tsformer.models.autoform... |
type JestMockFn = {
(...args: Array<any>): any,
/**
* An object for introspecting mock calls
*/
mock: {
/**
* An array that represents all calls that have been made into this mock
* function. Each call is represented by an array of arguments that were
* passed during the call.
*/
... |
/*!
* CanJS - 2.3.0-pre.9
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Wed, 02 Sep 2015 16:32:25 GMT
* Licensed MIT
*/
/*can@2.3.0-pre.9#view/parser/parser*/
define([], function () {
function each(items, callback) {
for (var i = 0; i < items.length; i++) {
callback(items[i], i);
... |
// COPYRIGHT © 2020 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
'use strict';
/**
* copied from https://github.com/darkskyapp/string-hash
*/
function hashFn(str) {
var hash = 5381,
i = str.length;
while (i) {
hash = (hash * 33) ^ str.charCodeAt(--i);
}
/* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
* integers. Since ... |
import React from 'react';
import {MainPage, CartPage} from '../pages';
import AppHeader from '../app-header';
import {Route, Switch} from 'react-router-dom';
import Background from './food-bg.jpg';
const App = () => {
return (
<div style={{background: `url(${Background}) center center/cover no-r... |
"""
Ethereum Virtual Machine (EVM) Storage Instructions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. contents:: Table of Contents
:backlinks: none
:local:
Introduction
------------
Implementations of the EVM storage related instructions.
"""
from ...state import get_storage, set_storage
from .. im... |
import React from "react"
import {Link} from "gatsby"
import Layout from "../components/layout"
import Head from "../components/head"
const IndexPage = () => {
return (
<Layout>
<Head title="Home"/>
<h1>Hello</h1>
<h2>I'm Will, a full-stack developer living in London</h2>
<p>Need a develo... |
import {debounce} from "@/common/utils";
import BackTop from "@/components/content/backTop/BackTop";
export const itemListenerMixin = {
data() {
return {
itemImgListener: null,
refresh: null
}
},
mounted(){
this.refresh = debounce(this.$refs.scroll.refresh,500)
this.itemImgListener = ... |
var mongoose = require('mongoose');
var bookSchema = new mongoose.Schema({
title: String,
description: String,
coverImage: String,
stt: Number,
});
var books = mongoose.model('books', bookSchema);
module.exports = books;
|
// @flow
import express from 'express';
import path from 'path';
import reload from 'reload';
import fs from 'fs';
import { Categories, Articles, Students } from './models.js';
type Request = express$Request;
type Response = express$Response;
const public_path = path.join(__dirname, '/../../client/public');
let app... |
const cssProperties = require('known-css-properties').all;
const fastJsonStableStringify = require('fast-json-stable-stringify');
const hash = require('murmurhash-js');
const { getIncrementalClass } = require('./incremental-classnames')();
const {
UNITLESS_NUMBERS,
COMMA_SEPARATED_LIST_PROPERTIES
} = require('./co... |
angular.module('zfaModal')
.factory('zfaModalFactory', function(FoundationApi, $controller, $rootScope, $http, $q, $compile, $timeout, $window, $templateCache) {
function createModal(config) {
var defer = $q.defer(), cachedTemplate;
if(config.templateUrl) {
cachedT... |
export default {
route: {
dashboard: '首页',
introduction: '简述',
documentation: '文档',
guide: '引导页',
permission: '权限测试页',
pagePermission: '页面权限',
directivePermission: '指令权限',
icons: '图标',
components: '组件',
componentIndex: '介绍',
tinymce: '富文本编辑器',
markdown: 'Markdown',
... |
var assert = require('assert');
var ubique = require('../../index.js');
suite('quants',function () {
console.log('Testing quants/sterlingratio ...');
test('sterlingratio', function (done) {
var x = [0.003,0.026,0.015,-0.009,0.014,0.024,0.015,0.066,-0.014,0.039];
var y = [-0.005,0.081,0.04,-0.037,-0.061,0.058,-0.049,-... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
tableContainerClasses: true
};
Object.def... |
Plane = function (a, b, c, d)
{
this.abcd = new Float32Array([a, b, c, d]);
this.normalize();
};
Plane.extend(
{
HALFSPACE: { NEGATIVE: -1, ON_PLANE: 0, POSITIVE: 1, },
});
Plane.prototype.extend(
{
transform: function (matrix)
{
debugger;
var pointOnPlane = vec4.fromValues
(
this.abcd[0] * this.abcd... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{ZyW4:function(t,e,i){"use strict";i.r(e),i.d(e,"ion_tab",function(){return s}),i.d(e,"ion_tabs",function(){return a});var n=i("mrSG"),o=i("VKG5"),r=(i("Ansa"),i("CBt4")),s=function(){function t(t){Object(o.l)(this,t),this.loaded=!1,this.active=!1}return t.protot... |
import { connect } from 'react-redux';
import Login from './Login';
import { fetchWithCreds } from '../actions';
import { loginPath } from '../localconf';
import dictIcons from '../img/icons/sliding';
import { components } from '../params';
export const fetchLogin = () => (dispatch) =>
fetchWithCreds({
path: lo... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
#!/usr/bin/python
# Copyright 2013-present Barefoot Networks, 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 ap... |
/*
300.最长上升子序列
状态转移方程:
dp[i] = Math.max(dp[i], dp[j] + 1)
*/
var lengthOfLIS = function(nums) {
// 边界判断
if(!nums.length) return 0;
let dp = new Array(nums.length).fill(1),
max = 0;
for(let i=0; i<nums.length; i++) {
for(let j=0; j<i; j++) {
if(nums[i] > nums[j]) {
... |
chorus.models.CSVImport = chorus.models.Base.extend({
constructorName: "CSVImport",
urlTemplate: "workspaces/{{workspaceId}}/csv/{{csvId}}/imports",
paramsToIgnore: ['contents'],
parameterWrapper: 'csv_import',
declareValidations:function (newAttrs) {
if (this.get("destinationType") !== "ex... |
request("https://rms.sexy/?images", function (error, response, body) {
if (error || response.statusCode != 200) {
message.channel.send("?images konnte nicht geladen werden... :(");
} else {
message.channel.send({
files: ["https://rms.sexy" + JSON.parse(body)[Math.floor(Math.random()*JSON.parse(body).lengt... |
#!/usr/bin/env python
# Copyright (c) 2003-2016 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Author:
# Dirk-jan Mollema / Fox-IT (https://www.fox-it.com)
#
# Description:... |
// @flow
import {Schema} from 'prosemirror-model';
import {TextSelection} from 'prosemirror-state';
import {Transform} from 'prosemirror-transform';
import isListNode from './isListNode';
import joinDown from './joinDown';
import joinUp from './joinUp';
export default function joinListNode(
tr: Transform,
schema... |
import csv
import logging
from enum import Enum
from typing import List
from brain_brew.representation.generic.source_file import SourceFile
from brain_brew.utils import list_of_str_to_lowercase, sort_dict
_encoding = "utf-8"
class CsvKeys(Enum):
GUID = "guid"
TAGS = "tags"
class CsvFile(SourceFile):
f... |
import { dashboard, contactForm } from 'src/constants/newUrls'
export default {
plans: ['free', 'unlimited', 'enterprise'],
featureLabels: ['Transactions', 'Installation', 'Support', 'Team Seats'],
featureValues: {
free: ['$0/1m/month', 'SaaS', 'Community', '$0/user/month'],
unlimited: ['$10/1m/month', '... |
import sys
import os
import json
import torch
from collections import OrderedDict
from torchvision import models
from torch import nn, optim
from torchvision import datasets, transforms
from torch.utils.data import DataLoader
import argparse
supported_arch = [
'vgg11',
'vgg13',
'vgg16',
'vgg19',
... |
var utils = require("./util"),
bodyParser = require("body-parser"),
path = require("path"),
fs = require("fs"),
Promise = require("promise");
var isRootCAFileExists = require("./certMgr.js").isRootCAFileExists(),
interceptFlag = false,
fuzzFlag = false;
//e... |
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/@fancyapps/ui/dist/fancybox.esm.js":
/*!*********************************************************!*\
!*** ./node_modules/@fancyapps/ui/dist/fancybox.esm.js ***!
\******************************************************... |
/*
*
* 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"); y... |
import React from 'react';
import PropTypes from 'prop-types';
import Note from 'components/notebook/note';
import { Container } from './notebook.css';
const Notebook = ({ notes }) => (
<Container>
{notes.map((note, i) => (
<Note {...note} key={i} />
))}
</Container>
);
Notebook.propTypes = {
note... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* ... |
import $ from 'jquery'
/*
* Floating label plugin moves inline label to float above the field
* when a user engages with the assosciated text input field
*/
const FloatingLabel = (($) => {
// constants >>>
const DATA_KEY = 'md.floatinglabel'
const EVENT_KEY = `.${DATA_KEY}`
const NAME = 'floati... |
const mongoose = require('mongoose');
var schemas = require('schemas');
mongoose.Promise = global.Promise;
mongoose.connect('mongodb://localhost/textdocumentsDB');
var db = mongoose.connection;
//adding collections to db
db.textdocuments = schemas.textdocuments;
db.on('error', console.error.bind(console, 'connection... |
/****************************************************************************************************
* PARTIAL FILE: individual_class_binding.js
****************************************************************************************************/
import { Component } from '@angular/core';
import * as i0 from "@angul... |
define(
"dojo/cldr/nls/kln/gregorian", //begin v1.x content
{
"dateFormatItem-yM": "M/y",
"field-dayperiod": "BE/KE",
"dateFormatItem-yQ": "Q y",
"dayPeriods-format-wide-pm": "Kemo",
"field-minute": "Minitit",
"eraNames": [
"Amait kesich Jesu",
"Kokakesich Jesu"
],
"dateFormatItem-MMMEd": "E, MMM d",
"fiel... |
const fs = require('fs');
const path = require('path');
const url = require('url');
const electron = require('electron');
const dialog = electron.dialog;
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const configPath = path.join(__dirname, 'config.json');
let mainWindow;
function debugDia... |
import chai from 'chai';
import sc from 'sinon-chai';
import {jsdom} from 'jsdom';
import canvas from 'canvas';
chai.use(sc);
const exposedProperties = ['window', 'navigator', 'document', 'Image'];
let document = jsdom('');
global.document = document;
global.window = document.defaultView;
global.Image = canvas.Imag... |
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_src_containers_Backend_Admin_Cms_Global_js"],{
/***/ "./resources/js/src/components/Backend/UI/Breadcrumb/Breadcrumb.js":
/*!*************************************************************************!*\
!*** ./resources/js/src/components/Backend... |
/**
* breakpoints-js v1.0.6
* https://github.com/amazingSurge/breakpoints-js
*
* Copyright (c) amazingSurge
* Released under the LGPL-3.0 license
*/
var defaults = {
// Extra small devices (phones)
xs: {
min: 0,
max: 767
},
// Small devices (tablets)
sm: {
min: 768,
max: 991
},
// Medium d... |
import unzip from './unzip.js'
/**
* Creates an array of grouped elements, the first of which contains the first
* elements of the given arrays, the second of which contains the second
* elements of the given arrays, and so on.
*
* @since 0.1.0
* @category Array
* @example
* zip(['a', 'b'], [1, 2], [true, fa... |
randomJoke = function () {
const chuckJoke = ' https://api.chucknorris.io/jokes/random?category=food';
fetch(chuckJoke).then(function (response) {
if (response.ok) {
response.json().then(function (data) {
// console.log(data.value);
displayJoke(data.value);
});
}
});
const j... |
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
state: {},
mutations: {},
actions: {}
});
|
( function () {
var Rhino3dmLoader = function ( manager ) {
THREE.Loader.call( this, manager );
this.libraryPath = '';
this.libraryPending = null;
this.libraryBinary = null;
this.libraryConfig = {};
this.url = '';
this.workerLimit = 4;
this.workerPool = [];
this.workerNextTaskID = 1;
this.workerS... |
const { cleanPath } = require('@parameter1/utils');
const fetch = require('node-fetch');
const { ApiClientJSONResponse, ApiClientTextResponse } = require('./response/client');
const { ApiResponseJSONError, ApiResponseTextError } = require('./response/error');
const BrandResource = require('./resources/brand');
const Cu... |
"use strict";
var Template = /** @class */ (function () {
function Template() {
}
return Template;
}());
var AutForm = /** @class */ (function () {
function AutForm(institution) {
var _this = this;
this.institution = institution;
var btn = document.getElementById("filter");
... |
import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
impor... |
var searchData=
[
['imufreq',['ImuFreq',['../livox__def_8h.html#ac85ce63b24f69b6feeaef0e6912fe651',1,'livox_def.h']]]
];
|
from catalyst.callbacks.metric import MetricCallback
from catalyst.metrics import mrr
class MRRCallback(MetricCallback):
"""Calculates the AUC per class for each loader.
.. note::
Currently, supports binary and multi-label cases.
"""
def __init__(
self,
input_key: str = "tar... |
import axios from 'axios';
import { SubmissionError } from 'redux-form'
//Get current user(me) from token in localStorage
export const ME_FROM_TOKEN = 'ME_FROM_TOKEN';
export const ME_FROM_TOKEN_SUCCESS = 'ME_FROM_TOKEN_SUCCESS';
export const ME_FROM_TOKEN_FAILURE = 'ME_FROM_TOKEN_FAILURE';
export const RESET_TOKEN = ... |
class NoWriterException(Exception):
def __init__(self):
super(NoWriterException, self).__init__()
|
import {
isConnected,
render,
renderString,
stopServer,
html,
} from '../../../testing/testing-helpers';
describe('<bolt-chip> Component', () => {
afterAll(async () => {
await stopServer();
}, 100);
test('basic usage with attributes', async () => {
const results = await render('@bolt-component... |
var class_delete_patient_button =
[
[ "Awake", "class_delete_patient_button.html#a841c73ae2d88e91f87d312fe5c563b5c", null ],
[ "nextPage", "class_delete_patient_button.html#a7d05e5c46f40003c61d3a96982243adb", null ]
]; |
(function ($) {
function SlickGridPager(dataView, grid, $container, options) {
var $status;
var _options;
var _defaults = {
showAllText: "Showing all {rowCount} rows",
showPageText: "Showing page {pageNum} of {pageCount}"
};
function init() {
_options = $.extend(true, {}, _d... |
//=================== Filtering sources, an example =======================
// Before running those charts, on the server:
// - enable connections 'aava-n2k.data' and 'Plaka log' in SignalK Dashboard, menu Server/Connections
// - disable all other connections
// - restart SignalK
// Sources avalaible by path can... |
/**
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* global document */
// ClassicTestEditor can't be used, as it doesn't handle the focus, which is needed to test resizer visual cues.
imp... |
var arrayRemove = require('unordered-array-remove')
var debug = require('debug')('webtorrent:peer')
var Wire = require('bittorrent-protocol')
var WebConn = require('./webconn')
var CONNECT_TIMEOUT_TCP = 5000
var CONNECT_TIMEOUT_WEBRTC = 25000
var HANDSHAKE_TIMEOUT = 25000
/**
* WebRTC peer connections start out con... |
import React from 'react'
import { ServiceManagementList } from 'components/ServiceManagementList/ServiceManagementList'
describe('(Component) ServiceManagementList', () => {
it('render normally', () => {
const wrapper = shallow(
<ServiceManagementList />
)
expect(toJson(wrapper)).toMatchSnapshot()... |
'use strict'
/*jshint asi: true */
var path = require('path');
var fs = require('fs');
var workers = require('./workers');
var stringifyWorkers = require('./stringify-workers');
var fixRequires = require('./fix-requires');
require('shelljs/global');
var braceroot = ... |
import React from 'react';
import classes from './Layout.css';
import Auxiliary from '../../hoc/Auxiliary';
const Layout = (props) => (
<Auxiliary>
<div>Toolbar, Sidebar, Backdrop</div>
<main className={classes.Content}>
{props.children}
</main>
</Auxiliary>
);
export default Layout; |
# -*- coding: utf-8 -*-
import vk_api.vk_api_ext
import vk_api.vk_api
from longpoll import *
from threading import *
from tasks import *
import logging as log
from constants import *
import time
from urllib.request import *
from urllib.parse import *
import json
import requests
import vk_api.vk_upload as upl
from hist... |
// pages/user/index.js
Page({
data: {
userinfo:{},
// 被收藏的商品的数量
collectNums:0
},
onShow(){
const userinfo=wx.getStorageSync("userinfo");
const collect=wx.getStorageSync("collect")||[];
this.setData({userinfo,collectNums:collect.length});
}
}) |
# -*- encoding: utf-8 -*-
from functools import wraps
from flask import request
from ..controller.response_methods import make_response_content
from ..exceptions import ErrorResponse
from ..exceptions.error_code import MsgCode
from ..utils.constants import HTTPStatus
def json_required(f):
@wraps(f)
def wrap... |
// global styles
import Vue from 'vue'
import './styles/hoolay/entry.css'
import App from './_local/app.vue'
// configs
Vue.config.devtools = true
Vue.config.debug = true
window.Vue = Vue
const Main = new Vue({
el: '#app',
version: '0.0.1',
template: '<div class="app-container"><app></app></div>',
components... |