text
string
size
int64
token_count
int64
module.exports = { options: {}, issues: [], summary: { sessions: [], subjects: [], tasks: [], modalities: [], totalFiles: [], size: 0, }, }
172
61
require('dotenv').config(); const { TruffleProvider } = require('@harmony-js/core'); const operator_private_key = process.env.OPERATOR_PRIVATE_KEY; const operator_meemonic = process.env.OPERATOR_MNEMONIC; const testnet_url = process.env.TESTNET_0_URL; //Mainnet const mainnet_mnemonic = process.env.MAINNET_MNEMONIC; c...
1,823
608
import _ from 'lodash'; import React, {Component} from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; class App extends Component...
1,110
335
(function () { /* Imports */ var Meteor = Package.meteor.Meteor; var global = Package.meteor.global; var meteorEnv = Package.meteor.meteorEnv; (function(){ /////////////////////////////////////////////////////////////////////// // // // packages/raix_...
744
161
const express = require('express'); const router = express.Router(); const fs = require('fs'); const theatreHelpers = require('../helpers/theatreHelpers'); const passport = require('passport'); const date = require('date-and-time'); const isTheatre = require('../middleware/auth').isTheatre; router.get('/login'...
13,373
4,524
function scholarship(arg1, arg2, arg3) { let income = Number(arg1); let averageGrade = Number(arg2); let minIncome = Number(arg3); let socialScholarship = 0; let excellentScholarship = 0; if (averageGrade >= 5.50) { excellentScholarship = averageGrade * 25; } if ((averageGrade...
865
309
/* Copyright© 2000 - 2020 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ import {SuperMap} from '../SuperMap'; import {S...
8,669
4,010
import { get } from '@wp-g2/create-styles'; import { colorize, getComputedColor, is, noop } from '@wp-g2/utils'; import { space } from '../mixins/space'; import { config } from './config'; import { generateColorAdminColors } from './utils'; const baseTheme = Object.freeze(Object.assign({}, config)); export function ...
813
271
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[9],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/productItem.vue?vue&type=script&lang=js&": /*!******************************************************************************************...
20,612
6,869
import React from 'react' export default () => ( <svg width="80px" height="80px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="lds-fidget-spinner" > <g transform="rotate(6 50 50)"> <g transform="translate(50 50)"> <g ng-attr-...
2,677
1,847
/** * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 * Copyright (C) 2020 Oliver Nightingale * @license MIT */ !function(){var e=function(t){var r=new e.Builder;return r.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),r.searchPipeline.add(e.stemmer),t.call(r,r),r.build()};...
29,510
12,713
import React from 'react'; import styled from '@emotion/styled'; import Tile from '../Tile'; import { getAvatarById } from '../../shared/avatars'; import { StyledText, transparent } from '../../design/shared-styles'; import { useSelector } from 'react-redux'; const TileUserProfile = () => { const isConnected = useSe...
1,809
644
import { useStaticQuery, graphql } from "gatsby" export default assetUrl => { const { allContentfulAsset } = useStaticQuery(graphql` query { allContentfulAsset { nodes { file { url } fluid(maxWidth: 785) { ...
483
136
import React, { Component } from "react"; import { requireNativeComponent, View, UIManager, findNodeHandle, DeviceEventEmitter } from "react-native"; import PropTypes from "prop-types"; class SketchView extends Component { constructor(props) { super(props); this.onChange = this.onChange.bind(this);...
2,133
712
export const AMOUNT = 10; export const TYPES = ['multiple', 'boolean']; export const DIFFICULTIES = ['easy', 'medium', 'hard']; export const ANSWER_VALUE = 100;
161
60
const authenticationMiddleware = require("./authn"); const corsMiddleware = require("./cors"); module.exports = { azureAuth: authenticationMiddleware, cors: corsMiddleware }
183
50
/* eslint-disable no-console */ 'use strict'; // const install = require('./install') const runCmd = require('./runCmd'); const getBabelCommonConfig = require('./getBabelCommonConfig'); const merge2 = require('merge2'); const { execSync } = require('child_process'); const through2 = require('through2'); const transfor...
9,966
3,408
import fs from 'fs-extra' import path from 'path' import {coreUtils, config, Handlebars, User} from '../../../../cli' var route = function route(req, res) { var resHtml = '' var page = path.join(__dirname + '/../../../views/users/profile.html') if (coreUtils.file.exist(page)) { resHtml = fs.readFileSync(pa...
948
321
import React from "react"; import { Wave } from "react-animated-text"; import { Link } from "react-scroll"; import TravisCI from "../../pages/images/TravisCI-Mascot-2.png"; import "./style.css"; const style = { removeUnderline: { textDecoration: "none", }, }; function NavBar() { return ( <header classN...
1,514
502
var seeProcessorFn = require('../processors/transfer-see'); describe('transfer-see', function() { var seeProcessor; beforeEach(function() { seeProcessor = seeProcessorFn(); }); var transferSee = function(docs) { seeProcessor.$process(docs); }; it('should put @see info in the description', funct...
1,380
435
(this["webpackJsonpinventory-management-system"]=this["webpackJsonpinventory-management-system"]||[]).push([[3],{402:function(t,e,n){"use strict";n.r(e),n.d(e,"getCLS",(function(){return p})),n.d(e,"getFCP",(function(){return g})),n.d(e,"getFID",(function(){return F})),n.d(e,"getLCP",(function(){return k})),n.d(e,"getT...
4,261
1,791
/* eslint-disable linebreak-style */ // ====================================================================== // Some Assembly Required // Advent of Code 2015 Day 07 -- Eric Wastl -- https://adventofcode.com // // Javascript implementation by Dr. Dean Earl Wright III // =============================================...
6,434
1,585
/* eslint-disable no-unused-vars */ /* eslint-disable no-undef */ const assert = require("assert"); const should = require("should"); const rewire = require("rewire"); const buildPackageModule = rewire("../app/jobs/buildPackage"); const filterRemoteTags = buildPackageModule.__get__("filterRemoteTags"); describe("app...
1,975
756
import React, { Fragment, useState } from 'react' import PropTypes from 'prop-types' // ES6 import { extent, max } from 'd3-array' import { scaleBand, scaleLinear, scaleTime } from 'd3-scale' import { line, curveCardinal } from 'd3-shape' import { timeMonth, timeDay } from 'd3-time' import { formatDate, formatNumber ...
12,358
4,430
function type(obj, type) { return Object.prototype.toString.call(obj).slice(8, -1).toLocaleLowerCase() === type; } export const assert = [ 'String', 'Object', 'Function', 'Array' ].reduce((init, key) => { init['is' + key] = function(target) { return type(target, key.toLocaleLowerCase()); }; retu...
337
123
'use strict'; const names = ['bag', 'banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'chair', 'cthulhu', 'dog-duck', 'dragon', 'pen', 'pet-sweep', 'scissors', 'shark', 'sweep', 'tauntaun', 'unicorn', 'usb', 'water-can', 'wine-glass']; const leftImage = document.getElementById(`left`); const centerImage =...
4,125
1,340
import { isArray, addObject, findBy } from '@/utils/array'; const parseCache = {}; const OP_MAP = { '=': 'In', '==': 'In', '!=': 'NotIn', '<': 'Lt', '>': 'Gt', }; // Parse a labelSelector string export function parse(labelSelector) { // matchLabels: // comma-separated list, all rules ANDed together ...
5,506
1,811
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import {registerInternalPlugin} from '@webex/webex-core'; import Search from './search'; import config from './config'; import {has} from 'lodash'; import '@webex/internal-plugin-encryption'; registerInternalPlugin('search', Search, { config,...
1,727
499
import React, { useEffect, useRef, useState } from 'react'; import { Row, Col } from 'react-bootstrap'; import Card from '@material-ui/core/Card'; import IconButton from '@material-ui/core/IconButton'; import PlayArrowIcon from '@material-ui/icons/PlayArrow'; import PauseIcon from '@material-ui/icons/Pause'; import { ...
5,891
1,837
function loop(){ // Rotate the propeller, the sea and the sky //airplane.propeller.rotation.x += 0.3; sky.mesh.rotation.z += .05; // update the plane on each frame updatePlane(); airplane.pilot.updateHairs(); sea.moveWaves(); // render the scene renderer.render(scene, camera); // call the loop ...
1,346
537
function getGEOJSONArray(geojson, positions, clau) { var array1 = [] var z = 0; $.each(geojson.features, function (key, val) { z = z + 1; if (z <= positions) { $.each(val.properties, function (i, j) { if (i == clau) { array1.push(j); ...
12,431
4,482
module.exports={A:{A:{"2":"E A B gB","8":"K D G"},B:{"2":"1 C c J M H I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F N K D G E A B C c J M H I O P Q R S T U V W X Y Z a b d e f g h i j k l m n o L q r s t u v w x y z AB CB DB","129":"eB EB cB WB"},D:{"1":"T","8":"0 1 2 3 4 5 6 7 8 9 F N K D G E A B C c J M H I O P Q R S U V W X Y Z...
882
503
/*! * OS.js - JavaScript Cloud/Web Panel Platform * * Copyright (c) 2011-2017, Anders Evenrud <andersevenrud@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributi...
9,200
2,860
import {HTMLElement} from './html-element.js'; /** * @implements globalThis.HTMLDirectoryElement */ export class HTMLDirectoryElement extends HTMLElement { constructor(ownerDocument, localName = 'dir') { super(ownerDocument, localName); } }
252
74
var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = fu...
22,069
6,172
'use strict'; const runJustAPIJSON = require('./helpers').runJustAPIJSON; const expect = require('chai').expect; const fs = require('fs'); describe('Multipart form post', function () { let suiteContext = this; before(async function () { let result = runJustAPIJSON('multipartformpost.suite.yml'); ...
3,323
968
Template.gamesessionEdit.helpers({ gamesession: function() { var gamesessionId = FlowRouter.getParam('gamesessionId'); var gamesession = Gamesessions.findOne(gamesessionId) || {}; if(gamesession.boardgameTags) gamesession.category = 'boardgame'; if(gamesession.videogameTags) gamesession.category = 'vi...
7,909
2,648
/** * LEETCODE 151: Reverse Words in String * * https://leetcode.com/problems/reverse-words-in-a-string/ * * Given an input string, reverse the string word by word. A word is * defined as a sequence of non-space characters. * * The input string does not contain leading or trailing spaces and the * words are al...
1,667
545
import React from 'react'; const Multi = () => [ 'first sibling', 'second sibling' ].map((v, i) => <p key={i}>{v}</p>); export default Multi;
148
57
//* @protected /** If you make changes to _enyo.xhr_, be sure to add or update the appropriate [unit tests](https://github.com/enyojs/enyo/tree/master/tools/test/ajax/tests). */ enyo.xhr = { /** <code>inParams</code> is an Object that may contain these properties: - _url_: The URL to request (required). - _me...
4,999
1,861
import Outlet from '../../../../src/classes/outlet'; import { mountSpies, cMountSpies, } from '../sinon-spies'; import { SinonSpyRootApp } from './base-mounts'; import { RootRootRoute, RootNewsRoute, RootAllConditionalRoute, RootNewsConditionalRoute, RootIdConditionalRouteOne, RootIdC...
3,179
836
import Client from './Client'; import sinon from 'sinon'; import { expect } from './tests/chai'; describe('Client', () => { it('makes a GET request', () => { const superagent = { get: sinon.stub(), }; superagent .get.withArgs('http://example.com/custom-path') .returns(Promise.resolve({ ...
2,176
681
import jsonp from '../common/js/jsonp' import {commonParams, options} from './config' /* eslint-disable */ /*export function getSingerList() { const url = ' https://u.y.qq.com/cgi-bin/musicu.fcg' const data = Object.assign({}, commonParams, { jsonpCallback: 'getUCGI6636201101768355', g_tk: 5381, logi...
1,377
606
'use strict'; const Base = require('./Base'); const BaseMessageComponent = require('./BaseMessageComponent'); const ClientApplication = require('./ClientApplication'); const InteractionCollector = require('./InteractionCollector'); const MessageAttachment = require('./MessageAttachment'); const Embed = require('./Mess...
26,415
8,053
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Phoenix=t():e.Phoenix=t()}(this,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return...
22,394
8,673
const parsers = require('../../utils/parsers'); const { AirParsingError } = require('./AirErrors'); function ProviderSegmentOrderReducer(acc, { ProviderSegmentOrder }) { const x = parseInt(ProviderSegmentOrder, 10); if (x > acc) { return x; } return acc; } /** * getBaggage -- get baggage information from...
15,767
4,852
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
3,803
1,095
import React,{Component} from 'react'; import {Link} from 'react-router-dom'; import api from '../../services/api'; class Following extends Component { constructor(props) { super(props); this.state = { followings: [], loading: true } } async handleGetFollowing(following_url) { ...
1,456
445
import React, { Fragment, PureComponent } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi/locale'; import { Form, Input, DatePicker, Select, Button, Card, Popconfirm, Divider, Icon, Table, Row, Modal, Col, message, } from 'antd'; import PageH...
18,951
5,926
var viewData = {"id":28543,"isExpandedObject":false}; var objectRelations = { "28543" : [{"via": "is geassocieerd met","to": ["28542"]}] }; var objectData = { "28543" : { "id":28543, "typeIconPath":"data/icons/UML/UML_ClassDiagram.png", "data" : [ { "lang":"nl", "name":"WMO319", "type":"Klassendiagram", "c...
1,764
1,067
let storage = { apiKey: 'a70dbfe19b800809dfdd3e89e8532c9e', token: localStorage.getItem('token') || null, username: localStorage.getItem('username') || null, admin: localStorage.getItem('admin') || null, pageTitlePostfix: ' — ' + document.title, listTypes: [ { title: 'Your Requests', shortTi...
1,771
564
import React from 'react'; import PropTypes from 'prop-types'; import './styles.css'; function Input({ label, name, type, value, onChange, }) { return ( <div className="input-block"> <label htmlFor={name}>{label}</label> <input id={name} type={type} value={value} o...
659
216
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.Tty = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor"...
2,484
1,993
var validator = require('validator'); BoardSanitize = function(validator) { this.sanitize = validator.sanitize this.check = validator.check } BoardSanitize.prototype.rename = function(data) { data.name = this.sanitize(data.name).entityEncode() data.name = this.sanitize(data.name).xss() retu...
697
254
var http = require('http'); var server = http.createServer(function(req, res) { var categoria = req.url; if(categoria == '/tecnologia') { res.end("<html><body>Noticias de tecnologia</body></html>"); }else if(categoria == '/moda') { res.end("<html><body>Noticias de moda</body></html>"...
431
155
// https://docs.cypress.io/api/introduction/api.html // https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Cypress-Is-Simple // Cypress.on('uncaught:exception', (err, runnable) => { // // returning false here prevents Cypress from // // failing the test // return false // }) // // t...
2,170
695
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"VrN/":function(e,t,r){r("0l/t"),r("Vd3H"),r("hEkN"),r("a1Th"),r("h7Nl"),r("Btvt"),r("bWfx"),r("dRSK"),r("pIFo"),r("f3/d"),r("hHhE"),r("V+eJ"),r("OG14"),r("KKXr"),r("Oyvg"),r("xfY5"),r("SRfc"),e.exports=function(){"use strict";var e=navigator.userAgent,t=navigato...
170,640
81,186
defineSuite([ 'Scene/DiscardMissingTileImagePolicy', 'Core/Cartesian2', 'Core/loadImage', 'Core/loadWithXhr', 'Specs/pollToPromise', 'ThirdParty/when' ], function( DiscardMissingTileImagePolicy, Cartesian2, loadImage, loadWithXhr, ...
5,810
1,489
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NestingContext = void 0; var React = require("react"); exports.NestingContext = React.createContext(null);
192
59
import qs from 'qs'; /** * 创建一个地址附带查询参数 * @param {String} baseUrl 基础地址 * @param {Object} params key-value 对象,选填 * @return {void} */ export default function createUrl(baseUrl, params) { const paramsStr = qs.stringify(params || {}); if (!paramsStr) { return baseUrl; } let subStr = ''; ...
645
274
var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var CopyWebpackPlugin = require('copy-webpack-plugin'); var gulpConfig = require('../.azdata/gulp-config'); var baseFolderName = 'assets'; var projRoot = path.resolve(__dirname, '..'); var commonConf...
3,554
1,048
import * as tslib_1 from "tslib"; import * as React from 'react'; import { StyledIconBase } from '../../StyledIconBase'; export var Tusd = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", }; return (React.createElement(StyledIconBase, tslib_1.__assign({ iconAttrs: attrs...
1,598
1,191
import NativeModule from 'module' import vm from 'vm' function createContext (context) { const sandbox = { Buffer, clearImmediate, clearInterval, clearTimeout, setImmediate, setInterval, setTimeout, console, process, __VUE_SSR_CONTEXT__: context } sandbox.global = sandbox ...
933
288
'use strict'; const gulp = require('gulp'); const sass = require('gulp-sass'); const prefix = require('gulp-autoprefixer'); const plumber = require('gulp-plumber'); const browserSync = require('browser-sync').create(); gulp.task('sass', () =>{ gulp.src('./sass/**/*.scss') .pipe(plumber()) .pipe(sass()) ...
709
261
import style from "./ButtonA.module.css"; import React from "react"; export default function Round1(props) { return ( <button type="button" class={style.btn}> {props.text} </button> ); }
207
68
/** * Copyright 2013-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. * * @noflow * @p...
201,224
52,659
const re = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; export default (emails) => { const invalidEmails = emails .split(',') .map((email) => email.trim()) .filter((email) => re.test(email) === false); if (invalidEmails.length) { return `These emails are invalid: ${inval...
350
156
import { Link } from 'react-router-dom'; import Layout from '../Components/Layout'; export default function Page404() { return( <Layout head="No encontrado :c" subheading="404" type="ciudadano"> <h1>Esa ruta no existe</h1> <Link to="/">Volver al inicio</Link> </Layout> ...
324
106
const mongoose = require("mongoose"); const Schema = mongoose.Schema; var commentSchema = new Schema( { user: { type: mongoose.Schema.Types.ObjectId, ref: "User", }, expense: { type: String, required: true, }, ideal: { type: Number, required: true, }, ...
503
173
const uuid = require('uuid/v4'); /** * A class wrapping a {@link external:JobPayload|JobPayload} * * @example * // with a client * const client = await faktory.connect(); * const job = client.job('SendWelcomeEmail', id); * * @example * // without a client * const job = new Job('SendWelcomeEmail'); * job.arg...
3,872
1,338
import React from "react"; import styled from "styled-components"; const Form = styled.form` display: flex; flex-direction: row; justify-content: center; `; const Space = styled.div` margin-left: 15px; `; const Spacespan = styled.span` margin-left: 5px; `; const QueryParams = ({ year, years, country,...
1,387
420
/* eslint-disable no-console */ const base64url = require('base64url'); const cookie = require('cookie'); const proxy = require('request'); const config = { ssoAuth: { host: 'www.ovh.com', baseUrl: 'https://www.ovh.com/cgi-bin/crosslogin.cgi', devLoginUrl: 'https://www.ovh.com/auth/requestDevLogin/', }...
3,136
1,072
module.exports = { 'dbUrl': 'mongodb://data01.audacy.space:11001/telemetry', 'dbOptions': { 'user': 'audacyapp', 'pass': 'quindar', 'auth': { 'authdb': 'admin' }, "server": { "auto_reconnect": true, "poolSize": 200, "socketOptions": { "keepAlive": 1 } ...
1,026
421
import _typeof from "@babel/runtime/helpers/esm/typeof"; var isBrowser = (typeof process === "undefined" ? "undefined" : _typeof(process)) !== 'object' || String(process) !== '[object process]' || process.browser; var globals = { self: typeof self !== 'undefined' && self, window: typeof window !== 'undefined' && wi...
967
278
const express = require('express') const router = express.Router() /*const strFullproductname = "Sony Vector 8000xc"; const strBrandName = "Sony"; const strProductName = "Vector 8000xc"; //const strModelName = ""; //const strCategory = "Electrical appliances and equipment"; const strModelNumber = '001-600006'; const s...
9,793
3,328
const regex = / SUMME MONATSABRECHNUNG VISA /; function canParse() { return true; } function parse(text) { return { payee: { name: null }, text } } export default {parse, canParse}
231
80
// widths and padding var canvasWidth = 1000; // this will be the exported width of the image var elementPadding = 40; // padding around the logo and credit text // logo configuration // the name of the logo object should match the value of the corresponding radio button in the HTML. var logos = { 'lunchbox': { ...
2,988
900
var basicCard = require('./basicCard.js'); var clozeCard = require('./clozeCard.js'); var quest = require('./quest.js') var inquirer = require('inquirer'); var basicArray = []; var clozeArray = []; inquirer.prompt([{ name:'addOrShow', message: 'Would you like to make Flash Cards?', type: 'list', choices: [{ nam...
2,526
1,150
'use strict'; Object.defineProperty( exports, '__esModule', { value: true } ); module.exports = exports.default = require('./src/parser');
151
48
/*! * express-session-ws-rn * Copyright(c) 2019 Kudrenko Oleg * MIT Licensed */ /*! * forked from express-session * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * Copyright(c) 2014-2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict'; /** * Module dependencies. * @private */...
16,088
4,831
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ export default function ({ getService, loadTestFile }) { const es = getServ...
581
175
/* eslint-env jest */ import MockAdapter from 'axios-mock-adapter' import { createStore } from '../../../../test/helpers/store' import { addSegment, clearSegments, incrementSegmentWidth, getLastStreet } from '../actions/street' // ToDo: Remove this once refactoring of redux action saveStreetToServerIfNecessary is co...
6,054
1,959
import React from "react"; import PageBaseComponent from "../../components/PageBaseComponent/PageBaseComponent"; import ModalContainer from "../../components/Modals/ModalContainer"; import Modal from "../../components/Modals/Modal"; const Challenge = () => { return ( <PageBaseComponent className="Challenge"> ...
615
168
function submit_message(message) { $.post( "/send_message", {message: message}, handle_response); function handle_response(data) { // append the bot repsonse to the div $('.card-body').append(` <div class="d-flex justify-content-start mb-4"> <div class="img_cont_msg"> ...
2,150
786
import Page from '../../common/page'; Page({ data: { checkbox1: true, checkbox2: true, checkbox3: true, checkboxLabel: true, checkboxSize: true, checkboxShape: true, list: ['a', 'b', 'c'], result: ['a', 'b'], result2: [], result3: [], activeIcon: 'https://img.yzcdn.cn/vant...
831
289
import { Directive, EventEmitter, Host, Input, NgZone, Output } from '@angular/core'; import { Content } from '../content/content'; import { GestureController, GESTURE_PRIORITY_REFRESHER, GESTURE_REFRESHER } from '../../gestures/gesture-controller'; import { isTrueProperty } from '../../util/util'; import { Platform } ...
23,554
6,764
define([ 'angular', 'core/services/CommonResolveStateService', 'angular-ui-router', 'views/core/page-not-found' ],function(ng,CommonResolveStateService){ var app = ng.module('CoreRouterApp',['ui.router']); app.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $u...
1,243
300
import React from "react" import Layout from "../components/layout" import SEO from "../components/seo" const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>451 – Unavailable For Legal Reasons</h1> Just kidding - it's a 404. <br></br> It seems you've found something that used to ...
444
148
class App { static parseDouble(number, digits = 2) { return Number.parseFloat(parseFloat(number).toFixed(digits)) } static borrowedTypeToDays(borrowedType, borrowedTime) { let idditionalDaysDateStart = 0 switch (borrowedType) { case 'day': idditionalDaysDateStart = borrowedTime break; c...
612
259
/// <reference types="cypress" /> /// <reference types="../../support" /> context('resources/ExternalEmployees/actions/new', () => { before(() => { cy.abLoginAPI({ password: Cypress.env('ADMIN_PASSWORD'), email: Cypress.env('ADMIN_EMAIL') }) }) beforeEach(() => { cy.abKeepLoggedIn({ cookie: Cypress.env(...
1,108
371
const mongoose = require('mongoose'); const WeatherSchema = new mongoose.Schema({ weatherForNext5days: String, weatherForNext28days: String, suggestions: String, imgPath: String }); const Weather = mongoose.model('Weather', WeatherSchema); module.exports = { Weather, };
282
91
'use strict'; var Uit = {}; /**if developer wants to apply his/her own rivets rules, then include that file before uit.js and make window.customRivets === true. **/ if (window.rivets && _.isUndefined(window.customRivets)) { (function () { rivets.configure({ // Attribute prefix in templates ...
23,536
6,660
/** * 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 appli...
10,177
2,789
import Accordion from './accordion'; class Steps { static selector() { return '[data-steps-container]'; } constructor(stepsContainer) { this.stepsContainer = stepsContainer; this.steps = []; stepsContainer .querySelectorAll('[data-step-accordion]') ...
1,099
304
import forms from './forms'; import layouts from './layouts'; export default {forms,layouts,}
93
26
import React from "react"; import { connect } from "react-redux"; import { Route, Redirect } from "react-router-dom"; import Header from "../components/Header"; import Footer from "../components/Footer"; import ScrollAnimation from "react-animate-on-scroll"; export const PrivateRoute = ({ isAuthenticated, componen...
1,094
309
import SectionSlideshow from '../../components/SectionSlideshow' export default () => <SectionSlideshow sectionName={'syntax'} />
131
35
module.exports = { mongoUrl: process.env.MONGO_URL || 'mongodb://localhost:27017/clean-node-api', tokenSecret: process.env.TOKEN_SECRET || 'token_secret', port: process.env.PORT || 5858 }
194
77
(function() {var implementors = {}; implementors["getrandom"] = [{text:"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/convert/trait.From.html\" title=\"trait core::convert::From\">From</a>&lt;<a class=\"struct\" href=\"https://doc.rust-lang.org/nightly/core/num/struct.NonZeroU32.html\" title=\"s...
23,939
8,562
/** * * App.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot ...
1,458
443