text
stringlengths
3
1.05M
/** * Copyright 2018 The AMP HTML 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 require...
const express = require('express') const router = express.Router() // @route GET api/sfe // @desc Sfe route // @access Public router.get('/', (req, res) => res.send('Sfe route')) module.exports = router
export { default } from './WeatherCategory';
var sutPath = '../../../../out/instrument/publishing/format/_handlers/structural-category-list'; //var sutPath = '../../../../publishing/format/_handlers/site-item'; var sutClass = require(sutPath); var sut = new sutClass; describe('structural-category-list', function() { describe('prepareForRender', function() {...
import Tooltip from './Tooltip'; import {formatDate, retry} from '../utils/commonFunctions'; import {BellIcon, BellSlashIcon, HistoryIcon} from '@primer/octicons-react'; import {useMemo, useCallback, lazy, Suspense} from 'react'; import {useTranslation} from 'react-i18next'; const Timeline = lazy(() => retry(() => i...
(function(){var h=true,i=null,j=false,aa=(new Date).getTime(),ba=function(a){var b=(new Date).getTime()-aa;b="&dtd="+(b<1E3?b:"M");return a+b};var k=this,ca=function(a,b,c){a=a.split(".");c=c||k;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&b!==undefined)c[d]=b;el...
(function() { 'use strict'; angular .module('riskman.book.options') .controller('OptionsRankingController', OptionsRankingController); OptionsRankingController.$inject = ['$scope', '$stateParams', 'bookRanking', '$timeout', '$q']; function OptionsRankingController($scope, $stateParams...
const fs = require('fs'); const path = require('path'); const { copyTemplate, copyFiles, createDirs } = require('./copyHelper'); exports.generateBotTemplate = ( { botName, useInteractiveMessage } ) => { let projectName = botName; let projectDir; const isWin = process.pla...
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("faa81dc98fc13338aca921d45eebae79.js"); /// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the ...
function mostrarEstadisticas(){ $('#city').click(function(){ window.open("http://www.losceibos.org.ec/index.php/info-institucional/upc" , "UPC CEIBOS" , "width=780,height=500") ; }); } $(window).load(function() { mostrarEstadisticas(); });
/** * @license Angular v10.0.11 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ import { InjectionToken, ɵɵdefineInjectable, Injectable, ɵɵinject, Inject, Optional, EventEmitter, ɵfindLocaleData, ɵLocaleDataIndex, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, LOCALE_ID, ɵregisterLocaleData, ɵisLi...
"""Collections of API endpoints.""" from flask import Blueprint shooter_api = Blueprint('shooter', __name__) from . import players, servers, matches
const now = new Date() const day = new Date(2021, 2, 20, 8) if (now >= day) { items = document.getElementsByClassName("sn") do { items[0].classList.remove("sn") } while (items.length > 0) }
# Sphinx Configuration 🐈 # ======================= # # See the full Sphinx config docs at:: # https://www.sphinx-doc.org/en/master/usage/configuration.html # Project Metadata # ---------------- # # There's both ``version`` and ``release`` here per Sphinx quickstart; is # there a way to get parity with ``setup.py...
from datetime import datetime import connexion import six from http.client import INTERNAL_SERVER_ERROR from fss_utils.http_errors import cors_response from fabric_cf.orchestrator.core.exceptions import OrchestratorException from fabric_cf.orchestrator.core.orchestrator_handler import OrchestratorHandler from fabric_...
from collections import OrderedDict from django.template.defaultfilters import title from user_agents import parse from toolkit.views import ReportDownloadSearchView, mark_safe from .forms import ActivityLogAdvancedSearchForm, ActivityLogSearchForm from .models import ToolkitActivityLog class ToolkitActivityLogList...
/** * Copyright 2018 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 applic...
function coolModule() { var something = 'cool' var another = [1, 2, 3] function doSomething() { console.log(something) } function doAnother() { console.log(another.join('!')) } return { doSomething: doSomething, doAnother: doAnother } } var foo = cool...
import React, { useState, useEffect } from 'react'; import Select from 'react-select'; import axios from 'axios'; import buildRows from './data' import classnames from 'classnames'; import sortBy from 'lodash/sortBy'; import './styles.css'; const COLUMN_CHART_HEIGHT = 205; const DEFAULT_METRIC_SLUG = 'throughput_av...
/*! * jQuery UI Sortable 1.10.1 * http://jqueryui.com * * Copyright 2013 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/sortable/ * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function( $,...
"use strict";var tools=require('./tools');var path=require('path');var getFileConfig=tools.getFileConfig;var cwd=process.cwd();var tsOptions;function getTsOptions(){if(!tsOptions){var tscPath=path.resolve(cwd,'./node_modules/typescript/lib/tsc');var tsconfig=getFileConfig('tsconfig.json');var compilerOptions=tsconfig.c...
from datetime import datetime import discord from discord.ext import commands from utils.dates import format_date, get_clock_emoji from utils.embedder import build_embed from art import text2art def get_embed_title(message: discord.Message) -> str: return message.embeds[0].title def clock_embed() -> discord.Em...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Vector4 { constructor() { } create() { let out = new glMatrix.ARRAY_TYPE(4); out[0] = 0; out[1] = 0; ...
function setShow(e) { e = $(e.target); var opt,opts = e.data('opts'), values = e.val(), checks = [], out = "<div><input id='inpSelAll' type='checkbox' data-ndx='0'/><label for='inpSelAll' id='lblSelAll'>{cpt}</label></div>", tpl = "<div><input id='inpSCBX{ii}' type='checkbox' value='{vv}'/><labe...
"use strict"; /** * Copyright 2020 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 * * U...
from .pro import HexapodPro from asyncio import sleep, gather class DancingHexapod(HexapodPro): async def prepare( self, offset=45, back_knee=0, middle_knee=50, front_knee=60, raised=-30, t=0.2 ): """ brings the back legs even further to the back and the middle legs to the front an...
import React from 'react'; import { Query } from 'react-apollo'; import gql from 'graphql-tag'; export const HERO_QUERY = gql` query GetCharacter($episode: Episode!) { hero(episode: $episode) { name id friends { name id appearsIn } } } `; const Character = (...
from __future__ import print_function import scipy.sparse as sp import numpy as np from collections import namedtuple Data = namedtuple('Data', ['x', 'y', 'adj', 'train_mask', 'val_mask', 'test_mask']) class CoraData(): def __init__(self, data_root="data/cora/"): self._data_r...
// All tests depend on the WindowsAzure namespace. // Initialize the WindowsAzure namespace using the bundle. // Just to be sure, it is not already initialized, we undefine it and do nothing // if it is initialized. That way, we can ascertain the tests will fail. if (typeof WindowsAzure === 'undefined') { WindowsA...
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}import React from"react";import PropTypes from"prop-types";import{StyleSheet,Text,View,Touchab...
"use strict"; /** * Implement the delete() function * * Author: Ronen Ness. * Since: 2016. */ // include jsface for classes var jsface = require("./../../dependencies/jsface"), Class = jsface.Class, extend = jsface.extend; // include errors var Errors = require("./../../errors"); // require the core stuff ...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { window.Popper = require('popper.js').default; ...
from pydantic import Field, BaseModel class FileInfo(BaseModel): id: str = Field(...) content_type: str = Field(...) url: str = Field(...) thumbnail: str = Field(...)
(function($) { $.extend({ page: { // 首页处理 index: function(opts) { // 初始化 var _tag_menu = $('#menu'), _tag_main = $('#main'); // 绑定首页侧栏处理 $('#bar').on('click', function() { // 初始化 var _elem = $(this); // 判断当前状态并处理 if (_elem.hasClass('active')) ...
import React from "react"; import ReactDOM from "react-dom"; import { Provider } from "react-redux"; import { createStore, applyMiddleware } from "redux"; import rootReducer from "./reducers"; import Nav from "./Component/Nav"; import thunkMiddleware from "redux-thunk"; import { composeWithDevTools } from "redux-devtoo...
 ;(function(W) { G.ns('G.Router').routes = { '/': { title: 'Home', bodyClass: 'home', //styles: [], scripts: ['/js/module/home.js'] }, '/music': { title: 'Music', bodyClass: 'music', styles: [], ...
/////////////////////////////////////////////////////////////////////////// // Copyright © 2014 Esri. 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://w...
// THIS FILE IS AUTO GENERATED var GenIcon = require('../lib').GenIcon module.exports.GiTabletopPlayers = function GiTabletopPlayers (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M134.865 113.46c-7.463.026-15.134 2.977-22.38 8.663-9.658 7.582-18.055 20.015-...
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
/** * Re-export all api config for easy import */ import * as user from './user'; const apiUrl = { ...user, }; export default apiUrl;
import React from "react" import { Link } from "gatsby" const Navbar = () => { return ( <nav className="flex items-center justify-center flex-wrap bg-teal-500 p-6"> <ul className="flex "> <li className="block mt-4 lg:inline-block lg:mt-0 text-teal-200 hover:text-white mr-4"> <Link to="/">...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-632ea3de"],{"11f9":function(e,t,a){"use strict";a("824b")},"824b":function(e,t,a){},"943e":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"task-content"},[a("div",{staticClas...
import pytest import sys def test_1(m): m.touch("/somefile") # NB: is found with or without initial / m.touch("afiles/and/anothers") files = m.find("") if "somefile" in files: assert files == ["afiles/and/anothers", "somefile"] else: assert files == ["/somefile", "afiles/and/anoth...
import { JetView } from "webix-jet"; export default class SettingsView extends JetView { config() { const _ = this.app.getService("locale")._; const lang = this.app.getService("locale").getLang(); return { type: "space", rows: [ { template: _("Settings"), type: "header" }, { ...
import {deepClone} from "./src/DeepClone"; import {formatDateTime} from './src/FormatDateTime'; import {formatDate} from './src/FormatDate'; import {toTree} from "./src/ToTree"; import {Stack} from "./src/Stack"; import {LinkedList} from"./src/LinkedList"; import {fastSort} from "./src/FastSort"; import {binarySearch} ...
from ray.tune.suggest.search import SearchAlgorithm from ray.tune.suggest.basic_variant import BasicVariantGenerator from ray.tune.suggest.suggestion import SuggestionAlgorithm from ray.tune.suggest.bayesopt import BayesOptSearch from ray.tune.suggest.hyperopt import HyperOptSearch from ray.tune.suggest.sigopt import S...
import React, {Component} from 'react' import {connect} from 'react-redux' import {goCreateNewGame} from '../store/gameReducer' import {goCreatePlayer} from '../store/playersReducer' import {writeNewPlayerName, writeNewPlayerCode} from '../store/newPlayerReducer' class CreatingJoiningGame extends Component { constru...
$(document).ready(function() { /** * Parámetros para configurar el objeto DataTable. */ $('#lista-persona').DataTable({ "order": [[ 1, "desc" ]] }); $(document).on('click', '.btn-check-participante', function() { $('#detalles_participante').removeClass('hidden'); let...
/** * login properties */ module.exports = { path: '/login', ready_cue: { locator: { css: '.login-page__entries', }, }, googleLoginButton: { locator: { xpath: '//button[contains(text(), \'Google\')]', }, }, loginButton: { locator: { xpath: '//div[text()="Login"]', ...
from setuptools import find_packages, setup setup( name='iou_tracker', packages=find_packages(), version='0.1', description='IOU Tracker', author='Erik Bochinski and Volker Eiselein and Thomas Sikora', license='MIT License', )
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const http_1 = require("http"); class WeebyError extends Error { constructor(errorMessage, statusCode) { super(errorMessage); this.name = "WeebyError"; this.status = http_1.STATUS_CODES[statusCode]; } ...
const Tonic = require('@optoolco/tonic') const components = require('../..') require('./tape.js') components(Tonic) function ready () { require('../../router/test') require('../../panel/test') require('../../dialog/test') require('../../tabs/test') require('../../windowed/test') require('../../tooltip/te...
import { homedir } from 'node:os'; import { join } from 'node:path'; import { RegQueryStringValueAndExpand } from 'regodit'; const UserShellFolders = "Software/Microsoft/Windows/CurrentVersion/Explorer/User Shell Folders"; const appData = RegQueryStringValueAndExpand("HKCU",UserShellFolders,"AppData") || process.env[...
import styled from 'styled-components'; import { palette } from 'styled-theme'; const ListLabel = styled.h4` display: table-cell; vertical-align: middle; font-weight: 500; color: ${palette('text', 0)}; margin: 0; font-size: ${(props) => props.theme.text.small.size}; line-height: ${(props) => props.theme....
var Test = Test || {}; /* eslint indent: [{ "outerIIFEBody": 0 }] */ (function() { 'use strict'; // "isIOS" is correct if (Test.browser.isIOS || Test.browser.isAndroid) { Test.chunks = [ // This one is incredibly slow and GC heavy ['specs/panel/Resizable.js'] ]; } else { Test.chunks = null...
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
from rest_framework import serializers, status from .models import ListInfo, Solved, List, ListInfo, LadderStarted from problem.models import Problem from user.models import User, Profile from drf_writable_nested.serializers import WritableNestedModelSerializer from django.core.paginator import Paginator from django.db...
//// [typeAnnotationBestCommonTypeInArrayLiteral.ts] interface IMenuItem { id: string; type: string; link?: string; classes?: string; text?: string; icon?: string; } var menuData: IMenuItem[] = [ { "id": "ourLogo", "type": "image", "link": "", "icon": "module...
function tab() { let num = document.getElementById('txtn') let tab = document.getElementById('tab') if (num.value.length == 0){ window.alert('Por favor,digite um número!') } else { let n = Number(num.value) let c = 1 tab.innerHTML = `` while (c <= 10) { ...
/** * @preserve HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ ; (function (window, document) { /*jshint evil:true */ /** version */ var version = '3.6.2'; /** Preset options */ var options = window.html5 || {}; /** Used to skip problem elements */ var reSkip...
var rand = require('rand-range'); var choice = function(arr){ if (arr.constructor !== Array) throw Error('Argument is not an array'); index = rand.randomInt(0, arr.length-1); return arr[index]; }; module.exports.choice = choice;
var _ = require('underscore'); var $ = require('jquery'), Backbone = require('backbone'); RegisterFormView = require('./_FormRegister'), registerTemplate = require('../../assets/templates/register.tpl'); Backbone.$ = $; exports = module.exports = Backbone.View.extend({ el: '#content', initialize: func...
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.V...
import Vue from "vue"; import VueTelInput from "vue-tel-input"; import EventService from "../../services/event/event.service"; import AlertService from "../../services/alert/alert.service"; const event = new EventService(); const alert = new AlertService(); Vue.use(VueTelInput); export default { data: () => { re...
/* * 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...
""" Utilities for working with numpy arrays. """ from collections import OrderedDict from datetime import datetime from packaging.version import Version from warnings import ( catch_warnings, filterwarnings, ) import numpy as np from numpy import ( array_equal, broadcast, busday_count, datetime...
const loggerFactory = require('@alias/logger'); const logger = loggerFactory('growi:routes:apiv3:user-group-relation'); // eslint-disable-line no-unused-vars const express = require('express'); const ErrorV3 = require('../../models/vo/error-apiv3'); const router = express.Router(); /** * @swagger * tags: * ...
import appRoutes from './app' export { appRoutes }
module.exports = function stddev (s, key, length, source_key) { if (typeof s.period[source_key] === 'number') { var sum = s.period[source_key] var sum_len = 1 for (var idx = 0; idx < length; idx++) { if (typeof s.lookback[idx][source_key] === 'number') { sum += s.lookback[idx][source_key] ...
import Plugin from '../core/Plugin'; import Status from '../core/Status'; import classSet from '../utils/classSet'; export default class Icon extends Plugin { constructor(opts) { super(opts); this.icons = new Map(); this.opts = Object.assign({}, { invalid: 'fv-plugins-icon--inval...
from django.conf import settings def current_domain(request): return { 'current_domain': request.get_host() } def google_analytics(request): """ Use the variables returned in this function to render your Google Analytics tracking code template. """ if settings.GOOGLE_ANALYTICS_KEY:...
(function ($, Drupal, drupalSettings) { Drupal.behaviors.mtSliderRevolutionInternalBannerCarousel = { attach: function (context, settings) { $(context).find('.carousel-internal .rev_slider').once('mtSliderRevolutionInternalBannerCarouselInit').show().revolution({ sliderType:"carousel", slide...
const Application = require('spectron').Application; const assert = require('assert'); const electronPath = require('electron'); // Require Electron from the binaries included in node_modules. const path = require('path'); const AsyncTestUtil = require('async-test-util'); describe('Application launch', function(...
var SoapClient = require('./soapClient') var services = require('./services') var constants = require('./constants') var Sdk = function () { this.soapClient = null; }; Sdk.prototype.getConstants = function(){ return constants; } Sdk.prototype.connect = function(params){ this.soapClient = new SoapClient(...
$(function(){ $('#busca').keyup(function(){ var buscaTexto = $(this).val(); if(buscaTexto.length >= 3){ $.ajax({ method: 'post', url: 'Produto/produto/getProduto', data: {busca: 'sim', texto: buscaTexto}, dataType: 'json', success: function(retorno){ if(retorno.dado...
import * as React from 'react' import { Admin, Resource } from 'react-admin' // import jsonServerProvider from 'ra-data-json-server' import dataProvider from './dataprovider' import { UserList, UserShow } from './Users' const App = () => ( <Admin dataProvider={dataProvider}> <Resource name='users' list={UserList...
"""Declare API endpoints for LTI Consumer Plugin""" from django.core.cache import caches from django.core.cache.backends.base import InvalidCacheBackendError from django.http import JsonResponse from django.shortcuts import get_object_or_404 from rest_framework import viewsets from rest_framework.decorators import act...
# How many distinct numbers in Array # Given an array A consisting of N integers, returns the number of distinct values in array A. # A = [2,1,1,2,3,1] -> should return 3 because we have 3 different numbers # Important # N is an integer within the range [0..100,000]; # each element of array A is an integer within the...
from html.parser import HTMLParser import urllib.request class MyHTMLParser(HTMLParser): file_list = [] def error(self, message): pass def handle_starttag(self, tag, attrs): # Only parse the 'anchor' tag. if tag == "a": for name, value in attrs: if nam...
/*jslint node: true */ var async = require('async'), http = require('http'), querystring = require('querystring'), parse = require('url').parse; exports.widgets = require('./widgets'); exports.fields = require('./fields'); exports.render = require('./render'); exports.validators = require('./validators')...
import socket import select import errno import sys LEN_HEADER = 10 IP = "192.168.1.150" PORT = 1234 user = input('Please Enter Username: ') client = socket.socket(socket.AF_INET,socket.SOCK_STREAM) client.connect((IP,PORT)) client.setblocking(False) username = user.encode('utf-8') username_heade...
import {combineReducers} from 'redux'; import intlReducer from './intl'; import {ScratchPaintReducer} from '../..'; export default combineReducers({ intl: intlReducer, scratchPaint: ScratchPaintReducer });
import tensorflow as tf from model.CustomLayers import ANLU, AISRU, Embed, StrandWeight import re class InputFeatures: @staticmethod def generate_input_tensors(feature, batch_singleton=False): # input_tensors is a dict of tensors matching naming and dimensionality of input data dict input_tens...
//Get the button //var mybutton = document.getElementById("mybtn"); // When the user scrolls down 10px from the top of the document, show the button window.onscroll = function() {scrollFunction()}; function scrollFunction() { if (document.body.scrollTop > 10 || document.documentElement.scrollTop > 10) { ...
const CACHE_NAME = "firstpwa-v1"; var urlsToCache = [ "/", "/nav.html", "/index.html", "/article.html", "/pages/home.html", "/pages/about.html", "/pages/contact.html", "/css/materialize.min.css", "/js/materialize.min.js", "/manifest.json", "/js/nav.js", "/js/api.js", "/icon.png" ]; self.addEv...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnPrope...
import React from "react"; import { Formik, Form, Field, ErrorMessage } from "formik"; import * as Yup from "yup"; import { connect } from "react-redux"; import Button from "@material-ui/core/Button"; import TextField from "@material-ui/core/TextField"; import Dialog from "@material-ui/core/Dialog"; import DialogActio...
module.exports={A:{A:{"2":"I D E F A gB","164":"B"},B:{"1":"R S T U V W X P Y Z G a","36":"C J K L M N O"},C:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB YB GB ZB Q HB IB JB KB LB MB NB OB PB QB RB SB TB UB aB bB R S T iB U V W X P Y Z G a","2":"hB XB H b I D E F A B C J K L M N jB kB","36":"0 O c d e f g h i j k l m n o ...
# -*- coding: utf-8 -*- """ Created on Sun Jan 19 21:05:06 2020 @author: arthurd """ import json from pandas.io.json import json_normalize import pandas as pd import numpy as np from noiseplanet import utils # data = json.loads(elevations) file = "data/track/track_1.geojson" with open(file) as f: geojson = jso...
/* * (c) Copyright 2014-2017 Micro Focus or one of its affiliates. * * Licensed under the MIT License (the "License"); you may not use this file * except in compliance with the License. * * The only warranties for products and services of Micro Focus and its affiliates * and licensors ("Micro Focus") are as may ...
""" Main """ import torch from torch import optim, nn from model import MovieLensNet, CiteULikeModel, LstmNet, TalentNet, TalentNetExperimental from data import MovieLens, citeulike, TalentFox from train import movie_lens_train, train_with_negative_sampling, talent_fox_train device = torch.device('cuda:0' if torch.cud...
// @flow import { Point, } from '../../../tools/g2'; // import { // round, // } from '../../../../tools/math'; function getPolygonPoints(options: { radius: number, innerRadius?: number, rotation: number, offset: Point, sides: number, sidesToDraw: number, direction: 1 | -1, }): Array<Point> { const...
import React from 'react'; import useInterval from '../utils/useInterval'; import timerFormat from '../utils/timerFormat'; function Timer(props) { const DELAY = 1000; const { running, milliseconds, onTick } = props; useInterval(() => { onTick(); }, running ? DELAY : null); return ( <div>{timerFormat(mi...
// Slovak 'use strict'; var sk = function() {} sk.code = 'sk'; sk.data = { GEN_Help_0 : 'Already have a wallet somewhere?', GEN_Help_MetaMask : 'So easy! Keys stay in MetaMask, not on a phishing site! Try it today.', GEN_Warning_1 : '**Do not lose it!** It cann...
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-05-09 00:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('art', '0002_auto_20180507_0711'), ] operations = [ migrations.AlterModelOpt...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
import React from 'react'; import styled from 'styled-components'; const GridBox = (props) => { return ( <Box onClick={() => { console.log(props.position) }} /> ) }; export default GridBox; const Box = styled.div` box-sizing...
from typing import Union from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import AnonymousUser from django.contrib.messages.middleware import MessageMiddleware from django.contrib.messages.storage.fallback import FallbackStorage from django.contrib.sessions.middleware import S...
/* * Backpack - Skyscanner's Design System * * Copyright 2016-2020 Skyscanner 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 * ...