text
stringlengths
3
1.05M
export default { chartTitle: 'chart.title', tableTitle: 'table.title', searchTitle: 'search.title' };
var searchData= [ ['sample',['Sample',['../class_sample.html',1,'']]], ['sampleslibrary',['SamplesLibrary',['../class_samples_library.html',1,'']]], ['sound',['Sound',['../class_sound.html',1,'']]] ];
var searchData= [ ['i2c_2ec_65',['i2c.c',['../i2c_8c.html',1,'']]] ];
# Copyright (c) 2020 PaddlePaddle 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 appli...
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "camera_info_publisher" PROJECT_SPACE_...
# -*- coding: utf-8 -*- """ meraki This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ import meraki.models.definition_model import meraki.models.per_client_bandwidth_limits_model class Rule8Model(object): """Implementation of the 'Rule8' model. ...
// Code your solution in this file! const companyName = 'Scuber'; const mostProfitableNeighborhood = 'Chelsea'; const companyCeo = 'Susan Smith';
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Flags: --harmony-do-expressions --allow-natives-syntax function func1() { for (var i = 0; i < 64; ++i) func2(); } %OptimizeFunctionOnNextCall(f...
import logging import os import json import gunpowder as gp from .data_sources_semantic import DataSourcesSemantic logger = logging.getLogger(__name__) class DataSourcesSemanticWithContext(DataSourcesSemantic): def __init__(self, context, **kwargs): self.context = context super().__init__(**kw...
class B747_8_PFD extends BaseAirliners { constructor() { super(); this.initDuration = 7000; } get templateID() { return "B747_8_PFD"; } get IsGlassCockpit() { return true; } connectedCallback() { super.connectedCallback(); this.pageGroups = [ new NavSystem...
CodeMirror.defineMode("eugene", function(config, parserConfig) { var indentUnit = config.indentUnit, statementIndentUnit = parserConfig.statementIndentUnit || indentUnit, dontAlignCalls = parserConfig.dontAlignCalls, keywords = parserConfig.keywords || {}, builtin = p...
import React, { memo } from 'react' import Box from '../../../../../dataDisplay/box' import Typogrgraphy from '../../../../../dataDisplay/typography' import SelectBase from '../../' import { defaultProps, propTypes } from '../propTypes' const Item = ({ label, backgroundColor, foregroundColor, titleColor, ti...
/** * $Id: mxArrow.js,v 1.31 2012-05-23 19:09:22 gaudenz Exp $ * Copyright (c) 2006-2010, JGraph Ltd */ /** * Class: mxArrow * * Extends <mxShape> to implement an arrow shape. (The shape * is used to represent edges, not vertices.) * This shape is registered under <mxConstants.SHAPE_ARROW> * in <mxCellRenderer...
import logging from abc import abstractmethod # from bot.providers.predefined import Predefined # from bot.providers.provider import Provider from bot.providers.duellinks import DuelLinksInfo, alphabet from bot.common import crop_image class AbstractIgnoreEvent(object): """ Class implemented checks to avoid ...
// Copyright (c) 2015 - 2017 Uber Technologies, Inc. // // 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 // to use, copy, modify...
/*! X-editable - v1.5.3 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2018 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to form tag!...
const nord = ['#2e3440', '#3b4252', '#434c5e', '#4c566a', '#d8dee9', '#e5e9f0', '#eceff4', '#8fbcbb', '#88c0d0', '#81a1c1', '#5e81ac', '#bf616a', '#d08770', '#ebcb8b', '#a3be8c', '#b48ead']; // DOCUMENTATION of Nord as of Oct 3 // 0 #2e3440 : Base component color of "Polar Night". // Used for texts, backgrounds, c...
""" WSGI config for edgar project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[6],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/src/components/dashboard/Home/Organ/Index.vue?vue&type=script&lang=js&": /*!***********************************************************************...
/** * storage use file */ import {encrypt,decrypt} from './crypt' var Promise = require('es6-promise').Promise //import * as fileStorage from './filestorage' import * as localstorage from './localstorage' import * as sqlstorage from './sqlstorage' import { newServer } from './server' import { OFFICIAL_HORIZON } from...
import React, { Component } from 'react'; import {CardBody, Col, Row, FormGroup, Label, Input, TabPane, TabContent, Button } from 'reactstrap'; import Select from 'react-select'; import API015 from '../../../../../services/API015'; class Step1 extends Component{ constructor(props){ super(props); th...
/** * Created by Eryk Mariankowski on 21.06.2017. */ export default function MyEnum(keys) { let i = Object .keys(keys) .reduce((object, key) => { object[keys[key]] = key; return object; }, {}); return Object.freeze( Object.keys(keys).reduce((object, key) => { object[key] = keys[...
let fs = require('fs') let chalk = require('chalk') global.owner = ['6285828764046'] // Letakan nomor kamu disini global.APIs = { // API Prefix // nama: 'https://website' bx: 'https://bx-hunter.herokuapp.com', rey: 'https://server-api-rey.herokuapp.com', dhnjing: 'https://dhnjing.xyz', hardianto: 'https://h...
import React, { Component } from 'react'; import { Table } from 'antd'; function dataSource(): Object[]{ const arr: Object[] = []; for(let i: number = 0, j: number = 32; i < j; i++){ arr.push({ id: `PRO${ i }`, name: `胡彦斌${ i }`, age: 20 + i, address: '西湖区湖底公园1号' }); } return ar...
sap.ui.define([ "sap/ui/test/Opa5", "sap/ui/test/matchers/AggregationFilled" ], function (Opa5, AggregationFilled) { "use strict"; var sIssuesTableId = "issuesList", sViewName = "Issues", sViewNameSpace = "sap.ui.support.supportRules.ui.views."; Opa5.createPageObjects({ onTheIssuesPage: { assertions: {...
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. from .boxes import *
# Copyright (c) 2021, NVIDIA CORPORATION. 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...
/* List of flags and their descriptions: authentic: Ignores a target's substitute. bite: Power is multiplied by 1.5 when used by a Pokemon with the Ability Strong Jaw. bullet: Has no effect on Pokemon with the Ability Bulletproof. charge: The user is unable to make a move between turns. contact: Makes contact. defros...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[69],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&": /*!************************************************************************************...
!function(e){const a=e["pt-br"]=e["pt-br"]||{};a.dictionary=Object.assign(a.dictionary||{},{"%0 of %1":"%0 de %1","Align center":"Centralizar","Align left":"Alinhar à esquerda","Align right":"Alinhar à direita",Aquamarine:"Água-marinha",Black:"Preto","Block quote":"Bloco de citação",Blue:"Azul",Bold:"Negrito","Bulleted...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
const test = require('ava') const { join } = require('path') const { start, stop } = require('mono-test-utils') const mongoUtils = require('../lib') const { ObjectID } = require('mongodb') const mongoModule = require('mono-mongodb') let ctx let userCollection let users = [{ username: 'test', order: 2 }, { user...
'use strict'; import markdown from 'markdown-it'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import isPlainObject from 'lodash/isPlainObject'; import assign from 'lodash/assign'; import reduce from 'lodash/reduce'; import zipObject from 'lodash/zipObject'; import fromPairs from 'loda...
// Generated from LUFileLexer.g4 by ANTLR 4.9.2 // jshint ignore: start import antlr4 from 'antlr4'; const serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786", "\u5964\u0002)\u02d1\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001", "\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004\u0004\t\u0004\...
/* eslint-disable */ import React from 'react'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import RaisedButton from 'material-ui/RaisedButton'; import TimePicker from 'material-ui/TimePicker'; import TeamRosterDropdown from './TeamRosterDropdown'; import { observer } from 'mobx-react'; impor...
'use strict'; import { expect } from 'chai'; describe('Utils module', () => { it('should create "hash" with correct length', () => { let { genHash } = require('../src/utils'); for (let i = 0; i < 100; ++i) { let len = Math.round(Number(Math.random().toFixed(2))*100); if (len > 36) while (len > ...
load("nattrmonTester.js"); let NATTRMON_SERVER_IP = "127.0.0.1"; let NATTRMON_CHS_PORT = "8090"; let NATTRMON_CONFIG = "../config"; // INITs // ----- var nattrmon = new nAttrMon("http://nattrmon:nattrmon@" + NATTRMON_SERVER_IP + ":" + NATTRMON_CHS_PORT, NATTRMON_CONFIG); $ch("pres").createRemote("http://nattrmon:n...
/* ******************************************************************************************* * * * Plese read the following tutorial before implementing tasks: * * https://developer.mozilla.org/en...
import asyncio from migen import * from ...support.logging import * from .. import AccessDemultiplexer, AccessDemultiplexerInterface class SimulationDemultiplexer(AccessDemultiplexer): async def claim_interface(self, applet, mux_interface, args): return SimulationDemultiplexerInterface(self.device, apple...
// @ts-check const { execSync } = require('child_process'); function getRootPath() { try { return execSync('git rev-parse --show-toplevel').toString().trim(); } catch { return process.cwd(); } } module.exports = { getRootPath, };
'use strict' const Joi = require('joi') const BaseJsonService = require('../base-json') const { floorCount: floorCountColor } = require('../../lib/color-formatters') const { ordinalNumber } = require('../../lib/text-formatters') const { nonNegativeInteger } = require('../validators') const totalSchema = Joi.array() ...
/*global Widget */ function WeatherWidget(widget, configName) { this.widget = widget; this.configName = configName; this.oldCodeCoverage = 0; this.dataToBind = { name: '', icon: '', temperature: 0, pressure: 0 }; this.iconsMap = { '01d': '1', '02...
(function () { 'use strict'; /** * Templates for the `angular-formly` module. */ angular.module('frontend.core.templates') .run(['$templateCache', function ($templateCache) { $templateCache.put('templates/angular-formly/input-template.html', '<input type=\"{{options.templateOptions.type ...
const express = require("express"); const path = require("path"); const PORT = process.env.PORT || 3001; const app = express(); const mongoose = require("mongoose"); require('dotenv').config(); const routes = require("./routes") app.use(express.urlencoded({ extended: true })); app.use(express.json()); if (process.env...
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{dflm:function(t,e,n){"use strict";n.r(e),n.d(e,"ErrorPagesModule",(function(){return b}));var c=n("ofXK"),r=n("fXoL"),o=n("tyNb");const i=[{path:"404",component:(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cm...
/** * Counts the number of vowels and consonants in a given string * * @param {string} string * @returns {{vowels_count: number, consonants_count: number}} */ function countVowelsAndConsonants(string) { var vowelsCount = 0; var consonantsCount = 0; var vowels = ['a', 'e', 'i', 'o', 'u']; var conson...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
import React from 'react'; import { connect } from 'react-redux'; import TopAppBar from '../Components/AppBar'; import { Route, Redirect, } from "react-router-dom"; const PrivateRoute = ({ component: Component, token, defaultPassword, ...rest }) => { const redirectPath = defaultPassword ? "/ResetPassword" ...
mycallback( {"CONTRIBUTOR OCCUPATION": "Attorney", "CONTRIBUTION AMOUNT (F3L Bundled)": "200.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Ferraro Mediation Group", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "20 Moss Wood Ct", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID":...
'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...
from webtest import TestApp as Client def test_view_home(swissvotes_app): client = Client(swissvotes_app) home = client.get('/').maybe_follow() assert "<h2>home</h2>" in home assert home.request.url.endswith('page/home')
(function () { var canvas = document.getElementById('canvas'); var DrawShape = (function () { function DrawShape(canvas) { this.canvas = canvas; this.c = this.canvas.getContext('2d'); } DrawShape.prototype = { drawCircle: function (...
/* * The MIT License (MIT) * Copyright (c) 2016 Jim Liu * * 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 to use, copy, modify...
var id_valida = $("#id_valida").val(); var id_camara_congelada = $("#id_camara_congelada").val(); var id_item = $("#id_item").val(); if(id_item.length == 0){ $("#btn_editar_camara_congelada").hide(); $("#btn_nueva_camara_congelada").show(); }else{ $("#btn_editar_camara_congelada").show(); $("#btn_nuev...
# -*- coding: utf-8 -*- from flask import g from application import db from application.models import notes from datetime import datetime import uuid class Books(db.Model): id = db.Column(db.Integer, primary_key=True) guid = db.Column(db.String(32)) title = db.Column(db.String(150)) user_id = db.Colum...
"use strict"; // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=SignalingClient.js.map
window.FULL_SANDBOX = window.FULL_SANDBOX || false; window.HACK_BIG_RANGE = true; window.ONLY_ONCE = false; function main(config){ // ONCE. if(ONLY_ONCE) return; ONLY_ONCE=true; /////////////////////////////////////////////////////////////// // ACTUALLY... IF THERE'S DATA IN THE QUERY STRING, OVERRIDE // ////...
import os from datalad.api import Dataset from datalad_service.common.annex import get_repo_files import vmprof from .dataset_fixtures import * def test_profile_get_repo_files(datalad_store, new_dataset): ds_id = os.path.basename(new_dataset.path) ds = Dataset(os.path.join(datalad_store.annex_path, ds_id)) ...
const Sequelize = require('sequelize') const pkg = require('../../package.json') const databaseName = pkg.name + (process.env.NODE_ENV === 'test' ? '-test' : '') const db = new Sequelize( process.env.DATABASE_URL || `postgres://localhost:5432/graceshopper`, { logging: false } ) module.exports = db // This ...
/** * https://johnresig.com/files/htmlparser.js */ // Reg const doctypeReg = /^<!\s*doctype((?:\s+[\w:]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i; const startTagReg = /^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i; const endTagReg = /^<\/(...
let Users = { hasAccessToProfile: true, approved: true, sayHi: function() { return "Hi" } } function User(name, email, password) { //конструктор this.name = name; this.email = email; this.password = password; this.__proto__ = Users; } const Fedya = new User("Fedya", "fe...
const { camelizeKeys } = require('humps') const { find, trim } = require('lodash') const { handlerError } = require('../../comm') const { initBucket, makeFilePublic, uploadFileToBucket, deleteFileFromBucket, publishAction } = require('./gcs.js') const { processImage } = require('./sharp.js') const config = require('../...
# coding: utf-8 # In[37]: import pandas as pd from sklearn import preprocessing import numpy as np import os import h5py import json import h5py # In[17]: distance_data_path = "data.csv" hnsw_result_path = "/home/lab4/code/HNSW/KNN-Evaluate/hnsw_result1111.h5py" test_file_path = "test_image_feature.csv" train_f...
// @flow import React, {Component} from 'react' import shallowEqual from 'shallowequal' import {globalStyles, globalColors} from '../styles' import {isTesting} from '../local-debug' import {resolveImageAsURL} from '../desktop/resolve-root' import type {Props, AvatarLookup, AvatarLoad} from './avatar' const noAvatar =...
# Copyright 2016-2021 Swiss National Supercomputing Centre (CSCS/ETH Zurich) # ReFrame Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: BSD-3-Clause import reframe as rfm import reframe.utility.sanity as sn @rfm.simple_test class BoostPythonBindingsTest(rfm.RegressionTest)...
# Copyright 2012 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 applicable law or a...
# Generated by Django 3.2.3 on 2021-06-01 12:45 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settin...
import NetRegexes from '../../../../../resources/netregexes'; import ZoneId from '../../../../../resources/zone_id'; // Ultima Weapon Ultimate export default { zoneId: ZoneId.TheWeaponsRefrainUltimate, damageWarn: { 'UWU Searing Wind': '2B5C', 'UWU Eruption': '2B5A', 'UWU Weight': '2B65', ...
var config = {"document":{"height":210,"width":297,"mode":"rgb"},"characterStyles":[{"name":"swatchRectTitle","attributes":{"size":8}}],"swatchRect":{"textPosition":0.125},"colors":[{"group":"vega-pastel-2-3","name":"vega-pastel-2-3-1","rgb":[179,226,205]},{"group":"vega-pastel-2-3","name":"vega-pastel-2-3-2","rgb":[25...
var storage = window.localStorage; $('.modal-trigger').leanModal(); $(".button-collapse").sideNav(); function callIndex() { window.location = 'index.html'; } function callLiquidSalary() { window.location = 'salario-liquido.html'; } function callCLTversusPJ() { window.location = 'clt-versus-pj.html'; } function...
/** * Created by dmitriybor on 08.06.16. */ import superagentPromisePlugin from 'superagent-promise-plugin' import superagentDefaults from 'superagent-defaults' import superagent from 'superagent' const superagent2 = superagentPromisePlugin.patch(superagent) const superagent3 = superagentDefaults(superagent2) expor...
/** * marked - a markdown parser * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT Licensed) * https://github.com/markedjs/marked */ !function(e){"use strict";var k={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:f,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+...
describe('InvMessage', () => { const vectorType = 23; const vectorHash = Hash.unserialize(BufferUtils.fromBase64(Dummy.hash1)); const vector1 = new InvVector(vectorType,vectorHash); const vector2 = new InvVector(vectorType,vectorHash); const vector3 = new InvVector(vectorType,vectorHash); const...
import unissist from '../src'; import localStorageAdapter from '../src/localStorageAdapter'; import createStore from 'unistore'; const LocalStorage = require('node-localstorage').LocalStorage; window.localStorage = new LocalStorage('./scratch'); const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); de...
function getOptionButtons(id) { return '<div class="btn-group" role="group" aria-label="options">\n' + '\t\t\t\t\t<button name="'+id+'" type="button" class="mr-2 btn btn-success addRecord">Novi zapis</button>\n' + '\t\t\t\t\t<button name="'+id+'" type="button" class="mr-2 btn btn-warning patient_info">Informacije ...
# p17 tk25.pyw import tkinter as tk def get_text(): print(tx.get('1.5','3.4')) root = tk.Tk() tx = tk.Text(width=30,height=5) bt = tk.Button(text='get Linel-Co16 to Line3-Col4',command = get_text) [widget.pack()for widget in (tx,bt)] root.mainloop()
import Factory from './Factory'; export { Factory }; export default Factory();
'use strict'; var PropTypes = require('prop-types'); var assertPropTypes = require('check-prop-types').assertPropTypes; module.exports = function (context) { var React = context.React; var Component = context.React.Component; return function (_ref) { var children = _ref.children; var propTypes = { childre...
import Node from './node'; function Text(text) { this.nodeConstructor(3, '#text', text); } Text.prototype._cloneNode = function() { return new Text(this.nodeValue); }; Text.prototype = Object.create(Node.prototype); Text.prototype.constructor = Text; Text.prototype.nodeConstructor = Node; export default Text;
'use strict'; var app = app || {}; var __API_URL__ = 'http://localhost:3000'; var __POKE_API__= 'https://pokeapi.co/api/v2/'; (module => { function Trainer(rawTrainerObj) { Object.keys(rawTrainerObj).forEach(key => this[key] = rawTrainerObj[key]); } Trainer.all = []; module.Trainer = Trainer; })(app);
require('dotenv').config(); const express = require('express'); const { json } = require('body-parser'); const { connect } = require('mongoose'); const api_v1 = require('./app/v1'); const app = express(); app.use(json()); app.use(express.static('public/v1')); app.use('/v1', api_v1); connect(process.env.DB_URL, { ...
""" Run fine-grained sentiment classifier based on chosen method """ import argparse import os from typing import Tuple, Any from plotter import plot_confusion_matrix from classifiers import * # Path to train & test data DIR = "data/sst/" TRAIN_PATH = "sst_train.txt" DEV_PATH = "sst_dev.txt" TEST_PATH = "sst_test.txt...
// The MIT License (MIT) // Copyright (c) 2016 Stephen Howell, stephenhowell@outlook.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 limitat...
function refreshContent() { let activeContent = $('#navigation li.active').text(); switch (activeContent) { case navigation[0]: getVizMaps(null, (err, data) => { if (!centered) { createBar(data); } data.forEach((o) => { if (o.id) { d3.select('#prov-' + o.id).style('fill', (o.color || defColor)); } }); ...
""" dbbrankingparser.httpserver ~~~~~~~~~~~~~~~~~~~~~~~~~~~ HTTP server to forward requests to the parser and return the result as JSON. Expected request URL path: `/<league id>`, e.g. `/12345`. Raises 404 on invalid league id. :Copyright: 2006-2021 Jochen Kupperschmidt :License: MIT, see LICENSE for details. """ f...
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * ***** 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 Li...
module.exports={A:{A:{"16":"I D F E A B nB"},B:{"1":"Z MB M N S T U ZB W","16":"C O H P J K L"},C:{"1":"JB KB LB R NB OB PB HB Y X WB SB TB UB VB QB Z MB M mB N S T U","16":"0 1 2 3 4 5 6 7 8 9 lB cB G a I D F E A B C O H P J K L b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB RB IB uB xB"},D:{"1...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { applyPolyfills, defineCustomElements } from 'h8k-components/loader'; const ARTICLES = [ { title: 'Alphabet earnings', upv...
(function() { QUnit.module('fabric.Circle'); test('constructor', function(){ ok(fabric.Circle); var circle = new fabric.Circle(); ok(circle instanceof fabric.Circle, 'should inherit from fabric.Circle'); ok(circle instanceof fabric.Object, 'should inherit from fabric.Object'); deepEqual(cir...
import { PRE_SCENE_KEY } from '../../constants/sceneKeys'; import { game } from '../../invader'; import fireImg from '../../../assets/images/fire.png'; import platformImg from '../../../assets/images/platform1.png'; import dudeImg from '../../../assets/images/dude1.png'; import ModeSelectScene from './ModeSelect'; // i...
export function renderBasic(template) { return BlazeLayout.render('basicLayout', { content: template, header: 'header', footer: 'footer' }); } export function renderSlim(template) { return BlazeLayout.render('basicLayout', { content: template }); }
import datetime from django.core.exceptions import FieldDoesNotExist from django.db.models import BooleanField, ForeignKey from django.utils.formats import localize from django.utils.html import format_html from django.utils.http import urlencode from django.utils.safestring import SafeText from django.utils.translati...
export const fetchData = async (url) => { try { const response = await fetch(url); const data = await response.json(); return data; } catch (error) { console.log(`error message: ${error.message}`); } };
/** * Created by King Lee on 2015/1/5. */ var handlerMgr = require("./../handlerMgr"); var consts = require("../../../util/consts"); var pomelo = require('pomelo'); var util = require('../../../util/util'); var rival_vs_title_json = require('../../../../config/rival_vs_title'); var async = require('async'); ...
"use strict"; /** * @license * Copyright 2013 Palantir Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
//! moment.js locale configuration ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, ...
import { validProps } from '@eatalynet/reactivecore/lib/utils/constants'; import connectToStore from './connector'; // TODO // import { storeKey } from '@eatalynet/reactivecore'; export const connect = (...args) => connectToStore(...args); // connectToStore(...args, null, { // storeKey, // }); export const compose...
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def __init__(self): self.ans = 0 def findTilt(self, root: TreeNode) -> int: def dfs(node): if node is None: ...
(function (ng) { var mod = ng.module("administradoresModule"); mod.controller("administradoresDetailCtrl", ['$scope', '$http', '$state', '$rootScope', function ($scope, $http, $state, $rootScope) { $rootScope.edit=false; $http.get("api/administradores/"...