text
stringlengths
3
1.05M
import { mount } from 'avoriaz'; import AddressEdit from 'packages/address-edit'; import AddressDetail from 'packages/address-edit/Detail'; import areaList from '../../../docs/mock/area.json'; describe('AddressEdit', () => { let wrapper; afterEach(() => { wrapper && wrapper.destroy(); }); it('create a Add...
/** * @author n.poltoratsky * created on 27.06.2016 */ (function () { 'use strict'; angular.module('BlurAdmin.theme') .factory('baProgressModal', baProgressModal); /** @ngInject */ function baProgressModal($uibModal) { var methods = {}; var progress = 0; var max = 10...
(function($, cornerstone, cornerstoneMath, cornerstoneTools) { 'use strict'; var toolType = 'arrowAnnotate'; // Define a callback to get your text annotation // This could be used, e.g. to open a modal function getTextCallback(doneChangingTextCallback) { doneChangingTextCallback(prompt('E...
# Copyright: 2005-2008 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD """ functionality to hand off to a callable, enabling collapsing long chains of restrictions into Nlog N, or generating restrictions on the fly """ __all__ = ("delegate",) from pkgcore.restrictions import packages, restriction class dele...
'use strict'; var mongoose = require('mongoose'), crypto = require('crypto'); var userSchema = new mongoose.Schema({ email: { type: String, default: '' }, username: { type: String, default: '' }, hashedPassword: { type: String, default: '' }, salt: { type: String, default: '' }, role : {type: String, def...
var yummy = { name: "#Yummy", createdOn: new Date(2016, 03, 01), /* month 0 is jan. */ createdBy: "minus.plus.yummy", starred: false, expiresIn: 0, messageCount: 0, messages : [] // #10 #message s property in #chl object }; var sevencontinents = { name: "#SevenContinents", ...
module.exports = { soma(a, b) { console.log(a + b) } }
const mongoose = require("mongoose"); const userSchema = new mongoose.Schema({ username:String, phone:Number, userType:{ default:0 ,// 0 -> guest ; 1 -> admin type:Number }, email:String, userGeneratedDate:Date, isVerified:{ default:false, type:Boolean }...
_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[8],{"/EDR":function(n,t,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return u("23aj")}])},"23aj":function(n,t,u){"use strict";u.r(t),u.d(t,"__N_SSG",(function(){return i})),u.d(t,"default",(function(){return c}));var _=u("q1tI"),e=u.n(_)...
from collections import namedtuple Vector = namedtuple("Vector", "x y z") Particle = namedtuple("Particle", "pos v a") def vector_from_s(s): cs = s.split('=')[1][1:-1] x, y, z = [int(c) for c in cs.split(',')] return Vector(x, y, z) def move_once(part): new_v = Vector(part.v.x + part.a.x, part.v.y +...
import tempfile import unittest from pygromos.files.otherfiles import repdat from pygromos.tests.test_files.general_file_functions import general_file_tests from pygromos.tests.in_testfiles import in_test_file_path in_dir = in_test_file_path + "/repdat" in_path = in_dir+"/in_REEDS_repdat2_short.dat" in_path2 = in_dir+...
// Copyright (c) 2021, RAHUL.S and contributors // For license information, please see license.txt frappe.ui.form.on('CUSTOMER DETAILS', { refresh: function(frm) { frappe.msgprint(__("YOU ARE IN CUSTOMER DETAIL DOCTYPE")) } });
from typing import TYPE_CHECKING import PyQt5.QtGui as QtGui import PyQt5.QtWidgets as QtWidgets import PyQt5.QtCore as QtCore from PyQt5.QtWidgets import QLabel, QLineEdit from electrum_ltc.i18n import _ from electrum_ltc.util import bh2u, format_time from electrum_ltc.lnutil import format_short_channel_id, LOCAL, R...
(function ($) { var methods = { init : function(options) { var defaults = { menuWidth: 240, edge: 'left', closeOnClick: false }; options = $.extend(defaults, options); $(this).each(function(){ var $this = $(this); var menu_id = $("#"+ $this.attr('d...
// RenderSystem function RenderSystem() { throw "cannot construct a RenderSystem, no constructor in IDL" } RenderSystem.prototype = Object.create(WrapperObject.prototype); RenderSystem.prototype.constructor = RenderSystem; RenderSystem.prototype.__class = RenderSystem; RenderSystem.__cache = {}; Module['RenderSystem'] ...
import React, { Component } from 'react'; import './App.css'; class App extends Component { constructor(props) { super(props); this.state = { likes: 0, }; } shouldComponentUpdate(nextProps, nextState) { console.log("Father. shouldComponentUpdate"); return nextState.likes % 41 === 0; ...
import {SuiteModuleBuilder} from 'ember-runtime/tests/suites/suite'; import {Freezable} from 'ember-runtime/mixins/freezable'; import {get} from 'ember-metal/property_get'; var suite = SuiteModuleBuilder.create(); suite.module('frozenCopy'); suite.test('frozen objects should return same instance', function() { var...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2...
#!/usr/bin/env node var debug = require('debug')('kevin:main'); // debugging //var chalk = require('chalk'); // colors var program = require('commander'); // CLI access var http = require('http'); // http-server // local packages var localhostInfo = require('../lib/getHostInfo.js')...
const { mix } = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel a...
import { isFunction, isUndefined, isArray, isNullOrUndef, defer, objectIs } from './util' import { Current } from './current' export function forceUpdateCallback () { // } function getHooks (index) { if (Current.current === null) { throw new Error(`invalid hooks call: hooks can only be called in a stateless c...
import mongoose from 'mongoose'; const ConversionXrefSchema = new mongoose.Schema({ field_name: { type: String, required: true, index: true }, val_from: { type: String, required: true, index: true }, val_to: { type: String, required: true, index: true } }); export defau...
year="2004"; // Initialize slider var presenteInfo=""; var slider = d3.slider().min(2004).max(2014).tickValues([2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014]).stepValues([2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014]); // Render the slider in the div d3.select('#slider').call(slide...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); const middleware_serde_1 = require("@aws-sdk/middleware-serde"); const smithy_client_1 = require("@aws-sdk/smithy-client"); class GetShardIteratorCommand extends smithy_client_1.Comman...
# 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"); you may not u...
from DockerBuildManagement import BuildManager import sys def main(): """Entry point for the application script""" arguments = sys.argv[1:] print('Managing solution with arguments: ') print(arguments) BuildManager.HandleManagement(arguments) if __name__ == "__main__": main()
const mongoose=require('mongoose') const env= require('dotenv'); //connect to db env.config(); mongoose.Promise=global.Promise; const url= process.env.URL; const connect= mongoose.connect(url, { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex:true, useFindAndModify: false }) connect...
/** * Provides necessary utilities to communicate with the GBIF tile server for server side rendered * tiles for use in Leaflet. */ L.GBIFLayer = L.TileLayer.extend({ // maps the IDs used in the map options (e.g. the time slider) to server side layer names key_mapping: { 0: "SP_NO_YEAR", 1: "SP_PRE_1900", ...
// ---------------------------------------------------------------------- export const mockImgCover = (index) => `/static/mock-images/covers/cover_${index}.jpg`; export const mockImgService = (index) => `/static/mock-images/services/service_${index}.jpg`; export const mockImgAvatar = (index) => `/static/mock-images/av...
// place any jQuery/helper plugins in here, instead of separate, slower script files. $(function() { var csrftoken = $('meta[name=csrf-token]').attr('content') $.ajaxSetup({ beforeSend: function(xhr, settings) { if (!/^(GET|HEAD|OPTIONS|TRACE)$/i.test(settings.type) && !this.crossDomain) { xhr.s...
import { useState } from 'react' import { useHistory, useLocation } from 'react-router-dom' import { useAuth } from './../../useAuth' const Signup = () => { const [firstName, setFirstName] = useState('') const [lastName, setLastName] = useState('') const [username, setUsername] = useState('') const [email, se...
/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, {useRef, useCallback} from 'react'; import classnames from 'classnames'; import useDocusaurusContext from '@docusaurus/us...
// @ts-nocheck 'use strict'; const _ = require('lodash'); const atRuleParamIndex = require('../../utils/atRuleParamIndex'); const declarationValueIndex = require('../../utils/declarationValueIndex'); const getUnitFromValueNode = require('../../utils/getUnitFromValueNode'); const isMap = require('../../utils/isMap'); ...
# -*- coding:utf-8 -*- """ ------------------------------------------------- File Name: setting Description: 配置文件 Author: Miller date: 2017/9/6 0006 ------------------------------------------------- """ __author__ = 'Miller' sougou_train_news = '../data/sougou/train_contents.txt' sougo...
import os import numpy as np datafolder="../QMCPACK/288/288x115x69x69/split" ebs=[i*1e-4 for i in range(1,10)]+[i*1e-3 for i in range(1,10)]+[i*1e-2 for i in range(1,11)] cr=np.zeros((29,289),dtype=np.float32) psnr=np.zeros((29,289),dtype=np.float32) ctime=np.zeros((29,289),dtype=np.float32) dtime=np.zeros((29,289)...
const { stripIndents, oneLine } = require('common-tags') const { Command } = require('discord.js-commando') module.exports = class DiceCommand extends Command { constructor(client) { super(client, { name: 'dice', group: 'diversao', memberName: 'dice', aliases: ['roll', 'dados'], des...
import React from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; import AuthorizationRequest from './request'; import AuthorizationResponse from './response'; const App = () => ( <BrowserRouter basename="/"> <div> <Route exact path="/" component={AuthorizationRequest} /> <Route pat...
# coding=utf-8 from pyshark import FileCapture import sys from io import StringIO packet2num = {} class PcapReader: def __init__(self, filename, summary=True, keep_packets=False): self.result = [] self.cap = FileCapture(filename, only_summaries=summary, keep_packets=keep_packets) if filen...
queue() .defer(d3.json, "/api/scholar_page_count") // .defer(d3.json, "pages_read.json") .await(makeGraphs); function makeGraphs(error, data) { pagesReadEmailDataTable = dc.dataTable('#pagesReadEmailDataTable'); pagesReadRowChart = dc.rowChart('#pagesReadRowChart'); var dateFormat = d3.time.format("%Y-%m...
import React from 'react'; import { ListItem, List } from "../list"; class Meteroid extends React.Component { constructor(props) { super(props); this.state = { apiKey:`${process.env.REACT_APP_METEORS}`, apiResults: [], todayDate: new Date().toISOString().slice(0, 10), } } componen...
wrap(() => { if (!onPage('Quests')) return; const questSelector = 'input[type="submit"][value="Claim"]:not(:disabled)'; function collectQuests() { const quests = document.querySelectorAll(questSelector); if (quests.length) { const block = getBlock(); const table = block.querySelector('.questT...
# Generated by Django 3.1.6 on 2021-02-05 20:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('fileapp', '0003_auto_20210205_2052'), ] operations = [ migrations.CreateModel( ...
var express = require("express"); var router = express.Router(); const ProjectModel = require("../models/projects"); const SupportertModel = require("../models/supporters"); let id; var projekt; /* GET current project page. */ router.get("/:id", function (req, res, next) { id = req.params.id; ProjectModel.findById...
const Gpio = require('onoff').Gpio; const EventEmitter = require('events'); const emitter = new EventEmitter(); let button = new Gpio(16, 'in', 'both'); button.watch((err, value) => { emitter.emit('button_pressed', value); }); module.exports = emitter;
"""Logging API""" import logging def create_logger(log_level=logging.DEBUG, log_to_console=True, log_file=None): """Create logger. Parameters ---------- log_level : int, optional Logging level. log_to_console : bool, optional Whether to log to console. log_file : str, optiona...
import React, { Component } from "react"; import { Layout } from "antd"; import { Route } from "react-router-dom"; import MsgList from "../MsgList/MsgList"; import ChatHeader from "../ChatHeader/ChatHeader"; import ChatHistory from "../ChatHistory/ChatHistory"; import ChatInput from "../ChatInput/ChatInput"; const { H...
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import dns.resolver import ipaddress import json import os import pprint import time import uuid from functools import partial from distutils.dir_util import copy_tree import distutils.util from pathlib import Path from netaddr import IPNetwork import assiste...
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{LCGD:function(e,n,t){"use strict";t.r(n),t.d(n,"MergeModule",(function(){return v}));var a=t("iInd");class o{constructor(){this.fruits=["apple","apple","old-apple","apple","old-apple","banana","old-banana","old-banana","banana","banana"],this.expectedFruits=["ap...
import React from 'react' import styles from './feed-view.css' import ToolBox from './toolbox' const Feed = ({ id, title, contentPreview, viewFeedContent, origin: { title: feedName }, crawlTimeMsec, activeFeedId }) => { let date = new Date(parseInt(crawlTimeMsec, 10)).toLocaleString() return ( <l...
import React, {useState} from 'react'; import styled from 'styled-components' import { withRouter } from "react-router-dom"; import moment from 'moment' import ClampLines from 'react-clamp-lines'; import {coolColor, warmColor} from '../helpers/colors' import '../App.css'; function JournalEntry(props) { return ( ...
/** * @license * Copyright 2019 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.ruler', name: 'RuleGroup', documentation: 'A rule group groups some rules together, the rules within only run if the ruleGroup predicate evaluates to ...
from __future__ import unicode_literals from django.db import connection from django.test import SimpleTestCase from .fields import CustomTypedField class TestDbType(SimpleTestCase): def test_db_parameters_respects_db_type(self): f = CustomTypedField() self.assertEqual(f.db_parameters(connectio...
from io import StringIO import pytest from resconfig import fields from resconfig.fields import extract_values from resconfig.ondict import ONDict class CustomField(fields.Field): @classmethod def from_obj(cls, value): return value @classmethod def to_str(cls, value): return "by cus...
const asyncFunctionMiddleware = storeAPI => next => action => { // If the "action" is actually a function instead... if (typeof action === 'function') { // then call the function and pass `dispatch` and `getState` as arguments return action(storeAPI.dispatch, storeAPI.getState) } // Other...
Highcharts.maps["countries/id/id-all"] = {"title":"Indonesia","version":"1.1.2","type":"FeatureCollection","copyright":"Copyright (c) 2015 Highsoft AS, Based on data from Natural Earth","copyrightShort":"Natural Earth","copyrightUrl":"http://www.naturalearthdata.com","crs":{"type":"name","properties":{"name":"urn:ogc:d...
var xpath = require('../../lib/jsdom/level3/xpath'); var jsdom = require("../.."); var domTestHelper = require('../DOMTestCase'); exports.tests = {}; function all1(re, s) { var l = []; while (s.length) { var m = re.exec(s); if (!m) break; l.push(m[1]); s = s.substr(m[0].length); } return l; } ...
from ckeditor_uploader.widgets import CKEditorUploadingWidget from django import forms from django.contrib import admin from .models import Post class CKPostAdminForm(forms.ModelForm): class Meta: model = Post fields = "__all__" widgets = {"text": CKEditorUploadingWidget} class PostAdmi...
'use strict'; [{ zoneId: ZoneId.TheNavelExtreme, timelineFile: 'titan-ex.txt', timelineTriggers: [ { id: 'TitanEx Mountain Buster', regex: /Mountain Buster/, beforeSeconds: 7, condition: function(data) { return data.role == 'healer' || data.role == 'tank'; },...
const path = require('path'); const fs = require('fs'); let config = {}; traverseFiles(path.resolve(__dirname, './api')); function traverseFiles(filePath) { const stats = fs.statSync(filePath) if (stats.isDirectory()) { // if the path is a dir, look into files in the dir. fs.readdirSync(filePath).for...
(this["webpackJsonprecipe-sample-app"]=this["webpackJsonprecipe-sample-app"]||[]).push([[82],{114:function(i,n,t){"use strict";t.r(n),t.d(n,"ion_infinite_scroll",(function(){return l})),t.d(n,"ion_infinite_scroll_content",(function(){return c}));var e=t(1),o=t(17),s=t(14),r=t(39),l=function(){function i(i){var n=this;O...
/* eslint-env mocha */ const assert = require('yeoman-assert'); describe('can be imported without blowing up', () => { it('latex', () => { const app = require('../generators/app'); assert(app !== undefined); }); it('latex:chapter', () => { const app = require('../generators/chapter'); assert(ap...
import {NativeModules, NativeEventEmitter, Platform} from 'react-native'; const {SpotlightSearch} = NativeModules; const spotlightEventEmitter = new NativeEventEmitter(SpotlightSearch); const EVENT_ITEM_TAPPED = 'spotlightSearchItemTapped'; const nullFunc = () => {}; export default { getInitialSearchItem: Platfo...
var currentQuestionIndex = 0; var time = questions.length * 15; var timerId; var questionsEl = document.getElementById("questions"); var timerEl = document.getElementById("time"); var choicesEl = document.getElementById("choices"); var submitBtn = document.getElementById("submit"); var startBtn = document.getElementBy...
from unimodals.common_models import VGG16, VGG16Slim, DAN, Linear, MLP, VGG11Slim, VGG11Pruned import torch from memory_profiler import memory_usage from private_test_scripts.all_in_one import all_in_one_train, all_in_one_test from datasets.enrico.get_data import get_dataloader from fusions.common_fusions import Concat...
module.exports = function(publicPath, outputFilename) { console.log("hotmodule") if (document) { var newHref = publicPath.match(/https?:/g) ? new URL(outputFilename, publicPath) : new URL(publicPath + outputFilename, window.location); var links = document.getElementsByTagName('link'); //update the styleshee...
// This file was automatically generated. Do not modify. 'use strict'; Blockly.Msg["ADD_COMMENT"] = "Dodaj komentar"; Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Ni mogoče izbrisati spremenljivke »%1«, ker je uporabljena v definiciji funkcije »%2«."; Blockly.Msg["CHANGE_VALUE_TITLE"] = "Spremeni vrednost:"; B...
require('./startup'); // here load all our components // e.g. Vue.component('vue-rates', require('./components/rates')); // or // Vue.component('love', {template : '<div> Love is in the air</div'}); //Vue.component('dynamic', require('./components/dynamic')); import router from './routes'; const VueApp = new Vue...
module.exports = '0.1.69';
(function(factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { // Node/CommonJS module.exports = function(root, jQuery) { if (jQuer...
/** * Travel Guide Info * Version 2.0 * March 7, 2013 * nash.lesigon@goabroad.com */ // var d = new Date(); // alert("Travel Guide Info v2.0 - scrollTop : " + d.getTime()); $().ready(function(){ var paths = window.location.pathname.split("/"); var bugglScriptName = (paths[1] == 'app_dev.php') ? '/app_dev.p...
import axios, { defaultParams } from './axios'; export default async (url, params) => { try { return await axios.get(url, { ...defaultParams(), ...params }); } catch (e) { if (!e || !e.response || e.response.status !== 401) throw e; localStorage.setItem('url', `${window.location.pathname}${window.locat...
/* eslint-disable global-require,import/no-dynamic-require */ const glob = require('glob'); const { dirname, resolve, join } = require('path'); const { parse } = require('css'); const { readFileSync, readdirSync } = require('fs'); const { outputFileSync } = require('fs-extra'); const outDir = resolve(__dirname, '../di...
$(function(){"use strict";var e={fontColor:"#495057",fontStyle:"bold"},o="index",t=$("#sales-chart"),t=(new Chart(t,{type:"bar",data:{labels:["JUN","JUL","AUG","SEP","OCT","NOV","DEC"],datasets:[{backgroundColor:"#007bff",borderColor:"#007bff",data:[1e3,2e3,3e3,2500,2700,2500,3e3]},{backgroundColor:"#ced4da",borderColo...
#!/bin/sh # */home/workspace/Image classifier/run_models.sh # # PROGRAMMER: Ainekirabo Mbabazi # DATE CREATED: 06/12/2019 # PURPOSE: Runs all three models # # # Usage: sh run_models.sh -- will run program fr...
function 〱〱(n,t){alert(ಠ_ಠ+n*t);var i=n++,r=t*t;alert(i==r)}for(var p‌‍oodoo=42,\while=10,\for=function(){},i=0;i<10;++i)\for(\while);while(\while<200)\while+=90;var ಠ_ಠ="mad eyes",ლ_ಠ益ಠ_ლ="Y U NO WORK?!",module="my module"
from datetime import date import pytest from or_shifty.cli import InvalidInputs, parse_args from or_shifty.constraints import ( EachPersonWorksAtMostXShiftsPerAssignmentPeriod, RespectPersonRestrictionsPerDay, RespectPersonRestrictionsPerShiftType, ThereShouldBeAtLeastXDaysBetweenOps, ) from or_shifty...
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "en-LC", identity: { language: "en", territory: "LC" }, territory: "LC", numbers: { symbols: { decimal: ".", group: ",", list: ";", percentSign: "%", ...
/*! * ${copyright} */ /** * Initialization Code and shared classes of library sap.uxap. */ sap.ui.define([ "sap/ui/core/Core", "sap/ui/base/DataType", "sap/ui/Device", "sap/ui/thirdparty/jquery", "sap/ui/core/library", // library dependency "sap/m/library", // library dependency "sap/ui/layout/library" // l...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.1.2.3_A6; * @section: 15.1.2.3, 9.3.1; * @assertion: parseFloat may interpret only a leading portion of the string as * a number value; it ignores any characters tha...
import re import logging _PATTERN = re.compile('^//storage.googleapis.com/projects/([^/]+)/buckets/(.+)$', re.IGNORECASE) # Force updates, regardless of the current setting _FORCE = True def run(ctx): m = _PATTERN.match(ctx.resource_id) if not m: raise ValueError("Invalid resource_id: {}".format(ctx....
export default { target: 'c3-target', chart: 'c3-chart', chartLine: 'c3-chart-line', chartLines: 'c3-chart-lines', chartBar: 'c3-chart-bar', chartBars: 'c3-chart-bars', chartText: 'c3-chart-text', chartTexts: 'c3-chart-texts', chartArc: 'c3-chart-arc', chartArcs: 'c3-ch...
import os import numpy as np import cv2 from PIL import Image from keras.preprocessing import image from keras.utils import to_categorical from sklearn.preprocessing import LabelEncoder import pdb def color_process(data): """color preprocessing""" return data / 128. - 1. def image_process(img): "...
########################################################################## # MediPy - Copyright (C) Universite de Strasbourg # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for de...
const Sequelize = require('sequelize'); const conn = require('../conn'); const User = conn.define('user', { name: Sequelize.STRING, birthday: Sequelize.DATE }); module.exports = User;
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[17],{"1bc8":function(e,t,a){"use strict";var o=a("c437"),n=a.n(o);t["default"]=n.a},"9b4d":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("transition",{attrs:{appear:"","enter-active-class":"...
/** * Copyright (c) 2015-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. */ 'use strict...
from cacp.winner import process_comparison_result_winners def test_comparison_results(result_dir_with_data, golden_result_dir): process_comparison_result_winners(result_dir_with_data) result_winner_dir = result_dir_with_data.joinpath('winner') expected_winner_dir = golden_result_dir.joinpath('winner') ...
import { createStore, applyMiddleware } from 'redux'; import { createLogger } from 'redux-logger'; import createSagaMiddleware from 'redux-saga'; import { watcherSaga } from './sagas'; import { composeWithDevTools } from 'redux-devtools-extension'; import reducers from './reducers'; const saga = createSagaMiddleware()...
import logging import random from typing import List, Tuple, Dict, cast from overrides import overrides from allennlp.common import Params from allennlp.common.util import add_noise_to_dict_values from allennlp.data import Dataset, Instance from allennlp.data.iterators.basic_iterator import BasicIterator from allennl...
"""Tests for ``settings`` from CLI, interactive, without an EE.""" import pytest from ..._interactions import Command from ..._interactions import UiTestStep from ..._interactions import add_indices from ..._interactions import step_id from .base import BaseClass from .base import base_steps CLI = Command(subcomman...
var SLDS="object"==typeof SLDS?SLDS:{};SLDS["__internal/chunked/docs/./ui/components/radio-group/docs.mdx.js"]=function(e){function t(t){for(var r,i,s=t[0],l=t[1],u=t[2],d=0,h=[];d<s.length;d++)i=s[d],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&h.push(o[i][0]),o[i]=0;for(r in l)Object.prototype.hasOwnProperty.call...
const extendTheme = () => { // SIZES const sizesValues = [ 0.25, 0.75, 4.5, 4.75, 5.5, 5.75, 6.5, 7.5, 12.5, 13, 15, 18, 160, ]; const minSizesValues = Array.from({ length: 12 }).map( (el, index) => index + 1 ); const spacing = { '1em': '1em', }; const minWidth = {}; const minHeight = {};...
'use strict'; describe('jDash.version module', function() { beforeEach(module('jDash.version')); describe('app-version directive', function() { it('should print current version', function() { module(function($provide) { $provide.value('version', 'TEST_VER'); }); inject(function($comp...
import { expect } from 'chai' import { set, setupHandleChange } from '../../client/tools' describe('tools', () => { it('set function correctly sets non-nested value', () => { let a = { a: 1 } set(a, ['b'], 10) expect(a.b).to.equal(10) }) it('set function correctly sets nested values', () =...
module.exports={A:{A:{"1":"D A B","2":"H E G pB"},B:{"1":"9 C N I J K L EB M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"mB RB F q H E G D fB eB"},D:{"1":"0 1 2 3 4 5 6 7 8 W X Y Z a b c d e f CB h i j...
const btn = document.querySelector('.hamburger-btn'); const nav = document.querySelector('.header-ul'); const navBtns = document.querySelectorAll('.li-btn'); navBtns.forEach(item => { item.addEventListener('click', () => { btn.setAttribute('aria-expanded', false); nav.setAttribute('data-visible', f...
import functools from flask import abort, jsonify, redirect, request, url_for from CTFd.cache import cache from CTFd.utils import config, get_config from CTFd.utils import user as current_user from CTFd.utils.dates import ctf_ended, ctf_started, ctftime, view_after_ctf from CTFd.utils.modes import TEAMS_MODE from CTF...
/* Copyright 2018 Mozilla 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 * * Unless required by applicable law or agreed...
import { Routes, Route } from "react-router-dom"; import { QueryClientProvider, QueryClient } from "react-query"; import Header from "./components/Header"; import Index from "./pages/Index"; import "./App.scss"; import Detail from "./pages/detail"; import MyPokemon from "./pages/MyPokemon"; import ScrollTop from "./com...
import React from 'react' import { Add } from '@oneloop/icons' import { Input } from '.' export default { component: Input, title: 'Design System|Input', } export const placeholder = () => <Input placeholder="Hello World!" /> export const error = () => ( <Input placeholder="Hello World!" borderColor="danger" ...