text
stringlengths
3
1.05M
# TODO: this should be shared between all tests import asyncio import inspect from contextvars import ContextVar import pytest from prisma import Client, register from prisma.utils import async_run, get_or_create_event_loop client_ctx: ContextVar['Client'] = ContextVar('client_ctx', default=Client()) @pytest.fixt...
# (c) 2019 Anton Zakharov # This code is licenced under the MIT license (see license.txt for details) import json import random with open("data/city_words.json") as f: temp = json.load(f) consonant_data = temp["consonants"] vowel_data = temp["vowels"] consonants = list() for sound in consonant_data: ...
import {only, test} from '../../../dist/bundle/module.js'; test('should not run', t => { t.fail('I should not run '); }); only('should run', t => { t.ok(true, 'I ran'); });
const data = [ { name: 'John' }, { name: 'Brodo' } ]; console.log(`Result: ${JSON.stringify(data)}`);
Clazz.declarePackage ("J.adapter.readers.cif"); Clazz.load (null, "J.adapter.readers.cif.Subsystem", ["JU.Lst", "$.Matrix", "$.V3", "JU.Logger"], function () { c$ = Clazz.decorateAsClass (function () { this.msRdr = null; this.code = null; this.d = 0; this.w = null; this.symmetry = null; this.modMatrices = null;...
import React from 'react'; import styled from 'styled-components'; const StyledA = styled.a` font-size: 12px; position: absolute; right: 5px; top: 5px; line-height: 22px; overflow: hidden; cursor: pointer; .close-icon{ color: rgba(0, 0, 0, 0.45); transition: color .3s; font-style: normal; ...
module.exports = { description: 'generates IIFE export with all code', command: 'rollup main.js --format iife --name shakeless --no-treeshake --indent' };
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}...
/** * load all media in a array and do a function with weight as parameter for each * @example [<br/> * &nbsp;&nbsp;{src:"images/tileset.png", type:"image", weight:42},<br/> * &nbsp;&nbsp;"images/tileset2.png",<br/> * &nbsp;&nbsp;{src:"images/j_e6a6aca6.png", name:"tileset3"}<br/>] * @param {Array} arr List...
module.exports = { // plugins: { // 'autoprefixer': { // browsers: ['Android >= 4.0', 'iOS >= 7'] // }, // 'postcss-pxtorem': { // rootValue: 75, // // propList: ['*']// 设置哪些属性可以从px变为rem。“!”表示不匹配,“ !font* ”表示不匹配字体相关属性 // } // } }
# -*- coding: utf-8 -*- from GoogleMercatorProjection import LatLng from PyQt4.QtGui import QColor # LOCATION(S) # Further radar configuration (zoom, marker location) can be # completed under the RADAR section primary_coordinates = 52.5074559, 13.144557 # Change to your Lat/Lon location = LatLng(primary_coo...
"""Arviz plotting backends."""
# -*- coding: utf-8 -*- import pytest from aleph_nodestatus.skeleton import fib __author__ = "Jonathan Schemoul" __copyright__ = "Jonathan Schemoul" __license__ = "mit" def test_fib(): assert fib(1) == 1 assert fib(2) == 1 assert fib(7) == 13 with pytest.raises(AssertionError): fib(-10)
/* * 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 cause incorrect behavior and will be lost if the code is * regenerated. */ '...
/*! jQuery UI - v1.12.1 - 2016-11-29 * http://jqueryui.com * Includes: widget.js, widgets/selectable.js, widgets/mouse.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. defin...
# encoding: utf-8 """ peer.py Created by Thomas Mangin on 2009-08-25. Copyright (c) 2009-2012 Exa Networks. All rights reserved. """ import sys import time import traceback from bagpipe.exabgp.message import Failure from bagpipe.exabgp.message.nop import NOP from bagpipe.exabgp.message.open ...
/* See license.txt for terms of usage */ FBL.ns(function() { with (FBL) { // ************************************************************************************************ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * var ElementCache = Firebug.Lite.Cache.Elemen...
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ###################################################################################### # One-Shot Neural Architecture Search via Self-Evaluated Template Network, ICCV 2019 # ############################################...
export default function (state) { return state.type_material.collection_object_attributes.collecting_event_id }
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I...
const request = require('request'); //request库进行文件下载,简化操作步骤。 const ora = require('ora'); //用于命令行上的加载效果loading const chalk = require('chalk'); //用于高亮终端打印出的信息(命令行字体颜色) module.exports = calltemp => { const spinner = ora('Fetching template list...'); spinner.start(); request( { uri: 'https://appzk.github.i...
const {validateAddress, checksum} = require('../wallet') test("checksum: should return correct value", () => { const expectedChecksum = '4734dce9' const versionPayload = "008a06a43f50d6131b4eff177bf3905edc902615f4" expect(checksum(versionPayload)).toEqual(expectedChecksum) }) test("validateAddress: should...
import sys import json import regex import pathlib repo_dir = pathlib.Path(__file__).parent.parent def iter_json_files(glob_pattern='**/[!_]*.json'): yield from sorted(repo_dir.glob(f'[!_.]*/{glob_pattern}'), key=lambda f: humansortkey(str(f))) def numericsortkey(string, _split=regex.compile(r'(\d+)').split): ...
"""Add tsvector to user table Revision ID: 0002 Revises: 0001 Create Date: 2019-01-30 13:32:15.071281 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '0002' down_revision = '0001' branch_labels = None depends_on = None ...
export {}; //# sourceMappingURL=CircularTabBarItemProps.js.map
"use strict"; Flow.ShapeHandler = { loadFlowchartContent: function() { var that = this, $flowchart = flow.FlowchartHandler.getActiveFlowchart$(); $.ajax({ type: "GET", data: {request_type: flow.Constants.AJAX}, dataType: "text json", url...
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' file acc...
const { expectRevert } = require("@openzeppelin/test-helpers"); const Voting = artifacts.require("Voting"); contract("Vote result", async accounts => { const voter1 = accounts[1]; const voter2 = accounts[2]; const voter3 = accounts[3]; const voter4 = accounts[4]; const voter5 = accounts[5]; ...
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot initialization. """ import os from sys import version_info from logging import basicConfig, getLogger, IN...
define(['exports', 'react'], function (exports, React) { 'use strict'; var React__default = 'default' in React ? React['default'] : React; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable:...
# Copyright (c) 2016 HuaWei, 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 agreed to in writi...
var randomBodyParts = ["глаз", "нос", "череп"]; var randomAdjectives = ["вонючая", "унылая", "дурацкая"]; var randomWords = ["муха", "выдра", "дубина", "мартышка", "крыса"]; // Выбор случайной части тела из массива randomBodyParts: var randomBodyPart = randomBodyParts[Math.floor(Math.random() * 3)]; // Выбор случайно...
var searchData= [ ['remove_5ffavourite_192',['remove_favourite',['../classspellbook__db_1_1_spellbook.html#a7fee8be9ae3da02077ad68fe5d47ed77',1,'spellbook_db::Spellbook']]], ['reply_5fmessage_5fcallback_5fhandler_193',['reply_message_callback_handler',['../namespacemain__handler.html#a5d087e82f017d48d3dc2aea81f1821...
import Base from '../../Base.js'; /** * Gray block on the background * @extends Base */ export default class Background extends Base { constructor(props) { super(props); this.setModuleProps(props); } /** * Get and save DOM elements * @param {Object} e */ initDOMElements(e) { this.els = { _darkCo...
import checkValue from './checkValue'; import clickMove from './clickMove'; import backToProductList from './backToProductList'; const $main = document.querySelector('.main'); const productRender = renderObject => { $main.innerHTML = ` <section class="product"> <div class="product__viewer"> <div cl...
!(function (NioApp, $) { "use strict"; //////// for developer - barchart //////// // Avilable options to pass from outside // labels: array, // stacked: false - boolean, // legend: false - boolean, // dataUnit: string, (Used in tooltip or other section for display) // datase...
/** * Creates a sortable image grid with children added to the end of the created grid. * * Example: * // images = [{ id: 'tempId', imageId: 'realIdFromAPI', file: File }]; * <AddImages images={images}> * <input type="file" accept="images/*" onChange={handleChange} /> * </AddImages> */ import React from 'reac...
import mongoose from 'mongoose'; const Schema = mongoose.Schema; const referralSchema = new Schema({ sender: { type: Schema.ObjectId, ref: 'User' }, projectID: { type: Schema.ObjectId, ref: 'Project' }, receiver: { type: String, required: false }, field1: { type: String, required: false }, field2: { type: St...
!function(t){var e={};function n(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
const Database = require('./database/db') const saveOrphanage = require('./database/saveOrphanage') module.exports = { index(req, res) { return res.render('index') }, async orphanage(req, res) { const id = req.query.id try { const db = await Database const results = await db.a...
from discord.ext.commands import Command, Group __all__ = ( 'command', 'group' ) def command(name=None, cls=Command, **attrs): def decorator(func): if isinstance(func, Command): raise TypeError('Callback is already a command.') cmd = cls(func, name=name, **attrs) cmd.examples = attrs.pop('examples', []) ...
var SLDS="object"==typeof SLDS?SLDS:{};SLDS["__internal/chunked/docs/./ui/components/lookups/docs.mdx.js"]=function(e){function t(t){for(var s,n,i=t[0],c=t[1],r=t[2],m=0,u=[];m<i.length;m++)n=i[m],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&u.push(o[n][0]),o[n]=0;for(s in c)Object.prototype.hasOwnProperty.call(c,s...
import os import setuptools PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as f: README = f.read() with open(os.path.join(PACKAGE_ROOT, 'requirements.txt')) as f: REQUIREMENTS = [r.strip() for r in f.readlines()] setuptools.setup( name='gc...
/** * @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...
module.exports = (bot) => { bot.getUser = (input, guild) => { let us; us = guild.members.find( item => { try{ return item.user.username.toLowerCase() === input.toLowerCase() }catch(err){ return null } }) if( us != ...
"""darkbox mv command""" import argparse from shutil import move from darkbox.commands.template import Command class mv(Command): """darkbox mv move (rename) files Designed to be similar to mv from GNU coreutils. Resource: https://www.gnu.org/software/coreutils/mv """ def __init__(self): ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var testing_1 = require("@angular/core/testing"); var platform_browser_1 = require("@angular/platform-browser"); var panelmenu_1 = require("./panelmenu"); var animations_1 = require("@angular/platform-browser/animations"); var testing_2 = requ...
import Layout from "../components/Layout"; import Navbar from "../components/Navbar"; const IndexPage = ({ user, onLogout }) => { const pageTitle = "Index"; return ( <Layout title={pageTitle} user={user} publicContent> <Navbar user={user} onLogout={onLogout} /> <span>Hi.</span> ...
import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { useSnackbar } from 'notistack'; import { Box, Button, Card, TextField, makeStyles } from '@material-ui/core'; import { createList } from 'src/actions/kanba...
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.infernoLifecyclesCompat={})}(this,function(e){"use strict";function t(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setStat...
import React from "react"; import { ReactSearchAutocomplete } from "react-search-autocomplete"; export default class SearchOption extends React.Component { constructor(props) { super(props); this.state = { items: [], city: "", }; this.autocompleteCity = this.autocompleteCity.bind(this); ...
TitleCommand.CreateRoom = defineObject(BaseTitleCommand, { _transition: null, _straightFlow: null, connecting: false, _http: null, openCommand: function() { this._createSubObject(); this.changeCycleMode(NewGameMode.BLACKOUT); this.createHTTPObject(); this._http.open('GET', "https://srpgstudioserv...
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports"], factory); } })(functio...
/* * phina.js 0.2.0 * phina.js is a game library in javascript * MIT Licensed * * Copyright (C) 2015 phi, http://phinajs.com * */ 'use strict'; /* * */ ;(function() { /** * @class global.Object * Objectの拡張 */ /** * @method property * 変数を追加 * @param ...
[{"locale": "en"}, { "category": "Ps", "mappings": { "default": { "default": "left parenthesis" }, "mathspeak": { "brief": "left p'ren", "sbrief": "L p'ren" }, "clearspeak": { "default": "open paren" } }, "key": "0028" }, { "c...
import {combineReducers} from 'redux'; import NurseDashboardReducer from "./NurseDashboardReducer"; const reducer = combineReducers( {nurseDashboard: NurseDashboardReducer} ); export default reducer;
// Import parts of electron to use const { ipcMain, app, BrowserWindow, Menu, MenuItem, } = require('electron'); const path = require('path'); const url = require('url'); const os = require('os'); // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaSc...
var smartUtils = require('../smartUtils.js'); function listDirectoryContent_callback(error, result) { if(error){ console.log('Ooops, problems!'); console.log(error); return; } for (var index = 0; index < result.length; index++) { var element = result[index]; co...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
__NUXT_JSONP__("/amp/16/85", (function(a,b,c,d,e,f,g,h,i,j){return {data:[{metaTitle:d,metaDesc:e,verseId:85,surahId:16,currentSurah:{number:"16",name:"النحل",name_latin:"An-Nahl",number_of_ayah:"128",text:{"1":"اَتٰىٓ اَمْرُ اللّٰهِ فَلَا تَسْتَعْجِلُوْهُ ۗسُبْحٰنَهٗ وَتَعٰلٰى عَمَّا يُشْرِكُوْنَ ","2":"يُنَزِّلُ الْم...
import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as recipientActions from '../actions/recipientActions'; import * as appActions from '../actions/appActions'; import RecipientComponent from '../components/recipient/RecipientComponent'; ...
import React from 'react'; import PropTypes from 'prop-types'; import { JSONEditor } from 'react-shared'; import { FormLabel } from 'fundamental-react'; import { Modal } from 'react-shared'; AuthDetailsModal.propTypes = { auth: PropTypes.shape({ context: PropTypes.string, inputParams: PropTypes.string, })...
""" This is just for testing. The snippet takes any arguments at all, and simply returns True. """ def foo(*args, **kwargs): return True
$(document).ready(function() { //Auto complete off $("input.autocomplete-off").attr("autocomplete", "off"); //Refresh captcha image $("img.change-captcha").click(function(){ var rnd = new Date().getTime(); var src = $("img.captcha-img").attr("src"); if (src.indexOf("?")!=-1) { var ind = src.inde...
w/* * This combined file was created by the DataTables downloader builder: * https://datatables.net/download * * To rebuild or modify this file with the latest versions of the included * software please visit: * https://datatables.net/download/#dt/dt-1.10.12,af-2.1.2,b-1.2.1,b-colvis-1.2.1,b-print-1.2.1,fc-3....
#!/usr/bin/env node /* eslint-disable no-sync, no-console, strict */ 'use strict' const fs = require('fs') const path = require('path') const rimraf = require('rimraf') const minimist = require('minimist') const argv = minimist(process.argv.slice(2), {boolean: ['all']}) const targetDir = argv._[0] if (!targetDir) { ...
/* Copyright 2017 Keith Peters 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, merge, publish, distribute, su...
/* */ var getWrapDetails = require('./_getWrapDetails'), insertWrapDetails = require('./_insertWrapDetails'), setToString = require('./_setToString'), updateWrapDetails = require('./_updateWrapDetails'); function setWrapToString(wrapper, reference, bitmask) { var source = (reference + ''); return setTo...
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "celerynotify.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
const done = [3,4,12]; const sketchNums = [1,8,11,12,13,15,23,16,24,17]; // (new Array(25)).fill(null).map((a, i) => i + 1).filter(num => !done.includes(num)); function setup() { createCanvas(400, 400); } function draw() { noLoop(); background(0); const rand = Math.round(Math.random() * sketchNums.length); ...
var exports = {}, _dewExec = false; export function dew() { if (_dewExec) return exports; _dewExec = true; /** * Converts `set` to its value-value pairs. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the value-value pairs. */ function setToPairs(set) { ...
/** * app Controller * Handles main events that happen with your application * such as when they load, exit, or before any controller */ module.exports = function(P) { global.events = global.events || {}; /** * Adds an event listener, corresponding to a string event, with a callback. * * @param string e...
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示***************...
module.exports = { testMatch: ['**/__tests__/**/*.test.(js|ts)'], testResultsProcessor: 'jest-teamcity-reporter', testPathIgnorePatterns: [ '/packages/create-yoshi-app/templates/', '/node_modules/', '/test/', ], watchPathIgnorePatterns: ['node_modules'], transform: { '^.+\\.jsx?$': 'babel-je...
import ProductActions from '../actions/productActions'; import CustomerActions from '../actions/customerActions'; export default class InitStore { static startup() { CustomerActions.get(); ProductActions.get(); } static seed() { ProductActions.add({ _id: '1', name: 'Ladies necklace', ...
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
from django.conf.urls import url from secondhome import views urlpatterns = [ url(r'^$', views.HomeView.as_view(), name='pet-list') ]
#!/usr/bin/env python3 """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import argparse import multiprocessing import os import sys from datetime import datetime from textwrap import dedent from typing import Any, Dict, Optional, Tuple import humanreadable as hr from pytz import timezone from ...
'use strict'; const common = require('../common'); const fs = require('fs'); const path = require('path'); const assert = require('assert'); const tmpdir = require('../common/tmpdir'); const writeFile = path.join(tmpdir.path, 'write-autoClose.txt'); tmpdir.refresh(); const file = fs.createWriteStream(writeFile, { aut...
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free S...
import { createVNode as _createVNode } from "vue"; import Empty from '../empty'; import useConfigInject from '../_util/hooks/useConfigInject'; var RenderEmpty = function RenderEmpty(props) { var _useConfigInject = useConfigInject('empty', props), prefixCls = _useConfigInject.prefixCls; var renderHtml = func...
function stringSplice(str, content, start, end) { return str.slice(0, start) + content + str.slice(end) } export default stringSplice
import CPKoa from "cp-koa"; import Router from "@koa/router"; import { CPromise, CanceledError, E_REASON_CANCELED } from "c-promise2"; import assert from "assert"; import {antifreeze, isNeeded} from "../../lib/antifreeze2.js"; const fibAsync = CPromise.promisify(function* (n) { this.innerWeight(0); let a = 1n, b =...
const { DateTime } = require("luxon"); const fs = require("fs"); const pluginRss = require("@11ty/eleventy-plugin-rss"); const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(pluginSy...
var gulp = require('gulp'); var compass = require('gulp-compass'); var shell = require('gulp-shell'); var uglify = require('gulp-uglifyjs'); gulp.task('default', function() { // place code for your default task here }); gulp.task('compass', function() { //we need to work out the package name from the location f...
import Util from '../util'; export default class Score extends Phaser.Group { constructor(game, type, parent, name) { type = type || ''; super(game, parent, name, false, false); this.type = type; this._score = 0; this.parent = parent; this.create(0, 0, this.type + '0...
/** * Application core constant definitions. * * Note that 'BackendConfig.url' is configured in /frontend/config/config.json file and you _must_ change it to match * your backend API url. */ (function() { 'use strict'; angular.module('liukko-poc') .constant('BackendConfig', { url: wind...
/** * @constructor * @extends InputBox */ var DateInputBox = function() { InputBox.call(this); }; Util.extend(DateInputBox, InputBox); DateInputBox.type = "DateInputBox"; DateInputBox.addProperty("value", new Date(), { cmpFunc:function(newVal, oldVal){ return newVal.toString() === oldVal.toString(); } }); Date...
import React from "react"; import HeaderStats from "../components/HeaderStats"; import BarGraph from "../components/BarGraph"; import BetterDonut from "../components/BetterDonut"; // BetterDonut will replace the DoughnutChart to include the labels , R. Diaz function Stats() { return ( <div> <HeaderStats />...
#!/usr/bin/python import sys import pysam from Bio import SeqIO #Remove reads substantially greater than amplicon size #cat ADH1_3.fastq | paste - - - - | awk 'length($2) <= 900' | sed 's/\t/\n/g' > het_5_ADH1_3_less901.fastq #map reads to reference and filter for mapping quality #minimap2 -x map-pb -a --...
/* http://keith-wood.name/countdown.html * Armenian initialisation for the jQuery countdown extension * Written by Artur Martirosyan. (artur{at}zoom.am) October 2011. */ (function($) { $.countdown.regionalOptions['hy'] = { labels: ['Տարի', 'Ամիս', 'Շաբաթ', 'Օր', 'Ժամ', 'Րոպե', 'Վարկյան'], labels1: ['Տարի', ...
odoo.define('pos_fel.pos_fel', function (require) { "use strict"; var models = require('point_of_sale.models'); var screens = require('point_of_sale.screens'); var core = require('web.core'); var rpc = require('web.rpc'); var QWeb = core.qweb; screens.ReceiptScreenWidget.include({ render_receipt: function(){ ...
import React, {Component} from 'react' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import {getCartThunk, emptyCartThunk, removeItemThunk} from './../store/cart' import {getProductsThunk} from '../store/productList' import { Grid, Typography, Button, TableContainer, TableHead, T...
const TYPES = { 'PNG': { list: ['image/png'], image: true }, 'JPG': { list: ['image/jpeg', 'image/pjpeg'], image: true }, 'GIF': { list: ['image/gif'], image: true }, 'BMP': { list: ['image/bmp'], image: true }, 'TIFF': ...
const path = require('path'); const assert = require('assert'); const common = require('../../common.js'); const MockServer = require('../../lib/mockserver.js'); const CommandGlobals = require('../../lib/globals/commands.js'); const NightwatchClient = common.require('index.js'); describe('testRunnerSessionCreate', fun...
# -*- coding: utf-8 -*- import re import threading import traceback from repoze.lru import lru_cache import youtube_dl import json from itertools import islice import pykka import requests from mopidy_youtube import logger from mopidy import httpclient # Making HTTP requests from extensions # https://docs.mopidy...
import * as Action from '../actionTypes'; const DEFAULT_VERSION = { applicationVersions: [{ }], databaseVersions: [{ }], }; export default function versionReducer(state = DEFAULT_VERSION, action) { switch(action.type) { case Action.UPDATE_VERSION: return { ...state, ...action.version }; } r...
/* * Copyright © 2016-2017 PT VIO Intelligence 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 appli...
#!/usr/bin/env python # coding: utf-8 # In[1]: # A BERT model with history answer embedding (HAE) # In[2]: # import os # os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" # os.environ["CUDA_VISIBLE_DEVICES"]="3" # In[3]: from __future__ import absolute_import from __future__ import division from __future__ import...