text
stringlengths
3
1.05M
!function(e){function r(r){for(var n,l,a=r[0],p=r[1],f=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r...
import setuptools with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="flasktodo", version="0.0.1", author="Charles Crandall and Nick Card", author_email="robloxatme.com@gmail.com", url="https://github.com/ts-cset/flask-todo", description="A simple to-do a...
# Name: viewer.py # Package: wx.lib.pdfviewer # # Purpose: A PDF report viewer class # # Author: David Hughes dfh@forestfield.co.uk # Copyright: Forestfield Software Ltd # Licence: Same as wxPython host # History: Created 17 Jun 2009 # # 08 Oct 2011, Michael Hipp ...
import styled, { css } from "styled-components"; import Box from "../../accessories/Box"; import Button from "../../accessories/Button"; import Text from "../../accessories/Text"; const MosaicStyles = styled(Box)( ({ theme }) => css` max-width: 1280px; padding: ${theme.space.base}; @media ...
(function () { angular.module('suppliers.filters', []) .filter('normalize', function () { var from = "ÃÀÁÄÂÈÉËÊÌÍÏÎÒÓÖÔÙÚÜÛãàáäâèéëêìíïîòóöôùúüûÑñÇç", to = "AAAAAEEEEIIIIOOOOUUUUaaaaaeeeeiiiioooouuuunncc", mapping = {}; for(var i = 0, j = from.length; i < j; i++ ) mapping[ fro...
#Faça um programa que leia algo pelo teclado e mostre na tela o seu tipo primitivo e todas as informações possíveis #sobre ele. b = input('Digite *qualquer* coisa: ') print('O tipo primitivo é:', type(b)) print('Só tem espaços?',b.isspace()) print('É um número?',b.isnumeric()) print('É alfabetico?',b.isalpha()) print('...
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
import logging from datetime import datetime, timezone, timedelta from typing import Iterable, Optional, List, Tuple import git from .status import ModStatus from .repos import NetkanRepo from .github_pr import GitHubPR class AutoFreezer: BRANCH_NAME = 'freeze/auto' def __init__(self, nk_repo: NetkanRepo, ...
#! /usr/bin/env python """Test script for the imageop module. This has the side effect of partially testing the imgfile module as well. Roger E. Masse """ from test.test_support import verbose, unlink, run_unittest import imageop, uu, os, unittest SIZES = (1, 2, 3, 4) _VALUES = (1, 2, 2**10, 2**15-1, 2**15, ...
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Zimlets * Copyright (C) 2006, 2007, 2008, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain...
var collisionSounds = [ 'Cow', 'Dog', 'Horse', 'Lion' ]; var turnSounds = [ 'Cat', 'Pig', 'Duck' ]; var stuckSounds = [ 'Bee', 'Chicken', 'Donkey' ]; var unstuckSounds = [ 'BabyBird', 'Frog' ...
var Stream = (function (){ try { return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify } catch(_){} }()); exports = module.exports = require('./lib/_stream_readable.js'); exports.Stream = Stream || exports; exports.Readable = exports; exports.Writable = require('./l...
import easygraphics.dialog as dlg def calc_discount(total): """ 计算折扣数和折后金额 :param total: 购物金额 :return: 折扣数,折后金额 """ if total < 0: raise ValueError('total should not < 0!') if total >= 500: discount_rate=0.9 elif total >= 200: discount_rate=0.95 else: ...
import argparse import os import random def generate_date(output_data_dir: str, fn: str, num_rows: int, party_id: int): outpath = "/".join([output_data_dir, fn]) with open(outpath, "w") as f: f.write('"companyID","price"\n') for _ in range(num_rows): row = [str(party_id), str(rando...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property"); _Object$defineProperty(exports, "__esModule", { value: true }); exports["default"] = Content; var _react = _in...
""" Prefectures ordered to conform with the Japanese entry of ISO-3166. This ordering is widely used in Japan. See: http://en.wikipedia.org/wiki/ISO_3166-2:JP """ from localflavor.stub import _ #: A list of prefectures JP_PREFECTURES = ( ('hokkaido', _('Hokkaido'),), ('aomori', _('Aomori'),), ('iwate', _(...
module.exports = { name: 'loop', description: 'Request the bot to loop the song in the playlist.', async execute(message, args) { if (!message.member.voiceChannel) { return message.reply('You need to join a voice channel first!'); } connection = message.guild.voiceConnection; let guild_id ...
window._ = require('lodash'); /** * We'll load the axios HTTP library which allows us to easily issue requests * to our Laravel back-end. This library automatically handles sending the * CSRF token as a header based on the value of the "XSRF" token cookie. */ window.axios = require('axios'); axios.defaults.heade...
import { KIND, STATUS } from './streams.constants'; export default class PciStreamsController { /* @ngInject */ constructor( $translate, CucCloudMessage, CucRegionService, ) { this.$translate = $translate; this.CucCloudMessage = CucCloudMessage; this.CucRegionService = CucRegionService; ...
/** * 控制器的基类 * Created by fu_gh on 2017-10-10 15:04 */ class BaseController { /** * 构造 */ constructor(req) { } /** * 参数有效性检验 * @param params * @param callback */ checkParam(params, callback) { } /** * 检查值是否在范围之内 * @param value * @param ran...
"use strict"; var some = require("min-dash").some; var ALLOWED_TYPES = { FailedJobRetryTimeCycle: ["bpmn:StartEvent", "bpmn:BoundaryEvent", "bpmn:IntermediateCatchEvent", "bpmn:Activity"], Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"], Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"] }; fu...
from django.urls import path, include from rest_framework.routers import DefaultRouter from kmeans.views import UserViewSet, KMeansViewSet, ClusterViewSet router = DefaultRouter() router.register(r'users', UserViewSet) router.register(r'kmeans', KMeansViewSet) router.register(r'cluster', ClusterViewSet) # Th...
var zrUtil = require("zrender/lib/core/util"); /* * 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 Li...
/** * Created by Karl-Martin on 13.02.2016. */ // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ /*! * Copyright 2014-2015 Twitter, Inc. * * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, see https://cr...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'list', 'ca', { bulletedlist: 'Llista de pics', numberedlist: 'Llista numerada' } );
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const path = require("path"); const settings_1 = require("../settings"); const tests = require("../tests"); const common = require("./common"); describe('Readers → Common', () => { describe('.isFat...
import styled from '@emotion/styled' import Image from 'gatsby-image' import { breakpoints } from '~/utils/styles' export const SlideshowImage = styled(Image)` height: 100vh; width: 100vw; object-fit: cover; object-position: center; ` export const Caption = styled.div` color: ${({ color }) => (color ? colo...
x = 10.0 # Horizontal position y = 10.0 # Vertical position angle = atan(y/x) print((angle/pi)*180)
export { default } from 'multi-dsl/components/twyr-icon';
import axios from '@/libs/api.request' import {getToken} from '@/libs/util' export const getTableData = () => { return axios.request({ url: 'get_table_data', method: 'get' }) } export const getDragList = () => { return axios.request({ url: 'get_drag_list', method: 'get' ...
webpackHotUpdate("app",{ /***/ "./src/objects/spider.ts": /*!*******************************!*\ !*** ./src/objects/spider.ts ***! \*******************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\nObject.defineProperty(exports, \"__esModu...
import CONFIG from '../../globals/config'; const restoListTemplate = (list) => ` <div class="card"> <div class="card-picture"> <img src="/images/icons/lazyimg1.png" class="lazyload" data-src="${CONFIG.BASE_URL}${CONFIG.IMAGE_URL_SML}/${list.pictureId}" alt="restoran ${list.name}"> </div> <div class="card-descripti...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PluginError = exports.PluginSyntaxError = exports.isInlineScriptRequest = exports.getHtmlPath = ...
const functions = require("firebase-functions"); const admin = require("firebase-admin"); admin.initializeApp(functions.config().firebase); exports.sendNotification = functions.database .ref("/chat/{chatid}/{pushId}") .onWrite(event => { const message = event.data.val(); const senderUid = message.uid; ...
/* eslint-disable camelcase */ /* eslint-disable max-len */ 'use strict'; const exposes = require('../lib/exposes'); const globalStore = require('../lib/store'); const {repInterval} = require('../lib/constants'); const reporting = require('../lib/reporting'); const fz = require('../converters/fromZigbee'); const ea = e...
from builtins import ConnectionResetError from urllib3.exceptions import ProtocolError from django.conf import settings from django.db.models import ForeignKey from django.utils import timezone from django.urls import reverse from django.utils.http import ur...
/* * Copyright (c) 2014 airbug inc. http://airbug.com * * bugpack may be freely distributed under the MIT license. */ //NOTE BRN: This file is no longer used. //------------------------------------------------------------------------------- // Requires //----------------------------------------------------------...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import styled from 'styled-components'; import ContentMetaResolver from './ContentMetaResolver'; import defaultPositionResolver from './defaultPositionResolver'; import { disableBodyScroll, ...
module.exports = { "extends": "airbnb-base", "env": { "browser": true, "es2021": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 12, "sourceType": "module" }, "rules": { } };
class Player(object): def __init__(self): pass
var express = require('../') , request = require('supertest'); describe('req', function(){ describe('.fresh', function(){ it('should return true when the resource is not modified', function(done){ var app = express(); var etag = '"12345"'; app.use(function(req, res){ res.set('ETag',...
const localHost = require("https-localhost"); const helmet = require("helmet"); const bodyParser = require("body-parser"); // 🐨 You'll need to import crypto // 💰 const crypto = require("crypto"); const express = require("express"); const session = require("express-session"); const csurf = require("csurf"); const rout...
var fs = require('fs'); var datePrompt = require('inquirer-date-prompt') function loadCategories(){ var dirPath = 'blogs/'; var result = []; //this is going to contain paths fs.readdir(__dirname + dirPath, function (err, filesPath) { if (err) throw err; result = filesPath.map(function (filePath) { ...
var NAVTREEINDEX0 = { "annotated.html":[0,0], "classes.html":[0,1], "dir_10ca1476a21bdaaf8ac61d589137e864.html":[1,0,0,0], "dir_b107109bb7dd19729f199f2dfac160d0.html":[1,0,0,0,1], "dir_cc62289fdc2bdea7cb608c9270e89f90.html":[1,0,0,0,0], "dir_d44c64559bbebec7f509842c48db8b23.html":[1,0,0], "files.html":[1,0], "functions...
import React from "react"; import styled from "styled-components"; import Head from "next/head"; import { Grid, GridCell, Container, Section, Wrapper } from "@socialgouv/react-ui"; import { Layout } from "../src/layout/Layout"; const About = () => ( <Layout> <Head> <title>Statistiques du code du...
# -*- coding: utf-8 -*- import os extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', 'sphinx.ext.ifconfig', 'sphinx.ext.napoleon', 'sphinx.ext.todo', 'sphinx.ext.viewcode', 'sphinx.ext.autosectionla...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
var searchData= [ ['closed_3404',['CLOSED',['../class_svc_1_1_com_logger.html#aa5d3874f259b7ffe60bb150b23978c7daf2919d6b93defdd1fc0ae7db8d0a0896',1,'Svc::ComLogger']]], ['cmd_5fdispatcher_5fdispatch_5ftable_5fsize_3405',['CMD_DISPATCHER_DISPATCH_TABLE_SIZE',['../_command_dispatcher_impl_cfg_8hpp.html#a06fc87d81c62e...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.6.2 (2020-12-08) */ (function () { 'use str...
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ This file implements: Ghazvininejad, Marjan, et al. "Constant-time machine translation with conditional masked language models." ...
import {useReducer} from "react"; export function useData(initialData) { return useReducer((prevState, nextState) => ({...prevState, ...nextState}), initialData); }
import React from "react" import { Link } from "gatsby" const Layout = props => { const { title, children } = props const [toggleNav, setToggleNav] = React.useState(false) return ( <div className={`site-wrapper ${toggleNav ? `site-head-open` : ``}`}> <header className="site-head"> <div classNam...
import React, { useState, useEffect } from 'react'; import { useDispatch } from 'react-redux'; import { getPosts } from '../../actions/posts'; import Posts from '../Posts/Posts'; import CRUDForm from "../CRUDForm/CRUDForm"; import './styles.css'; const Home = () => { const [currentId, setCurrentId] = useState(0); ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.11/esri/copyright.txt for details. //>>built define({previous:"\u00d6nceki",next:"Sonraki",paginationLimit:"Sayfaland\u0131rma yoluyla al\u0131nabilecek sonu\u00e7 s\u0131n\u0131r\u0131 10.000\u2019dir. D\u00...
const Blog = require('../models/Blog'); //====================== // Admin side only //====================== exports.newBlog = (req, res) => { res.render('admin/newPost', { title: 'Add new blog post' }); }; exports.postBlog = (req, res) => { const newPost = new Blog({ title: req.body.title, b...
"use strict"; let hasSyncZlib = true; let zlib = require("zlib"); let inflateSync = require("./sync-inflate"); if (!zlib.deflateSync) { hasSyncZlib = false; } let SyncReader = require("./sync-reader"); let FilterSync = require("./filter-parse-sync"); let Parser = require("./parser"); let bitmapper = require("./bitma...
'use strict'; const js0 = require('js0'), RequestDef = require('./RequestDef') ; class TableRequestDef extends RequestDef { static Args_Delete() { return { where: [ Array, js0.Default([]) ], }; } static Args_Select() { return { columns: [ js0.Iter...
define([ "backbone", "authentication/Authentication", "corpus/Corpus", "user/UserAppView", "user/UserRouter", "confidentiality_encryption/Confidential", "user/User", "user/UserMask", "text!locales/en/messages.json", "OPrime" ], function( Backbone, Authentication, Corp...
function my_function087(){ //19077510860028991161530402310239gQeRkfiPmgwddzRVQGyFWFuCYDvMyPkP } function my_function029(){ //76317438590423880111916469233174FDzRPoUWJsYkKGitnRwNxXohZDHsyeMv } function my_function097(){ //49442754255196248613183759268094ooOLmzrkvbQhFAlmNCIgjBPPUIwHDYxq } function my_function036(){ /...
AFRAME.registerComponent('click-space-listener', { init: function () { const el = this.el; // click: window.addEventListener('click', function () { el.emit('click', null, false); }); // space: window.addEventListener('keydown', function (e) { if(e.keyCode === 32) { el.emit(...
import PartyBot from 'partybot-http-client'; // Bots http client import React, { PropTypes, Component } from 'react'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; import Header from 'grommet/components/Header'; import Heading from 'grommet/components/Heading'; import Anchor from...
var FrameReceiverConfig = org.quietmodem.Quiet.FrameReceiverConfig; var FrameReceiver = org.quietmodem.Quiet.FrameReceiver; import * as application from '@nativescript/core/application'; import('@nativescript/core/globals'); let FRAME_RECEIVER = null; export function receiverAndroid(profile) { if (FRAME_RECEIVER !=...
var searchData= [ ['namecreator_18249',['NameCreator',['../class_brawl_crate_1_1_brawl_managers_1_1_stage_manager_1_1_name_creator.html',1,'BrawlCrate::BrawlManagers::StageManager']]], ['namecreatordialog_18250',['NameCreatorDialog',['../class_brawl_crate_1_1_brawl_managers_1_1_stage_manager_1_1_name_creator_dialog...
export const Role = { Admin: "Admin", User: "User", };
const _ = require(`lodash`) const Promise = require(`bluebird`) const path = require(`path`) const slash = require(`slash`) // Implement the Gatsby API “createPages”. This is // called after the Gatsby bootstrap is finished so you have // access to any information necessary to programmatically // create pages. // Will...
# Generated by Django 2.1.7 on 2019-03-29 05:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("easy_maps", "0001_initial"), ] operations = [ migrations.RemoveField( model_name="address", name="geocode_error", ...
import React from 'react' import ReactDocumentTitle from 'react-document-title' const DocumentTitle = (props) => { let { title } = props; const { children } = props; title += '- David Sirena' return ( <ReactDocumentTitle title={title}> {children} </ReactDocumentTitle> ) } export default Docu...
import constants # The host and port where the tested ap shoud listen. HOST = '127.0.0.1' PORT = 8080 # The host alias set in the /etc/hosts file. # The actual tests will navigate selenium browser to this host. # This is necessary because some providers don't support localhost as the # callback url. HOST_ALIAS = 'aut...
class Node { constructor(value) { this.value = value; this.next = null; } } class LinkedList { constructor() { this.tail = null; this.head = null; this.length = 0; } push(value) { const node = new Node(value); this.length++; if (!this.head) { this.tail = this.head ...
function() { return function() { return "DEPENDENCY"; } }
# Copyright (C) 2019 The Raphielscape Company LLC.; Licensed under the Raphielscape Public License, Version 1.d (the "License"); you may not use this file except in compliance with the License.; The entire source code is OSSRPL except 'whois' which is MPL; License: MPL and OSSRPL """ Userbot module for getiing info ab...
"use strict"; exports.id = 766; exports.ids = [766]; exports.modules = { /***/ 6766: /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "rerunPrChecks": () ...
// 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) { //...
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Convertio = forwardRef(function Convertio( { color = 'currentColor', size = 24, title = 'Convertio', ...others }, ref ) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} fi...
import React, { Component } from 'react' import { connect } from "react-redux"; import { getIPFS, encodeData } from '../../util/ipfs' import Button from '@material-ui/core/Button'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; const mapStateToProps = state => { return { }; }; ...
// This file was procedurally generated from the following sources: // - src/annex-b-fns/global-init.case // - src/annex-b-fns/global/if-stmt-else-decl.template /*--- description: Variable binding is initialized to `undefined` in outer scope (IfStatement with a declaration in the second statement position in the global...
import React from 'react' import Certificate from './Certificate' const Certifies = ({ certifies }) => ( <div className="container"> <h1 className="title">Certificados - Cursos</h1> <div className="columns is-multiline"> { certifies.map(cert => ( <Certificate title= { cert.title }...
#!/usr/bin/env python # encoding: utf-8 from __future__ import print_function import matplotlib; matplotlib.use('Agg') import sys, os, copy, math, numpy as np, matplotlib.pyplot as plt from munkres import Munkres from collections import defaultdict try: from ordereddict import OrderedDict # can be install...
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bitsroom.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
# 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...
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { startLogout } from '../actions/auth'; export const Header = ({ startLogout }) => ( <header className="header"> <div className="content-container"> <div className="header__content"> ...
const express = require("express"); const path = require('path'); const app = express(); app.use(express.static(path.join(__dirname, './public/dist/public'))); app.use(express.json()); require('./server/config/mongoose.js'); require('./server/config/routes.js')(app); app.listen(8000, function () {console.log('listen...
import { click, currentURL, fillIn, find, findAll, visit, blur, waitFor } from '@ember/test-helpers'; import { run } from '@ember/runloop'; import { module, test } from 'qunit'; import config from 'ember-get-config'; import { setupApplicationTest } from 'ember-qunit'; import { setupMirage } from 'ember-cli-mirage/test-...
export const navigationRoutes = { root: { name: '/', displayName: 'navigationRoutes.home', }, routes: [ { name: 'dashboard', displayName: 'menu.tituloBusqueda', meta: { iconClass: 'vuestic-iconset-dashboard', }, }, /* { name: 'reportes', displayN...
/*global QUnit, test, equal, ok*/ (function(undefined) { "use strict"; browserify.done.four = true; QUnit.module("Browserify - client code"); var isIE8 = window.attachEvent && !window.addEventListener; if (!isIE8) { QUnit.test("No jQuery global: require('jquery.observable')", function(assert) { // ..................
import math from decimal import Decimal # Used for rotations: # https://stackoverflow.com/questions/34372480/rotate-point-about-another-point-in-degrees-python/34374437#34374437 # Accessed November 17, 2017 class Post: """A post""" def __init__(self, postType, x, y, isRemoval=False): self.entityType = "post" s...
import numpy as np import matplotlib.pyplot as plt # import theano # comment / uncomment import torch from torch import nn from torch.autograd import Variable from torch.autograd.gradcheck import zero_gradients from utils import compute_jacobian, log_det_jacobian model = nn.Sequential( nn.Linear(3, 10), nn.Re...
import React, { Component } from "react"; import { connect } from "react-redux"; import HomePageTournamentBlock from "./TournamentBlock"; import CumulativeBlock from "./CumulativeBlock"; export class HomePageTournaments extends Component { routeOnClick() {} renderBlocks() { if (this.props.assets.length === 0)...
# -*- coding: utf-8 -*- """Responses. responses serve both testing purpose aswell as dynamic docstring replacement. """ responses = { "_v3_GetTradeMessages": { "url": "openapi/trade/v1/messages", "response": { "Data": [ { "DateTime": "2014-12-12T09:17:12Z", ...
(function(d){d['zh']=Object.assign(d['zh']||{},{a:"Table toolbar",b:"斜體",c:"粗體",d:"靠左對齊",e:"靠右對齊",f:"置中對齊",g:"左右對齊",h:"文字對齊",i:"Text alignment toolbar",j:"有編號的清單",k:"項目符號清單",l:"塊引用",m:"插入表格",n:"標題欄",o:"插入左方欄",p:"插入右方欄",q:"刪除欄",r:"欄",s:"標題列",t:"插入下方列",u:"插入上方列",v:"刪除列",w:"列",x:"合併上方儲存格",y:"合併右方儲存格",z:"合併下方儲存格",aa:"合併左方儲...
import React from "react" const AuthContext = React.createContext({ authData: { isLoggedIn: false, user: null }, setAuthData: () => { } }) export default AuthContext;
/** * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. * * Camunda licenses this file to you under the MIT; you may not use this ...
let path = require("path"); let webpack = require("webpack"); let webpackDevServer = require("webpack-dev-server"); let webpackConfig = require("./webpack.config"); let webpackDevServerOptions = { publicPath: "/", contentBase: path.join(process.cwd(), "dist"), historyApiFallback: true, hot: true, host: "0.0....
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Partner' db.create_table('events_partner', ( ('id', self.gf('django.db.models.fi...
import discord import os import sys from func import diceroll from Meow import neko # 自分のBotのアクセストークンに置き換えてください TOKEN = os.environ['DISCORD_BOT_TOKEN'] # 接続に必要なオブジェクトを生成 client = discord.Client() # 起動時に動作する処理 @client.event async def on_ready(): # 起動したらターミナルにログイン通知が表示される print('ログインしました') # メッセージ受信時に動作する処理...
"use strict"; // Class definition var KTProjectsAdd = function () { // Base elements var _wizardEl; var _formEl; var _wizard; var _avatar; var _validations = []; // Private functions var initWizard = function () { // Initialize form wizard _wizard = new KTWizard(_wizardEl, { startStep: 1, // initial ac...
module.exports={A:{A:{"1":"A","16":"WB","132":"K C G E B"},B:{"1":"D u Y I M H"},C:{"1":"0 1 2 3 5 6 7 w Z a b c d e f L h i j k l m n o p q r s t y v g","132":"UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X SB RB"},D:{"1":"0 1 2 3 5 6 7 T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v g GB BB DB VB EB...
import numpy as np import pandas as pd import pytest from pandas.testing import assert_series_equal from evalml.model_family import ModelFamily from evalml.pipelines.components import BaselineRegressor def test_baseline_init(): baseline = BaselineRegressor() assert baseline.parameters["strategy"] == "mean" ...
import clipNumber from 'helper/number/clip_number'; import coerceToString from 'helper/string/coerce_to_string'; import isNil from 'helper/object/is_nil'; import { MAX_SAFE_INTEGER } from 'helper/number/const'; import toInteger from 'helper/number/to_integer'; /** * Extracts the first `length` characters from `subjec...
const tutorialSteps = [ { title: 'Zeroth step', message: 'This would be an error', next: false }, { title: 'Welcome to the tutorial', message: 'Press NEXT to start.', next: true }, { title: 'Open the drawer', message: 'Using this button...