text
stringlengths
3
1.05M
""" Django URLs config for locallibrary project. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name...
import React from 'react'; const VideoListItem = ({ video, onVideoSelect }) => { const imgUrl = video.snippet.thumbnails.default.url; const title = video.snippet.title; return ( <li onClick={ () => onVideoSelect(video) } className="list-group-item"> <div className="video-list media"> ...
(function($){ //closeDOMWindow $.fn.closeDOMWindow = function(settings){ if(!settings){settings={};} var run = function(passingThis){ if(settings.anchoredClassName){ $('.'+settings.anchoredClassName).fadeOut('slow',function(){ if($.fn.draggable){ $('.'+settings.anchoredClassName).draggable('...
module.exports = [{ plugin: require('../node_modules/gatsby-plugin-offline/gatsby-browser.js'), options: {"plugins":[]}, },{ plugin: require('../node_modules/gatsby-plugin-manifest/gatsby-browser.js'), options: {"plugins":[],"name":"Gatsby Simplefolio","short_name":"Simplefolio","start_url":...
# -*- coding: utf-8 -*- from . import ( appmesh, wafregional, quicksight, elasticache, appflow, lookoutmetrics, greengrass, athena, glue, sagemaker, s3, elasticbeanstalk, pinpoint, eventschemas, customerprofiles, apprunner, iotanalytics, dms, ...
# coding: UTF-8 import sys l1lll1ll = sys.version_info [0] == 2 l1lll1l1 = 2048 l11l1l1 = 7 def l11lllll (l111l11): global l1l11 l1l1l1 = ord (l111l11 [-1]) l1ll111l = l111l11 [:-1] l1lll1l = l1l1l1 % len (l1ll111l) l1ll1l = l1ll111l [:l1lll1l] + l1ll111l [l1lll1l:] if l1lll1ll: l1l1l1l1...
# Copyright 2016 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...
#!/bin/env python from app import createApp, socketio import sys, getopt app = createApp(debug=True) if __name__ == '__main__': farport = 5000 try: opts, args = getopt.getopt(sys.argv[1:],"hp",["port="]) except getopt.GetoptError: print 'chat.py -p <portnumber>' sys.exit(2) for opt, arg in opts: if opt ...
"""Test function in __init__.py.""" from __future__ import annotations from collections.abc import Awaitable, Callable from typing import Any from unittest.mock import patch from aiohttp import ClientWebSocketResponse from mysensors import BaseSyncGateway from mysensors.sensor import Sensor import pytest from homeas...
exports.load = (gateway, discord) => { gateway.event("error", (client, error, msg, text) => { discord.getCurrentUser().then(bot => { function responseText(errorMessage) { discord.createMessage(msg, { embed: { title: "Błąd!", ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define('toastmaker', ['exports'], factory) : (factory((global.toastmaker = {}))); }(this, (function (exports) { 'use strict'; let toasts = { ...
# Combines 2 pareto fromtier obtained from the separability test into a new one. from get_pareto import Point, ParetoSet from sympy.parsing.sympy_parser import parse_expr import numpy as np import matplotlib.pyplot as plt import os from os import path from sympy import Symbol, lambdify, N from get_pareto impo...
/*************************************************************************** * lpconfig.h * * Thu Mar 10 15:02:49 2005 * Copyright 2005 Simon Morlat * Email simon.morlat@linphone.org ****************************************************************************/ /* * This program is free software...
import typing as t from .date import Date from pydantic import conint import datetime as dt import persiantools.jdatetime as jdt import pytz def get_datetime_dict(datetime: dt.datetime, fa: bool = False): if fa: if not isinstance(fa, bool): tz = fa else: tz = pytz.timezone(...
/** * @file common.c * @brief TODO * @author Takashi Kashiwagi * @date 2018/10/28 * @version 0.1 * @details * -- * License Type <MIT License> * -- * Copyright 2018 Takashi Kashiwagi * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated doc...
/* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; e...
export default { data() { return { current: 1, total: null, pageSize: 16, } }, methods: { pageList(val) { if(this.pageTotal){ this.current = val this.initData(); }else{ this.current = val this.getList() } } }, computed: { ...
'use strict'; goog.require('grrUi.semantic.module'); goog.require('grrUi.tests.browserTrigger'); goog.require('grrUi.tests.module'); var browserTrigger = grrUi.tests.browserTrigger; describe('client urn directive', function() { var $q, $compile, $rootScope, $timeout, grrApiService, grrRoutingService; beforeEach...
#!/usr/bin/env python # coding: utf-8 # (ch:end2end)= # # 머신러닝 프로젝트 처음부터 끝까지 # **감사의 글** # # 자료를 공개한 저자 오렐리앙 제롱과 강의자료를 지원한 한빛아카데미에게 진심어린 감사를 전합니다. # **소스코드** # # 본문 내용의 일부를 파이썬으로 구현한 내용은 # [(구글코랩) 머신러닝 프로젝트 처음부터 끝까지](https://colab.research.google.com/github/codingalzi/handson-ml3/blob/master/notebooks/code_end2en...
#!/usr/bin/env python # -*- encoding: 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...
var inbox = require(".."), util = require("util"); var client = inbox.createConnection(false, "imap.gmail.com", { secureConnection: true, auth:{ user: "test.nodemailer@gmail.com", pass: "Nodemailer123" }, debug: true }); client.connect(); client.on("connect", function(){ clie...
""" Null datasource. Also the _interface specification_ provided to all dataoutputs. The null DataSource class should be used as a base class for all other DataSources. """ from logan.datasource import DataPoint def register_arguments(logan_config): """ Interface function. When module is loaded, this func...
from functools import partial import time from slackclient import SlackClient import threading import logging from typing import ( TYPE_CHECKING, List, Iterable, Optional, Generator, Any, Union, TypeVar, Dict, Type ) if TYPE_CHECKING: from uqcsbot.base import UQCSBot # noqa T = TypeVar('T') ChanT = TypeVar('Ch...
"""Solution to Project Euler Problem 8 https://projecteuler.net/problem=8 """ from functools import reduce from operator import mul FILENAME = "resources/p008_number.txt" SEGMENT_SIZE = 13 def compute(filename=FILENAME, segment_size=SEGMENT_SIZE): """Compute the largest product of `segment_size` adjacent digit...
window.peopleAlsoBoughtJSON = [{"asin":"B099SGDFBP","authors":"Richard Hanners","cover":"41kywdPsc3S","length":"12 hrs and 17 mins","narrators":"Sarina Hart","subHeading":"The Anaconda, Book 2","title":"A New Earth"},{"asin":"B09QH5X4LR","authors":"Michael Chatfield","cover":"41ijxAu3tdL","length":"17 hrs and 7 mins","...
#!/usr/bin/env python3 import os import subprocess from typing import List, Optional from common.basedir import BASEDIR from selfdrive.swaglog import cloudlog def run_cmd(cmd: List[str]) -> str: return subprocess.check_output(cmd, encoding='utf8').strip() def run_cmd_default(cmd: List[str], default: Optional[s...
/* * Copyright 2016-2018 Leo McCormack * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
import React from 'react'; import styles from './WorkingOn.module.scss'; const WorkingOn = () => ( <div className={styles['workingon']}> <b> Working On </b> <div> <a href="https://ember-migration-helper.web.app" target="_blank">Ember Migration Helper</a> </div> </div> ); export default Working...
import React from 'react'; import { Row, Col } from 'react-flex-proto'; import { Page, Panel, Modal, Button, Breadcrumbs, Input, Select, Switch, Tabs, Tab, Table, TableHead,TableBody, TableRow } from 'react-blur-admin'; import { Link } from 'react-router'; import _ from 'lodash'; import axios from 'axios'; import eve...
"""This module contains the general information for BiosVfSrIov ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfSrIovConsts: VP_SR_IOV_DISABLED = "Disabled" VP_SR_IOV_ENABLED = "Enabled" _VP_SR_IOV_DISAB...
from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseRedirect from django.urls import reverse from django.shortcuts import render from django.views import View from administracao.models import * class LoginRequired(LoginRequiredMixin): """Configurações para o login""" ...
App.UI.registerUIComponent('control','chart', { create: function() { this.getAttributes = function() { // chartModes line clustered stacked 100% stacked return [ {name: 'type', optional: false, defaultValue: '', description: "enumerated value, or property on payload to find value"}, {name:...
# # (c) Copyright 2015 Hewlett Packard Enterprise Development LP # (c) Copyright 2017 SUSE 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 # # http://www.apache.org/licenses/LICENSE-2.0 #...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='key-functions-python', version='1.0', description='D8-tree key functions.', author='Ce...
document.getElementById('btn0').addEventListener('click', function() { document.getElementById('res').insertAdjacentHTML('beforeend', '0'); }); document.getElementById('btn1').addEventListener('click', function() { document.getElementById('res').insertAdjacentHTML('beforeend', '1'); }); function operatorAction(ev...
# coding=utf-8 # Copyright 2021 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup( name='secretpuller', version='1.0.0', description='Small abstraction for pulling secret values from GCP secrets manager', long_description='Small abstraction for pulling secret values from GCP secrets manager', autho...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "UESVON/Public/SVONLink.h" #include "UESVON/Public/SVONNavigationPath.h" #include "UESVON/Public/SVONTypes.h" #include <Runtime/Engine/Classes/Components/ActorComponent.h> #include "SVONNavigationComponent.generated...
/*! * Bootstrap v3.3.2 (http://getbootstrap.com) * Copyright 2011-2015 [object Object] * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].spl...
import Vue from 'vue' import BootstrapVue from "bootstrap-vue"; import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap-vue/dist/bootstrap-vue.min.css'; import App from './pages/human_practice/human_practice'; Vue.use(BootstrapVue); Vue.prototype.$isDev = true; Vue.config.product...
const Sequelize = require("sequelize"); const conn = require("../database/database"); const adminAuth = require("../middlewares/adminAuth"); const User = conn.define('user', { name: { type: Sequelize.STRING, allowNull: false }, username: { type: Sequelize.STRING, allowNull: ...
import base64 exec(base64.b16decode('2320436F6D70696C6564204279203A2042696E79616D696E0A2320476974487562203A2068747470733A2F2F6769746875622E636F6D2F42696E79616D696E2D62696E6E690A2320596F7554756265204368616E6E656C203A20547269636B2050726F6F660A696D706F7274206D61727368616C0A65786563286D61727368616C2E6C6F6164732827635C7830...
/* * Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ //@ts-check - Get type warnings from the TypeScript language server. Remove if not wanted. /** * Get access to the Spotfire Mod API by providing a callback...
n = int(input()) ans = 0 a = [[False] * 105 for _ in range(105)] for _ in range(n): x1, y1, x2, y2 = map(int, input().split()) for i in range(x1, x2): for j in range(y1, y2): a[i][j] = 1 for i in range(105): for j in range(105): if a[i][j] == 1: ans += 1 print(ans)
import React from "react" class ContactForm extends React.Component{ constructor(props){ super(props); this.state={ fullName:"", email:"", subject:"", message:"", hasSent:false } } render(){ let responseStyle={displ...
import { text } from './text.js'; import { doc } from './global.js'; function createElement(query) { var cp = 0; var i = 0; var len = query.length; while (i < len) { cp = query.charCodeAt(i++); if (cp < 0x30 && (cp === 0x23 || cp === 0x2E)) { var el = doc.createElement(i ==...
from .Function import Function class DefinedFunction(Function): def __init__(self, priv, t, name, params, body): super().__init__(priv, t, name) self.params = params self._body = body self._ir = [] self.scope = None def is_defined(self): return True ...
import pytest from django.urls import resolve, reverse from djsubservice.users.models import User pytestmark = pytest.mark.django_db def test_user_detail(user: User): assert ( reverse("api:user-detail", kwargs={"username": user.username}) == f"/api/users/{user.username}/" ) assert resolv...
var searchData= [ ['closenotebook_109',['closeNotebook',['../classMainWindow.html#af74ddc0be0f4335708042a727c34589c',1,'MainWindow']]], ['columncount_110',['columnCount',['../classNotebook.html#a6c3e56968bc835e329eeeca26647ed79',1,'Notebook']]], ['createnotebook_111',['createNotebook',['../classMainWindow.html#ac...
import React from "react" import { Home } from "styled-icons/boxicons-solid/Home" import { SearchAlt2 as Search } from "styled-icons/boxicons-regular/SearchAlt2" import { UpArrowAlt as Arrow } from "styled-icons/boxicons-regular/UpArrowAlt" import { Lightbulb as Light } from "styled-icons/typicons/Lightbulb" import { ...
#import "GPUImageFilter.h" extern NSString *const kGrayscaleContrastFragmentShaderString; /** Converts an image to grayscale (a slightly faster implementation of the saturation filter, without the ability to vary the color contribution) */ @interface DLCGrayscaleContrastFilter : GPUImageFilter { GLint intensityU...
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def dfs(self, root, cur_sum, lnodes, result): if not root.left and not root.right and cur_sum == root.val: lnodes.app...
/* -*-C-*- ******************************************************************************** * * File: dawg.h (Formerly dawg.h) * Description: Definition of a class that represents Directed Accyclic Word * Graph (DAWG), functions to build and manipulate the DAWG. * Author: Mark Seaman...
"use strict"; var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/slicedToArray")); var _typeof2 =...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef _OE_BITS_MODULE_H #define _OE_BITS_MODULE_H /* **============================================================================== ** ** This file defines functions for loading internal modules that are part of ** the...
#ifndef DM_CACHE_ABT_H #define DM_CACHE_ABT_H #include <linux/spinlock.h> #include <linux/workqueue.h> #include "dm-cache-hashmap.h" #include "dm-cache-metadata.h" static const uint64_t ABT_LEAF_CLEAN = 0; static const uint64_t ABT_LEAF_DIRTY = 1; struct complete_bit_tree { bool *bitset; int degree; in...
/* global QUnit */ sap.ui.define([ "sap/ui/integration/designtime/baseEditor/BaseEditor", "sap/base/i18n/ResourceBundle", "sap/ui/model/resource/ResourceModel", "qunit/designtime/EditorQunitUtils", "sap/ui/core/Core" ], function ( BaseEditor, ResourceBundle, ResourceModel, EditorQunitUtils, oCore ) { "use s...
const path = require("path"); const sassLoader = require.resolve("../../src/cjs"); module.exports = { entry: [ path.resolve(__dirname, "../scss/imports.scss"), path.resolve(__dirname, "../scss/import-include-paths.scss"), ], output: { path: path.resolve(__dirname, "../outputs/watch"), filename: ...
"""biochallenge API URL Configuration """ from django.urls import include, path from django.conf import settings from django.contrib.auth.decorators import login_required from challenge import views urlpatterns = [ path('', views.ChallengeListView.as_view(), name='challenges'), path('view/<int:pk>', v...
# # ColorDist.py -- Color Distribution algorithms # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # """ These algorithms are modeled after the ones described for ds9 here: http://ds9.si.edu/doc/ref/how.html """ import math import numpy class ColorDis...
from __future__ import division import os import sys import random import argparse import time from shutil import copyfile import numpy as np import scipy.io as sio import matplotlib.pyplot as plt from scipy.signal import medfilt from scipy import stats import torch import torch.nn as nn import torch.nn.functional as F...
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='PD test', author='Rodrigo Carneiro', license='MIT', )
import uuid from django.db import models from simple_history.models import HistoricalRecords class BaseModel(models.Model): id = models.UUIDField( primary_key=True, default=uuid.uuid4, editable=False) history = HistoricalRecords() class Meta: abstract = True class Status...
''' Created on Dec 22, 2020 @author: mballance ''' import os.path def init_project(args): force = args.force name = args.name package = args.package if os.path.isfile("requirements.txt") and not force: raise Exception("requirements.txt exists") with open("requirements.txt", "w")...
valor_investido = float(input("Digite o valor Investido: ")) cliques = 0.0 pessoas = 0 compartilhamento = 0.0 # Este ponto aqui para o primeiro desafio não coloquei pq acho que não precisa # Para cada 100 pessoas que visualizam o anúncio 12 clicam nele. cliques = 100 / 12 # //a cada 20 pessoas que clicam no anúnci...
import webapp2 import handlers.wiki as wiki PAGE_RE = r'(/(?:[a-zA-Z0-9_-]+/?)*)' app = webapp2.WSGIApplication([ ('/signup', wiki.SignupHandler), ('/login', wiki.LoginHandler), ('/logout', wiki.LogoutHandler), ('/_edit' + PAGE_RE, wiki.EditPageHandler), ('/_history' + PAGE_RE, wiki.HistoryPageHa...
from user.models import UserModel from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework import status from common.decarators import validator from serializers.request_serializers import CheckUsernameParameterSerialzier from drf_yasg.utils import swagger_auto_sc...
#!/usr/bin/env python # coding: utf-8 # In[3]: print('single division operator 10/3 =',10/3) print('double division operator 10//3 =',10//3) # In[ ]:
export { default as default } from './InfiniteLoading.svelte';
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ $Id$ """ #end_pymotw_header import contextlib @contextlib.contextmanager def make_context(name): print 'entering:', name yield name print 'exiting :', name with contextlib.nested(make_context('A'), ...
import styled from '@emotion/styled' import { Flex } from 'rebass' export const Container = styled(Flex)` border-bottom: solid 1px ${({ theme }) => theme.colors.border}; `
/* Tipue Search 3.1 Copyright (c) 2013 Tipue Tipue Search is released under the MIT License http://www.tipue.com/search */ (function($) { $.fn.tipuesearch = function(options) { var set = $.extend( { 'show' : 10, 'newWindow' : f...
from flask import Flask,request,render_template,url_for,session,redirect app = Flask(__name__) app.secret_key = "secret" @app.route('/',methods = ["GET","POST"]) def store(): if request.method == 'GET': return render_template('store1.html') if request.method == 'POST': for item in ['eggs','milk','bread']: ...
module.exports = { hello: function(name) { console.log("Hello, " + name); }, bye: function(name) { console.log("Goodbye, " + name); } };
typedef unsigned int uint; typedef unsigned short ushort; typedef unsigned char uchar; typedef uint pde_t; typedef struct{ volatile uint locked; } sploc; // spinlock #define MAXTHREADN 100 typedef struct{ volatile uint is_available[MAXTHREADN]; } arrloc; typedef struct{ ...
function Person(name) { this.name = name; this.getName = function getPersonName() { return this.name; } } var p = new Person('Peter'); // console.log(p.getPersonName()); // console.log(p.name); console.log(p.name); console.log(p.getName()); var p2 = Person('Peter2'); console.log(name); console.log(...
#conventions non yet implemented #_______________________________ # ClassName # method_name # ExceptionName #instance_var_name CALL_STRING = "call" + " " FUNC_STRING = "function" + " " func_name = "" def set_func_name(value): global func_name func_name = value def print_call(): ...
from typing import Any, Callable, Iterable, Tuple, Union import jax.numpy as jnp from jax import grad, jit, lax, value_and_grad, vmap from jax.experimental import host_callback from tqdm.auto import tqdm def build_grad_log_post( loglikelihood: Callable, logprior: Callable, data: Tuple, with_val: bool = False ) -...
/*! * OpenUI5 * (c) Copyright 2009-2020 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define([],function(){"use strict";return{palette:{group:"CONTAINER",icons:{svg:"sap/m/designtime/ScrollContainer.icon.svg"}},actions:{remove:{changeType:"hideCont...
import matplotlib as mpl import IPython from IPython.core.magic import register_line_magic @register_line_magic def mpl_setup(line): IPython.get_ipython().magic('pylab --no-import-all inline') try: import seaborn as sns sns.set(style="darkgrid") except ImportError: from warnings im...
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
const { expect } = require('chai') const { Builder, By } = require('selenium-webdriver') const server = require('../../server') describe('injecting html', () => { let driver let html let script before(() => { driver = new Builder() .forBrowser('internet explorer') .usingServer('htt...
"use strict"; exports.__esModule = true; var _ownerDocument2 = _interopRequireDefault(require("./ownerDocument")); exports.ownerDocument = _ownerDocument2["default"]; var _ownerWindow2 = _interopRequireDefault(require("./ownerWindow")); exports.ownerWindow = _ownerWindow2["default"]; var _getWindow2 = _interopReq...
"""Metrics to assess performance on sequence labeling task given prediction Functions named as ``*_score`` return a scalar value to maximize: the higher the better """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import defaultdict impo...
/******************************************************************************* Copyright (c) 2006-2007, Myricom Inc. 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...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
// json body and system info var dataList = []; // remotetech antenna json info var antList; // main ish var $form = { container: document.getElementsByClassName('calcWrap'), instructionButton: document.getElementById('instructionButton'), doMaths: document.getElementById('doMaths'), solSelect: document.getElem...
from dataclasses import dataclass from torch.utils.data import DataLoader from torchvision.datasets.mnist import MNIST import torchvision.transforms as T MIRROR = "https://ossci-datasets.s3.amazonaws.com/mnist" MNIST.resources = [ ("/".join([MIRROR, url.split("/")[-1]]), md5) for url, md5 in MNIST.resources ] ...
import { hexToRgb } from './Utils'; // const gray31 = '#4a4a4a'; // const gray43 = '#62666c'; const gray45 = '#686b6c'; // const gray51 = '#79797a'; const gray54 = '#7f818a'; const gray76 = '#bababb'; const gray86 = '#d4d8d9'; // const gray90 = '#e1e1e1'; const gray93 = '#e7eaec'; // const gray96 = '#f3f3f3'; const g...
import { getOwner } from '@ember/application'; import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; export default class extends Route { @service ddb; @service filter; @service history; @service intl; @service ws; async beforeModel(transition) { if (transition....
from phrase_counter.word_graph import generate_word_graph def test_simple_output_word_graph(): """Simple output test for word graph""" samlpe_text = "test number one" output = generate_word_graph(samlpe_text) assert output
import axios from "axios" const state = { showAppUserForm: false, newAppUser: false, // readOnlyAcc: false, savedAppUser: false, editedAppUserIndex: -1, editedAppUser: { id: 0, username: "", email: "", password: "", isAdmin: false, hasDevAccount: false, devAccountId: 0, devA...
module.exports = Toast = () => ({ ".toast": { padding: "0.7rem", paddingLeft: "0.9rem", borderRadius: "0.375rem", fontSize: "0.875rem", overflow: "hidden", maxWidth: "24rem", flexBasis: "24rem", zIndex: "50", }, });
import sys import numpy import cv2 import time from openvino.inference_engine import IENetwork, IECore class FaceDetector(): def __init__(self, threshold = 0.5, face_ir = 'face-detection-retail-0004.xml'): # Setup Plugin and Network start_time = time.time() self.cur_request_id = ...
import CreatableSelect from 'react-select/creatable'; import {parametersOptions, parametersValues} from "../../data/data"; const initialstate = { definitionId: '', configurationId: '', message: null, description: '', parameters: new Map(), possibleParameterName: '', possibleParameterValue: '', } class A...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2019-07-24 18:29:48 # @Author : Zhi Liu (zhiliu.mind@gmail.com) # @Link : http://iridescent.ink # @Version : $1.0$ import torch as th from torchsar.utils.const import EPS class Standardization(th.nn.Module): r"""Standardization .. math:: ...
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
""" Pure - RNN model """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from src.layers.Decoders import RNNDecoder from src.layers.Encoders import RNNEncoder from src.utils.model_utils import loss_function class RNNModel(t...
function DelContact(type,email, id) { // We are trying to remove a bunch of addresses at the same time if(deltotal || type == 'multi') { if (confirm(['你是否確實要刪除' + deltotal + '選定地址簿項目?'])) { document.abook.delmulti.value='1'; document.abook.submit(); CleanUpAbook(); } return; } if(type == "group"...
import config from '../support/config'; import { copyrightDataWindow, firstHeadlineDataWindow, firstParagraphDataWindow, firstSubheadlineDataWindow, getElement, placeholderImageLoaded, renderedTitle, visibleImageNoCaption, visibleImageWithCaption, shouldContainText, } from '../support/bodyTestHelper...