text stringlengths 65 6.05M | lang stringclasses 8
values | type stringclasses 2
values | id stringlengths 64 64 |
|---|---|---|---|
var chai = require('chai');
var expect = chai.expect;
var sinonChai = require('sinon-chai');
var Promise = require('bluebird').Promise;
chai.use(sinonChai);
var path = require('path');
var Engine = require(path.join(__dirname, '/../lib/engine')).Engine;
var Compiler = require(path.join(__dirname, '/..... | JavaScript | CL | cf8e0bcc39e7698c2e478cdba41209f80ae57fcccce48ca2310c525f0c6cb710 |
module.exports = function(grunt) {
grunt.initConfig({
gjslint: {
options: {
reporter: {
name: 'console'
}
},
all: {
src: 'src/*.js'
}
},
'closure-compiler': {
prod: {
closurePath: '$CLOSURE_PATH',
js: 'src/*.js',
jsOut... | JavaScript | CL | fb624fdb18ea3a81056eb0bfda9aed517e4b7eaba8c210304353ec7a31c788b2 |
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modu... | JavaScript | CL | 71140bdba895add7eff3f566a24bfc583da681558c64e1ee048864062c6c7940 |
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {... | JavaScript | CL | ad498173990c94ea69f3d2c10a73d865c52a3c78486446b394ec0c22118dc77e |
const path = require('path');
const autoprefixer = require('autoprefixer')({ browsers: ['last 2 versions'] });
module.exports = (baseConfig, env, defaultConfig) => {
defaultConfig.module.rules.push({
test: /-story\.js$/,
include: path.resolve(__dirname, '../src'),
loader: require.resolve('@storybook/addo... | JavaScript | CL | 6abf077c359e7a79e99a86bec8ec56104d4dd0fcf01d28a02c7b6d74521e05f7 |
const HtmlWebPackPlugin = require("html-webpack-plugin");
var path= require('path');
// this will create index.html file containing script
// source in dist folder dynamically
const htmlPlugin = new HtmlWebPackPlugin({
template: "./example/index.html",
filename: "./index.html"
});
module.exports = {
//specify ... | JavaScript | CL | 1fafc7e4b21a5a688e4be9164f977668594f6a00e169038c714378761d6193b6 |
/*
* Title: Utilitários
*
* Funções de uso geral
*
* Namespace:
*
* i3GEO.util
*
* Veja:
*
* <http://localhost/i3geo/classesjs/classe_util.js>
*/
/**
* Licença
*
* GPL2
*
* i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
*
*... | JavaScript | CL | cb372d8251e33c32565f595b16574ed7501fb3e03035f99791adcb82c9c213da |
//@ts-check
import Axios, { AxiosPromise } from "axios";
import { MYCM_API_URL } from "./../../../config";
const PRODUCTS_URL = `${MYCM_API_URL}/products`;
export default {
/**
* Retrieves all of the available Products.
* @returns {AxiosPromise<any>} Axios Promise representing all of the available Pro... | JavaScript | CL | cc683ed8a7b5c0a48b72208a4b48e328457981cecefbe5bbcbc7374fff964bee |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... | JavaScript | CL | fcfaee7d11fe47517c2fac69f286b5199397a198ef8cc484d44bf5285cec2ed6 |
const classNames = require('classnames');
const { CssSelectorParser } = require('css-selector-parser');
const escapeHtml = require('escape-html');
const { readFileSync } = require('fs');
const h = require('hastscript');
const { JSDOM } = require('jsdom');
const map = require('unist-util-map');
const rangeParser = requi... | JavaScript | CL | 3dcf1dd65755d689d41f3d138a5cd3904801931e695c8baf02b2de4c0f684fc7 |
var path = require('path'),
naming = require('bem-naming'),
vow = require('vow'),
vfs = require('enb/lib/fs/async-fs'),
scanner = require('enb-bem-pseudo-levels/lib/level-scanner'),
configurator = require('./node-configurator'),
deps = require('enb-bem/lib/deps/deps');
module.exports = function... | JavaScript | CL | dcf5d08e2f768aeaf16d122cfa50be75099395ec3bed4ee2b397b94b61db1371 |
import React from 'react'
import {
observer,
inject,
} from 'mobx-react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import Tabs, { Tab } from 'material-ui/Tabs'
import queryString from 'query-string'
import List from 'material-ui/List'
import { CircularProgress } from 'material-ui/Progress... | JavaScript | CL | 1a624757e91e5f104f6f18962a640d7ee00bf74d17743029aff9264068391368 |
express = require('express');
app = express();
// Global app configuration section
app.set('views', 'cloud/views'); // Specify the folder to find templates
app.set('view engine', 'jade'); // Set the template engine
app.use(express.bodyParser()); // Middleware for reading request body
var views = require('cloud... | JavaScript | CL | 38f0a19aaed228e6163e3da91543390e79674c2b6126a633301dffdbe45652b0 |
'use strict';
import Model from './Model.js';
import Utils from '../utils/Utils.js';
import Constants from '../utils/Constants.js';
import Account from './Account.js';
import ServerCapabilities from './ServerCapabilities.js';
import MailCapabilities from './MailCapabilities.js';
import JSONBuilder from '../utils/JSONB... | JavaScript | CL | 25a9b4f5b5006f499d2698726860e47e1d852a1cf8321cad92821da106ac0c09 |
import { loadArticlesLoading, loadArticlesSuccess, loadArticlesError, loadEventsLoading, loadEventsSuccess, loadEventsError } from '../index';
import Api from '../../../api/index';
export function loadArticles() {
return dispatch => {
// First, dispatch the LOAD_ArticleS_LOADING action, allowing the rest ... | JavaScript | CL | 4995ad8c8af2a1bc273d9bcf0b9c4be068e566680f3e616f39024aea137205a4 |
// ! Set
// The Set object lets you store unique values of any type, whether primitive values or object references.
// ! Description
// Set objects are collections of values. You can iterate through the elements of a set in insertion order. A value in the Set may only occur once; it is unique in the Set's collection.
... | JavaScript | CL | d526946cde7c78e75d436dd3507b5d9845836973e18f3566e191fabd15c9ee9a |
var fs = require('fs'),
_ = require("lodash"),
path = require("path"),
express = require('../node_modules/express'),
bodyParser = require('../node_modules/body-parser'),
ejs = require('ejs'),
generateConfig = require("./generate/config"),
gene... | JavaScript | CL | 93e297938d4e133cc5e6055666c0c4824e8bd36325cc6e2ca1d478916522a1b2 |
/*
* Copyright 2016 Olov McKie
*
* This file is part of Cora.
*
* Cora is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later v... | JavaScript | CL | a113628b795063adddb5c962a97ab9e378561304568b0b4d5393481d1f0fde71 |
/* ***** BEGIN LICENSE BLOCK ********
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org... | JavaScript | CL | 68253e56d781833307dba609594f0bb2f2388f36a6d5e4c601b3fdabcad6def6 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
* Broadcast when a card update happens on the backend
* @type {*|exports|module.exports}
*/
var card = require('./card.model');
/**
* Expose socket
* @type {{socket: null, setSocket: (function(*))}}
*/
var exposeSocket = {
sock... | JavaScript | CL | d9a6067c1f4c95ce7ffe865edfb33c87d92e0fbd0c20b90bcb172bed84387720 |
var Evernote = require('evernote').Evernote,
util = require('./util'),
builder = require('xmlbuilder');
/*
* Using the provided yaml object {key: x, value: y} set
* the associated values on the provided note.
*/
function setNoteDetails(note, yaml) {
switch (yaml.key) {
case 'guid':
note.guid... | JavaScript | CL | 1d7831f1ef57a32f64f26815d4023101fa3dc9d9f92d935f6d16c87509bb709c |
'use strict';
(function(pagecode) { //eslint-disable-line wrap-iife
pagecode(window.jQuery, window, document, R6MMainData, R6MMainRender, R6MMainControls, R6MMainDrawing, R6MMainSelectMaps, R6MMainSessions, R6MHelpers, R6MLangTerms);
}(function($, window, document, R6MMainData, R6MMainRender, R6MMainControls, R6MMai... | JavaScript | CL | d2d51d11b74babb19ac65ed382874d3b0ca8dac4d418b42104035c1d1cb2e4f0 |
//Select element from html
const cafeList = document.querySelector('#cafe-list');
const form = document.querySelector('#add-cafe-form');
//create element and render cafe
function renderCafe(doc){
//Create elements that are going to be displayed
let li = document.createElement('li');
let name = document.cr... | JavaScript | CL | fef21ce7403b3c6eca9846e49b919fdc51859a056e5d0ce990330fac3ba481c4 |
( function ( $, QUnit, sinon, download, wb ) {
'use strict';
QUnit.module( 'wikibase.queryService.ui.App' );
QUnit.test( 'DownloadJS works with utf-8 ', function ( assert ) {
var stubAppendChild = sinon.stub( window.document.body, 'appendChild' ),
stubSetTimeout = sinon.stub( window, 'setTimeout' ),
data ... | JavaScript | CL | 523209d8afd89d14908057e401fcc3b8ed5594efbe4a90808eb0ffa3dc48bb1a |
/**
* @license Copyright 2021 The Lighthouse Authors. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applica... | JavaScript | CL | 624c3c08d77e91217fe9eab48513a97bd91e47ac27cb94cf196758f5abb1a302 |
/**
* Swagger
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2... | JavaScript | CL | 0970dd0efe7c3fc0bccf7ae1a5c2c98836094d7c2db77abc04feaeadd4695cac |
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import PropTypes from 'prop-types';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { signOut } from '~/store/modules/auth/actions';
import { updateProfileRequest } from '~/store/modules/user/actions';
import Header... | JavaScript | CL | 5e2f6ce21f0f891b832661a1949da7c3af64d83ea8448de24f40354ac234326c |
import * as Minio from 'minio';
import * as He from 'he';
import { assoc, concat, map, sort } from 'ramda';
import querystring from 'querystring';
import conf, { booleanConf, logApp, logAudit } from '../config/conf';
import { buildPagination } from './utils';
import { loadExportWorksAsProgressFiles, deleteWorkForFile }... | JavaScript | CL | 9f774f66bc287033047bc1fb1dffb528ae933831d82f20646121490ad3aa835a |
import 'normalize.css/normalize.css';
import './global.css';
import { render } from 'react-dom';
import {
createStore,
combineReducers,
compose,
applyMiddleware
} from 'redux';
import { routerForBrowser } from '../../src';
import routes from './routes';
import wrap from './wrap';
import Demo from './demo';
... | JavaScript | CL | 515e4f9f1514db8f31d253b7358919828a862ded35c8f60177be0b5d856c5568 |
/*global module, require */
/**
* Marionette tutorial Gruntfile
* DON'T TOUCH THIS, YOU DAMN, DIRTY APES!
*/
(function() {
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
////////// JavaScript
jshint: {
options: {
jshintrc: '.js... | JavaScript | CL | 1d68fac32c28dd3b9bb665239e7ceca2bcd630791582ba35c97301c9bc6474f2 |
/* Write a function that accepts a single argument,
a number, and returns the result of multiplying
its argument by an exponent of 2 (also known as squaring the number).
*/
function squaredNumber(num) {
return num * num;
}
console.log(squaredNumber(12)); // 9
// CORRECT
//Provided Solution / Discussion:
function... | JavaScript | CL | 5ca515b1be4ed92eab4e046030a783ca01579d037150ba5d125bc14faa1550fd |
var serialport = require('serialport');//require serialport dependence
var WebSocketServer = require('ws').Server;//require websocket library
// configure the webSocket server:
var SERVER_PORT = 8081;//Set port number:8081
var wss = new WebSocketServer({port: SERVER_PORT});//create a new websocket server with the... | JavaScript | CL | 0015417fd62bc9a8a5e2394917a35387f2e6e8be47e321e92dc1a18445784b2c |
'use strict';
/**
* Module dependencies
*/
var gulp = require( 'gulp' ),
gutil = require( 'gulp-util' ),
path = require( 'path' ),
del = require( 'del' ),
open = require( 'open' ),
hologram = require( 'gulp-hologram' ),
webpa... | JavaScript | CL | 92c04ce532fa62a4f5c3216f83755c1b60a1f802fca750cf7f84ee58d3dc6039 |
var book = {
"name": "1. Ljetopisa",
"numChapters": 29,
"chapters": {
"1": {
"1": "<sup>1</sup> Adam, Set, Enoš,",
"2": "<sup>2</sup> Kenan, Mahalel, Jered,",
"3": "<sup>3</sup> Henoh, Metušelat, Lamek,",
"4": "<sup>4</sup> Noe, Sem, Šam i Jafet.",
"5": "<sup>5</sup> Sinovi Jafetovi: Gomer, Magog, M... | JavaScript | CL | b7d8b7a9522c0abe70ab4efa3f95b1a6ae1d204805ba7a8ce6fca2dc7fb9fa60 |
import uuid from '../../src/uuid';
import persistentRoomsStore from '../../src/store/persistentRoomsStore';
const LOCAL_MONGODB_CONNECTION_URI = 'mongodb://localhost:27017';
const LOCAL_MONGODB_TEST_DB_NAME = 'poinz_integration_test';
describe('initialization', () => {
test('should connect to running mongoDB instan... | JavaScript | CL | b46dd1cf621c4f23fe6eb7ff6fcc041a4f0221e5e9e71da3ad46f03bf97616d7 |
import React from "react";
import InnerPage from "../components/innerPage";
import stefano from "../stefano.jpg";
import Layout from "../layouts/en";
const Stefano = (props) => (
<Layout location={props.location}>
<InnerPage
name="Stefano Intrieri"
title="Lyric coach"
i... | JavaScript | CL | b3278150dfa4247342cb9f2f14ae78b3147b418cd5b3e880317cb0e4ecde8232 |
const observer = (() => {
function Observer() {
this.callbacks = {};
}
function notifyObservers(observers, eventObject) {
for (let i = 0; i < observers.length; i++) {
observers[i](eventObject);
if (observers[i].once) {
observers.shift(i, 1);
... | JavaScript | CL | 459738d9b20faafb0f6e0e43611fc536194cae7debdc3261df1a6e17e34482a7 |
import React, { useContext, useState, useEffect } from 'react';
import { CarouselChildPropTypes } from './propTypes';
import { Box } from '../Box';
import { ThemeContext } from '../../contexts';
import { defaultProps } from '../../default-props';
const CarouselChild = ({
fill,
play,
index,
activeIndex,
prio... | JavaScript | CL | c94e9bb133e3a95cedf34aee308e6eeb240b1d2bad0f19aa01fcf4e901020a5c |
import React from 'react';
import PropTypes from 'prop-types';
import { userType } from '@/types';
import { connect } from 'react-redux';
import {
List,
Divider,
Box,
Typography,
Icon,
} from '@material-ui/core';
import {
DrawerList,
CustomLink,
CustomListItem,
CustomDrawer,
} from './styles';
fu... | JavaScript | CL | d0bf463ec6d75ef13beac043ee2363aa6f88fb0594a0d8716e46a689f9028e66 |
/** -- Operations -- **/
// Get the data, and if it exists, resurrect
let data = get("inputData");
if (data !== undefined) data = data.resurrect();
// If the uploaded data and the SVG are present, do things
if (data && get("svgUpload")) doThings();
/** -- Function definitions -- **/
// Function to check whether tw... | JavaScript | CL | fbd58275a5b99004bf49cf92e709c5acf7a2996080a8e08e3c6f16de5298ca98 |
const sqlite3 = require('sqlite3');
const crypto = require('crypto');
const fs = require('fs');
const zlib = require('zlib');
const tableName = 'responses';
const db = new sqlite3.Database('collector.db');
const fileDir = 'files'
const sha256Hex = (data) => {
const hash = crypto.createHash('sha256');
hash.update(... | JavaScript | CL | 1aedd626ca8f0c214fed2991382b1dcb2bb1b1cf7114d1f16b87ad59b4ed7c30 |
/*
* Load, merge, and normalize strings and builtins metadata.
*
* Final metadata object contains merged and normalized objects and strings.
* These can then be used to generate RAM/ROM built-in initialization data.
*
* Various useful indices and helper maps are also added to the metadata
* object.
*/
'us... | JavaScript | CL | a3a062a085cb97acee9b53c1be1938918a1e662a4790c012e326cf394974ff1e |
import { actionTypes } from "@servicenow/ui-core";
import { getHttpEffect } from "./getHttpEffect";
import { createHttpEffect } from "@servicenow/ui-effect-http";
import {
CALLER_FETCH_REQUESTED,
CALLER_FETCH_SUCCEEDED,
CALLER_FETCH_FAILED,
ASSIGN_TO_FETCH_REQUESTED,
ASSIGN_TO_FETCH_SUCCEEDED,
ASSIGN_TO_FETCH_FAI... | JavaScript | CL | 99669f71a99d74ef0e1056b1615e91e76b77138493d6642e3d3fa826fb5ec62f |
describe('homebrew.js', () => {
beforeEach(() => {
jest.resetAllMocks()
jest.resetModules()
})
describe('search', () => {
let scrapeIt
let homebrew
let cache
beforeEach(() => {
jest.mock('scrape-it')
scrapeIt = require('scrape-it')
jest.mock('cache-conf')
cache =... | JavaScript | CL | 1afb913e33b098db656553f0fbb2f4a586a19e75af0e47781d1df968e47a9f93 |
import { memo, useEffect, useState, useContext, useLayoutEffect } from "react";
import firebase from "../../../../../firebase";
import Modal from "react-modal";
import CreateTextCommand from "./CreateTextCommand";
import CreateRoleCommand from "./CreateRoleCommand";
import CreateCommand from "./CreateCommand";
import C... | JavaScript | CL | 0cd70e3548b7258c0e115a10f9e8a1adca2a83397bf17822b8a8edceaa3c8438 |
goog.provide('day8.re_frame_10x.inlined_deps.re_frame.v0v11v0.re_frame.trace');
goog.require('cljs.core');
goog.require('day8.re_frame_10x.inlined_deps.re_frame.v0v11v0.re_frame.interop');
goog.require('day8.re_frame_10x.inlined_deps.re_frame.v0v11v0.re_frame.loggers');
goog.require('goog.functions');
day8.re_frame_10x... | JavaScript | CL | 53495e252adba77d45de8f0831e01fe84236dcf7f41d9abc62c94e3d7b21ecd4 |
import React from 'react';
import { AccessibilityDoc } from '../../components/doc/cascadeselect/accessibilitydoc';
import { BasicDoc } from '../../components/doc/cascadeselect/basicdoc';
import { DisabledDoc } from '../../components/doc/cascadeselect/disableddoc';
import { FloatLabelDoc } from '../../components/doc/cas... | JavaScript | CL | a4650a2ad4b83a089a989a1d832bc94ce965e8cbeb9407ecab236200e6e0b682 |
/**
* @license
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* https://blockly.googlecode.com/
*
* 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... | JavaScript | CL | c0b45c6357541a221049f13730f5e45ff7dade80b7081a3286dc03b9035b7fa2 |
import Router from "koa-router";
import { validate } from "core/libraries/koa/middlewares";
import { message } from "core/conceptions/http";
import * as userModel from "models/account/user";
import * as userValidations from "models/account/user/validations";
export default new Router({ prefix: "/users" }).post(
"/",... | JavaScript | CL | debc38826ce3e60a4a4fa277da53c588c1e39d6bd3aa3e3ddac913f85a67dd06 |
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prot... | JavaScript | CL | 3d812e0b0b3a864ae171a1da5ba14da336d59c63512e4cac17d701f9264c5532 |
import React from "react";
import styles from "./setting.module.css";
import Navbar from "component/nav_bar/navbar";
import LikeLanguages from "component/like_languages/likeLanguages";
import UserImageUpload from "component/user_image_upload/userImageUpload";
import Modal from "component/modal/modal_component/modal";
i... | JavaScript | CL | 0ed5860e71882ac2f1015a8bcaf837cc4d68d65f731c80f97ceab0286d8ae135 |
import React from 'react';
import Form from "react-bootstrap/Form";
import Button from "react-bootstrap/Button";
import Col from "react-bootstrap/Col";
import Modal from "react-bootstrap/Modal";
import Container from "react-bootstrap/Container";
import FormGroup from "react-bootstrap/FormGroup";
import DayPickerInput f... | JavaScript | CL | e850fd302bee905cf919bb827266a9134f34f1fd2d5c1227f821b792a55b1313 |
const Campground = require("../models/campground"); //imports the Mongoose schema template from campground.js in the models folder.
const mbxGeocoding = require('@mapbox/mapbox-sdk/services/geocoding'); //imports Mapbox stuff from the Mapbox npm package. Apparently geocoding is only one of the systems you can download,... | JavaScript | CL | cf6114e2e19224d0a83083ad04bd77278c23b551f2969a6e5eab2b9d25a5e249 |
import event from './event'
export const inputEvent = (ev) => (el, value) =>
event(ev, { target: { value } })(el)
/**
* Calls `blur` of an input
*
* @param {VNode} element
* @param {string} value
* @returns {Action|undefined}
* @usage
* blur(input, 'Berlin')
*/
export const blur = inputEvent('blur')
/**
... | JavaScript | CL | ac3ab36fa5a09aab792b8f9b132dcbc11f3f9086e98804f24f3064523bcabb05 |
'use strict';
const isWsl = require('is-wsl');
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const src = path.join(__dirname, 's... | JavaScript | CL | 98cb3011adbfc6e160ca504511a4197ee807764599c5b42cdf0df650b9715e52 |
import { LOCATION_CHANGE } from 'react-router-redux'
import { actionTypes } from 'redux-form'
import {
CANCEL_TUTORIAL_MODE,
GO_TO_NEXT_ITEM,
GO_TO_PREVIOUS_ITEM,
TUTORIAL_REFRESH_ACTIVE_ITEM,
TUTORIAL_UPDATE_FIELD_STATUS
} from 'actions/tutorial'
import { getActivePageKey } from 'helpers/pageHelper'
import t... | JavaScript | CL | e9ff16b14dbb9430af8bd518e75c7fa4d1ffed6a6c263cae0f95b28756c0f3d4 |
import React, { useState, useEffect } from "react";
import Navbar from "../components/Navbar";
import API from "../utils/API";
import { Link } from "react-router-dom";
import { Col, Row, Container } from "../components/Grid";
import { List, ListItem } from "../components/List";
import { Input, TextArea, FormBtn } from... | JavaScript | CL | a28bcb88bf7f4956030eb2d631979e5f0b146885634d3192cbd97990688ba365 |
goog.provide('cljs.core');
goog.require('goog.math.Long');
goog.require('goog.math.Integer');
goog.require('goog.string');
goog.require('goog.object');
goog.require('goog.array');
goog.require('goog.Uri');
goog.require('goog.string.StringBuffer');
cljs.core._STAR_clojurescript_version_STAR_ = "1.10.339";
cljs.core._STA... | JavaScript | CL | 30dd39f0acd09d251b6e7ad77c89f5cbefbdf579395ba41116f5a388af513e92 |
import React from "react";
import echarts from "echarts";
import ReactEcharts from "echarts-for-react";
import { getLayerColor } from '../assets/layers'
export default class GraphView extends React.Component {
constructor(props) {
super(props)
this.getInitalOption = this.getInitalOption.bind(this)
this.l... | JavaScript | CL | 4e08d18667be60983c3f450f0a9feba71b6e61f9d9f22b4bf91a7600eb0b5f00 |
/*
The MIT License (MIT)
Copyright (c) 2016 Bartlomiej Koper <bkoper@gmail.com>
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 limitation the rights
... | JavaScript | CL | b674c8c57e91f1cca78e62795ea8f0a6e16f280e6b258806ea41cbe8018296a5 |
var fs = require("fs");
//Neste formato de leitura, assíncrona, todas as requisições de leitura são feitas de uma só vez.
//As leituras são entregues a media que seus processamento vão terminando
//Nesta situação, temos acesso a todo o potêncial do processador
//Tempo: 475.089ms
console.time('Assincrono');
var counter... | JavaScript | CL | 62a6152680402d13ae6226aafaa37a3b8577f6e2702e8c01522ebeb34cd431d2 |
import React from "react";
import ArgsTable from "./components/args-table";
import ExampleTable from "./components/example-table";
import TextPatternTable from "./components/text-pattern-table";
import compileMethod from "./data/compile-data";
const Examples = () => {
const examples = [];
for (let [key, value] of ... | JavaScript | CL | 09d812a90aaebcc653b501da2e861e7abfd8f59efeb20762782093b6428dc1cc |
export default {
id: 'Quest/Regular/NatalyVerlen/Drill/Drill15',
condition: [
['Research/Evolution/Drill', 15],
],
title: 'Исследовать Бурильный Бур 15-го уровня',
text: '<p>Комиссия по безопасности посетила ваши шахты металла, Консул, после чего разработала общие рекомендации по эксплуатации Бурильного Б... | JavaScript | CL | 34b7f0c652bec4d72181d778aca5a4ae417baf540ceb4463b185cc1087b227f8 |
import React, { Component } from 'react';
import Card from '@material-ui/core/Card';
import CardHeader from '@material-ui/core/CardHeader';
import CardContent from '@material-ui/core/CardContent';
import CardActions from '@material-ui/core/CardActions';
import Avatar from '@material-ui/core/Avatar';
import IconButton f... | JavaScript | CL | 647ec180203f1844cad0effd5ac14a56e89d10d2a58d7a28c649c4decaf42b7f |
const webpack = require('webpack');
const libraryTarget = require('yargs').argv['output-library-target'];
const pkg = require('./package.json');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const libraryName = pkg.name;
const banner = `${pkg.name}
${pkg.description}\n
@version v${pkg.version}
@autho... | JavaScript | CL | 37c672df69097b333f110b516db8ee08be359bfc5cea0c89912f02f0a2cd30a8 |
///////////////////////////////////////////////////////////////////////////
// Vectorize
// Version 1.0.0
///////////////////////////////////////////////////////////////////////////
/**
* Convert raster image or whatever is selected into a vector
**/
const {Artboard, BooleanGroup, Blur, Matrix, Color, ImageFill, El... | JavaScript | CL | d3fc52db7db494d43e74a020bd4e8a8aaebb9a92697800aa08e1c86d40f9be63 |
// using contentful to load content
const client = contentful.createClient({
// This is the space ID. A space is like a project folder in Contentful terms
space: "x346lwe53vz1",
// This is the access token for this space. Normally you get both ID and the token in the Contentful web app
accessToken: "Do9vg_... | JavaScript | CL | be46adc69d8370c4ebfa4915c9b129f1f2a209425413bb38a8ea4a4f64cfe238 |
import express from 'express';
import jwtdecode from 'jwt-decode';
import Auth from '../middleware/Auth';
import logger from '../config/Logger';
import ResponseDto from '../utils/ResponseDto'
const router = express.Router();
import CategorySchema from '../models/CategorySchema';
import CustomError from '../error/Custom... | JavaScript | CL | 73ab1caf70e54723722f489e082a7a9ae2739c69cf1f628844d965e02fe838d4 |
var dataPed = [{
"name": "Pali-English Dictionary",
"meta": "T. W. Rhys Davids, William Stede, editors, The Pali Text Society’s Pali–English dictionary. Chipstead: Pali Text Society, 1921–5. 8 parts [738 pp.]. License: Creative Commons Attribution-NonCommercial 3.0 licence (CC BY-NC 3.0)",
"words": [
{
... | JavaScript | CL | d5820746182fa7bb28c18025622f0d3a82bbde75d3c8788efb4e873253d50107 |
import React from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';
import { Row, Container, Navbar, Nav, Button } from 'react-bootstrap/';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import { connect } from 'react-redux';
import {
setMovies,
setUser
} from '../..... | JavaScript | CL | 237aef3b7ecc103aacb78e8d700a5cce0ba17cc11628c2ae7d595f1f9a7a3b20 |
import React, { Component } from 'react'
import { Header, List, Segment } from 'semantic-ui-react';
import ReactJson from 'react-json-view';
import { CodeBlock, monokai } from 'react-code-blocks'
// import { Serialize } from 'eosjs'
// const transactionAbi = require('eosjs/src/transaction.abi.json')
// const transacti... | JavaScript | CL | 671f2085be026afc73609a5a45bbd4246336e0d2194070330ff681163e013b05 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SideMenu = void 0;
var _components = require("@sanity/base/components");
var _ui = require("@sanity/ui");
var _icons = require("@sanity/icons");
var _react = _interopRequireWildcard(require("react"));
var _toolSwitcher = _inter... | JavaScript | CL | 79981da3025b724b0fb83a25610ff0051a69a1050c4c58b31b616883f15789bc |
//like a module ... may be use BASENAME_APP for it?
angular.module('dataProvider', [])
.provider('dataProvider', function () {
var provider, conf;
return {
setProvider: function (value, config) {
provider = value;
conf = config;
},
$get: function () {
return new windo... | JavaScript | CL | b2aa957593d5a3d9711e1c51cc7a8835f7bad3b6bec6328eeea795813e36bc27 |
// Import React
import React, { useEffect, useState } from "react";
// Import Redux
import { connect } from "react-redux";
import { updateUserData, clearActivity } from "../../actions/activityActions";
import { loadUser } from "../../actions/authActions";
// Import Components
import Header from "../smallParts/Header"... | JavaScript | CL | 1680d5300830f1de69ec790fe6db51d4de352d6dd948a58f2d1ff0b755b22f17 |
'use strict'
const express = require('express')
const bodyParser = require('body-parser')
const addStaticDir = require('./add-static-dir')
const schema = require('./schema.json')
const debug = require('debug')('tymly-express-plugin')
const process = require('process')
const helmet = require('helmet')
class ExpressSer... | JavaScript | CL | a4b6664da3df0b355f1f1fdf0a9bdc0b0882c6379ee15d1f1162f7f8f77c504c |
((function (App) {
'use strict';
App.Router.ManagementMapStep = Backbone.Router.extend({
routes: {
'(/)': 'index'
},
initialize: function (params) {
this.slug = params[0] || null;
this.pageId = params[1] || null;
},
index: function () {
// We instantiate summernote for... | JavaScript | CL | 3c38d7049487153b187ba9779cc73ae15d5c46e584cef1cc7622fab7159229de |
import * as act from '../actions';
import { List, Map, fromJS } from 'immutable';
import { each, extend, extendOwn, isArray, isNumber, isObject, isString } from "underscore";
// import {mouseEventNames} from '../_inc/preference';
import * as UTIL from '../_inc/utils';
// 초기 상태
const initialState = Map({
mounted: fal... | JavaScript | CL | 23eb3ef928a784b33d2fe18724418df64341960c0d188d4133d5ed826d1a70bb |
import { combineReducers } from "redux";
import issuesReducer from "./issues";
import issueReducer from "./issue";
import pagesReducer from "./pages";
import repoReducer from "./repo";
const rootReducer = combineReducers({
issues: issuesReducer,
issue: issueReducer,
numberOfPages: pagesReducer,
repoURL: repoRe... | JavaScript | CL | 31ac5ebb1869499ee938439f0972a790df8f01bd23bc7cbf6bb4c84e65514a4e |
import React, { Component } from "react";
import { connect } from "react-redux";
import { Segment, Header, Form, Image } from "semantic-ui-react";
import api from "../api";
class GeneralSettings extends Component {
constructor(nextProps) {
super(nextProps);
const { settings } = nextProps;
this.state = ... | JavaScript | CL | b9a7d72ce0924f8c887b00f15c878e601873844121a872f560adaf9403287608 |
// @flow
import * as React from 'react';
import { compose } from 'redux';
import { connect } from 'react-redux';
import fb from 'react-native-firebase';
import { firebaseConnect } from 'react-redux-firebase';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import Button from 'apsl-react-native-butto... | JavaScript | CL | 3cf35fc7f57e8e3abe01095a7269766b69996eea180c99d299d822e2555131de |
import React from 'react';
import connect from 'src/redux/connect';
import OmnibarPersonSearchControlled from 'components/Search/OmnibarPersonSearchControlled';
import NavNavLinkMock from 'components/Nav/SchoolNav/NavNavLinkMock';
import { studentDetailFetch } from 'src/redux/actionCreators/student/detail';
import { s... | JavaScript | CL | ccf169370d34ba9f6636517e7029254d44a99649886f0ac0cae7b6c11b5aa271 |
import { ApolloServer, gql } from 'apollo-server-micro';
import { makeExecutableSchema } from 'graphql-tools';
import layoutModule from './modules/layout';
const typeDefs = gql`
enum ContentLocale {
PT_BR
EN_US
}
type Query {
greet: String
}
input CreateSampleTextInput {
text: String!
}
... | JavaScript | CL | 225b21d4d7b9379b5fa862b7e7f4d6486406282ea13f0e49167f6dcae3a90ce2 |
const newLinesRegex = /(\r\n\t|\n|\r\t)/gm;
const tabRegex = /\t+/g;
const findAllTokensRegex = /({{([\s\S]+?)}})|(\${(.+?)})/g;
// eslint-disable-next-line
const findAllExpressionsRegex = '(\\${(.+?)})|({{=(.+?)}})';
const findAllStatementsRegex = '({{([\\s\\S]+?)}})';
const isCompound = tokenTree => tokenTree... | JavaScript | CL | b7290e47a4a5dc1ca55705deaca92f50fba63fe86a83d9da11e9a7b39171d6a5 |
'use strict';
/**
* The base implementation of `_.unary` without support for storing metadata.
*
* @private
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new capped function.
*/
function baseUnary(func) {
return function (value) {
return func(value);
... | JavaScript | CL | 39af94719c5e6a2aaeabbb826fcd01488d3cd840bcb48fb046c699f17db64d03 |
Object.defineProperty(exports, "__esModule", { value: true });
const moduleClassCreator_1 = require("../../../../../module/moduleClassCreator");
const moduleViewClassCreator_1 = require("../../../../../module/moduleViewClassCreator");
const SettingsIndexCategories_type_1 = require("./SettingsIndexCategories.type");
... | JavaScript | CL | 711a6136041d5a0e6ce4b5a166f5578e74092e008f53f278e5fc31d15bc12e65 |
/*
* Copyright (C) 2012 Vanderbilt University, All rights reserved.
*
* Author: Miklos Maroti
*/
define([ "util/assert", "core/coretree", "util/sha1", "core/tasync", "util/canon" ], function (ASSERT, CoreTree, SHA1, TASYNC, CANON) {
"use strict";
// ----------------- RELID -----------------
... | JavaScript | CL | be67fa515e64488e31e44a4de779bab74ee6c5c3a59fbaa1960a7b47ccb78d4c |
/*
* This file is part of the xPack project (http://xpack.github.io).
* Copyright (c) 2020 Liviu Ionescu. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose is hereby granted, under the terms of the MIT license.
*
* If a copy of the license was not distrib... | JavaScript | CL | c5f2fbb865a8dd50b9dad64e200518fd2bb1f171248e3f1a93b775ac41d6d9f4 |
(function () {
"use strict";
angular.module('miniSPA').controller('coverLettersCreateCtrl', ['$scope', '$rootScope', '$window', 'coverLetters', '$location', '$filter', controller]);
function controller($scope, $rootScope, $window, coverLetters, $location, $filter) {
// ... | JavaScript | CL | f3c617ed28a205c6fd0490391592d830ed82d9d83cae8684a44f17f45b5acd42 |
const express = require("express");
const mongoose = require("mongoose");
const router = require("./routes");
const bodyParser = require('body-parser');
const cors = require('cors');
const app = express();
const port = 8080;
// const loadUsers = require('./userData');
// const usersRouter = require('./users/index');
... | JavaScript | CL | 3b49aca505241d3b6f1aa4efe0f84602ff0b11d2f78bf250c2e875b107fc1bd5 |
import React, { lazy } from 'react';
// Suspense
import PropTypes from 'prop-types';
import DocumentTitle from 'react-document-title';
import { connect } from 'dva';
// import logo from '../assets/logo.svg';
// import Footer from './Footer';
// import Header from './CanvasHeader';
import getPageTitle from '@/utils/getP... | JavaScript | CL | b315dedb4e588ed3bb4847d204f487cbc30ec084cd4325a77c9b97d04afe4658 |
import React, { Component } from "react";
import LazyLoad from "react-lazyload";
import PropTypes from "prop-types";
import axios from "axios";
import Paper from "@material-ui/core/Paper";
import { Route, Redirect, Switch, withRouter } from "react-router-dom";
import { withStyles } from "@material-ui/core/styles";
impo... | JavaScript | CL | 39d4a355e73f74c1eb4e7bbd6b32bbb347c49ab03abf1112d2f405e60dd36997 |
import analyseConfig from '../../helpers/analyseConfig';
const dispatch = (payload, requestName, internalProps) => {
if (!internalProps) throw SyntaxError('Payload and Request Name must be defined.');
const { configs, beforeDispatch } = internalProps;
analyseConfig.check(configs, requestName);
const preProce... | JavaScript | CL | bfbf3c1f474169bb7b9a19267c3c7e60be882f67f284299b80aa2b17a4ef7c2b |
import { createStore, applyMiddleware, combineReducers } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import EventReducer from '../reducers/EventReducer';
import UserReducer from '../reducers/UserReducer';
import SearchReducer from '../reducers/SearchRed... | JavaScript | CL | 54acb5eb8e3a1dec986970b35e8213e8ba1b8e5dca6429e8edf92efbf65da9b5 |
/**
* @fileOverview 图例,用于标志具体的数据序列,并跟数据序列进行交互
* @ignore
*/
var Util = require('achart-util'),
PlotItem = require('achart-plot').Item,
Item = require('./legenditem'),
LINE_HEIGHT = 15,
PADDING = 5;
/**
* @class Chart.Legend
* 图例
*
* - <a href="http://spmjs.io/docs/achart-legend/" target="_blank">文档</a>
... | JavaScript | CL | a62c6d0dd9e21fdfba4d06c03862fc03289be1dc51eeefbaf111aae50dcf7ebb |
//********************************************************************
//*-------------------------------------------------------------------
//* Licensed Materials - Property of IBM
//*
//* WebSphere Commerce
//*
//* (c) Copyright IBM Corp. 2001, 2002
//*
//* US Government Users Restricted Rights - Use, duplication or... | JavaScript | CL | 5e07da00e8a02f82921bbfc9956f83e5ca34296dc493e9bd30ad4ec78d511d9b |
/*
---
description: DoubleSlider
license: MIT-style
authors:
- Matthias Goebels (http://js.frixxx.de)
requires:
- core/1.2.4: '*'
- more/1.4.0.1: Drag
provides: [DoubleSlider]
...
*/
var DoubleSlider = new Class({
Implements: [Options, Events],
options: {
knobSelector: 'div',
rangeSelect... | JavaScript | CL | 728735bc77a79153468aa7defcdfdfa745ec0e4b94372d50145d4159801f2947 |
import { createStore, applyMiddleware, compose } from 'redux';
import { createEpicMiddleware } from 'redux-observable';
import { routerMiddleware } from 'connected-react-router/immutable';
import { createBrowserHistory } from 'history';
import * as apis from 'apis';
import { rootEpic, createRootReducer } from './modu... | JavaScript | CL | d34d13e33b384934c8084c58fa64a30f5ab110244a9dae604617ae4c9517cdbc |
import Vue from "../../utils/vue";
import { NlyTreeItem } from "./tree-item";
import listenOnRootMixin from "../../mixins/listen-on-root";
import { NlyCollapse } from "../collapse/collapse";
import {
EVENT_TOGGLE,
EVENT_STATE,
EVENT_STATE_SYNC
} from "../../directives/toggle/toggle";
import { getComponentConfig }... | JavaScript | CL | 0a48930d835921d914eca61965935896b16c2579e659f7bf26b855d815569f24 |
import Link from "next/link";
import { motion } from "framer-motion";
import styles from "./detail.module.scss";
import { FiTool } from "react-icons/fi";
import { BsCodeSlash } from "react-icons/bs";
import { BiCodeCurly } from "react-icons/bi";
import { ImLink } from "react-icons/im";
import {
imageVariantsDetail,
... | JavaScript | CL | 7f57e368e0d2be27d1dcbd1d093fc91014bdcbd71b7d71151d6d9dcb53263510 |
///View is the constructor and takes an arguement - the 'canvas' object - that the view is managing
class View {
constructor(canvas) {
this.canvas = canvas;
//set click array to collect the location information from the x position determined by the note value, mapped across the x axis
this.circle = [];
... | JavaScript | CL | 2f76466f11cfbc456dc05288723c32ff13899ae64097b3d387491535e01a359e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.