text stringlengths 3 1.05M |
|---|
module.exports = {
...require('@smartive/prettier-config'),
}
|
from datetime import datetime
from typing import Any
import pytest
from guardpost import Identity
from blacksheep.messages import Request, Response
from blacksheep.server.authentication.cookie import CookieAuthentication
from blacksheep.server.dataprotection import generate_secret
def get_auth_cookie(handler: Cooki... |
module.exports = (on) => {
}
|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------------... |
import { nameMap } from '@/fields/mapFileName'
export default {
data() {
return {
nameMap
}
}
}
|
/*!
* Italian translation for the "it-IT" and "it" language codes.
* Luca Longo <l.longo@ambita.it>
*/
$.fn.ajaxSelectPicker.locale['it-IT'] = {
/**
* @member $.fn.ajaxSelectPicker.locale
* @cfg {String} currentlySelected = 'Currently Selected'
* @markdown
* The text to use for the label of t... |
((definition) => {
if (typeof define === "function" && define.amd) {
define([
"../app-service/vocabulary",
"../app-service/jsonld/jsonld",
"./template-loader",
"./template-expand"
], definition);
}
})((vocabulary, jsonld, loader, expander) => {
const LP = vocabulary.LP;
const SK... |
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
/** @const */
var __React = {};
/**
* @constructor
* @struct
*/
__React.X = function() {};
/** @const */
var importEquals = {};
importEquals.React = __React;
/** @const */
var React = __React;
/* Skipping problematic... |
leap = Runtime.start("leap","LeapMotion")
leap.addLeapDataListener(python)
def onLeapData(data):
print (data.rightHand.index)
leap.startTracking()
|
import os
from setuptools import setup
try:
import jsonfield
_HAD_JSONFIELD = True
except ImportError:
_HAD_JSONFIELD = False
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.jo... |
angular.module('app.controllers')
.controller('ProjectMemberRemoveController',['$scope','$location','$routeParams','ProjectMember',
function($scope,$location,$routeParams,ProjectMember){
$scope.projectMember = ProjectMember.get({
id: $routeParams.id, idProjectMember: $routeParams... |
NunjucksIntl.__addLocaleData({"locale":"hi","pluralRuleFunction":function(n,ord){if(ord)return n==1?"one":n==2||n==3?"two":n==4?"few":n==6?"many":"other";return n>=0&&n<=1?"one":"other"},"fields":{"year":{"displayName":"वर्ष","relative":{"0":"इस वर्ष","1":"अगला वर्ष","-1":"पिछला वर्ष"},"relativeTime":{"future":{"one":"... |
"""Per-prefix data, mapping each prefix to a dict of locale:name.
Auto-generated file, do not edit by hand.
"""
from ..util import u
# Copyright (C) 2011-2018 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... |
(function () {
var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)}
// Used when there is no 'main' module.
// The name is probably (hopefully) unique so minification removes for releases.
var register_3795 = function (id) {
var module = dem(id);
var fragments = id.split('.');... |
// Função construtora que ira permitir o processamento dos textos
var speechConstructEngine = function(){
// Variaveis de escopo da função
var lastFrameSeconds;
var currentFrameSeconds;
var minTick;
var lastDomObj;
var lastCssProp;
lastFrameSeconds = new Date().getTime();
minTick = 700;
// Array ... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
describe('Host: <App />', () => {
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});
});
|
var Hapi = require("hapi");
var lout = require("lout");
var pack = new Hapi.Pack();
var s1 = pack.server(8080, "0.0.0.0");
s1.route({
path: "/server/{id}",
method: "GET",
handler: function(request, reply) {
reply(request.params.id);
}
});
var s2 = pack.server(8081, "0.0.0.0");
pack.register(... |
// pages/personal/personal.js
import Notify from '../dist/notify/notify'
import { parseTime } from '../../utils/parseTime.js'
Page({
data: {
showFeedback: false,
showFeedbackList: false,
stars: 5,
message: '',
fetchUserInfo: {},
feedbackList: [],
isEscape: getApp().globalData.isEscape,
... |
"""The xbox integration."""
from __future__ import annotations
import asyncio
from contextlib import suppress
from dataclasses import dataclass
from datetime import timedelta
import logging
import voluptuous as vol
from xbox.webapi.api.client import XboxLiveClient
from xbox.webapi.api.provider.catalog.const import SY... |
const router = require('express').Router()
const { response } = require('express')
const log = require('log4js').getLogger("users");
const request = require('request')
router.get('/locationverifier/initialetters/:initals', async(req, res) => {
var initailsLetters = req.params.initals
try {
if (!initail... |
import queue
def printLevels(graph, V, x):
level = [None] * V
marked = [False] * V
que = queue.Queue()
que.put(x)
level[x] = 0
marked[x] = True
while (not que.empty()):
x = que.get()
for i in range(len(graph[x])):
b = graph[x][i]
if (not marked[b]):
... |
/* global QUnit */
sap.ui.define([
"sap/ui/fl/apply/_internal/connectors/ObjectStorageUtils",
"sap/ui/fl/write/_internal/connectors/JsObjectConnector",
"sap/ui/fl/write/_internal/connectors/SessionStorageConnector",
"sap/ui/fl/initial/_internal/StorageUtils",
"sap/ui/fl/Layer",
"sap/ui/thirdparty/jquery"
], func... |
import * as React from 'react';
import { styled } from '@mui/material/styles';
import { DIALOG_WIDTH } from '../constants/dimensions';
import { WrapperVariantContext, IsStaticVariantContext } from './WrapperVariantContext';
import { jsx as _jsx } from "react/jsx-runtime";
var StaticWrapperRoot = styled('div', {
skipS... |
"""
Python Script Wrapper for Windows
=================================
setuptools includes wrappers for Python scripts that allows them to be
executed like regular windows programs. There are 2 wrappers, one
for command-line programs, cli.exe, and one for graphical programs,
gui.exe. These programs are almost ident... |
//lilac theme
export default {
primary: "#C7B0C7",
secondary: "#405B8A",
white: "#FFFFFF",
linkText: "#9C94B6",
overlay: "#EBDFDF",
shadow: "#30303033",
error: "#FF0000B2",
needHelp: "#9C94B6",
};
|
module.exports = {
name: "sockH3lix",
alias: "sockHelix",
priority: 0,
info: {
website: {
name: "github.com/SongXiaoXi/sockH3lix",
url: "https://github.com/SongXiaoXi/sockH3lix",
external: true
},
guide: [
{
name: "Installing sockH3lix",
url: "/installing-sock... |
import os
import json
from PIL import Image
import numpy as np
import cv2
import sys
data_path = 'data/RedLights2011_Medium'
preds_path = 'data/hw02_preds'
anot_path = 'data/hw02_annotations'
with open(os.path.join(preds_path,'preds_train.json'),'r') as f:
pred_boxes = json.load(f)
with open(os.path.join(anot_pa... |
from setuptools import setup
from setuptools.command.install import install as _install
from os import system
# add post-install command
class install(_install):
def run(self):
_install.run(self)
system("pre-commit install")
def main():
setup(
name="taloncommunity",
version="... |
import os
import shutil
from bentoml.exceptions import MissingDependencyException
from bentoml.service.artifacts import BentoServiceArtifact
from bentoml.service.env import BentoServiceEnv
class H2oModelArtifact(BentoServiceArtifact):
"""
Artifact class for saving and loading h2o models using h2o.save_model ... |
from fastapi import APIRouter, Depends, Request
from . import auth
from .models import ssj_typeform_start_a_school as ssj_typeform_start_a_school_models
from .utils.utils import get_airtable_client
OPENAPI_TAG_METADATA = {
"name": "SSJ Typeforms",
"description": "SSJ Typeform data in Airtable (mostly for stor... |
import re
class Hashtable:
def __init__(self, size):
self.size = size
self.map = [None]*size
def hash(self, key):
index = 0
for i in key:
idx = ord(i)
index += idx
temp = index * 7
hash = temp % self.size
return hash
... |
(this.webpackJsonpmelectmon=this.webpackJsonpmelectmon||[]).push([[34],{469:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return s})),n.d(t,"language",(function(){return o}));var s={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"... |
class CommandFailed(Exception):
pass
class UnsupportedOSType(Exception):
pass
class CephHealthException(Exception):
pass
class UnexpectedBehaviour(Exception):
pass
class ClassCreationException(Exception):
pass
class ResourceLeftoversException(Exception):
pass
class TimeoutExpiredErro... |
import asyncio
import signal
import subprocess
import sys
import time
import uvloop
from uvloop import _testbase as tb
DELAY = 0.1
class _TestSignal:
NEW_LOOP = None
@tb.silence_long_exec_warning()
def test_signals_sigint_pycode_stop(self):
async def runner():
PROG = R"""\
import as... |
import React, { useState } from 'react'
import { Button, Form, Jumbotron } from 'react-bootstrap'
import { Link } from 'react-router-dom';
import './starting.css';
export default function Starting() {
const [acceptCondition, setAcceptCondition] = useState(false);
return (
<>
<Jumbotron>
<h1>Welco... |
"""
Pay to delegated puzzle
In this puzzle program, the solution must be a signed delegated puzzle, along with
its (unsigned) solution. The delegated puzzle is executed, passing in the solution.
This obviously could be done recursively, arbitrarily deep (as long as the maximum
cost is not exceeded).
If you want to sp... |
/*
* Square Simple Server
* A simple express server setup for front-end framework studies,
* alternative to using python's simple server.
*
* Build Date / Update Date: Dec 12th 2015
*/
'use strict';
const WWW = require('express').Router();
WWW.get('/', (request, response) => {
return response.send('.... |
'use strict';
const WASM_URL = '../../../wasm.wasm';
var wasm;
function updateResult() {
wasm.exports.update();
}
function init() {
document.querySelector('#a').oninput = updateResult;
document.querySelector('#b').oninput = updateResult;
const go = new Go();
if ('instantiateStreaming' in WebAssembly) {
... |
export const scrollTo = (element, to, duration) => {
if (duration <= 0) return;
//最小间隔时间ms
const everyTime = 10;
const difference = to - element.scrollTop; //滚动的距离
const perTick = (difference / duration) * everyTime; //单位间隔时间移动的距离
setTimeout(() => {
element.scrollTop += perTick;
if (element.scrollTo... |
"""Unit tests for pyatv.protocols.dmap."""
from ipaddress import ip_address
from deepdiff import DeepDiff
import pytest
from pyatv.const import OperatingSystem
from pyatv.core import mdns
from pyatv.interface import DeviceInfo
from pyatv.protocols.dmap import device_info, scan
HOMESHARING_SERVICE = "_appletv-v2._tcp... |
# coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... |
/*
* Copyright (c) 2015 - present Adobe Systems Incorporated. All rights reserved.
*
* 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
* ... |
/****************************************************************************
* Copyright 2018 EPAM Systems
*
* 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... |
"""
html_doc
===============
Autogenerated DPF operator classes.
"""
from warnings import warn
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import _Outputs
from ansys.dpf.core.operators.specification import PinSpecification, Specification
... |
function main() {
const v4 = [13.37,13.37,13.37,13.37,13.37];
const v6 = [1337,1337,1337,1337];
const v7 = [v6,1,13.37];
const v8 = {max:1337,MIN_VALUE:"undefined",sqrt:1337,charAt:1,reverse:v6,entries:v4};
const v9 = {entries:1,toStringTag:1,add:1,asin:v8,reject:13.37,sin:13.37,split:1,isNaN:1337,getOwnPropertyDescrip... |
import logging
import time
from datetime import datetime
from json import dumps
from typing import List, Optional, Union
from urllib.parse import ParseResult, parse_qsl, unquote, urlencode, urljoin, urlparse
import datadog
from django.contrib.sitemaps.views import sitemap, x_robots_tag
from django.core.paginator impor... |
import Router from 'vue-router'
import Home from './views/Home.vue'
export default new Router({
mode: 'history',
//base: process.env.BASE_URL,
routes: [
{
path: '/app2',
name: 'home',
component: Home
},
{
path: '/app2/about',
name: 'about',
// route level code-spli... |
"""Defines a polygon."""
import numpy as np
import rowan
from ..bentley_ottmann import poly_point_isect
from ..polytri import polytri
from .base_classes import Shape2D
from .circle import Circle
from .utils import _generate_ax, rotate_order2_tensor, translate_inertia_tensor
try:
import miniball
MINIBALL = T... |
import imp
import pkg_resources
import os
import sys
import datetime
import gc
import ctypes
have_gitpython = False
try:
from git import Repo, InvalidGitRepositoryError
have_gitpython = True
except ImportError:
print("If you install gitpython (`pip install gitpython`), I can give you git info too!")
angr_... |
"""
Solution Authored by : zualemo
Question Link: https://leetcode.com/problems/maximum-length-of-repeated-subarray/
Given two integer arrays nums1 and nums2, return the maximum
length of a subarray that appears in both arrays.
Input: nums1 = [1,2,3,2,1], nums2 = [3,2,1,4,7]
Output: 3
Explanation: The repeated subar... |
// NOTE: comments focus mainly on CreateJS logic, not game mechanics.
( function () {
var c = createjs;
var Game = function ( view, width, height, scale ) {
this.view = view; // the SpriteStage instance to draw into
this.view.mouseChildren = false; // nothing in the game view requires mouse interaction
... |
// Data back Explorer
// import Freezeframe from 'freezeframe';
// prepare docs
var DA_doc = "./assets/dist/js/DA_collection.json";
var card_doc = "./assets/dist/js/AIE_card_collection.json";
var DP_doc = "./assets/dist/js/DP_collection.json";
$(document).ready(function() {
loadData(DA_doc, DP_doc, card_doc);
... |
const electron = require('electron')
// require('electron-reload')(__dirname, {
// electron: electron
// })
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow
const path = require('path')
const url = require('url')... |
#! /usr/bin/env node
var pkg = require('./package');
var io = require('./lib/interface');
global.rpglib = {
io: io,
pkg: pkg
};
console.log('Welcome to Idle RPG v' + pkg.version);
console.log('');
var main = io.create(require('./assets/menus'));
console.log(main.name);
main.run()
.then(function(){
... |
import { customAlphabet } from 'nanoid';
import path from 'path';
const nanoid = customAlphabet('abcdefgABCDEFG', 6);
export default (filePath) => {
const filename = path.basename(filePath);
const dirname = path.dirname(filePath);
return path.join(dirname, nanoid() + filename);
};
|
/*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/resize-constrain/resize-constrain.js']) {
__coverage__['build/resize-constrain/resi... |
define({
"commonMedia": {
"mediaSelector": {
"lblSelect1": "Mediji",
"lblSelect2": "Vsebina",
"lblMap": "Karta",
"lblImage": "Slika",
"lblVideo": "Video",
"lblExternal": "Spletna stran",
"lblUpload": "Naloži",
"lblLink": "Povezava",
"disabled": "Administrator ... |
var webpack = require("webpack");
var WebpackDevServer = require("webpack-dev-server");
var config = require("../webpack.config.js");
console.log(config.entry);
// config.entry.app.unshift("webpack-dev-server/client?http://localhost:8080/");
var compiler = webpack(config);
var server = new WebpackDevServer(compiler, {c... |
#!/usr/bin/env python3
# Copyright (c) 2015-2016 The manna Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test block processing.
This reimplements tests from the mannaj/FullBlockTestGenerator used
by the pull-t... |
"""Defines the Action for the continuous light-dark domain;
Origin: Belief space planning assuming maximum likelihood observations
Action space:
:math:`U\subseteq\mathbb{R}^2`. Quote from the paper: "The robot is
modeled as a first-order system such that the robot velocity is determined
by the c... |
from __future__ import print_function
import argparse
import mdtraj as md
import multiprocessing as mp
import AdaptivePELE.analysis.trajectory_processing as tp
def parseArguments():
desc = "Program that extracts residue coordinates for a posterior MSM analysis."
parser = argparse.ArgumentParser(description=de... |
const path = require('path')
require('dotenv').config({
silent: true,
path: process.env.NODE_ENV === 'production' ? '.prod.env' : '.dev.env'
})
module.exports = {
build: {
extractCSS: true,
vendor: ['vuetify', 'jwt-decode', 'axios']
},
buildDir: 'dist/client',
cache: true,
css: [
{ src: 'vue... |
const Sequelize = require('sequelize');
const configuration = require('../config/database');
const _ = require('lodash');
const glob = require("glob");
const path = require( 'path' );
const sequelize = require('./sequelize');
var db = { sequelize : sequelize, Sequelize : Sequelize };
glob.sync(`./models/*.model.js`).f... |
import Body from './Body.js';
export default Body; |
/*
* Haptics.js - http://hapticsjs.org/
* Copyright (c) Shantanu Bala 2014
* Direct questions to shantanu@sbala.org
* Haptics.js can be freely distributed under the MIT License.
*/
"use strict";
(function (global) {
var Haptics = {},
enabled,
currentRecording,
navigatorVibrate,
... |
/* eslint-disable no-unused-vars */
'use strict';
let form = document.getElementById('form');
let table = document.getElementById('table');
Employee.all = [];
gettingItems();
function Employee(name, email, department, salary) {
this.name = name;
this.email = email;
this.department = department;
this.salary ... |
import os
import time
import argparse
import multiprocessing
import numpy as np
import matplotlib.pyplot as plt
from cffi import FFI
from multiprocessing import Pool
from joblib import Parallel, delayed
from PIL import Image
parser = argparse.ArgumentParser(description='Rust vs. Python Image Cropping Bench')
parser.ad... |
module["exports"] = [
"Achim",
"Adam",
"Adelin",
"Adonis",
"Adrian",
"Adi",
"Agnos",
"Albert",
"Alex",
"Alexandru",
"Alexe",
"Aleodor",
"Alin",
"Alistar",
"Amedeu",
"Amza",
"Anatolie",
"Andrei",
"Angel",
"Anghel",
"Antim",
"Anton",
"Antonie",
"Antoniu",
"Arian",
"Aris... |
/*!
Bootstrap integration for DataTables' Buttons
©2016 SpryMedia Ltd - datatables.net/license
*/
(function(c) { "function" === typeof define && define.amd ? define(["jquery", "datatables.net-bs4", "datatables.net-buttons"], function(a) { return c(a, window, document) }) : "object" === typeof exports ? module... |
import camelize from './camelize';
export default name =>
name.includes('_')
? camelize(name.toLowerCase().replace(/_/g, ' '))
.split(' ')
.join('')
: camelize(name)
.split(' ')
.join('');
|
/**
* @license
* Copyright 2021 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 requir... |
define(function(require){
var d = require('./d')
console.log('I am C')
})
|
const $loginForm = $('#formulaire');
const $login = $('#login');
const $passe = $('#passe');
const $submitBtn = $('#valider');
var testOk = false;
var verify = function ($inputs) {
var allDone = 0;
$inputs.each(function (key, input) {
$(input).on('focusout', function (event) {
if ($(inp... |
''' Routely '''
import math
import copy
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from matplotlib.ticker import MultipleLocator
from scipy.interpolate import interp1d
class Route:
"""
Create a Route.
Args:
x (array-like) : List or array of x-coordinates of the rout... |
'use strict'
const swaggerPaths = module.exports = { }
const jsonApi = require('../../')
swaggerPaths.getResourceDefinitions = () => {
const resourceDefinitions = { }
for (const resource in jsonApi._resources) {
resourceDefinitions[resource] = swaggerPaths._getResourceDefinition(jsonApi._resources[resource])
... |
(function(d){d['ro']=Object.assign(d['ro']||{},{a:"Nu pot încărca fișierul:",b:"Îngroșat",c:"Oblic",d:"Align left",e:"Align right",f:"Align center",g:"Justify",h:"Text alignment",i:"Bloc citat",j:"Insert image or file",k:"widget imagine",l:"Alege titlu rubrică",m:"Titlu rubrică",n:"Introdu titlul descriptiv al imaginii... |
import React from 'react';
import "./Post.css";
import { Avatar } from "@material-ui/core";
import VerifiedUserIcon from "@material-ui/icons/VerifiedUser"
import ChatBubbleOutlineIcon from "@material-ui/icons/ChatBubbleOutline"
import RepeatIcon from "@material-ui/icons/Repeat"
import FavoriteBorderIcon from "@material... |
from django import forms
from django.contrib.auth.models import User
from django.forms import Textarea
from set_app import models
from .widgets import BootstrapDateTimePickerInput
# from jalali_date.fields import JalaliDateField, SplitJalaliDateTimeField
# from jalali_date.widgets import AdminJalaliDateWidget, AdminS... |
import axios from 'axios';
const db = axios.create({
baseURL: 'http://localhost:8000/',
headers: {'Authorization': localStorage.getItem('token')}
});
export default db; |
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, "");
}
String.prototype.ltrim = function () {
return this.replace(/^\s+/g, "");
}
String.prototype.rtrim = function () {
return this.replace(/\s+$/g, "");
}
$.ajaxSetup({
headers: {'X-CSRF-Token': $('meta[name=_token]').attr('conte... |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
import {
useEffect, useLayoutEffect, useRef, useCallback,
} from 'react';
import invariant from 'tiny-invariant';
import memoize from 'memoize-one';
import { maxScrollTop } from './util';
// eslint-disable-next-line no-param-reassign
const defaultRunScroll = memoize((domRef) => (offset) => { domRef.current.scrollTop... |
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: [
'@typescript-eslint',
'@typescript-eslint/tslint'
],
extends: [
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
ecmaVersion: 2018, // Allows for the par... |
"""
Cameron, M. J., Tran, D. T., Abboud, J., Newton,
E. K., Rashidian, H., & Dupuis, J. Y. (2018).
Prospective external validation of three preoperative
risk scores for prediction of new onset atrial
fibrillation after cardiac surgery. Anesthesia &
Analgesia, 126(1), 33-38.
"""
#Author: Eduardo Valverde
... |
#!/usr/bin/env python3
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2015 Thomas Voegtlin
#
# 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 withou... |
const Command = require('../../structures/Command');
module.exports = class MemberLogCommand extends Command {
constructor(client) {
super(client, {
name: 'member-channel',
group: 'settings',
memberName: 'member-channel',
description: 'Sets the channel for th... |
// Registration Form View - used to register new user with web service
//
Ext.define('Ma.view.RegistrationFormView', {
extend: 'Ext.Container',
xtype: 'registrationformview',
config: {
title: 'Registration',
styleHtmlContent: true,
scrollable: 'vertical',
cls: 'f... |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... |
/*
Description: list data structure
Author: Carlo Capelli
Version: 1.0.0
License: MIT
Copyright (c) 2017,2018 Carlo Capelli
*/
const {List,list} = require('./list-es6.js')
const tr = console.log
const i = List.iota(2)
tr(i.copy().to(), i.len(), i.slice(1).concat(List.iota(6)).toArray())
tr(i.concat(i).to())
let [x, ... |
/**
* @fileoverview Replacing Closure goog.object functions to check hasOwnProperty. This makes the functions work with
* polyfills to Array and Object.
*/
goog.provide('os.mixin.closure');
goog.require('goog.html.TrustedResourceUrl');
goog.require('goog.object');
/**
* Does a flat clone of the ob... |
"""
The command template for the default MUX-style command set. There
is also an Account/OOC version that makes sure caller is an Account object.
"""
from evennia.utils import utils
from evennia.commands.command import Command
# limit symbol import for API
__all__ = ("MuxCommand", "MuxAccountCommand")
class MuxComm... |
import React, { useState, useEffect, useContext } from "react"
import { graphql } from "gatsby"
import SEO from "components/seo"
import setTheme from "functions/setTheme"
import { ActiveTopicsContext } from "context/ActiveTopicsContext"
import NavigationLayout from "layouts/NavigationLayout"
import {
ContentWrapper... |
module.exports={A:{A:{"2":"I F E D A B fB"},B:{"2":"C N v O H J K QB M"},C:{"33":"0 1 2 3 4 5 6 7 8 9 G T I F E D A B C N v O H J K U V W X Y Z a b c d e f g h i j k l m n o p q r s t u P w x y z PB EB BB CB AB R GB Q IB JB KB LB MB NB OB","164":"oB FB lB eB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 G T I F E D A B C N v O H J K U... |
const { AccountTypeChart } = require('moneybit-domain')
const { EN, JA } = require('./language')
const factory = new AccountTypeChart.Factory()
const defaultAccountTypeCharts = {
/**
* This default is taken from https://en.wikipedia.org/wiki/Chart_of_accounts
* I moved Drawings from equity to assets. https://... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
const actions = [
{
type: "list",
name: "actions",
message: "What would you like to to?",
choices: [
"Add new employee",
"View all employees",
"View employees by department",
"Update employee role",
"View all roles",
... |
from tasks.post_process import make_timeseries_excel, make_imputation_report, make_data_report, make_indicator_correlation_matrix, make_indicator_box_plots
if __name__ == '__main__':
print('Formating time series to excel')
make_timeseries_excel()
print('Making imputation report')
make_imputation_re... |
module.exports = {
timers: 'real',
// An array of file extensions your modules use.
moduleFileExtensions: ['js', 'json'],
// The test environment that will be used for testing.
testEnvironment: 'node',
// The glob patterns Jest uses to detect test files.
testMatch: ['**/*.test.js'],
// An array of regexp pa... |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-member-member"],{1148:function(e,t,i){"use strict";var a=i("a691"),n=i("1d80");e.exports="".repeat||function(e){var t=String(n(this)),i="",r=a(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(i+=t);return ... |
//During the test the env variable is set to test
process.env.NODE_ENV = 'test';
//Require the dev-dependencies
let chai = require('chai');
let expect = require('chai').expect;
let http = require('http');
let chaiHttp = require('chai-http');
let server = require('../server');
let should = chai.should();
//**OTHER LIB... |