text
stringlengths
3
1.05M
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S7.2_A1.4_T2; * @section: 7.2, 7.5; * @assertion: SPACE (U+0020) between any two tokens is allowed; * @description: Insert real SPACE between tokens of var x=1; */ //...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
'use strict'; import alt from '../alt'; import HomeActions from '../actions/HomeActions'; class HomeStore { constructor() { this.bindActions(HomeActions); this.characters = []; } onGetTwoCharactersSuccess(data) { this.characters = data; } onGetTwoCharactersFail(errorMessage) { toastr.error...
from __future__ import unicode_literals import re import json from .common import InfoExtractor from .gigya import GigyaBaseIE from ..compat import compat_HTTPError from ..utils import ( ExtractorError, clean_html, extract_attributes, float_or_none, get_element_by_class, int_or_none, merge...
!function(e){const t=e.sq=e.sq||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"",Aquamarine:"",Black:"","Block quote":"Thonjëzat",Blue:"",Bold:"Trash","Bulleted List":"Listë me Pika","Bulleted list styles toolbar":"",Cancel:"Anulo","Centered image":"Foto e vendosur në mes","Change image text alternative":"...
/* * need some technic to define cardinality */ var cfg = [ { id: 'req', name: 'Requirement', parent: null, values: null, action: null }, { id: 'simpleReq', name: 'Simple Requirement', parent: ['req', 'complexReq'], values: null, ...
import * as fcl from "@onflow/fcl" import * as t from "@onflow/types" import {invariant} from "@onflow/util-invariant" import {tx} from "src/flow/util/tx" const CODE = fcl.cdc` import FungibleToken from 0xFungibleToken import NonFungibleToken from 0xNonFungibleToken import FlowToken from 0xFlowToken import Kit...
import React from 'react' function UserCreateBreadcrumb() { return ( <div> <nav class="flex py-3 px-5 text-gray-700 bg-gray-50 rounded-lg border border-gray-200 dark:bg-gray-800 dark:border-gray-700" aria-label="Breadcrumb"> <ol class="inline-flex items-center space-x-1 md:space-x-3"> <li cla...
/* * Copyright 2019 Imaginary Sense <support@imaginary.tech> * Copyright 2019 Kevin J. Ponce García <kevin@imaginary.tech> * Copyright 2019 Javier O. Cordero Pérez <javier@imaginary.tech> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
var searchData= [ ['capabilities',['Capabilities',['../structpvr_1_1platform_1_1_shell_o_s_1_1_capabilities.html',1,'pvr::platform::ShellOS']]], ['commandlineparser',['CommandLineParser',['../classpvr_1_1platform_1_1_command_line_parser.html',1,'pvr::platform']]] ];
from django.conf import settings from django_elasticsearch_dsl import Document, Index, fields from hierarchy.models import Chapter from search.documents.util import html_strip alias = settings.ELASTICSEARCH_INDEX_NAMES[__name__] INDEX = Index(alias) # See Elasticsearch Indices API reference for available settings IN...
/*! * Copyright 2019 Hitachi Vantara. 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...
import React, { useState, useEffect, useContext } from 'react'; import { makeStyles } from '@material-ui/styles'; import clsx from 'clsx'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import CardMedia from '@material-ui/core/CardMedia'; import CardContent from '@mate...
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("lit-element/lit-element.js"),require("@lrnwebcomponents/utils/utils.js"),require("@lrnwebcomponents/es-global-bridge/es-global-bridge.js")):"function"==typeof define&&define.amd?define(["exports","lit-element/lit-element.js","@lrnweb...
/** * Install the plugin if `window.Vue` is available. * * @param {object} VuePlugin Vue-plugin object. */ export function vueUse(VuePlugin) { if (typeof window !== 'undefined' && window.Vue) { window.Vue.use(VuePlugin); } } /** * Register a component as a plugin being loaded, return true if the component...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of sou...
import React from 'react' import Link from 'gatsby-link' import cx from 'classnames' import { Location } from '@reach/router' import { resolve } from '@reach/router/lib/utils' const NavTab = ({ to, children }) => ( <Location> {({ location }) => ( <li className={cx({ 'is-active': [location...
var searchData= [ ['4_5forganize_2emd_3',['4_Organize.md',['../4__Organize_8md.html',1,'']]] ];
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2019, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
import sinon from 'sinon'; import emptyObj from '../../src/utils/emptyObj'; import { h, mountSync, unmountSync } from '../../src/vidom'; describe('functionComponent', () => { let domNode; beforeEach(() => { document.body.appendChild(domNode = document.createElement('div')); }); afterEach(() =...
/* eslint-disable camelcase */ // NOTE FOR ANY overnight MODIFIERS: This file is needed or else index.js will error, unless correct modifications are made. const fetch = require('node-fetch') const functions = require('../functions.js') const afk = require('./earn afk.js') const yaml = require('js-yaml') const fs = ...
"""Tests for views of contributions (comments).""" import json from django.test import TestCase from django.contrib.auth.models import AnonymousUser from django.core.urlresolvers import reverse from django.core.exceptions import PermissionDenied from nose.tools import raises from rest_framework.test import APITestC...
/* Amplify Params - DO NOT EDIT API_OPENECMR_CONTRACTTABLE_ARN API_OPENECMR_CONTRACTTABLE_NAME API_OPENECMR_GRAPHQLAPIIDOUTPUT ENV REGION STORAGE_ATTACHMENTS_BUCKETNAME Amplify Params - DO NOT EDIT */ const handler = require("./build/main.js"); exports.handler = handler.default;
/* eslint-disable no-undef */ /* eslint-disable prettier/prettier */ import React, { Component } from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View,Image,Keyboard, Text,Dimensions,TouchableHighlight, StatusBar,TouchableWithoutFeedback, TextInput,KeyboardAvoidingView, Alert, } from 'react-na...
const fs = require('fs') const path = require('path') const webpack = require('webpack') module.exports = { devtool: 'inline-source-map', entry: fs.readdirSync(__dirname).reduce((entries, dir) => { const fullDir = path.join(__dirname, dir) const entry = path.join(fullDir, 'app.js') if...
/* global QUnit */ QUnit.config.autostart = false; sap.ui.getCore().attachInit(function () { "use strict"; sap.ui.require([ "com/sap/sfsf/applicants/test/integration/AllJourneys" ], function () { QUnit.start(); }); });
num = int(input('Digite um número e descubra a tabuada dele:')) print(f'{num} x 1 = {num*1}') print(f'{num} x 2 = {num*2}') print(f'{num} x 3 = {num*3}') print(f'{num} x 4 = {num*4}') print(f'{num} x 5 = {num*5}') print(f'{num} x 6 = {num*6}') print(f'{num} x 7 = {num*7}') print(f'{num} x 8 = {num*8}') print...
deepmacDetailCallback("70b3d54b8000/36",[{"a":"8346 Old Richfood Road Mechanicsville VA US 23116","o":"International Roll-Call Corporation","d":"2017-07-16","t":"add","s":"ieee","c":"US"}]);
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/extends"; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import EventListener from 'react-event-listener'; import withStyles ...
import {getTemplate} from '../i/iEssential.js'; const articleTemplate = ` <h2 class="article__title"> <a href="/article.html?id={_id}">{title}</a> </h2> <div class="article__description"> {about} </div> <div class="article__author"> {authorName} <a href="mailto:{authorEmail}...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
from collections import namedtuple import os import tweepy TwitterAuth = namedtuple( "TWITTER", ["consumer_key", "consumer_secret", "access_token", "access_token_secret"], ) def getTwitterCredentials(): return TwitterAuth( consumer_key=os.environ['TWITTER_CONSUMER_KEY'], consumer_secre...
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fp=e():t.fp=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:...
# coding: utf-8 from time import perf_counter, sleep class FPSLimiter: _previous_time: float _start_of_second: float _frame_count: int = 0 _fps: int = 0 def __init__(self, max_fps : int = 60) -> None: self.set_max_fps(max_fps) self._previous_time = perf_counter() self._star...
'use Strict'; angular.module('myHeadview',[]);
""" socket server request handlers leveraged by core servers. """ import logging import os import shlex import shutil import socketserver import sys import threading import time from itertools import repeat from queue import Empty, Queue from core import utils from core.api.tlv import coreapi, dataconversion, structu...
require("es6-shim"); var MockFirmata = require("./util/mock-firmata"), SerialPort = require("./util/mock-serial").SerialPort, five = require("../lib/johnny-five.js"), sinon = require("sinon"), __ = require("../lib/fn.js"), _ = require("lodash"), Board = five.Board, Boards = five.Boards, Virtual = Boar...
const express = require('express'); const bodyParser = require('body-parser'); const jwt = require('express-jwt'); const config = require('./config'); const app = express(); var glob = require('glob'), path = require('path'), cors = require('cors'); app.use(bodyParser.urlencoded({ extended: false })); ap...
/*! * jsoneditor.js * * @brief * JSONEditor is a web-based tool to view, edit, format, and validate JSON. * It has various modes such as a tree editor, a code editor, and a plain text * editor. * * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ * * @license * Licensed under the Apac...
// // Escape Codec Library: ecl.js (Ver.041208) // // Copyright (C) http://nurucom-archives.hp.infoseek.co.jp/digital/ // EscapeSJIS=function(str){ return str.replace(/[^*+.-9A-Z_a-z-]/g,function(s){ var c=s.charCodeAt(0),m; return c<128?(c<16?"%0":"%")+c.toString(16).toUpperCase():65376<c&&c<65440?"%"+(c-65216)....
import { GraphQLClient } from 'graphql-request' import config from 'config' import { GITHUB } from './github' import logger from './logger' const { API_GRAPHQL, } = GITHUB const retryTimes = config.get('timeouts') export const getClient = headers => new GraphQLClient(API_GRAPHQL, { headers, }) export cons...
# # Copyright 2018 Analytics Zoo 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 applicable law or agreed to...
window._ = require("lodash"); window.Popper = require("popper.js").default; /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { wind...
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax/localization/kn/HTML-CSS.js * * Copyright (c) 2009-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2...
'use strict' import React, {Component} from 'react'; class EmailItem extends Component { render() { let email = this.props.email; return( <div className="input-group"> <span className={this._getClassNames(email)} onClick={this._editHandler.bind(this)}>{email}</span> ...
""" Grammar-related utility functions. """ from typing import List from django.db.models import Count from lexicon.models import LexicalItem from .models import ( Derivation, DerivationStep, GeneratorDescription, LexicalArrayItem, RuleDescription, ) def get_derivation_by_lexical_array(lexical_ar...
const { exec } = require("child_process"); const fs = require("fs"); const util = require("util"); const execPromisified = util.promisify(exec); const fetchRepopath = require("../global/fetchGitRepoPath"); /** * @param {String} repoId * @param {String} item * @returns {String} - status of the unstaging action *...
import { ethers } from "ethers"; import sdk from "./1-initialize-sdk.js"; // This is our governance contract. const voteModule = sdk.getVoteModule( "0x180924387cC925C453A41A9961c41f2FEe4609b1", ); // This is our ERC-20 contract. const tokenModule = sdk.getTokenModule( "0xe1c22e50cb9142088fb798e663a26dd2d0c92cbc",...
from smartmin.users.views import UserCRUDL as SmartUserCRUDL class UserCRUDL(SmartUserCRUDL): actions = ("create", "list", "update", "profile", "forget", "recover", "expired", "failed", "newpassword", "mimic") class Create(SmartUserCRUDL.Create): fields = ("username", "new_password", "first_name", "l...
// Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html module.exports = function (config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '../../', // testing framework to use (jasmine/mocha/qunit/...) frame...
# coding: utf8 from __future__ import unicode_literals from spacy.matcher import Matcher from spacy.tokens import Doc def test_issue4120(en_vocab): """Test that matches without a final {OP: ?} token are returned.""" matcher = Matcher(en_vocab) matcher.add("TEST", [[{"ORTH": "a"}, {"OP": "?"}]]) doc1 ...
"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[9537],{71717:(r,n,c)=>{c.d(n,{Z:()=>i});var a=c(1799),e=c.n(a),o=c(82609),t=c.n(o)()(e());t.push([r.id,"/*\n\n Name: dracula\n Author: Michael Kaminsky (http://github.com/mkaminsky11)\n\n Origi...
define("dojo/window", ["./_base/lang", "./sniff", "./_base/window", "./dom", "./dom-geometry", "./dom-style", "./dom-construct"], function(lang, has, baseWindow, dom, geom, style, domConstruct){ // feature detection /* not needed but included here for future reference has.add("rtl-innerVerticalScrollBar-on-left", ...
import ReactDOM from 'react-dom' import {Provider} from 'react-redux' import React from 'react' import { Router, Route, IndexRoute, browserHistory, hashHistory, } from 'react-router' import createStore from './store' import App from './screens/app' import Article from './screens/article' import Editor from '...
/*! * Module dependencies. */ var Document = require('../document') , inspect = require('util').inspect; /** * EmbeddedDocument constructor. * * @param {Object} obj js object returned from the db * @param {MongooseDocumentArray} parentArr the parent array of this document * @param {Boolean} skipId * @inheri...
module.exports = { name: 'L3v5', description: "part of libray update", execute(message, args, Discord){ const LibraryEmbed = new Discord.MessageEmbed() .setColor('#E5FF00') .setTitle('L3v5') .addFields( {name: 'Info', value: 'Funny video about cats'} ...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ ...
/* * Copyright 2017 StreamSets 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...
import os from math import sin, cos def main(): a=0 b=0 height=24 width=80 #height=int(input("Enter Screen Height : ")) #width=int(input("Enter Screen Width : ")) # for clearing console (windows and unix systems) clear = "cls" if os.name == "posix": clear = "clear" o...
# -*- coding: utf-8 -*- #ღḯḉḯη-тєαм import LINETCR from LINETCR.lib.curve.ttypes import * from datetime import datetime from bs4 import BeautifulSoup from threading import Thread from googletrans import Translator from gtts import gTTS import time,random,sys,json,codecs,threading,glob,urllib,urllib2,urllib3,re,ast,os,...
const express = require('express'); const router = express.Router(); const logger = require('../../modules/logger'); const userController = require('../../controllers/user'); router.get('/profile', (req, res) => { const params = req.body; params.decoded = req.decoded; userController.getUser(params) .then((...
import moment from 'moment' import { unallocated, allocated, app, offenderSearch, keyworkerSearch, keyworkerSettings } from './index' import { setMenuOpen } from '../actions' import * as types from '../actions/actionTypes' const appInitialState = { error: null, message: null, loaded: false, } const appWithError...
document.addEventListener('DOMContentLoaded', function () { var navbarToggles = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0) if (navbarToggles.length === 0) return navbarToggles.forEach(function (el) { el.addEventListener('click', function (e) { e.stopPropagation() el...
/* global jQuery:false */ /* global CHARITY_IS_HOPE_STORAGE:false */ // Theme-specific first load actions //============================================== function charity_is_hope_theme_ready_actions() { "use strict"; // Put here your init code with theme-specific actions // It will be called before core actions }...
var http = require('http'); var users = []; /** * 1. 客户端把一个用户信息发送给服务器 * 2. 服务器接收到后追加到users数组中 * 3. 服务器返回users数组,在客户端那里打印出来 */ /** * req 是一个可读流 ondata on end pipe * res 是一个可读可写流 ondta onend pipe write end */ http.createServer(function(req,res){ console.log(req.method);//方法 console.log(req.headers);//请求头 ...
from malaya.supervised import softmax from malaya.path import PATH_SENTIMENT, S3_PATH_SENTIMENT from herpetologist import check_type label = ['negative', 'positive'] _transformer_availability = { 'bert': { 'Size (MB)': 425.6, 'Quantized Size (MB)': 111, 'macro precision': 0.99330, ...
import { inject as service } from '@ember/service'; import Route from '@ember/routing/route'; import ENV from '../../config/environment'; export default Route.extend({ featureService: service('feature-service'), queryParams: { 'q': {refreshModel: true} }, model (params) { let url = ENV.APP.domainServi...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Citrix Systems, Inc. # Copyright 2010 OpenStack 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 # # htt...
import Home from './pages/page1.vue'; const routes = [ { path: '/', name: 'home', component: Home, }, { path: '/page2', name: 'page2', component: () => import(/* webpackChunkName: "page2" */ './pages/page2.vue'), }, ] export default routes
const path = require('path'); const MicroService = require('../index.js'); MicroService.createServer({ port: 9001, ip: '127.0.0.1', useConsul: false, api_key: 'secret', postInterfacesDir: path.resolve(__dirname, './postInterface'), getInterfacesDir: path.resolve(__dirname, './getInterface'), ...
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import itertools import math impo...
'use strict'; var path = require('path'), rootPath = path.normalize(__dirname + '/../..'); module.exports = { app: { title: 'pw', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, root: rootPath, port: process.env.PORT ||...
console.log('oi teste'); function myFunction() { document.getElementById("teste").innerHTML = "Hello World"; }
/* * Copyright (c) 2018 Feng Liu * * 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 t...
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-id.case // - src/dstr-binding/default/cls-expr-gen-meth-static-dflt.template /*--- description: Binding as specified via property name and identifier (static class expression generator method (default parameter)) esi...
import queryElement from 'shorter-js/src/misc/queryElement.js'; import addClass from 'shorter-js/src/class/addClass.js'; import removeClass from 'shorter-js/src/class/removeClass.js'; import reflow from 'shorter-js/src/misc/reflow.js'; import fadeClass from '../strings/fadeClass.js'; import showClass from '../strings/...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import {createCustomer } from '../actions/customersMySQL'; class UpdateCustomer extends Component { static propTypes = { Layout: PropTypes.func.isRequired, customer: PropTypes.shape({}).isReq...
# Copyright (c) 2014 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. """Trace-viewer component model. This module implements trace-viewer's component model. """ from tvcm.generate import * # pylint: disable=wildcard-imp...
/** * External dependencies */ import tinycolor from 'tinycolor2'; /** * WordPress dependencies */ import { speak } from '@wordpress/a11y'; import { __ } from '@wordpress/i18n'; import { Notice } from '@wordpress/components'; import { useEffect } from '@wordpress/element'; function ContrastCheckerMessage( { tiny...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = __importDefault(require("react")); const ReactComponent = props => (react_1.default.crea...
import { beforeEach, describe, expect, jest, test } from "@jest/globals"; import { AbilityCheckMessage, AbilitySaveMessage, AttackMessage, DamageMessage, DeathSaveMessage, SkillMessage, } from "../src/messages"; // fakes globalThis.renderTemplate = () => ""; globalThis.setProperty = (object, key, value) =>...
// This file was procedurally generated from the following sources: // - src/dstr-binding/ary-ptrn-elem-id-iter-step-err.case // - src/dstr-binding/error/arrow-function-dflt.template /*--- description: Error forwarding when IteratorStep returns an abrupt completion (arrow function expression (default parameter)) esid: ...
/** @type {import('eslint').Linter.Config} */ module.exports = { root: true, extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:import/recommended", "plugin:import/typescript", "prettier/@typescript-eslint", "plugin:prettier/recommen...
import keras.backend as K import numpy as np import tensorflow as tf class Constr: def __init__(self, X, Y): self.X = X self.Y = Y self.mask = np.repeat(np.eye(X), Y).reshape(X, X, Y).swapaxes(2,0) self.mask = K.constant(self.mask) def __call__(self, tensor): return ten...
/** * @author mrdoob / http://mrdoob.com/ * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as */ THREE.PlaneGeometry5 = function ( width, height, widthSegments, heightSegments ) { THREE.Geometry5.call( this, ( widthSegments * heightSegments ) * 2 * ...
import torch import torch.nn as nn import torchvision.models as models class EncoderCNN(nn.Module): def __init__(self, embed_size): super(EncoderCNN, self).__init__() resnet = models.resnet50(pretrained=True) for param in resnet.parameters(): param.requires_grad_(False) ...
// @flow import React from 'react'; import ModalBody from './ModalBody'; import ModalHeader from './ModalHeader'; import ModalWithFooter from './ModalWithFooter'; import { injectIntl, FormattedMessage } from 'react-intl'; import type {IntlShape} from 'react-intl'; import { ReactComponent as DeleteIcon } from './svg/De...
import {} from "../src/browser"; test("adds 1 + 2 to equal 3", () => { expect(sum(1, 2)).toBe(3); });
import React from 'react'; /* eslint-disable max-len */ const texts = { title: 'Tidspunkt for dialogmøte', subTitle: 'De foreslåtte tidspunktene er passert', explanation: 'Du har tidligere mottatt en møteforespørsel med tidspunkter for et dialogmøte med NAV og din arbeidsgiver. Møteforespørselen er utdatert,...
(function () { 'use strict'; angular .module('fitappApp.dashboard') .controller('ActivityTrackersController', ActivityTrackersController); ActivityTrackersController.$inject = ['StravaDataservice', 'DataserviceTest']; function ActivityTrackersController(StravaDataservice, Dataserv...
const { NetplanConfigurator, } = require("../classes/NetplanConfigurator/NetplanConfigurator"); const config = require("config"); let netplanConfigurator = null; module.exports.init = async () => { //Return imediately if initialized if (netplanConfigurator) return; let netplanDirPath = config.get("netplanDir...
import Formidable from "formidable"; import Cloudinary from "../../lib/cloudinary"; import prismaClient from "../../lib/prisma-client"; import getSession from "../../lib/session"; export const config = { api: { bodyParser: false, }, }; export default async (req, res) => { if (req.method !== "POST") { re...
export const lock24 = "M19.5 10H19V7.5a6.5 6.5 0 0 0-13 0V10H4.5A1.504 1.504 0 0 0 3 11.5v11A1.504 1.504 0 0 0 4.5 24h15a1.504 1.504 0 0 0 1.5-1.5v-11a1.504 1.504 0 0 0-1.5-1.5zM7 7.5a5.5 5.5 0 0 1 11 0V10h-1V7.5a4.5 4.5 0 0 0-9 0V10H7zm9 2.5H9V7.5a3.5 3.5 0 0 1 7 0zm4 12.5a.506.506 0 0 1-.5.5h-15a.506.506 0 0 1-.5-.5v...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /* global test, expect */ var _react = require...
function createEditor(elem) { var editor = ace.edit(elem); var session = editor.getSession(); editor.setTheme('ace/theme/tomorrow'); editor.setShowPrintMargin(false); editor.commands.removeCommands(['gotoline', 'find']); session.setMode('ace/mode/javascript'); session.setUseSoftTabs(true); session.set...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
//// [tupleElementTypes1.ts] var [a, b]: [number, any] = [undefined, undefined]; //// [tupleElementTypes1.js] var _a = [undefined, undefined], a = _a[0], b = _a[1];
import logging.config from chat.settings_base import * TEMPLATE_DEBUG = False DEBUG = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # django.db.backends.sqlite3 'NAME': 'pychat', 'USER': 'pychat', 'PASSWORD': 'pypass', 'HOST': 'localhost', 'default-character-set': 'utf8', 'O...
import { stringify } from 'qs'; import config from '../config'; import { snakelize } from './snakelize'; export const makeURI = (pathname, query = {}, baseHost = null) => { // IE11 버그로 get 요청 캐싱 무마하기위해 t 시간값을 매 요청마다 추가 const _query = snakelize({ ...query, t: +new Date() }); const path = `${pathname}?${stringify(...
import template from './sw-media-index.html.twig'; import './sw-media-index.scss'; const { Component, Context } = Shopware; Component.register('sw-media-index', { template, inject: ['repositoryFactory', 'mediaService', 'acl'], props: { routeFolderId: { type: String, defau...