text
stringlengths
3
1.05M
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # pylint: disable=C0103 # pylint: disable=C0413 # pylint: disable=W0702 ''' Script that checks if GET parameter directory traversal vulnerability. Dependencies: * python2 # Debian/Ubuntu: apt-get install python # Fedora: dnf install python * requ...
export { default } from 'osf-components/components/join-osf-banner/component';
import * as geography from '../../lib/geography.js'; import * as transform from '../../lib/transform.js'; const numericalValues = ['cases', 'tested', 'recovered', 'deaths', 'active']; /* Returns a report if the crosscheck fails, or false if the two sets have identical data */ function crosscheck(a, b) { const cro...
// 引用vue import Vue from 'vue'; // 引用要测试的组件 import child from '../example.vue'; // 引入断言库 import {expect} from 'chai'; /** * 获取生成的vm * * @param {Object} Component 组件 * @param {Object} propsData props数据 * @return {Object} vue实例 */ function getVM(Component, propsData) { const Vueor = Vue.extend(Component) retur...
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt # from past.builtins import range class TwoLayerNet(object): """ A two-layer fully-connected neural network. The net has an input dimension of N, a hidden layer dimension of H, and performs classification over C classes. ...
import { Actions } from '../../../constants' const initialState = { data: [], latestUpdate: null, loading: null, error: false, symbols: [] } export const favorites = (state = initialState, action) => { switch (action.type) { case Actions.TOGGLE_FAVORITE: const index = state.symbols.findIndex(symbol => sym...
// @flow import { ColorSchemeRegistry, schemeColor } from '../../../base/color-scheme'; import { BoxModel, ColorPalette } from '../../../base/styles'; const BUTTON_SIZE = 60; // Toolbox, toolbar: /** * The style of toolbar buttons. */ const toolbarButton = { borderRadius: 30, borderWidth: 0, flex: 0, ...
import React from 'react'; /** * A custom icon for indicating wired screenshare. * * @returns {ReactElement} */ export default function WireledScreenshareIcon() { return <i className = 'material-icons'>wired_screen_share</i>; }
from pynytimes import NYTAPI # Make sure to turn parse dates on so that the dates # are parsed into datetime.datetime or datetime.date objects nyt = NYTAPI("API Key", parse_dates=True) # Get the most viewed articles of today most_viewed = nyt.most_viewed() # Optionally you can also define the time period of the most...
const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: './src/index.js', output: { path: __dirname, filename: './reslease/bundle.js' }, module: { rules: [{ test: /\.js?$/, exclude: /(node_modeles)/, loader: 'babel-loader' ...
""" Django settings for app project. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ Any setting that is configured via an environment variable may also be set in a `....
# # Solution class # import casadi import numbers import numpy as np import pickle import pybamm import pandas as pd from scipy.io import savemat class Solution(object): """ Class containing the solution of, and various attributes associated with, a PyBaMM model. Parameters ---------- all_ts ...
module.exports = function(expect) { var __ks_Date = {}; const d = new Date(); expect(d.culture).to.not.exist; return { Date: Date, __ks_Date: __ks_Date }; };
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTooltip from 'react-tooltip' import BackendIcon from 'material-ui-icons/InfoOutline'; import {connect} from 'react-redux'; import * as actionTypes from '../store/actions'; import Select from 'material-ui/Select/Select'; var title = document....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var IfStringHelper = /** @class */ (function () { function IfStringHelper() { } IfStringHelper.prototype.helperFunc = function (context, a, options) { if (typeof a === 'string') { return options.fn(context); ...
// see #7395 // we always add validation/beanvalidation.js on each page, also if no PrimeFaces component is available // so... just check if primefaces.js was rendered if (window.PrimeFaces) { /** * Bean Validation Integration for PrimeFaces Client Side Validation Framework */ PrimeFaces.locales['en_U...
/* * @Author: tackchen * @Date: 2022-03-27 12:00:17 * @LastEditors: tackchen * @LastEditTime: 2022-03-27 12:00:17 * @FilePath: /npm-ts-template/webpack-config/config.js * @Description: Coding something */ module.exports = { resolve: { extensions: [ '.tsx', '.ts', '.js' ] }, module: { ...
$(document).ready(function(){ "use strict"; $(".my-rating").starRating({ starSize: 25, disableAfterRate: false, onHover: function(currentIndex, currentRating, $el){ $('.live-rating').text(currentIndex); $('#rating').val(currentRating); }, onLeave: function(currentIndex, currentRating, $el){ $('.liv...
# pylint: disable=unused-argument # 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....
const input = require("./input"); const utils = require("./utils"); // TODO REFACTOR IT const pointArr = utils.processPoint(input); const [minX, maxX, minY, maxY] = utils.getMinMaxGlobalArea(pointArr); const coordInAreaRaw = []; for (let x = minX; x <= maxX; x++) { for (let y = minY; y <= maxY; y++) { coordIn...
/** * Watch the DOM for elements by a given selector * * @param {string} selector * @param {function} fn * * @see http://ryanmorr.com/using-mutation-observers-to-watch-for-element-availability/ */ const watchElement = (selector, fn) => { const listeners = []; const doc = window.document; const MutationObse...
import Nullstack from 'nullstack'; class CurrencyInput extends Nullstack { parse({event, onchange, separator}) { const normalized = event.target.value.replace(separator || '.', '').padStart(3, '0'); const whole = (parseInt(normalized.slice(0,-2)) || 0).toString(); const decimal = normalized.slice(normal...
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("74295afcbe3851329365d06de2aa5a5e.js"); load("65e8e26820ba9a26bd71129e09aa83c5.js"); /* -*- tab-width: 2; indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICEN...
# -*- coding: utf-8 -*- ''' Set up the Salt integration test suite ''' # Import Python libs from __future__ import absolute_import, print_function import os import re import sys import copy import time import stat import errno import signal import shutil import pprint import atexit import socket import logging import...
import React from "react"; import classNames from "classnames"; import PropTypes from "prop-types"; import styles from "./styles.module.scss"; import IconButton from "./IconButton"; const Button = (props) => { const { children, className, size, shape, disabled, icon, type, ...others ...
// Copyright 2015 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. import { ColorPickerManager } from 'components/dialogs/color_picker_manager.js'; import { ScopedCallbacks } from 'base/scoped_callbacks.js'; /...
from __future__ import absolute_import from tastypie.authorization import Authorization from tastypie.authentication import BasicAuthentication from tastypie.resources import ModelResource from push_notifications.models import APNSDevice, GCMDevice, WNSDevice class APNSDeviceResource(ModelResource): class Meta: a...
class Solution: def findMin(self, nums: List[int]) -> int: left, right, mid = 0, len(nums) - 1, 0 while nums[left] >= nums[right]: if right - left == 1: mid = right break mid = (left + right) // 2 if nums[left] == nums[mid] and nums[mid] == nums[right]: return min(num...
"use strict"; var _chai = require("chai"); var _removePath = require("./remove-path"); describe('removePath', () => { let params; beforeEach(() => { params = { name: 'value', 'notPopulated.0': 'val1', 'notPopulated.1': 'val2', 'property.0': 'val1', 'property.1': 'val2', 'p...
import mongoose from 'mongoose'; import Promise from 'bluebird'; mongoose.Promise = Promise; const privateResourceSchema = new mongoose.Schema({ title: String, description: String, tags: [String], _tags: [{ type: Number, ref: 'PendingTag' }], url: String, creator: { type: mongoose.Schema.Type...
/** * freee API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: ...
from flask import render_template from app import app @app.errorhandler(404) def not_found_error(error): return render_template('404.html'), 404 @app.errorhandler(500) def internal_error(error): return render_template('500.html'), 500
favorite_pizzas = ['mushroom', 'tomato', 'artichoke'] for pizza in favorite_pizzas: print(pizza) for pizza in favorite_pizzas: print(pizza.title() + ", is one of my favorite pizzas!") print("I really like pizza!")
import React from "react"; import TestRenderer from "react-test-renderer"; import { FluentBundle, FluentResource } from "@fluent/bundle"; import { ReactLocalization, LocalizationProvider, Localized } from "../esm/index"; describe("Localized - void elements", function() { test("do not render the value in void eleme...
import React from "react"; import styled from "styled-components"; import { color, space, width, flex, display } from "styled-system"; import Container from "./Container"; import NavMenu from "./navMenu"; import Heading from "./Heading"; import defaultTheme from "../../theme"; import RimbleGatsbyLink from "./RimbleG...
var chunker = require('./chunker'); module.exports = function() { var input, // LeSS input string j, // current chunk saveStack = [], // holds state for backtracking furthest, // furthest index the parser has gone to furthestPossibleErrorMessage,// if this is fu...
export const SET_INITIAL_DATA = 'SET_INITIAL_DATA'; export const TOGGLE_LOADING = 'TOGGLE_LOADING'; export const SET_LAST_COMMIT_DATA = 'SET_LAST_COMMIT_DATA'; export const SET_LAST_COMMIT_MSG = 'SET_LAST_COMMIT_MSG'; export const SET_RESIZING_STATUS = 'SET_RESIZING_STATUS'; export const SET_EMPTY_STATE_SVGS = 'SET_EMP...
import { LightningElement, api } from 'lwc'; export default class extends LightningElement { @api focusFirstInput() { this.template.querySelector(`.first`).focus(); } @api focusSecondInput() { this.template.querySelector(`.second`).focus(); } @api get relatedTargetClas...
/** * Math renderer */ import katex from 'katex'; /** * Ensure math elements maintain vertical rhythm post render. */ import leadify from './leadify'; /** * Render a single math element, either inline or block level. */ function renderMath (isDisplayMode, el) { var mathText = el.innerText; try { katex....
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import torch from torch.nn import Module from yolox.utils import LRScheduler import ast import pprint from abc import ABCMeta, abstractmethod from tabulate import tabulate from typing import Dict ...
var five = require("../lib/johnny-five.js"), __ = five.Fn, board, Navigator, navigator, servos, expandedWhich, directionMap, scale; directionMap = { reverse: { right: "left", left: "right", fwd: "rev", rev: "fwd" }, translations: [{ f: "forward", r: "reverse", fwd: "forward", ...
import click from dgraph_scaler import scaler @click.command() @click.argument("input_file") @click.argument("output_file") @click.argument("scale_factor", type=float) @click.option('-b', '--bridges', help="Edges amount to interconnect samples. It is specified in percentage. e.g. 0.1 for 10%.", ...
// SF benchmark comes from GitLab jobs family file const sf_benchmark = { Engineer: 192000, Designer: 128400, 'Technical Writer': 138000, } export default sf_benchmark
import * as React from 'react'; import frLocale from 'date-fns/locale/fr'; import ruLocale from 'date-fns/locale/ru'; import arSaLocale from 'date-fns/locale/ar-SA'; import enLocale from 'date-fns/locale/en-US'; import ToggleButton from '@material-ui/core/ToggleButton'; import ToggleButtonGroup from '@material-ui/core/...
import { ethers } from "ethers"; import sdk from "./1-initialize-sdk.js"; // This is our governance contract. const voteModule = sdk.getVoteModule( "YOUR_VOTING_CONTRACT_ADDRESS", ); // This is our ERC-20 contract. const tokenModule = sdk.getTokenModule( "YOUR_TOKEN_CONTRACT_ADDRESS", ); (async () => { try { ...
/* * Copyright 2016 resin.io * * 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 w...
const { createParser, Command } = require('../../index') const parser = createParser() parser.addCommand(new Command('upload', 'Test').withPositional({ key: 'path', description: 'Test', type: 'string' })) it('should allow passing arguments to top level commands', async () => { const context = await parser.parse([...
var VALUE = 'value'; var KEY = 'key'; export default { KEY: KEY, VALUE: VALUE };
/* ******************************************************************************************* * * * Plese read the following tutorial before implementing tasks: * * https://developer.mozilla.org/en...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
""" A queue is essentially an Abstract data type. (it is built on top of/ it is a super type of some datastructure: lists and linked-lists). It is an ADT because it defines the operations that could be performed on the datastructure without specifying the underlying data arrangement at the momory le...
#Allometry import geopandas import pandas as pd import glob import re import numpy as np from dask import delayed import dask.dataframe as dd from analysis.check_site import get_site, get_year def load_shp(shp): df = geopandas.read_file(shp) df["shp_path"] = shp df["geo_index"] = str(re.search("(\d+_\d+)...
from itertools import ( chain as __it_chain__, groupby as __it_group__, islice as __it_slice__, starmap as __it_star_map__, ) class NamedTuple(object): ''' ''' __slots__ = () @classmethod def __len__(cls): ''' ''' return len(cls.__slots__) @class...
'use strict'; class Node { constructor(value) { this.value = value; this.next = null; } } module.exports = Node;
# -*- coding: utf-8 -*- """ Admin classes for Conditions app """ from __future__ import unicode_literals from django.contrib import admin from .models import RollModifier, EffectTrigger class RollModifierAdmin(admin.ModelAdmin): """Admin class for RollModifier""" list_display = ('id', 'object', 'name', 'sta...
module.exports = function getSeason( date ) { if (!date) { return 'Unable to determine the time of year!';} if (Object.keys(date).length > 0) { throw new Error();} let fourSeasons = { winter: [11, 0, 1], spring: [2, 3, 4], summer: [5, 6, 7], autumn: [8, 9, 10] }; let ...
!function(a,b){function c(b){return a("#"+b+" .as3cf-main-settings form").find("input:not(.no-compare)").serialize()}function d(a){var b=k.find("#"+a),c=b.find("input[type=checkbox]");b.toggleClass("on").find("span").toggleClass("checked");var d=b.find("span.on").hasClass("checked");c.attr("checked",d).trigger("change"...
""" Single Node, Single GPU Training -------------------------------- Training a model on a single node on one GPU is as trivial as writing any Flyte task and simply setting the GPU to ``1``. As long as the Docker image is built correctly with the right version of the GPU drivers and the Flyte backend is provisioned t...
# %% [3. *Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/) # 問題:「すべて異なる文字列」となる部分文字列の最大長を返す # 解法:今見ている文字が最後に現れたインデックス+1から今の位置までで更新 class Solution: def lengthOfLongestSubstring(self, s: str) -> int: res, i, n, idx = 0, 0, len(s), {}...
const express = require('express') const router = express.Router() const Contact = require('../models/Contact') router.get('/', function (req, res) { Contact.find({}) .limit(1) .then((contact) => { res.render('contact', { title: 'İletişim', contact: contact[0], }) }) }) route...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.IoMdArrowRoundDown = function IoMdArrowRoundDown (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M99.4 284.9l134 138.1c5.8 6 13.7 9 22.4 9h.4c8.7 0 16.6-3 22.4-9l134-138.1c1...
#!/usr/bin/env python ### gdal_crop.py ## ## Copyright (c) 2018 - 2021 CIRES Coastal DEM Team ## ## Permission is hereby granted, free of charge, to any person obtaining a copy ## of this software and associated documentation files (the "Software"), to deal ## in the Software without restriction, including without li...
var express = require('express'); var router = express.Router(); var db = require('../db'); router.get('/', function (req, res, next) { var sqlQuery = `SELECT * FROM users`; db.query(sqlQuery, function (err, results, fields) { res.render('index', { title: 'Register - Login', authorised: req.sess...
import sys import os import numpy as np import cPickle as pickle def load_word2vec_binary(fname='/data1/nlp-data/GoogleNews-vectors-negative300.bin', verbose=1, dev=False): """ Loads 300x1 word vecs from Google (Mikolov) word2vec """ word_vecs = {} if verbose: print 'loading word2vec' ...
/* * @Author: shl * @title: * @Date: 2019-04-09 14:51:26 * @Last Modified by: shl * @Last Modified time: 2019-05-28 17:10:52 */ const apipath = 'https://www.gushici.com/' export default function ajaxGet (url, data, cb) { let param = '' for (let i in data) { param += i + '=' + data[i] + '&' } if (param ...
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import CardMedia from '@material-ui/core/CardMedia'; import CardContent from '@material-ui/core/CardContent'; impor...
import pandas as pd import os, sys from eternabench.stats import calculate_Z_scores package_list=['vienna_2', 'vienna_2_60C', 'rnastructure', 'rnastructure_60C', 'rnasoft_blstar','contrafold_2','eternafold_B'] external_dataset_types = pd.read_csv(os.environ['ETERNABENCH_PATH']+'/eternabench/external_dataset_metadata...
import './aggregate.js'; import './aggregateBy.js'; import './all.js'; import './any.js'; import './append.js'; import './average.js'; import './chunkBy.js'; import './contains.js'; import './count.js'; import './defaultIfEmpty.js'; import './distinct.js'; import './elementAt.js'; import './elementAtOrDefault.js'; impo...
// 표 캡션 // 중괄호 문법 정리 // Tool function do_url_change(data) { return encodeURIComponent(data); } function do_nowiki_change(data, data_nowiki, type = 'normal') { return data.replace(/<span id="((?:[^"]*)(?:nowiki_(?:[^"]+)))"><\/span>/g, function(x, x_1) { if(type === 'normal') { return data_n...
# coding=utf-8 """ History management classes """ import re from typing import List, Union import attr from . import utils from .parsing import Statement @attr.s(frozen=True) class HistoryItem(): """Class used to represent one command in the History list""" _listformat = ' {:>4} {}' _ex_listformat = ...
$('#btnLogin').click(function(event) { event.stopPropagation(); if($("#login").val() != "" && $("#password").val() != ""){ carregando(); var data = $('#formLogin').serialize(); $.ajax({ type: 'post', url: './../controller/LoginController.php', data: data, success: functi...
""" lit - LLVM Integrated Tester. See lit.pod for more information. """ import os import platform import sys import time import lit.cl_arguments import lit.discovery import lit.display import lit.LitConfig import lit.reports import lit.run import lit.Test import lit.util def main(builtin_params={}): opts = lit...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','./library','sap/ui/core/Control','sap/ui/core/ResizeHandler','sap/ui/core/delegate/ItemNavigation'...
'use strict' const winston = require('winston') require('winston-daily-rotate-file') module.exports = (isDebug, processName) => { if (typeof processName === 'undefined') { processName = 'SERVER' } const appendProcess = winston.format.printf(({ level, message, timestamp }) => { return `${t...
(function(e){const l=e["nl"]=e["nl"]||{};l.dictionary=Object.assign(l.dictionary||{},{"%0 of %1":"0% van 1%","Align cell text to the bottom":"","Align cell text to the center":"Tekst in de cel centreren","Align cell text to the left":"","Align cell text to the middle":"","Align cell text to the right":"","Align cell te...
/* * @flow * Copyright (C) 2018 MetaBrainz Foundation * * This file is part of MusicBrainz, the open internet music database, * and is licensed under the GPL version 2, or (at your option) any * later version: http://www.gnu.org/licenses/gpl-2.0.txt */ import React from 'react'; import {l} from '../static/scri...
import lodashGet from 'lodash/get'; import * as Url from './libs/Url'; /** * This is a file containing constants for all of the routes we want to be able to go to */ const REPORT = 'r'; const IOU_REQUEST = 'iou/request'; const IOU_BILL = 'iou/split'; const IOU_SEND = 'iou/send'; const IOU_DETAILS = 'iou/details'; c...
"""An API to that interacts with Clarity REST architecture.""" import re import os import tempfile from jinja2 import Template from bs4 import BeautifulSoup from ua_generic_rest_api import ua_generic_rest_api from ua_clarity_api import get_endpoint_map class ClarityApi(ua_generic_rest_api.GenericRestApi): ...
module.exports = { TOKEN: "heyy", PREFIX: "$!", ownerID: ["456298243618504707"], colors: { error: 0xff0000, success: 0x00ff46, warning: 0xffd100, }, };
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function MdFiberManualRecord (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"circle","attr":{"cx":"12","cy":"12","r":"8"}}]})(props); };
/** * @license * Copyright (c) 2018, General Electric * * 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 appli...
import os, os.path import glob _GAIA_TOOLS_DATA= os.getenv('GAIA_TOOLS_DATA') if _GAIA_TOOLS_DATA is None: raise RuntimeError( 'Environment variable `GAIA_TOOLS_DATA` is not set. ' 'This is required to define where the Gaia data are downloaded to. ' 'See the readme: https://github.com/jobov...
require("dotenv-flow").config(); const con = require("mysql").createPool( require("./database.json") ); function randomStr(length = 6) { var result = ""; var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; var charactersLength = characters.length; for ( var i = 0; i <...
from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_rational_type, msat_get_integer_type, \ msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_make_or, m...
const NarwhalPrefix = require('../../../commands/narwhal_prefix'); class MockPrefixService { constructor() { this.prefix = ''; } put(prefix){ this.prefix = prefix } } class MockMessage { constructor(roleNames=[]) { this.msg = '' this.memberRoles = roleNames.map((r)...
import Analyser from './analyser'; /** * 贪心算法AI,功能是获取可以下的点的数组,并做启发式排序 */ class GreedAI { constructor(board) { this.board = board; } /** 获取可以下的点的数组,并做了排序 */ getNexts(color, searchRange) { const openlist = []; this.board.data.forEach((value, index) => { if (value !== 0) { return; ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = HTML; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); function HTML(props) { return _react.default...
/** * The file is defined "/setting" route. * * @author Seven Du <shiweidu@outlook.com> */ import User from '../component/User'; import UserAdd from '../component/user/UserAdd'; import UserManage from '../component/user/UserManage'; import Manage from '../component/user/Manage'; import Roles from '../component/use...
(function ($, GLOBAL) { var CONTENT_TEMPLATE = '<div class="toolbar"><span class="label">Field<select name="field">FIELDS</select></span><span class="label">Probe<select name="probe"><option value="0">X</option><option value="1">Y</option><option value="2">Z</option></select></span> Slice <span class="slice-value ...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8e94a668"],{"19c4":function(t,e,a){"use strict";a("2cce")},"2cce":function(t,e,a){},30148:function(t,e,a){},"469d":function(t,e,a){"use strict";a("a18f")},5584:function(t,e,a){"use strict";a("a9ce")},"8c05":function(t,e,a){"use strict";a("30148")},"8ca2"...
# -*- coding: utf-8 -*- """ Created on Sun Jul 8 18:52:12 2018 @author: lijie """ from apriori_FrequentItemSet import * def generateRules(L, supportData, minConf=0.7): #supportData: a dict from scanD bigRuleList = [] H1=[] for i in range(1, len(L)):#only get the sets with two or more items...
(function () { var dd = Data; var ss = store; var state = { // used by popup.js getBalance: async function() { let balance = await dd.get("balance"); return balance; }, // used by popup.js //setBalance: async function(v) { // await Data.set("balance", v); //}, getChargeDefaultSpeed: async function() { ...
const sidebarBox = document.querySelector('#box'), sidebarBtn = document.querySelector('#btn'); if (sidebarBtn != null) { sidebarBtn.addEventListener('click', event => { sidebarBtn.classList.toggle('active'); sidebarBox.classList.toggle('active'); }); } if (window != null) { window.add...
/// <reference path="../typings/tsd.d.ts" /> import * as React from 'react'; class TextAreaCounter extends React.Component { render() { return React.DOM.div(null, React.DOM.textarea({ defaultValue: this.props.text }), React.DOM.h3(null, this.props.text.length)); } } React.render(Reac...
function generator$diablo$nephalems(n){var r=["","","","","b","c","d","g","j","k","l","m","n","ph","r","t","v","w","z"],d=["a","e","i","o","u","a","e","i","o","u","a","e","i","o","u","a","e","i","o","u","ia","oe","io","y"],a=["c","dr","gr","l","ld","lm","ln","m","md","mn","n","nd","r","rl","rd","s","ss","th","thm","z"]...
import os import gc import time import torch import random import pickle import numpy as np import pandas as pd from tqdm import tqdm from torch.autograd import Variable from train_help import * from multi_task_models import * import yaml from torch.utils.data import DataLoader with open("./config.yaml") as file: co...
// Выдаем данные клиента const passport = require('passport'); module.exports.info = [ passport.authenticate('bearer', { session: false }), (request, response) => { // request.authInfo is set using the `info` argument supplied by // `BearerStrategy`. It is typically used to indicate scope of the token, ...
const fs = require('fs') const path = require('path') const csv = require('csvtojson') // Files are included this way to support automatic bundling when compiled with zeit/pkg const PATH_TO_SCHEMA_JSON = path.join(__dirname, '../schemas.json') const PATH_TO_SCHEMA_PROPERTIES_CSV = path.join(__dirname, '../schema.org/s...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HTML = exports.TEXT = exports.URL = exports.FILE = void 0; var FILE = '__NATIVE_FILE__'; exports.FILE = FILE; var URL = '__NATIVE_URL__'; exports.URL = URL; var TEXT = '__NATIVE_TEXT__'; exports.TEXT = TEXT; var HTML = '__NATIVE_HTM...