text
stringlengths
3
1.05M
var webpack = require('webpack'); var path = require('path'); var HtmlWebpackPlugin = require('html-webpack-plugin') var ngAnnotatePlugin = require('ng-annotate-webpack-plugin'); module.exports = { context: path.join(__dirname, '/src'), entry: path.join(__dirname, './src/app.js'), output: { path: p...
'use strict';var lang_1 = require('angular2/src/core/facade/lang'); function _abstract() { return new lang_1.BaseException('This method is abstract'); } var LocationStrategy = (function () { function LocationStrategy() { } LocationStrategy.prototype.path = function () { throw _abstract(); }; Locatio...
/** * Hilo 1.2.0 for amd * Copyright 2016 alibaba.com * Licensed under the MIT License */ define('hilo/renderer/CanvasRenderer', ['hilo/core/Class', 'hilo/core/Hilo', 'hilo/renderer/Renderer'], function(Class, Hilo, Renderer){ /** * @language=en * @class CanvasRenderer CanvasRenderer, all the visual object is ...
function SignUpFormProcess(){ let isOpenedStep = [ $('.module-page[data-screen="SignUp"] main #reg-content li[data-signstep="0"]').css('display') != 'none', $('.module-page[data-screen="SignUp"] main #reg-content li[data-signstep="1"]').css('display') != 'none', $('.module-page[data-screen="...
//https://github.com/meteor/meteor/tree/master/packages/mongo-id import EJSON from 'ejson'; const MongoID = {}; MongoID._looksLikeObjectID = function(str) { return str.length === 24 && str.match(/^[0-9a-f]*$/); }; MongoID.ObjectID = function(hexString) { //random-based impl of Mongo ObjectID var self = this; ...
"use strict"; var x = 3; if (1) { var x = 4; } function x() {} //# sourceMappingURL=duplicate-var-compiled.js.map
from typing import Tuple, Optional, Union, List from functools import reduce import torch import torch.nn as nn __all__ = [ "zca_mean", "zca_whiten", "linear_transform", "ZCAWhitening", ] class ZCAWhitening(nn.Module): r""" Computes the ZCA whitening matrix transform and the mean vector an...
var Model = require("./model"); var Collection = Model.extend({ $create: function(array) { this.array = array || []; }, length: { get: function() { return this.array.length; } }, get: function(index) { return this.array[index]; }, indexOf: fun...
from discord.ext import commands import discord class AdminCmds(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command(name="purge", aliases=["p"]) @commands.has_permissions(manage_messages=True) @commands.guild_only() async def purge_messages(self, ctx, n: int): ...
// var canvas = document.getElementById("canvas"); // var beams = document.getElementById("beams"); // var y = window.pageYOffset; // // window.onscroll = function(){ // // // var y = window.pageYOffset; // // console.log(y); // // beam1.style.top = 1000 + y * -2 + "px"; // beam2.style.top = 2000 + y * -1.5 + "...
# coding: utf-8 # 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...
angular.module('app', [ // 'ngAnimate', 'ngSanitize', // 'ngTouch', 'ngCordova', 'ngCookies', 'ionic', 'Offline', 'User', 'app.sidemenu', 'app.home', 'app.order', 'app.vinibar', 'app.wine', 'app.ratedwine', 'app.orders', 'app.deliverymode', 'app.profile', 'app.pay', 'security', ...
import { render, screen, fireEvent, within } from '@testing-library/react'; import App from './App'; test('korhonen + virtanen = Kortanen/Virhonen', () => { const { getByTestId } = render(<App />); const inputName1 = screen.getByTestId("name1"); fireEvent.change(inputName1, { target: { value: "korhonen" } }); ...
/** * Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui) * Copyright 2018 Telerik AD. All rights reserved. ...
# Copyright 2011 OpenStack Foundation # 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 requ...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc */ import { Component } from '@angular/core'; import { moveItemInArray } from '@angular/cdk/drag-drop'; var SectionDesignerComponent = /** @class */ (function () { function SectionDesignerComponent...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Convenience wrapper for running bootstrap directly from source tree.""" from evil_insult.__main__ import main if __name__ == '__main__': main()
import os import webbrowser import networkx as nx def configuration_to_nx(config): G = nx.MultiDiGraph() for relation in config: for i, node in enumerate(relation): G.add_node(node) if (i+1) < len(relation): from_node = node to_node = relation[i ...
# engine/util.py # Copyright (C) 2005-2016 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from .. import util def connection_memoize(key): """Decorator, memoize a functi...
""" Inject Cython type declarations into a .py file using the Jedi static analysis tool. """ from __future__ import absolute_import from io import open from collections import defaultdict from jedi import Script from jedi.parser.representation import Function, Module, Import from Cython.Utils import open_source_fil...
Search.setIndex({objtypes:{"0":"py:function"},objects:{"":{element_at:[134,0,1,""],bitwise_not:[155,0,1,""],sha256:[81,0,1,""],year:[30,0,1,""],upper:[37,0,1,""],rand:[7,0,1,""],from_iso8601_date:[30,0,1,""],bar:[143,0,1,""],trim:[37,0,1,""],url_extract_port:[97,0,1,""],rank:[85,0,1,""],url_extract_query:[97,0,1,""],ex...
import exec from 'Utils/exec'; import inquirer from 'inquirer'; import save from 'Scripts/save/index'; import { getActiveProject } from 'Utils/conf/index.js'; import { log } from 'Utils/console'; export default async({ environment, staging, production, save: shouldSave }) => { const project = await getActiveProject(...
import { combineReducers } from 'redux'; import localeReducer from '../components/locale/locale-reducer'; import imageUploadReducer from '../pages/image-upload/image-upload-reducer'; export default combineReducers({ localeStore: localeReducer, imageUploadStore: imageUploadReducer });
var fs = require('fs'); var _ = require('lodash'); module.exports = function (app) { app.get('/api/v0/orders/:id?', function (request, response, next) { var id = request.params.id || null; var _json; var json; if (id) { try { _json = JSON.parse(fs.readFileSync(__dirname + '/../mocks/o...
/*! ramda 2014-06-30 */ !function(a,b){"object"==typeof exports?module.exports=b(a):"function"==typeof define&&define.amd?define(b):a.ramda=b(a)}(this,function(a){"use strict";return function(){function b(a,b){return a.toString=function(){return b.toString()},a.source=b,a}function c(a){return b(function(c,d){switch(arg...
#TODO: import # REQUIRES: num_items >= 0, capacity >= 0, # size of item_values >= num_items, # size of item_weights >= num_items, # item_values are all >= 0, item_weights are all >= 0 # EFFECTS: Computes the max value that can be obtained by picking # from a set of num_items items without exceedi...
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.wangEditor=e()}(this,function(){"use strict";function t(t){var e=void 0;return e=document.createElement("div"),e.innerHTML=t,e.children}function e(t){return!!t&&(t instanceof HTMLColl...
// Copyright 2012 The Closure Library 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 requ...
$(document).ready(function () { $('#add').click( function() { var add= $('#add').val() if(add!='' & add!="0.00" & add!=null){ actualizar() } }) $('#lejos_derecho_esferico').click( function() { var add= $('#add').val() if(add!='' & add!="0.00" & add...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import torch.nn as nn import torch.nn.functional as F class ActorCritic(nn.Module): def __init__(self, num_inputs, num_actions): super(ActorCritic, self).__init__() self.conv1 = nn.Conv2d(num_inputs, 32, 3, stride=2, padding=1) self.conv...
const { proto, getContentType } = require("@adiwajshing/baileys"); const { downloadMedia } = require("../utils"); /** * parse message for easy use * @param {proto.IWebMessageInfo} msg * @param {import("@adiwajshing/baileys/src").AnyWASocket} sock */ function serialize(msg, sock) { if (msg.key) { msg....
/*global declare, it, describe, beforeEach, afterEach, before, after*/ import { World, MorphicEnv, Label } from "../../index.js"; import { createDOMEnvironment } from "../../rendering/dom-helper.js"; import { Renderer } from "../../rendering/renderer.js"; import { expect } from "mocha-es6"; import { pt, rect, Color, Re...
from typing import Iterable from collections import deque from expr_calc.operators import op_map from expr_calc.token import Token, TokenType class Tree: def __init__(self, node: Token, children: Iterable["Tree"] = None) -> None: """ Initialise a Tree object with its value and optional children ...
YUI.add("datatype-number-parse",function(e,t){var n=e.Escape.regex,r="\\s*";e.mix(e.namespace("Number"),{_buildParser:e.cached(function(e,t,i,s){var o=[],u;return e&&o.push("^"+r+n(e)+r),t&&o.push(r+n(t)+r+"$"),i&&o.push(n(i)+"(?=\\d)"),u=new RegExp("(?:"+o.join("|")+")","g"),s==="."&&(s=null),function(e){return e=e.re...
/* * Copyright (c) 2020, HES-SO Valais-Wallis (https://www.hevs.ch) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyri...
(window.webpackJsonp=window.webpackJsonp||[]).push([[289],{4263:function(l,a,t){"use strict";t.r(a),t.d(a,"icon",(function(){return i}));t(12),t(4),t(2),t(6),t(3),t(10);var e=t(0),n=t.n(e);function r(){return(r=Object.assign||function(l){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var e in t)Object.proto...
'use strict'; const Funnel = require('broccoli-funnel'); const MergeTrees = require('broccoli-merge-trees'); const path = require('path'); const resolve = require('resolve'); module.exports = { name: 'ember-dynamic-render-template', included() { this._super.included.apply(this, arguments); this.import(`$...
/** * Created by knut on 14-11-23. */ module.exports.detectType = function(text){ if(text.match(/^\s*sequence/)){ return "sequence"; } else{ return "graph"; } }
import React, { PureComponent } from 'react'; import numeral from 'numeral'; import { connect } from 'dva'; import { Row, Col, Form, Card, Select, Avatar, List, Input, Icon, Button, Modal, message, } from 'antd'; import StandardFormRow from '@/components/StandardFormRow'; import PageHeaderWrappe...
import React from "react" import styles from "./about.module.css" import Layout from "../components/layout" const User = props => ( <div className={styles.user}> <img src={props.avatar} className={styles.avatar} alt="" /> <div className={styles.description}> <h2 className={styles.username}>{props.usern...
export default { // Options.jsx items_per_page: '/ পৃষ্ঠা', jump_to: 'যাও', jump_to_confirm: 'নিশ্চিত', page: '', // Pagination.jsx prev_page: 'আগের পৃষ্ঠা', next_page: 'পরের পৃষ্ঠা', prev_5: 'পূর্ববর্তী ৫ পৃষ্ঠা', next_5: 'পরবর্তী ৫ পৃষ্ঠা', prev_3: 'পূর্ববর্তী ৩ পৃষ্ঠা', next_3: 'পরবর্তী ৩ পৃষ...
import angular from "angular"; import uiRouter from "angular-ui-router"; import DashboardComponent from "./dashboard.component"; let DashboardModule = angular .module('app.components.authenticated.dashboard', [ uiRouter ]) .config(($stateProvider) => { 'ngInject'; $stateProvider ...
module.exports = { env: { browser: true, commonjs: true, es6: true, }, extends: [ 'airbnb-base', ], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly', }, parserOptions: { ecmaVersion: 2018, }, rules: { }, };
import Vue from 'vue' import Router from 'vue-router' import app from '../views/app/app' import Head from '../views/head/head' import footer from '../views/footer/footer' import login from '../views/login/login' import index from '../views/loads/index' import loadsByProduct from '../views/loads/loads' import loadTLs fr...
"""Makes figure with saliency maps for MYRORSS model.""" import os import argparse import numpy from PIL import Image import matplotlib matplotlib.use('agg') from matplotlib import pyplot from gewittergefahr.gg_utils import general_utils from gewittergefahr.gg_utils import file_system_utils from gewittergefahr.gg_util...
import {About} from './components/pages/About'; import {Form} from './components/pages/Form'; import {Sensor} from './components/pages/Sensor'; export const routes = [{ path: '/about/', component: About }, { path: '/form/', component: Form }, { path: '/sensor/:id', component: Sensor }];
import React, { useState } from "react"; import { Link } from "react-router-dom"; import { signApi } from "~/api/user"; import { saveLoggedInUserData } from "~/assets/storage"; import "./UserForms.css"; const SignInForm = () => { const initialState = { email: "", pwd: "", }; const [loginInputs, setLoginInputs]...
Input:: //// [/f.ts] //// [/tsconfig.json] {"compilerOptions":{"preserveWatchOutput":true}} //// [/a/lib/lib.d.ts] /// <reference no-default-lib="true"/> interface Boolean {} interface Function {} interface CallableFunction {} interface NewableFunction {} interface IArguments {} interface Number { toExponent...
/** * @license Copyright 2017 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 law or a...
import warnings import numpy as np from astropy import units as u from tardis.io.util import HDFWriterMixin class TARDISSpectrum(HDFWriterMixin): """ TARDISSpectrum(_frequency, luminosity) _frequency: astropy.units.Quantity with unit 'Hz' or a length These are bin edges of frequency or wavelenght...
import { getURLFromParams, GET_TWEETS_URL, GET_POSTS_URL, GET_TESTIMONIALS_URL } from 'utils/getURLFromParams'; import axios from 'axios'; import { HOME_VIDEO } from 'constants'; export const HOME__SET_CONTENT = 'HOME__SET_CONTENT'; export const HOME__PLAY_VIDEO = 'HOME__PLAY_VIDEO'; export const HOME__CLICK_E...
var u = require('uservices'); var m = require('./model'); function createRemoteProxy(service, client, server) { var proxy = {}; u.visitService(service, { onMethod: function (method) { proxy[method.name] = function () { var args = []; for (var _i = 0; _i < argu...
#!/usr/bin/env python3 import itertools as it, operator as op, functools as ft import os, sys, csv, contextlib, tempfile, zipfile, random import collections as cs, pathlib as pl # Disambiguations picked in a hurry tza_picks = ''' ACDT Australia/Adelaide ACST Australia/Adelaide AEDT Australia/Sydney AEST Australi...
import Vue from 'vue' import VueRouter from 'vue-router' import Home from './components/pages/home/Home' import About from './components/pages/about/About' Vue.use(VueRouter) var router = new VueRouter({ history: true, mode: 'history', routes: [ { path: '/', component: Home }, { pa...
// Generated by CoffeeScript 1.9.2 (function() { var Slack, autoMark, autoReconnect, slack, token; Slack = require('..'); token = 'xoxb-4625310637-ovmImgs4DMMhSyPxPzJikASY'; autoReconnect = true; autoMark = true; slack = new Slack(token, autoReconnect, autoMark); slack.on('open', function() { va...
/** * Custom preloading middleware. * * Site Kit by Google, 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 * * https://www.apache.org/licenses/LICENSE-...
import React, {useState, useEffect} from 'react' import {makeStyles} from '@material-ui/core/styles' import Card from '@material-ui/core/Card' import Typography from '@material-ui/core/Typography' import Divider from '@material-ui/core/Divider' import auth from './../auth/auth-helper' import PostList from './PostList' ...
// Use this file to change prototype configuration. // Note: prototype config can be overridden using environment variables (eg on heroku) module.exports = { // Service name used in header. Eg: 'Renew your passport' serviceName: 'Find a dispute resolution', // Default port that prototype runs on port: '3000'...
import random import json import requests import subprocess import datetime def get_ip_map(network_id): bashCommand = ["docker", "network", "inspect", "-f","\'{{json .Containers}}\'", network_id] process = subprocess.run(bashCommand, stdout=subprocess.PIPE) output = process.stdout.decode('utf-8') data ...
import React from 'react' import 'whatwg-fetch' class GooglePlacePhoto extends React.Component { constructor() { super() this.setState({ data: '', }) } componentDidMount() { this.reconstructionData() } reconstructionData() { fetch( 'https://maps.googleapis.com/maps/api/place/...
const InvalidArrayException = require('./invalidArrayException') const InvalidObjectException = require('./invalidObjectException') const CollectionInterface = require('@ostro/contracts/collection/collect') class JsonResources { static toObject(obj) { return obj } static collection(datas) { ...
export default { castType: 'passive', description: 'adds a stack of Ice Crystals to a target that hits you. When a target reaches 5 stacks of Ice Crystals they are stunned and have Frostbite applied to them. This can happen once per second.\n\nTargets are prevented from getting Ice Crystals for 20 seconds after...
import styled from 'styled-components'; import { Link } from 'react-router-dom'; import { Button } from '../../globalStyles'; export const TopDiv = styled.div` width: 100%; height: 50px; padding: 1rem; background: ${({ theme }) => theme.Primary}; background: transparent; background: ${({ theme }) => theme....
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various fingerprinting protections. If a stale block more than a month old or its header are requ...
import React from 'react' import styled from 'styled-components' import { device } from './styles/MediaQueries' import { HeadingStyle, ParagraphStyle, SubHeadingStyle, ColoredLink, } from './styles/TextStyles' import { PackageBuyContainer } from '../pages/services/standard' import { FAQParagraph } fro...
describe('source maps', () => { describe('build-dev', () => { before(() => { cy.task('zunder', { task: 'build-dev', project: 'default', args: '--zunderfile sourcemaps-zunderfile.js' }) }) it('adds source map file for each output file', () => { cy.readFile('test/projects/default/dist/main.js.m...
// adapted from https://github.com/albertocuestacanada/ERC20Permit/blob/master/utils/signatures.ts to not use typescript import { keccak256, defaultAbiCoder, toUtf8Bytes, solidityPack } from 'ethers-latest/lib/utils' import { ecsign } from 'ethereumjs-util' export const sign = (digest, privateKey) => { return ecsig...
from opytimizer.optimizers.swarm import GOA # One should declare a hyperparameters object based # on the desired algorithm that will be used params = { 'c_min': 0.00001, 'c_max': 1, 'f': 0.5, 'l': 1.5 } # Creates a GOA optimizer o = GOA(params=params)
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
import { compressMnemonic, decompressMnemonic, normalizeHexValue } from '../../../src/utils/key'; test('compressMnemonic', () => { expect(compressMnemonic([ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'ij', 'k', 'l', 'mn', 'o', 'pqr', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'one', 'more', ])).toBe('a b c d e f g h...
function solve(args) { var needed = args[0].toLowerCase(), text = args[1].toLowerCase(); reg = new RegExp(needed, 'g'); console.log(text.match(reg).length); }
function generator$pathfinder$halflings(type) { var nm1 = ["", "", "b", "br", "d", "f", "h", "j", "l", "m", "n", "p", "r", "s", "t", "tr", "v", "vr", "x"]; var nm2 = ["a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "aa"]; var nm3 = ["b", "b", "d", "d", "f", "f", "g", "g", "k", "k", "l", "l...
import React, { Component } from 'react'; import { Divider, Button } from 'antd'; import { formatMessage} from 'umi/locale'; import cs from "classnames"; import { connect } from "dva"; import { formatDate } from "@/utils/utils"; import OutlineLabel from './OutlineLabel'; import styles from './index.less'; import titleL...
/** * Model * . * Load Model */ const historiesModel = require("../models/m_histories"); /** * custom response helper * . * merapihkan output * response: function(res, statusExecution, data, statusCode, message) */ const myResponse = require("../helpers/myResponse"); // import joi const validate = require('....
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * 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 ri...
import config from './rollup.config' export default config({ output: { format: 'iife', file: 'dist/turndown-plugin-gfm.js', name: 'TurndownPluginGfmService' } })
// DO NOT EDIT! This test has been generated by tools/gentest.py. // OffscreenCanvas test in a worker:2d.state.saverestore.bitmap // Description:save()/restore() does not affect the current bitmap // Note: importScripts("/resources/testharness.js"); importScripts("/common/canvas-tests.js"); var t = async_test("save()...
var should = require('should'), InquireMapper = require('../lib/inquireMapper'); describe('inquireMapper', function() { var inquireMapper; beforeEach(function() { var commandMapperFake = { mapCommands : function() { return [{ name: 'foo', ...
import click import json import os import logging as log from pathlib import Path from baidubce.auth.bce_credentials import BceCredentials from baidubce.bce_client_configuration import BceClientConfiguration bce_config_file_path = Path.home() / '.config/bceutils/config.json' bce_endpoints = { 'eip': 'eip.{region}.ba...
// flow-typed signature: abf6089d4460ac6456fc6aded78cc562 // flow-typed version: <<STUB>>/lbryinc_vlbryio/lbryinc#351d0a08806b0f770b50066b61a806171f6424d4/flow_v0.94.0 /** * This is an autogenerated libdef stub for: * * 'lbryinc' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we...
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. * * @example $.cookie(...
var extend = require("xtend") var h = require('hyperscript') var handleChange = require('./handle_change') module.exports = function(options){ options = extend({ value: 50, min: 0, max: 100, step: 1, cursor: false, thickness: 0.35, lineCap: 'butt', readOnly: false, displayInpu...
export default { 'navbar.lang': '中文', 'menu.build': 'Auto Build', 'menu.build.listBuild': 'List Build', 'menu.build.listConfig': 'List Config', 'menu.build.formConfig': 'Form Config', 'menu.home': 'Home', 'menu.dashboard': 'Dashboard', 'menu.dashboard.analysis': 'Analysis', 'menu.dashboard.monitor': '...
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import matplotlib.pyplot as plt from tradingrrl import TradingRRL def main(): fname = "../data/USDJPY30.csv" init_t = 6000 T = 1000 M = 200 mu = 10000 sigma = 0.04 rho = 1.0 n_epoch = 10000 # RRL agent with initial w...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import modelcluster.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0072_auto_20151013_2006'), ] operations = [ migrations.RemoveField( model...
import counterpart from 'counterpart' import { base as baseTheme, Text, Paragraph } from 'grommet' import PropTypes from 'prop-types' import React from 'react' import styled from 'styled-components' import en from './locales/en' import CompletionBar from './components/CompletionBar' import MainGrid from './components/...
module.exports = { parser: '@typescript-eslint/parser', parserOptions: { project: 'tsconfig.json', sourceType: 'module', }, plugins: ['@typescript-eslint/eslint-plugin'], extends: ['plugin:@typescript-eslint/recommended'], root: true, env: { node: true, jest: ...
""" Test cases for functions/classes in nn_comparator.py -- kandasamy@cs.cmu.edu """ # pylint: disable=no-member # pylint: disable=invalid-name import numpy as np # Local imports from . import otmann from .unittest_neural_network import generate_cnn_architectures, \ generate_m...
""" Examples of network architecture. """ import torch import torch.nn as nn from torch.nn.init import kaiming_uniform_, uniform_ import torch.nn.functional as F import gym def mini_weight_init(m): if m.__class__.__name__ == 'Linear': m.weight.data.copy_(uniform_(m.weight.data, -3e-3, 3e-3)) m.bi...
/*! jQuery UI - v1.12.1 - 2017-02-28 * http://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/...
import 'jquery-circle-progress'; class Summary extends H5P.EventDispatcher { /** * @constructor * * @param {object} config * @param {object} parent * @param {object} params */ constructor(config, parent, chapters) { super(); this.parent = parent; this.behaviour = config.behaviour; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _Builder = require("../Builder"); //This curly brace function was //made by Alex Hornbake //http://bl.ocks.org/alexhornbake/6005176 function makeCurlyBrace(x1, y1, x2, y2, w, q) { //Calculate unit vector var dx = x1 - x2; var dy...
import React from 'react' const Projects = () => { return ( <section id="projects"> <div className="title-back"> <h2 className="title">Projects</h2> <hr/> </div> <div className="projects"> <div className="project"> <div className="project-info"> <di...
/* * Copyright 2016 IBM Corp. * * 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/li...
# Generated by Django 4.0.3 on 2022-03-28 21:33 import cloudinary.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('base', '0003_alter_image_description_alter_image_image'), ] operations = [ migrations.AlterField( model_name='i...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2020 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Renders this Game Object with the Canvas Renderer to the given Camera. * The object will not render if any of its renderFlags ar...
module.exports = require("npm:underscore@1.6.0/underscore");
export { default } from './RowToggle';
import { ServerStyleSheets } from "@material-ui/core/styles"; import Document, { Head, Html, Main, NextScript } from "next/document"; import React, { Children } from "react"; export default class MyDocument extends Document { static async getInitialProps(ctx) { // Render app and page and get the context of the p...