text stringlengths 3 1.05M |
|---|
import firebase from '@firebase/app';(function() {/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var k,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function ba(a){a=["object"==typeof wind... |
import * as firebase from 'firebase';
export default class Authentication {
LogIn(email, password){
firebase.auth().signInWithEmailAndPassword(email, password).catch((error)=>{
return {
errorCode: error.code,
errorMessage: error.message
};
})... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["add-box-rounded"] = fac... |
initSidebarItems({"fn":[["main_code",""]],"type":[["ArcMutStateGlobal",""]]}); |
import { Mamifero } from './Mamifero.js'
import { protectedPeso, protectedIdade, protectedMembros } from './symbolsAnimal.js'
import { protectedCorPelo } from './symbolMamifero.js'
let divApp = window.document.getElementById("App")
export class Lobo extends Mamifero {
emitirSom() {
divApp.innerHTML += "<... |
var d3 = require('d3/d3.js');
var width = '600';
var height = '400';
var data_1 = [432, 938, 373, 946, 123];
var data_2 = [432, 938, 373, 946, 123];
function run() {
// linear
var min = d3.min(data_1);
var max = d3.max(data_1);
var linear = d3.scale.linear()
.domain([min, max])
.range([0, 300]);
/... |
from sys import maxsize
class Group:
def __init__(self, name=None, header=None, footer=None, id = None):
self.name = name
self.header = header
self.footer = footer
self.id = id
def __repr__(self):
return "%s:%s:%s:%s" % (self.id,self.name,self.header,self.footer)
... |
Blockly.Blocks['FilterComparableEqual'] = {
init: function() {
this.appendDummyInput()
.appendField("FilterComparableEqual");
this.appendValueInput('valName')
.setCheck('String')
.appendField('Name:')
.appendField(new Blockly.FieldTextInput('Equ... |
import React, { PureComponent } from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import Icon from '../Icon/Icon';
// styles
import styles from './IconButton.css';
class IconButton extends PureComponent {
getIconSize() {
const { size } = this.props;
switch (size) {
... |
module.exports = {
presets: [
'@vue/app',
['@babel/preset-env', //添加 babel-preset-env 配置
{
'modules': false
}
]
],
plugins: [ // element官方教程
[
'component',
{
'libraryName': 'element-ui',
'styleLibraryName': 'theme-chalk'
}
]
... |
const equalSubstring = require('./01')
test('1', () => {
expect(equalSubstring('abcd', 'bcdf', 3)).toBe(3)
})
test('2', () => {
expect(equalSubstring('abcd', 'cdef', 3)).toBe(1)
})
test('3', () => {
expect(equalSubstring('abcd', 'acde', 0)).toBe(1)
})
test('4', () => {
expect(equalSubstring('krrgw', 'zjxss'... |
/*
A `gpii.express.router` component that uses the standard renderer to display the template found at
`that.options.templateKey`.
The handlebars context will be generated from the component itself and the rules found in
`options.rules.contextToExpose`. These are used in the same way as in the `dispatcher`, i.... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Custom binding for the tts API.
var binding = require('binding').Binding.create('tts');
var ttsNatives = requireNative('tts');
var GetNextTTSEven... |
#!/usr/bin/env python3
# Copyright 2017 Google 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
#
# Unless required by applicable law or... |
var searchData=
[
['is_5fusing_5f_228',['is_using_',['../classmercury_1_1_port_handler.html#acd0f51362140dd0773432d6cb48653ab',1,'mercury::PortHandler']]]
];
|
import response from "./response";
import moduleHelper from "./module-helper";
export default {
WXShowToast(title, icon, duration, mask, s, f, c){
wx.showToast({
title, icon, duration, mask:Boolean(mask),
...response.handleText(s,f,c)
});
},
WXHideToast(s, f, c)... |
import React, { Component } from 'react';
import { bool, string } from 'prop-types';
import { compose } from 'redux';
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
import { Field, Form as FinalForm } from 'react-final-form';
import isEqual from 'lodash/isEqual';
import classNames from ... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import cx from 'classnames'
import { actions, selectors } from 'src/custom-lists'
import extStyles from './Index.css'
import CreateListForm from './CreateListForm... |
import React from 'react';
import DestinyItem from './DestinyItem';
export default class FeaturedItems extends React.Component {
render() {
if (this.props.items) {
let items = this.props.items.map((item, i) =>
<li key={i}>
<DestinyItem item={item} />
... |
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team 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-... |
"""
ASGI config for server project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRo... |
// @flow
import { connect } from 'react-redux';
import EditContract from './EditContract';
const mapStateToProps = (state, ownProps) => {
const { objectId } = state.contract.contractList;
return {
objectId,
contractLayer: ownProps.contractLayer,
currentLayer: ownProps.currentLayer,
... |
import ensureArray from 'ensure-array';
import * as parser from 'gcode-parser';
import _ from 'lodash';
import SerialConnection from '../../lib/SerialConnection';
import EventTrigger from '../../lib/EventTrigger';
import Feeder from '../../lib/Feeder';
import Sender, { SP_TYPE_CHAR_COUNTING } from '../../lib/Sender';
i... |
/* eslint-disable import/no-extraneous-dependencies */
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: 'Gatsby Contentstack starter',
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-manifest',
options: ... |
import random
from word import words
import string
def get_valid_word(words):
word = random.choice(words) # randomly ghooses something from the list
while '-' in word or ' ' in word:
word = random.choice(words)
return word.upper()
def hangman():
word = get_valid_word(words)
... |
#! /usr/bin/env python
"""
Author: LiangLiang ZHENG
Date:
File Description
"""
import numpy as np
import matplotlib.pyplot as plt
import copy
from scipy.io import wavfile
from scipy.signal import butter, lfilter
import scipy.ndimage
# Most of the Spectrograms and Inversion are taken from: https://gist.github.com/kas... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from '../App';
import { shallow } from 'enzyme';
import PageContainer from '../containers/PageContainer';
describe('App', () => {
let wrapper;
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.... |
"""Tests for input validation functions"""
from tempfile import NamedTemporaryFile
import numpy as np
from numpy.testing import assert_array_equal
import scipy.sparse as sp
from nose.tools import assert_raises, assert_true, assert_false, assert_equal
from sklearn.utils import (array2d, as_float_array, atleast2d_or_cs... |
import collections
from types import MethodType
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.db.models.fields.files import FieldFile
from django.utils.encoding import force_text
from django.utils.functional import Promise
from elasticsearch_dsl.field import (
Boole... |
from progressivis.table.module import TableModule
from progressivis.table.table import Table
from progressivis.core.slot import SlotDescriptor
try:
from .cxx_max import Max as CxxMax
except:
CxxMax = None
import numpy as np
import logging
logger = logging.getLogger(__name__)
class Max(TableModule):
par... |
"""learning_log URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... |
import asyncio
from time import sleep
from telethon.tl import functions
from telethon.tl.types import (
ChannelParticipantsKicked,
ChatBannedRights,
UserStatusEmpty,
UserStatusLastMonth,
UserStatusLastWeek,
UserStatusOffline,
UserStatusOnline,
UserStatusRecently,
)
from . ... |
'use strict'
/*
* Create a `add` function that takes 2 number arguments and add them
*
* @notions Primitive and Operators, Functions
*/
// Your code :
function add (number1, number2){
return number1 + number2;
}
//* Begin of tests
const assert = require('assert')
const rand = Math.random()
assert.strictEqual... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/8/2 21:33
# @Author : Raymound luo
# @Mail : luolinhao1998@gmail.com
# @File : CGNN.py
# @Software: PyCharm
# @Describe:
import torch
import torch.nn as nn
import dgl.function as fn
import json
import torch.nn.functional as F
class ContextGNN(nn.... |
import torch, argparse, sys
def save_likelihoods(model_path, data_dir_prefix='./data/snli_1.0/cl_snli', output_file=None):
pass
def parse_cli():
p = argparse.ArgumentParser(description='Save likelihoods for a given model and dataset')
p.set_defaults(subcmd_fn=save_likelihoods)
p.add_argument('--model-p... |
/**
* Actions bundle.
*
* @type {Object}
*/
const Action = {
clear: require('./clear'),
show: require('./show'),
hide: require('./hide'),
upgrade: require('./upgrade'),
downgrade: require('./downgrade'),
activate: require('./activate')
};
module.exports = Action;
|
module.exports = {
verbose: true,
testEnvironment: 'jsdom',
moduleFileExtensions: ['js', 'vue'],
transform: {
'^.+\\.vue$': 'vue-jest',
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
},
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
};
|
// Copyright 2021, University of Colorado Boulder
// Auto-generated by modulifyFontAwesomeIcons.js, please do not modify directly.
import Shape from '../../../../kite/js/Shape.js';
import jogetString from './jogetString.js';
export default new Shape( jogetString ); |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Written by Kyle Carhart.
<<<<<<< HEAD
Email: kcarhart@email.sc.edu
=======
>>>>>>> 13fbc54d639a4a028fed58f3e5d1adff32f3b3ee
Description: Takes cases that have been resolved in The Hive within a specified
interval and imports them to LimeSurvey as new responses. Us... |
import json
from django.urls import reverse
from common.code import *
from .models import ExtendedUser as User
from rest_framework.test import APITestCase
class AccountCreateTests(APITestCase):
def setUp(self):
self.url = reverse('account-register')
def tearDown(self):
response = self.client.... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[83],{
/***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js":
/*!***************************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
\********************************************... |
// custom typefaces
import "typeface-montserrat"
import "typeface-merriweather"
// normalize CSS across browsers
import "./src/css/normalize.css"
// custom CSS styles
import "./src/css/main.scss"
|
module.exports = {
context: [{name: 'bar', value: 43}, 'lodash'],
prompt: '[TEST] $',
banner: () => 'TEST',
};
|
from Default.settings import *
from mappings import * |
import * as auth from './auth/actions'
import { actions as form } from 'redux-form'
import { routerActions as router } from 'connected-react-router'
export {
auth,
form,
router
}
|
const path = require('path');
module.exports = {
entry: {
app: ['babel-polyfill', './src/app.js'],
},
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
},
mode: 'development',
watch: true,
watchOptions: {
aggregateTimeout: 100,
},
module: {
rules: [
... |
const Discord = require('discord.js');
const client = new Discord.Client();
const ayarlar = require('./ayarlar.json');
const chalk = require('chalk');
const moment = require('moment');
var Jimp = require('jimp');
const { Client, Util } = require('discord.js');
const weather = require('weather-js')
const fs = require('f... |
import sys
# Find jVMC package
sys.path.append(sys.path[0]+"/..")
import unittest
import jax
from jax.config import config
config.update("jax_enable_x64", True)
import jax.random as random
import jax.numpy as jnp
import numpy as np
from scipy.interpolate import interp1d
import jVMC
import jVMC.global_defs as globa... |
export const messages = {
title: 'Match management...',
cancel: 'Cancel',
start: 'Start',
pause: 'Pause',
resume: 'Resume',
endPeriod: 'End',
startPeriod: 'Start',
endGame: 'End game'
};
|
// import models
const Product = require('./Product');
const Category = require('./Category');
const Tag = require('./Tag');
const ProductTag = require('./ProductTag');
// Products belongsTo Category
Product.belongsTo(Category, {
foreignKey: 'category_id',
onDelete: 'CASCADE'
})
// Categories have many Products
Ca... |
# Copyright 2021 The TensorFlow 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... |
class PlayerArrow {
constructor(x, y, width, height, archerAngle) {
var options = {
isStatic: true,
density: 0.1
};
this.width = width;
this.height = height;
this.body = Bodies.rectangle(x, y, this.width, this.height, options);
this.image = loadImage("assets/arrow.png");
this.a... |
'use strict';
const objectFromEntries = require('object.fromentries');
objectFromEntries.shim();
const { entries, fromEntries, keys } = Object;
const APIGATEWAY_INTEGRATION_TYPE_HTTP_PROXY = 'HTTP_PROXY';
const APIGATEWAY_ROOT_ID = 'RootResourceId';
const APIGATEWAY_TYPE_METHOD = 'AWS::ApiGateway::Method';
const AP... |
'use strict';
var _ = require('lodash');
var parse = require('url-parse');
var glimpse = require('glimpse');
var _strategies = [];
var getContentTypeCategory = (function() {
var listing = {
'text/html': {'document': true, 'highlight': 'xml'},
'text/plain': {'do... |
const localResolve = require('@haensl/rollup-plugin-local-resolve');
module.exports = {
input: './index.js',
output: {
file: 'build/test-app.cjs.js',
format: 'cjs',
name: 'test-app',
indent: false
},
plugins: [
localResolve()
]
};
|
import { layout as templateLayout, tagName } from '@ember-decorators/component';
import { computed } from '@ember/object';
import Component from '@ember/component';
import ComponentChild from 'ember-bootstrap/mixins/component-child';
import layout from 'ember-bootstrap/templates/components/bs-carousel/slide';
import { ... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
export const ADD_ALL_GENRES = 'ADD_ALL_GENRES';
export const ADD_RESULTS = 'ADD_RESULTS';
export const TOGGLE_FAVORITE = 'TOGGLE_FAVORITE';
export const ADD_DETAILS_ID = 'ADD_DETAILS_ID';
export const UPDATE = 'UPDATE';
export const RESET_FILTERS = 'RESET_FILTERS';
export const RESET_OPTIONS = 'RESET_OPTIONS';
export c... |
const express = require("express");
const mongoose = require("mongoose");
const port = process.env.PORT || 5000;
const app = express();
mongoose.connect(
"mongodb+srv://BlogUser:jAVhPqR9YORwjwXW@cluster0-fc8do.gcp.mongodb.net/BlogDB?retryWrites=true&w=majority",
{
useNewUrlParser: true,
useCreateIndex: tru... |
# coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
int_or_none,
js_to_json,
parse_duration,
)
class NTVDeIE(InfoExtractor):
IE_NAME = 'n-tv.de'
_VALID_URL = r'https?://(?:www\.)?n-tv\.de/m... |
import Vue from 'vue'
import App from './App.vue'
import router from './router'
Vue.config.productionTip = false
Vue.config.devtools = true
new Vue({
store,
router,
render: h => h(App),
}).$mount('#app')
|
const express = require('express')
const cors = require('cors')
const bodyParser = require('body-parser')
const morgan = require('morgan')
require('dotenv').config()
const {
screenResponse, apiCallResponse,
navigate, apiCall, copyToClipboard, showToast,
Screen, Text, Button, Image
} = require('@chatium/json')
... |
// Copyright 2018 Twitter, Inc.
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
function show(type)
{
count = 0;
for (var key in methods) {
var row = document.getElementById(key);
if ((methods[key] & type) != 0) {
row.style.display = ... |
# problem 27
# Project Euler
import math
__author__ = 'Libao Jin'
__date__ = 'July 18, 2015'
def isPrime(n):
if n < 0:
return None
if n == 1:
return None
elif n > 1 and n <= 3:
return True
UPPER_BOUND = math.sqrt(n)
i = 2
while i <= UPPER_BOUND:
if n % i != 0:
i += 1
else:
return False
return ... |
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
import React from 'react';
import styled from 'styled-components';
export var Functions = s... |
(function() {
'use strict';
angular
.module('uniConnectApp')
.config(stateConfig);
stateConfig.$inject = ['$stateProvider'];
function stateConfig($stateProvider) {
$stateProvider.state('jhi-health', {
parent: 'admin',
url: '/health',
data: {... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var key = require('interface-datastore/key');
var libp2pRecord = require('libp2p-record');
var errCode = require('err-code');
var debug = require('debug');
var toString = require('uint8arrays/to-string');
function _interopDefaultLegacy (e) ... |
;if (!check)
var check={};
check.html5 = html5();
/**
* 检测是否支持html5
* @return {[type]} [description]
*/
function html5() {
var rs = false;
return rs;
//if (typeof(Worker) !== "undefined")
// rs = true;
//return rs;
}
jQuery(document).ready(function(){
var strPath=window.document.location.pathnam... |
//Client-side Javascript code for handling random numbers
$(document).ready(function(){
//connect to the socket server.
var socket = io.connect('http://' + document.domain + ':' + location.port + '/test');
var numbers_received = [];
//receive details from server
socket.on('newnumber', function(msg)... |
import React from 'react';
import ProfileHeader from './ProfileHeader/ProfileHeader'
import ProfileContactInfo from './ProfileContactInfo/ProfileContactInfo'
import ProfileSocialLinks from './ProfileSocialLinks/ProfileSocialLinks'
import ProfileResumeFormatLinks from './ProfileResumeFormatLinks/ProfileResumeFormatLink... |
#!/usr/bin/env python2
# Copyright (c) 2017-present, Facebook, 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
#
# Unless required by ... |
# Copyright 2019 The TensorFlow 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... |
# Generated by Django 2.2.13 on 2020-06-12 16:04
from django.db import migrations, models
def backfill_old_banned_users(apps, schema_editor):
# We already attempted this:
# https://github.com/mozilla/addons-server/blob/2019.08.15/src/olympia/migrations/1116-add-banned-field.sql # NOQA
# but it only backf... |
"""
Labs DS Data Engineer Role
- Database Interface
- Visualization Interface
"""
|
'use strict';
/* global bootstrapModeler, inject */
var modelingModule = require('../../../../../lib/features/modeling'),
coreModule = require('../../../../../lib/core');
describe('features/modeling - #PlanItemDefinitionUpdater', function() {
var testModules = [ coreModule, modelingModule ];
describe('rem... |
// COPYRIGHT © 2021 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
from typing import Union, List
from torch import Tensor
import torch.nn as nn
import torch.nn.functional as F
from extorch.nn import ResNetBasicBlock, ResNetBottleneckBlock, ConvBNReLU
class CIFARResNet(nn.Module):
def __init__(self, block: Union[ResNetBasicBlock, ResNetBottleneckBlock],
num_blocks... |
import json as _json
import logging as _logging
import os as _os
import os.path as _path
import sys as _sys
import rsa as _rsa
import fooster.web as _web
# address to listen on
addr = ('', 8000)
# directory to store information
dir = '/var/lib/mimameid'
# log locations
log = '/var/log/mimameid/mimameid.log'
http_... |
var React = require('react');
var ConfirmBattle = require('../components/ConfirmBattle');
var githubHelpers = require('../utils/githubHelpers');
var ConfirmBattleContainer = React.createClass({
contextTypes:{
router: React.PropTypes.object.isRequired
},
getInitialState: function () {
return... |
require('../modules/web.immediate');
module.exports = require('../modules/$').core; |
const runTask = require('../gulpfile');
const program = require('commander');
program.on('--help', () => {
console.log(' Usage:'.to.bold.blue.color);
console.log();
});
program.parse(process.argv);
const taskType = program.args[0];
console.log(`FeiUI begin ${taskType}!`);
runTask(taskType);
|
'use strict';
var bcrypt = require('bcrypt-nodejs'),
Server = require('socket.io'),
express = require('express'),
http = require('http'),
path = require('path'),
mongo = require('mongojs');
var util = require('util');
var session = require('./session');
var _ = require('lodash');
var cors = requir... |
// Copyright 2019 Intel Corporation and Smart-Edge.com, 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
//
//... |
import * as tf from '@tensorflow/tfjs';
import { makeStorage } from '../util';
import { kInputPlanes } from '../neural/network';
import NetworkFactory from '../neural/factory';
import { TrainingDataWriter } from '../neural/writer';
import { saveWeights } from '../neural/loader';
import BitIterator from '../neural/bit... |
'use strict';
const artists = ['Adrian Belew', 'Baba Lou', 'Bachman-Turner Overdrive', 'Banarama']
const artistAlbums = {
'Adrian Belew': ['Lone Rhino'],
'Baba Lou': ['Baba Lou at Bob\'s'],
'Bachman-Turner Overdrive': ['Bachman-Turner Overdrive II'],
'Bananarama': ['Deep Sea Skiving']
};
const albumTracks = {
... |
/**
* History.js Core
* @author Benjamin Arthur Lupton <contact@balupton.com>
* @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
(function(window,undefined){
"use strict";
// ---------------------------------------------... |
require('dotenv').config();
const express = require('express');
const router = express.Router();
const { check } = require('express-validator');
const { validate } = require('../middleware/validate');
const { checkAuth } = require('../middleware/auth');
const { authenticateUser, getMe } = require('../controllers/auth')... |
module.exports={D:{"4":0.007057,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0.035285,"23":0.021171,"24":0.007057,"25":0.007057,"26":0,"27":0.021171,"28":0,"29":0.007057,"30":0.014114,"31":0.007057,"32":0.007057,"33":0.014114,"34":0.014114,"35":0... |
#
# Instant Python
# $Id: tkColorChooser.py,v 1.2 2002/04/12 09:44:07 sof34 Exp $
#
# tk common colour chooser dialogue
#
# this module provides an interface to the native color dialogue
# available in Tk 4.2 and newer.
#
# written by Fredrik Lundh, May 1997
#
# fixed initialcolor handling in August 1998
#
#
# options... |
define("0d910c1c-13b9-4e1c-9aa4-b008c5e42d7d_16.8.5", [], function() { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if... |
/**
* A simple slot extension, built upon the components service.
*
* @type {Object}
*/
const ComponentWithSlots = {
slotFill(slotProps, DefaultFill) {
const {
type,
context,
...props
} = slotProps;
const Fill = this.components.getComponent(type, context) || DefaultFill;
if ... |
const interpreter = require("../interpreter")
module.exports = async (client, channel, user) => {
for (const command of client.typing_commands.array()) {
const data = {
author: user,
member: channel.type === "dm" ? undefined : await channel.guild.members.fetch(user.id).catch(err ... |
import React from 'react';
import './DashboardHome.css';
const DashboardHome = () => {
return (
<div className="dashboardHome">
<img src="https://i.ibb.co/vvpCk62/site-stats-concept-illustration-114360-1509.jpg" alt="" />
</div>
);
};
export default DashboardHome; |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequi... |
import 'regenerator-runtime/runtime'
import { getTransactions } from "../../../../app/actions/ClientActions";
import { getTransactions as walletGetTransactions } from "../../../../app/wallet/service";
import { mockedTransactions, unminedMockedTransactions } from "../get-transactions.data";
jest.mock("../../../../app/w... |
from pathlib import Path
import click
import logging
import pandas as pd
import SimpleITK as sitk
from src.evaluation.scores import dice
@click.command()
@click.argument('ground_truth_folder',
type=click.Path(exists=True),
default='data/gt')
@click.argument('prediction_folder',
... |
// MENU SHOW
const navMenu = document.getElementById('nav-menu'),
navToggle = document.getElementById('nav-toggle'),
navClose = document.getElementById('nav-close')
if(navToggle){
navToggle.addEventListener('click',() => {
navMenu.classList.add('show-menu')
})
}
if(navClose){
navClose.... |
import React, {Component} from 'react'
import styled from 'styled-components'
import Button from 'react-bootstrap/Button'
import InputGroup from 'react-bootstrap/InputGroup'
import FormControl from 'react-bootstrap/FormControl'
import ButtonToolbar from 'react-bootstrap/ButtonToolbar'
import ToggleButton from 'react-b... |
var searchData=
[
['name',['name',['../structcxxopts_1_1_help_group_details.html#abc389252a862724a1404d3c22fda6fc2',1,'cxxopts::HelpGroupDetails']]],
['name_5f',['name_',['../classbnssassembler_1_1_symbol.html#aa4d48274d378011c7eddc09fd862878d',1,'bnssassembler::Symbol::name_()'],['../classbnssassembler_1_1_symbol_... |
var step = '<font class="fontSize">'
+ '<p>Test Purpose: </p>'
+ '<p>Verifies the device is able to handle pageVisible event when app page hidden/display.</p>'
+ '<p>Expected Result: </p>'
+ '<p>Test passes if the visibilitystate/hidden attribute is set to hidden/true for hid... |