text
stringlengths
3
1.05M
# Algorithms from spinup.algos.dqn.dqn import dqn from spinup.algos.ddpg.ddpg import ddpg from spinup.algos.ppo.ppo import ppo from spinup.algos.sac.sac import sac from spinup.algos.td3.td3 import td3 from spinup.algos.trpo.trpo import trpo from spinup.algos.vpg.vpg import vpg # Loggers from spinup.utils.logx import L...
import Vue from 'vue' import { SIDEBAR_TYPE, DEFAULT_THEME, DEFAULT_LAYOUT_MODE, DEFAULT_COLOR, DEFAULT_COLOR_WEAK, DEFAULT_FIXED_HEADER, DEFAULT_FIXED_SIDEMENU, DEFAULT_FIXED_HEADER_HIDDEN, DEFAULT_CONTENT_WIDTH_TYPE, DEFAULT_MULTI_PAGE } from "@/store/mutation-types" const app = { state: { ...
# This file is automatically generated by tools/idna-data # vim: set fileencoding=utf-8 : """IDNA Mapping Table from UTS46.""" __version__ = "10.0.0" def _seg_0(): return [ (0x0, '3'), (0x1, '3'), (0x2, '3'), (0x3, '3'), (0x4, '3'), (0x5, '3'), (0x6, '3'), (0x7, '3'), (0x8, '3...
/*! For license information please see a9a7754c-21b30b1bbd0164a7ef7c.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"8tEE":function(c,a,l){"use strict";l.d(a,"a",(function(){return z}));var z={fa500px:{prefix:"fab",iconName:"500px",icon:[448,512,[],"f26e","M103.3 344.3c-6.5-14.2-6.9-18.3 7.4...
# -*- coding: utf-8 -*- ''' Created on 1983. 08. 09. @author: Hye-Churn Jang, CMBU Specialist in Korea, VMware [jangh@vmware.com] ''' exportObjects = [] # __ABX_IMPLEMENTATIONS_START__ #=============================================================================== # Rest SDK Implementation ...
const lernaRun = require('@lerna/run'); runTemplateExplorer(); async function runTemplateExplorer() { await lernaRun({ script: 'dev:parcel' }); }
var originx = 0; var originy = 0; var scale = 1; var dragOffset = new Array(); var mouseIsDown = false; function MouseWheelHandler(e) { // cross-browser wheel delta var e = window.event || e; // old IE support var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail))); var mousex = e.clientX - ...
"use strict"; var test = require("tape") var map = require("../") var spigot = require("stream-spigot") var concat = require("terminus").concat test("ctor", function (t) { t.plan(2) var Map = map.ctor(function (record) { record.foo.toUpperCase() return record }) function combine(records) { t.eq...
import React from 'react'; import {Link} from 'react-router'; import NavbarStore from '../stores/NavbarStore'; import NavbarActions from '../actions/NavbarActions'; class Navbar extends React.Component { constructor(props) { super(props); this.state = NavbarStore.getState(); this.onChange =...
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['Click>=7.0', ] setup_requirements = ['pytest-runner', ] te...
import handler from "./libs/handler-lib"; import dbConn from './config/db.config'; export const main = handler(async (event, context) => { /*dbConn.query('SELECT * FROM notes WHERE id = ? AND user_id = ?', [event.pathParameters.id, 1], function (error, results, fields) { if (error) throw error; co...
# Copyright 2017 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...
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) Copyright (C) 2020 Stefano Gottardo Kodi library integration SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from __future...
const { runCommandSync } = require('./utils'); const commandLineArgs = require('command-line-args'); const ENVIRONMENTS = require('../src/site/constants/environments'); const defaultBuildtype = ENVIRONMENTS.LOCALHOST; const COMMAND_LINE_OPTIONS_DEFINITIONS = [ { name: 'buildtype', type: String, defaultValue: defau...
import CCollapse from "./main"; /* istanbul ignore next */ CCollapse.install = function(Vue) { Vue.component(CCollapse.name, CCollapse); }; export default CCollapse;
(function(){var e=window.BX;e.namespace("BX.UI");if(!!e.UI.Selector.Navigation){return}e.UI.Selector.Navigation=function(e){this.selectorInstance=e.selectorInstance;this.selectorManager=this.selectorInstance.manager};e.UI.Selector.Navigation.create=function(t){return new e.UI.Selector.Navigation(t)};e.UI.Selector.Navig...
import React from 'react'; export default function Footer({ caption, username }) { return ( <div className="p-4 pt-2 pb-0"> <span className="mr-1 font-bold">{username}</span> <span>{caption}</span> </div> ) }
import N8nUsersList from './UsersList.vue'; import { action } from '@storybook/addon-actions'; export default { title: 'Modules/UsersList', component: N8nUsersList, argTypes: { }, parameters: { backgrounds: { default: '--color-background-light' }, }, }; const methods = { onReinvite: action('reinvite'), onDe...
'use strict'; module.exports = { up: function (queryInterface, Sequelize) { return queryInterface.bulkInsert('Stars', [ { id: 1, userId: 1, kommandrId: 7, createdAt: new Date(), updatedAt: new Date() }, { id: 2, userId: 1, kommandr...
const bridge = require('@splinterlands/external-bridge'); const GAME_API_URL = 'https://node.splinterlands.com'; const DEPOSIT_ACCOUNT = 'sl-bsc'; const SUPPORTED_TOKENS = ['DEC', 'SPS']; start(); async function start() { bridge.init({ game_api_url: GAME_API_URL, save_state: (last_block) => { console.log(`Load...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.init = init; exports.shouldUpdateScroll = shouldUpdateScroll; exports.RouteUpdates = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireD...
module.exports = { // InstagramBot.js Configs "debug": true, "login": true, "ui": false, // only for social-manager-tools // Instagram Account "instagram_username": "khabib.and.tony.ferguson", // without @ "instagram_password": "Ferguson90", "instagram_hashtag": ["ufc", "mma", "fighter"...
# automatically generated by the FlatBuffers compiler, do not modify # namespace: BaBLE import flatbuffers class Service(object): __slots__ = ['_tab'] @classmethod def GetRootAsService(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Service() ...
define('crm/Integrations/BOE/Views/QuoteLines/Detail', ['module', 'exports', 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/_base/connect', 'crm/Format', 'argos/Detail', '../../Models/Names', 'argos/I18n', '../../Utility', '../../PricingAvailabilityService'], function (module, exports, _declare, _lang, _connect, _Forma...
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Bruno Cauet # # 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 r...
import React, { Component } from "react"; import axios from "axios"; export default class PortfolioDetail extends Component { constructor(props) { super(props); this.state = { portfolioItem: {} }; } componentWillMount() { this.getPortfolioItem(); } getPortfolioItem() { axios ...
/* eslint-disable */ import "bootstrap"; import "./style.css"; import "./assets/img/rigo-baby.jpg"; import "./assets/img/4geeks.ico"; import { eventListeners } from "@popperjs/core"; window.onload = function() { //write your code here document.querySelector("#btn").addEventListener("click", () => { document.q...
#!/usr/bin/env node "use strict"; let Promise = require("bluebird"); let fs = Promise.promisifyAll(require("fs.extra")); let shortid = require("shortid"); let cli = require("commander"); let machines = null; try { machines = require(__dirname + "/machines.json"); } catch (e) { machines = {}; } /** * Write the ...
from Bio import AlignIO import sys input_file = sys.argv[1] output_file = sys.argv[2] with open(input_file) as handle: records = AlignIO.parse(handle, "fasta") with open(output_file, "w") as output_handle: AlignIO.write(records, output_handle, "phylip")
export const { format: formatPrice } = new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'CVE', });
"use strict";class PageFilterCultsBoons extends PageFilter{constructor(){super();this._sourceFilter=new SourceFilter;this._typeFilter=new Filter({header:"Type",items:["Boon, Demonic","Cult"]})}static mutateForFilters(it){it._fType=it.__prop==="cult"?"Cult":it.type?`Boon, ${it.type}`:"Boon"}addToFilters(it,isExcluded){i...
from django.contrib import admin from .models import Post class PostAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'status', 'created_on') list_filter = ("status") search_fields = ['title', 'content'] prepopulated_fields = {'slug' : }
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import ReactTable from 'react-table-6'; import { DeleteButton } from '../components/buttons'; import api from '../api'; import styled from 'styled-components'; import 'react-table-6/react-table.css'; const Wrapper = styled.div` padd...
# *************************************************************** # Copyright (c) 2020 Jittor. Authors: # Guoye Yang <498731903@qq.com> # Dun Liang <randonlang@gmail.com>. # All Rights Reserved. # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source co...
'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const vueLoaderConfig = require('./vue-loader.conf') function resolve (dir) { return path.join(__dirname, '..', dir) } module.exports = { context: path.resolve(__dirname, '../'), entry: { app: './s...
/* Config file for a basic IRC bridge plugin written in GO Binary will be spawned using child_process.spawn and get input from stdin and text from stdout will be ran as commands in the factorio server. */ var os = require("os"); var binary = "build/clusterioIRCbridge_windows"; if(os.platform == "linux") binary = "b...
(window.webpackJsonp=window.webpackJsonp||[]).push([[93],{TpdJ:function(t,e,i){"use strict";i.r(e),i.d(e,"ion_tab",(function(){return a})),i.d(e,"ion_tabs",(function(){return o}));var s=i("54nT"),n=(i("AfW+"),i("m9yc"));const a=class{constructor(t){Object(s.k)(this,t),this.loaded=!1,this.active=!1}async componentWillLo...
module.exports = { rules: { // 禁止在循环中出现 await 'no-await-in-loop': ['error'], // 强制 “for” 循环中更新子句的计数器朝着正确的方向移动 'for-direction': ['error'], // 强制 getter 函数中出现 return 语句 'getter-return': ['error'], // 禁止使用异步函数作为 Promise executor 'no-async-promise-executor': ['error'], // 禁止与 -0 进行...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); // --------------------------------------------------------------------------- module.exports = class vaultoro extends Exchange { describe () { return this.deepExten...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function IoIosSkipBackward (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M175 100v137.8L403.9 98.1c5.3-3.1 12.1.7 12.1 6.9v302c0 6.2-6.7 10-12.1 6.9L175 274.2V412c0 2.2-1.8 4-4 4h-71c-2...
'use strict'; const { writeFile } = require('fs'); const { promisify } = require('util'); const { copy } = require('fs-extra'); const path = require('path'); const templater = require('./functionTemplates/template'); const { validateName } = require('./nameUtil'); const YMLUtil = require('./binarisYML'); const tem...
// Copyright (c) 2009-2017 SAP SE, All Rights Reserved /* global sinaDefine */ sinaDefine([], function () { "use strict"; return function (oContext, gen) { var res = {}; res.alligatorbook = [oContext.sina._createSearchResultSetItemAttribute({ id: 'PUBLICATION', va...
'use strict' var jss = require('../jss') var utils = require('../utils') var styles = require('./styles') var sheet = jss.createStyleSheet(styles.rules) /** * Canvas is a container view events can be added to. */ function Canvas() { this.element = null this.contentElement = null } module.exports = Canvas ...
(function($, undefined){ window.URL = window.webkitURL || window.URL; window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder; function build(files) { var $out = $('#output'), $progress = $('#prog'), sources = [], connections = [], source...
/*global process, global */ /** * @file Creates REPL interface with built in Salesforce API objects and automatically resolves promise object * @author Shinichi Tomita <shinichi.tomita@gmail.com> * @private */ 'use strict'; var stream = require('readable-stream'), Readable = stream.Readable, Writable = st...
const getEnvVars = () => { const { DRINKS_API, GMAPS_KEY, MONGO_URI, MONGO_DB_NAME } = process.env; return { DRINKS_API, GMAPS_KEY, MONGO_URI, MONGO_DB_NAME }; }; const runJob = async function run() { const axios = require('axios'); const _get = require('lodash/get')...
/** * @module Tags */ import { mxUtils, mxImage } from '../misc/mxExport.js'; import AbstractTag from './AbstractTag.js'; import CONST from '../misc/Constants.js'; /** * @classdesc The tag indicates if the ui element is dynamic * * It maps the collabortive property the front end component model * The tag is uni...
#!/usr/bin/env python import os COV = None if os.environ.get('FLASK_COVERAGE'): import coverage COV = coverage.coverage(branch=True, include='app/*') COV.start() from app import create_app, db from app.models import User, Follow, Role, Permission, Post, Comment, Like from flask_script import Manager, Shell...
# coding=utf-8 import logging import random import string import sys import unittest from time import time, sleep import apiritif import os import re from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.webdriver.common.by import By from seleniu...
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.skins.add('kama',(function(){var a=[],b='cke_ui_color';if(CKEDITOR.env.ie&&CKEDITOR.env.version<7)a.push('icons.png','images/sprites_ie6.png','images/dialog_sides.g...
import { Editor } from 'slate-react' import { Value } from 'slate' import React from 'react' import Video from './video' import initialValueAsJson from './value.json' /** * Deserialize the initial editor value. * * @type {Object} */ const initialValue = Value.fromJSON(initialValueAsJson) /** * The images examp...
import { combineReducers } from 'redux'; import { CONFERENCE_FAILED, CONFERENCE_LEFT } from '../conference/actionTypes'; import { ReducerRegistry } from '../redux'; import { TRACK_REMOVED } from '../tracks/actionTypes'; import { SET_AUDIO_AVAILABLE, SET_AUDIO_MUTED, SET_CAMERA_FACING_MODE, SET_VIDEO_A...
import React, {useState, useEffect} from 'react'; import './LocalWeatherReport.scss'; import { CITIES_API_URL } from '../../utils/constants'; import { CitiesSelect, CurrentWeather, HourlyWeather, WeekWeather } from '../../components'; const LocalWeatherReport = () => { const [cities, setCities] = useState([]); ...
/* postcss 配置文件 **/ module.exports = { plugins: [ require('autoprefixer') ] }
const bahasa = (prefix, sender) => { return `*LISTA DE CODIGOS DE LINGUA* *COD LINGUA* sq Albanian ar Arabic hy Armenian ca Catalan zh Chinese zh-cn Chinese (China) zh-tw Chinese (Taiwan) zh-yue Chinese (Cantonese) hr Croa...
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer, SpacegroupOperations, PointGroupAnalyzer from pymatgen.util.coord import coord_list_mapping_pbc, coord_list_mapping from pymatgen import Lattice, Structure, Composition, Molecule from bsym import SpaceGroup, SymmetryOperation, ConfigurationSpace, PointGroup fro...
mycallback( {"ELECTION CODE": "G2010", "EXPENDITURE PURPOSE DESCRIP": "Shipping", "BENEFICIARY CANDIDATE OFFICE": "", "PAYEE ZIP": "92626", "MEMO CODE": "", "PAYEE STATE": "CA", "PAYEE LAST NAME": "BURNIAS", "PAYEE CITY": "Costa Mesa", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "", "PAYEE FIRST NAM...
import React from 'react'; import { TextInput } from '@patternfly/react-core'; import PropTypes from 'prop-types'; import { useFieldApi } from '@data-driven-forms/react-form-renderer'; import FormGroup from '../form-group/form-group'; import showError from '../show-error/show-error'; const DatePicker = (props) => { ...
const router = require('express').Router(); const { User } = require('../../models'); router.post('/', async (req, res) => { try { const userData = await User.create(req.body); req.session.save(() => { req.session.user_id = userData.id; req.session.logged_in = true; ...
'use strict'; // alert('I work'); // console.log('app.js in the house'); document.addEventListener('DOMContentLoaded', () => { const themeStylesheet = document.getElementById('theme'); const storedTheme = localStorage.getItem('theme'); console.log(storedTheme); if(storedTheme){ themeStylesheet.href = sto...
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World from Flask in a uWSGI Nginx Docker container with \ Python 2.7 (default)" if __name__ == "__main__": app.run(host='0.0.0.0', port=9000)
// ---------------------------------------------------------------------------- // markItUp! // ---------------------------------------------------------------------------- // Copyright (C) 2008 Jay Salvat // http://markitup.jaysalvat.com/ // ---------------------------------------------------------------------------- ...
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D u Y I M H"},C:{"1":"0 1 2 3 4 5 6 7 Z a b c d e f L h i j k l m n o p q r s t y v","2":"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 w SB RB"},D:{"1":"0 1 2 3 4 5 6 7 e f L h i j k l m n o q r s t y v GB g DB VB EB","2":"F J K C G E B A D u Y I M H N O P Q...
import contextlib import functools import itertools import shutil import subprocess import tempfile import numpy as np import pytest from lightgbm import LGBMClassifier from sklearn import datasets from sklearn.base import clone from sklearn.ensemble import forest from sklearn.utils import shuffle from sklearn.linear...
import app from 'firebase/app' import 'firebase/auth' import 'firebase/firestore' import { firebaseConfig } from 'Config' class Firebase { constructor() { app.initializeApp(firebaseConfig) this.auth = app.auth() } async login(email, password) { return await this.auth.signInWithEmailAndPassword(emai...
//>>built define("dojox/form/nls/ja/PasswordValidator",{nomatchMessage:"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002",badPasswordMessage:"\u7121\u52b9\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u3059\u3002"}); //# sourceMappingURL=PasswordValidator.js.map
/* * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under * the MIT License. See LICENSE in the project root for license information. * <autogenerated> This file was generated using AutoRest. </autogenerated> */ 'use strict'; var util = require('util'); var msRest = require('ms-rest')...
#!/usr/bin/env python3 # Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """ This script runs memcheck tests isolated with help of gtest_parallel. It can upload memory measurment results to database and generate reports. """ import argparse import json import logging import os import ...
# coding=utf-8 import logging import random import string import sys import unittest from time import time, sleep import apiritif import os import re from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.webdriver.common.by import By from seleniu...
"use strict"; exports.__esModule = true; exports.c_data_list_sm_BorderTopWidth = { "name": "--pf-c-data-list--sm--BorderTopWidth", "value": "1px", "var": "var(--pf-c-data-list--sm--BorderTopWidth)" }; exports["default"] = exports.c_data_list_sm_BorderTopWidth;
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){CKEDITOR.plugins.add("placeholder",{requires:"widget,dialog",lang:"ar,bg,ca,cs,cy,da,de,el,en,en-gb,eo,es,et,eu,fa,fi,fr,fr-ca,gl,he,hr,hu,id,it,ja,km,ko,ku,lv,nb...
window.peopleAlsoBoughtJSON = [{"asin":"B00FQRCM9O","authors":"Mary Shelley","cover":"5127OtHzHuL","length":"8 hrs and 35 mins","narrators":"Dan Stevens","title":"Frankenstein"},{"asin":"B076FF3QGP","authors":"Robert Louis Stevenson","cover":"51NTweZY1fL","length":"3 hrs and 7 mins","narrators":"Richard Armitage","titl...
# Generated by Django 2.0.3 on 2018-03-16 04:19 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('schedules', '0001_initial'), ] operations = [ migrations.CreateModel( name=...
//This file is automatically rebuilt by the Speed3DGis build process. class common{static theWord() { return "#define PI 3.14159265359\n\ #define PI2 6.28318530718\n\ #define PI_HALF 1.5707963267949\n\ #define RECIPROCAL_PI 0.31830988618\n\ #define RECIPROCAL_PI2 0.15915494\n\ #define LOG2 1.442695\n\ #define EPSIL...
function calculateArray(ext) { minElement = ext['min']; maxElement = ext['max']; } function arrayExt(a) { let tmpMin = 0; let tmpMax = 0; for (let i = 1; i < a.length; i++) { if (a[i] < a[tmpMin]) tmpMin = i; if (a[i] > a[tmpMax]) tmpMax = i; } retu...
/** * 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...
"""Base Simulator ==================== This module contains the abstract definition of a simulator. It has the definition of BaseSimulator, that should be extended, implementing its abstract methods. Example: Creating a simulator:: class NewSimulator(BaseSimulator): def compute_next_state(sel...
DEVICE_ID= ACCESS_TOKEN=
var DynProgr__PPU_8h = [ [ "swps3_alignmentByteSPE", "DynProgr__PPU_8h.html#aca0438540693690c95f4545dd58baca4", null ], [ "swps3_alignmentFloatSPE", "DynProgr__PPU_8h.html#a97412bfb0dcce968d991a4450d21516d", null ], [ "swps3_alignmentProfileSPE", "DynProgr__PPU_8h.html#a13a4e863d8d5d81a91a0be0b02962f2c", nu...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Operator use ToInteger from start esid: sec-array.prototype.slice es5id: 15.4.4.10_A2.1_T2 description: start = NaN ---*/ var x = [0, 1, 2, 3, 4]; var arr = x.slice(NaN, 3); ...
import torch import warnings from enum import IntEnum from skimage import io import numpy as np from distutils.version import LooseVersion from .utils import * class LandmarksType(IntEnum): """Enum class defining the type of landmarks to detect. ``_2D`` - the detected points ``(x,y)`` are detec...
from architecture.crowd_count import CrowdCounter import architecture.network as network from manage_data.utils import mkdir_if_missing as mkdir_if_missing from architecture.utils import save_results as save_results import numpy as np import torch def evaluate_model(trained_model, data_loader, save_test_results = Fals...
import { testHandler } from '@core/utils/test' import { expect } from 'chai' import create from './create' describe('src/apps/team/admin/api/users/create.js', () => { })
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)...
function products_onselect(args) { if (args.value != "") { $('#ProductID').val(args.value) } };
/** * * @param role * @param url * @returns {Function} */ export default function (role, url) { return function (req, res, next) { if (req.user.role() !== role) { res.redirect(url); return; } next(); }; }
"""STIX 2.1 Relationship Objects.""" from collections import OrderedDict from ..properties import ( BooleanProperty, IDProperty, IntegerProperty, ListProperty, ReferenceProperty, StringProperty, TimestampProperty, TypeProperty, ) from ..utils import NOW from .base import _RelationshipObject from .common impor...
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { assertDefined } from '../util/assert'; import { icuContainerIterate } from './i18n/i18n_tree_shaking'; import...
// 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // 3. This function creates a...
import React, { Component } from 'react'; class Error extends Component{ render(){ return( <div> <h1>Pagina não encontrada!</h1> </div> ); } } export default Error;
import React from 'react'; import { View } from 'react-native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { TabBar } from './components/Layout/Menu/TabBar'; import HomeScreen from './screens/HomeScreen'; import AlertsScreen from './screens/AlertsScreen'; import StatsScreen from '....
const got = require('@/utils/got'); const config = require('@/config').value; function secondsTillTomorrow() { const d = new Date(); const seconds_today = d.getSeconds() + 60 * (d.getMinutes() + 60 * d.getHours()); return 86400 - seconds_today; } module.exports = async (ctx) => { const resultItems = a...
const mongoose = require('mongoose'); const passport = require('passport'); var User = mongoose.model('User'); const _=require('lodash'); module.exports.register = (req,res,next) => { var user = new User(); user.fullName = req.body.fullName; user.email = req.body.email; user.password = req.body.password; user...
!function(a){a.fn.datetimepicker.dates.ms={days:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu","Ahad"],daysShort:["Aha","Isn","Sel","Rab","Kha","Jum","Sab","Aha"],daysMin:["Ah","Is","Se","Ra","Kh","Ju","Sa","Ah"],months:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","Nov...
const Sequelize = require('sequelize'); let sequelize = require('../sequelize'); const Code = sequelize.define('code', { id: { type: Sequelize.INTEGER, autoIncrement: true, primaryKey: true }, code : { type: Sequelize.STRING(1234), allowNull: false } }); if(process.env.ENVIRONMENT == 'development'){ Co...
import sys CODE = { 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '....
const dbconfig = { HOST: "localhost", USER: "root", PASSWORD: "rCCeF4N;k", DB: "faketwitter", dialect: "mysql", pool: { max: 5, min: 0, acquire: 30000, idle: 10000 } }; module.exports = dbconfig;
#!/usr/bin/env python import json import os import subprocess def normalize_target(target): if ':' in target: return target return target + ':' + os.path.basename(target) def gn_desc(root_out_dir, target, *what_to_show): # gn desc may fail transiently for an unknown reason; retry loop for i in xrange...
// Given an element this class can go back or forward to that element's history class History { constructor(element) { this.element = element; this.currentIndex = 0; this.historyArray = [element.innerHTML] } goBack() { let i = this.currentIndex - 1; if (i < 0) { ...
var searchData= [ ['t_5fangle_0',['T_Angle',['../class_t_stage_object.html#ac7a60ddc803173dc7591f784577cb439a08806eb331bdede66bb3113b1642a6ad',1,'TStageObject']]], ['t_5fpath_1',['T_Path',['../class_t_stage_object.html#ac7a60ddc803173dc7591f784577cb439aa0630d9663bbf752a92702f3a1818e58',1,'TStageObject']]], ['t_5f...