text
stringlengths
3
1.05M
from collections import OrderedDict from enum import Enum, auto from threading import RLock from typing import ( TYPE_CHECKING, Callable, Generic, Iterable, Iterator, List, Mapping, MutableMapping, NoReturn, Optional, ) from typing import OrderedDict as OrderedDictType from typin...
const SELECT_CURRENT_GROUP = 'app/ui/currentGroup/select'; const RESET_CURRENT_GROUP = 'app/ui/currentGroup/reset'; export { SELECT_CURRENT_GROUP, RESET_CURRENT_GROUP };
var faq = [{ title: "Notification Help", items: [{ keywords: "notifications information", title: "How do notifications work in Talon?", text: "If you are looking for push notifications, please read the topic on Push Notifications, at the bottom, instead." + brbr() + "To receive notifications b...
import streamlit as st from . import login,db import pandas as pd def app(): logged_in_as_doctor,logged_in_as_patient,username = login.app() book = False if logged_in_as_patient: col1,col2,col3 = st.columns(3) with col1: pass with col2: book = st....
# coding: utf-8 """ This file should only contain the definition of the __version__ variable. It may be read by multiple other files, e.g. setup.py and the status page. """ __version__ = '0.19.1'
from game_tree import GameTree, GAME_START_MOVE def build_sample_game_tree() -> GameTree: """Create an example game tree.""" game_tree = GameTree(GAME_START_MOVE, True) game_tree.add_subtree(GameTree('a2b3', False)) game_tree.add_subtree(GameTree('b2c3', False)) game_tree.add_subtree(GameTree('b2...
["{}: {}".format(x, ("Fizz" if x % 3 == 0 else "") + ("Buzz" if x % 5 == 0 else "")) for x in range(100)]
# # Copyright (c) 2019 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Very simple transformation library that is needed for some examples. Note that functions that take a matrix as input generally operate on that matrix in place. """ from __future__ import division # Note: we use functions (e.g. sin) from math module because they're fa...
''' Given an array of strings strs, group the anagrams together. You can return the answer in any order. An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once. Example: Input: strs = ["eat","tea","tan","ate","nat","bat"] O...
/* * task.h * * Created on: 2019年5月14日 * Author: colin */ #ifndef TASK_H_ #define TASK_H_ #include "noncopyable.h" #include "ring_queue.h" #include <pthread.h> #include <sys/eventfd.h> #include <sys/epoll.h> #include <unistd.h> #include <string.h> #include "thread.h" #include <memory> #include <signal.h> e...
//////////////////////////////////////////////////////////////////////////// // Module : ai_crow.h // Description : AI Behaviour for monster "Crow" //////////////////////////////////////////////////////////////////////////// #ifndef __XRAY_AI_CROW__ #define __XRAY_AI_CROW__ #include "entity_alive.h" #include "Inclu...
import tensorflow as tf import numpy as np class MLPQRDQN: def __init__(self, name, state_size, output_size, num_support): self.state_size = state_size self.output_size = output_size self.num_support = num_support with tf.variable_scope(name): self.input = tf.placeholder...
# Copyright 2018 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
var gulp = require('gulp'); var uglify = require('gulp-uglify'); var sass = require('gulp-ruby-sass'); var jade = require('gulp-jade'); var autoprefixer = require('gulp-autoprefixer'); var gls = require('gulp-live-server'); var imagemin = require('gulp-imagemin'); var pngquant = require('imagemin-pngquant'); gulp.task...
# coding: utf-8 """ Copyright 2016 SmartBear Software 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 l...
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Create a stand-alone macOS app using py2app To be used like this: $ python setup.py """ import os import sys from logging import getLogger, StreamHandler, Forma...
/* * * File XMGRipple.h * Description Ripple Effect class * Version 0.20.0801, 2011-08-01 * Author Young-Hwan Mun * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2011 XMSoft. All rights reserve...
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/lair/base/shared_poi_all_lair_thicket_large_fog_gray.iff" result.at...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _Icon = _interopRequireDefault(require("../../cjs/components/Icon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { defa...
from __future__ import absolute_import, division, print_function from .client import Client from .command import Command, CommandStack from .component import Component from .component_id import ComponentID from .component_link import ComponentLink from .coordinates import Coordinates from .data import Data from .data_...
"use strict"; var testRequire = require('./../../test-require'); var fixtureLoader = require('gitter-web-test-utils/lib/test-fixtures'); var assert = testRequire("assert"); var chatService = testRequire("./services/chat-service"); var unreadItemService = testRequire("./services/unread-items"); var appEvents = testRequ...
from sklearn import svm import csv, sys, math import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import DBSCAN from modulation_utils import * def kernel_first_derivative(query_point, support_vector, gamma_svm, der_wrt): """ Cite: https://github.com/nbfigueroa/SVMGrad/blob/master/matlab/ker...
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3192 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class IrVolCubeDataAllOf(object): """NOTE: This cla...
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import "PSDJsApi.h" @interface NPJsApiHandler4GetSavedFileList : PSDJsApi { } + (void)localHandler:(id)arg1 context:(id)arg2 isFsCal...
from .freihand_dataset import FreiHandDataset from .interhand2d_dataset import InterHand2DDataset from .onehand10k_dataset import OneHand10KDataset from .panoptic_dataset import PanopticDataset __all__ = [ 'FreiHandDataset', 'InterHand2DDataset', 'OneHand10KDataset', 'PanopticDataset' ]
import py3dtiles_merger.TilesetUtilities import py3dtiles_merger.TilesetParser import py3dtiles_merger.TilesetMerger import py3dtiles_merger.NullObject __version__ = '0.0.1'
# BSD 2-Clause License # # Copyright (c) 2022, Social Cognition in Human-Robot Interaction, # Istituto Italiano di Tecnologia, Genova # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
#!/usr/bin/python ''' Rate limiter for logging and other operations --------------------------------------------- :class:`RateLimit` is useful for limiting number of consequent log entries, connection retries and so on. It can also track custom information, like number of messages dropped so far. Small example of use...
// Copyright Carl Philipp Reh 2009 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef FCPPT_PREPROCESSOR_DETAIL_PRAGMA_H_INCLUDED #define FCPPT_PREPROCESSOR_DETAIL_PRAGMA_H_INC...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Instance = exports.InstanceProperty = void 0; const ros = require("@alicloud/ros-cdk-core"); const ecs_generated_1 = require("./ecs.generated"); Object.defineProperty(exports, "InstanceProperty", { enumerable: true, get: function () { ...
from __future__ import print_function import json from faker import Faker fake = Faker() import unittest # settings.configure(default_settings=settings, DEBUG=True) # app = FlaskAPI(__name__) # app.config.from_object('settings') class TestUserDetailTestCase(unittest.TestCase): """ Tests /users detail op...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # IkaLog # ====== # Copyright (C) 2015 Takeshi HASEGAWA # # 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/l...
IntlPolyfill.__addLocaleData({locale:"hu-HU",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!1,formats:{short:"{1} {0}",medium:"{1} {0}",full:"{1} {0}",long:"{1} {0}",availableFormats:{d:"d",E:...
describe('ioTextParser', function () { 'use strict'; var ioTextParser; // Testing setup beforeEach(function () { module('app.ioModule'); }); beforeEach(inject(function (_ioTextParser_) { ioTextParser = _ioTextParser_; })); it('parseString - correct', function () { ...
var canvas = document.getElementById('myCanvas'); var context = canvas.getContext('2d'); var cw = canvas.width; var ch = canvas.height; function drawCheckeredPattern(row, col){ var boxWidth = cw/col; var boxHeight = ch/row; for (var i = 0; i < col; i++){ for (var j = 0; j < row; j++){ if (i%2 != j%2){ context....
# Copyright (C) 2021 TeamUltroid # # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > # PLease read the GNU Affero General Public License in # <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. # # Ported by @suppnigga # FROM SULTAN-Userbot <https://github.com/pockybear28/SULTAN-Userbot>...
import React from 'react'; import {View, Text, StyleSheet, Image} from 'react-native'; const ImageDetail = ( { imageSource, title, imageScore}) => { return ( <View> <Image source={ imageSource }/> <Text>{ title } - { imageScore }</Text> </View> ); }; const styles = StyleSheet.create({}); expo...
const CONSTANTS = require('../../constants'); const sendTfmEmail = require('./send-tfm-email'); const { capitalizeFirstLetter } = require('../../utils/string'); const generateFacilitiesListString = (facilities) => { let result; facilities.forEach((facility, index) => { const { facilityType, ukefFacilityID } =...
import argparse import collections import os import numpy as np import matplotlib.pyplot as plt from sklearn.utils import shuffle import tensorflow as tf from .. import vae_conv def main(args): if args.gpus is not None: os.environ["CUDA_VISIBLE_DEVICES"] = args.gpus ((train_data, train_labels), (eva...
# Set the global smooth_shading parameter default to ``True``. # import pyvista pyvista.global_theme.smooth_shading = True
from bs4 import BeautifulSoup from NjauPortal.config import UrlConfig from NjauPortal.office.grades import Grade from NjauPortal.asyncs.auth import AsyncAuth class AsyncGrade: """课程成绩异步查询类 该类主要提供成绩异步查询接口。 """ def __init__(self, auth: AsyncAuth): self.auth = auth async def async_total_se...
# Generated by Django 2.0.5 on 2018-05-23 14:12 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('projects', '0004_auto_20180522_1703'), ] operations = [ migrations.AddField( model_name='project', ...
var gauss4_8f = [ [ "gauss4", "de/d48/gauss4_8f.html#a777ff5d03201479c12a37fb6f0201ea0", null ] ];
"use strict";(function(e){function t(t){switch(t.status){case 504:e.spawnAlert({title:"Error 504",body:"Server timeout on a remote request.",color:"danger"});break;case 500:e.spawnAlert({title:"Error 500",body:"Server error when processing your request.",color:"danger"});break;case 404:e.spawnAlert({title:"Error 404",b...
import operator from functools import reduce from django.db.models import Q, F from django.http import JsonResponse from rest_framework import status, generics from rest_framework.exceptions import PermissionDenied from rest_framework.parsers import JSONParser from rest_framework.views import APIView from api.core.au...
import Dropdown from './dropdown.vue'; import DropdownMenu from './dropdown-menu.vue'; import DropdownItem from './dropdown-item.vue'; export { Dropdown, DropdownMenu, DropdownItem }; export default Dropdown;
import React, { useState, useEffect, useCallback } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import axios from 'axios'; import { useNavigate, useParams } from 'react-router-dom'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; ...
var logoutNow = function() { window.onbeforeunload = null; this.svRemoveToken.update(); wm.logout(); }; var id; var logoutTimeout; var monitor = new Monitor(360000,[]); //180 000 =3 minutes. var homeload = 0; var orc1 = 0; var orc2 = 0; dojo.declare("Main", wm.Page, { start: function() { // this.svSecurityUser.u...
'use strict'; const createStatusStream = require('../status-stream'); describe('createStatusStream', () => { it('should not set output if it does not contain Serverless', () => { const task = {}; const stream = createStatusStream(task); stream.write('data'); expect(task.output).to...
#!/usr/bin/env python #-------------------- """Averages the shape of a single pulse per channel. """ #-------------------- import sys from time import time import psana import numpy as np from Detector.WFDetector import WFDetector import psana.pyalgos.generic.Graphics as gr #from psana.pyalgos.generic.NDArrUtils impo...
/***************************************************************************//** * @file * @brief CMSIS Cortex-M Peripheral Access Layer Header File * for EFR32MG1B131F256GM32 ******************************************************************************* * # License * <b>Copyright 2022 Silicon Laboratorie...
import { connect } from 'react-redux' import SearchViewBlock from '../components/SearchViewBlock' import { changeGridType } from '../modules/search' const mapDispatchToProps = { changeGridType } const mapStateToProps = state => ({ date: state.menu.date || state.location.query.date, city: state.menu.city || stat...
from django.contrib.auth.models import AbstractUser from django.db import models from django.conf import settings class UserProfile(AbstractUser): twitter = models.CharField(max_length=100, blank=True) facebook_link = models.URLField(blank=True) def get_twitter_url(self): return 'https://twitter...
/* $Source: bitbucket.org:berkeleylab/gasnet.git/other/firehose/firehose_internal.h $ * Description: Internal Header file * Copyright 2004, Christian Bell <csbell@cs.berkeley.edu> * Terms of use are as specified in license.txt */ #include <inttypes.h> #include <gasnet_internal.h> /* gasnet mutex */ #include <gasn...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('media', ...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","nb",{euro:"Eurosymbol",lsquo:"Venstre enkelt anførselstegn",rsquo:"Høyre enkelt anførselstegn",ldquo:"Venstre ...
from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) setup( name="pandoc-docx-pagebreak", description="Pandoc filter for docx output to insert pagebreak at will", # Required url="https://github.com/pandocker/pandoc-docx-pagebreak-py", # Original rep...
//===- Transforms.h - Linalg transformations as patterns --------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import os import tempfile from devil.utils import cmd_helper from pylib import constants from pylib.results import json_results class JavaTestR...
// Test library and utilities for internal use. export * from './src/testing/testing_internal'; export * from './src/testing/test_component_builder'; export * from './src/testing/test_injector'; export * from './src/testing/fake_async'; export * from './src/testing/utils'; //# sourceMappingURL=data:application/js...
# 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 ...
from nextsong import Playlist as p from testutils import rootrel, firstn assert list(p()) == [] assert rootrel(p("1.mp3", "2.mp3", "3.mp3")) == ["1.mp3", "2.mp3", "3.mp3"] assert rootrel(p("*.mp3")) == ["1.mp3", "2.mp3", "3.mp3"] assert rootrel(p(p("*.mp3"))) == ["1.mp3", "2.mp3", "3.mp3"] assert rootrel(p(p("1.mp3"),...
/* mameblock.js - Javascript library for visual code editing. copyright 2014-2015 Yutaka kachi released under the MIT License */
// https://www.freecodecamp.com/challenges/title-case-a-sentence function titleCase(str) { str = str.split(" "); for (var i = 0; i < str.length; ++i) { str[i] = str[i].replace(str[i][0], str[i][0].toUpperCase()); for (var j = 1; j < str[i].length; ++j) { str[i] = str[i].replace(str[i][j], str[i][j].t...
module.exports = { env: { browser: true, es6: true }, extends: [ 'standard' ], globals: { Atomics: 'readonly', SharedArrayBuffer: 'readonly', 'browser': 'readonly' // Ignore Webextensions API (considered undefined by linter) }, parserOptions: { ecmaVersion: 2018, sourceTyp...
#!/usr/bin/env python3 # pyre-ignore-all-errors[56] # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import copy import unittest from typing import Callable, List...
(function () { "use strict"; var module = angular.module("app"); function fetchData($http) { return $http.get("/movies.json") .then(function (response) { return response.data; }); } function RecordingController($http, $scope, PlaylistFactory) { ...
// Buffer cache. 磁盘块缓存 // // The buffer cache is a linked list of buf structures holding // cached copies of disk block contents. Caching disk blocks // in memory reduces the number of disk reads and also provides // a synchronization point for disk blocks used by multiple processes. // // Interface: // * To get a buf...
import React, { useEffect } from "react"; import Layout from 'components/Layout'; import { useTranslation } from 'react-i18next'; import tw from "twin.macro"; import BlockLink from 'components/BlockLink'; import { changeLanguage } from 'i18n' const ReadingsBlock = tw.div` w-64 h-10 border-solid border-red-500 ...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: etcd/mvcc/mvccpb/kv.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflecti...
function main() { const v4 = [13.37,13.37,13.37,13.37]; const v6 = [1337]; const v7 = []; const v8 = {exec:9007199254740991}; const v9 = {replace:9007199254740991,forEach:13.37,tan:v8,fromEntries:v4,global:v8,log:Math,getPrototypeOf:Math}; let v10 = v9; const v15 = [13.37,13.37,13.37,13.37]; const v17 = [1337]; const v...
def can_build(env, platform): return True def configure(env): pass def get_doc_path(): return "doc_classes" def get_doc_classes(): return [ 'SGFixed', 'SGFixedVector2', 'SGFixedRect2', 'SGFixedTransform2D', 'SGFixedNode2D', 'SGFixedPosition2D', ...
from __future__ import unicode_literals import time from django.test import TestCase from django.utils.module_loading import import_string from ..exceptions import LockError class FileLockTestCase(TestCase): backend_string = 'lock_manager.backends.file_lock.FileLock' def setUp(self): self.locking_...
#!/usr/bin/env python # # Copyright (c) 2015 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 import time from snaps.openst...
import logging from vc_exporters.vc_exporter import VCExporter from prometheus_client import Gauge from pyVmomi import vim class VcHostMetrics(VCExporter): def __init__(self, exporterType, exporterConfig): super().__init__(exporterType, exporterConfig) self.gauge = {} self.sessions_dict ...
/*! jQuery UI - v1.10.2 - 2013-03-14 * http://jqueryui.com * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ (function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("language","ru",{button:"Установка языка",remove:"Удалить язык"});
# -*- coding: utf-8 -*- # # Copyright 2021 Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complian...
#!/usr/bin/env python3 # license removed for brevity #策略 機械手臂 四點來回跑 import rospy import os import numpy as np from std_msgs.msg import String from ROS_Socket.srv import * from ROS_Socket.msg import * import math import enum NAME = 'strategy_server' pos_feedback_times = 0 mode_feedback_times = 0 msg_feedback = 1 Arm_st...
/* * cylon-gpio * http://cylonjs.com * * Copyright (c) 2013-2014 The Hybrid Group * Licensed under the Apache 2.0 license. */ "use strict"; var Cylon = require('cylon'); var Drivers = { 'analog-sensor': require('./analog-sensor'), 'analogSensor': require('./analog-sensor'), 'button': require('./button'), ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.parsePadding = undefined; var _Length = require('../Length'); var _Length2 = _interopRequireDefault(_Length); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var SIDES = ['top', ...
CKEDITOR.plugins.setLang("image2","pt-br",{alt:"Texto Alternativo",btnUpload:"Enviar para o Servidor",captioned:"Legenda da Imagem",captionPlaceholder:"Legenda",infoTab:"Informações da Imagem",lockRatio:"Travar Proporções",menu:"Formatar Imagem",pathName:"Imagem",pathNameCaption:"Legenda",resetSize:"Redefinir para o T...
############################################################################# # # VFRAME # MIT License # Copyright (c) 2020 Adam Harvey and VFRAME # https://vframe.io # ############################################################################# import click plot_types = ['bar', 'line'] @click.command('') @click...
# This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: ...
(function() { 'use strict'; angular .module('app.landing') .config(configFunction) configFunction.$inject = ['$routeProvider']; function configFunction($routeProvider) { $routeProvider.when('/', { templateUrl: 'app/landing/landing.html' }); } })();
# Copyright (c) 2015 Mirantis Inc. # # 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 writing, so...
/** * DevExtreme (core/renderer_base.js) * Version: 19.1.5 * Build date: Tue Jul 30 2019 * * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var dataUtils = require("./element_data"); var ...
var Mode = require('./Mode'); function FFA() { Mode.apply(this, Array.prototype.slice.call(arguments)); this.ID = 0; this.name = "Free For All"; this.specByLeaderboard = true; } module.exports = FFA; FFA.prototype = new Mode(); // Gamemode Specific Functions FFA.prototype.leaderboardAddSort = funct...
const styleRules = ` .container { color: rgb(255, 255, 255); background-color: rgb(35, 122, 252); padding: 1em 1.8em; width: 100%; font-family: Helvetica,Calibri,Arial,sans-serif; } .footer { position:fixed; left:0px; bottom:0px; } .button { color: rgb(255, 255, 255); background-color...
#ifndef VARDEFS_H #define VARDEFS_H #define AUTOMASM_SUCCESS 0 #define AUTOMASM_FAILURE 1 #define AUTOMASM_DEBUG #ifdef AUTOMASM_DEBUG #include <QDebug> #define debug(x) (qDebug()<<(x)) #else #define debug(x) #endif #ifdef _WIN32 #define DOSBOX_EXEC_NAME "Dosbox主程序(dosbox.exe)" #else #define DOSBOX_EXEC_NAME "Dosb...
from unittest import TestCase from nose.plugins.skip import SkipTest import mock from vncdotool import client from vncdotool import rfb class TestVNCDoToolClient(TestCase): def setUp(self): self.isolation = mock.isolate.object(client.VNCDoToolClient, excludes='math.sqrt,operator.add,cli...
"""Prepare Data for LAS training task.""" import math import os import random import h5py import argparse import logging import pathlib import numpy as np from datetime import datetime from data_utils import read_xyz_label_from_las_laspy, strfdelta from logger import setup_logging def main(): parser = argparse....
#!/usr/bin/env python3 ''' Test simple altitude-hold PID controller Copyright (C) 2019 Simon D. Levy MIT License ''' import numpy as np from altitude_controller import AltitudeController from multicopter import Multicopter class TakeoffCopter(Multicopter): def __init__( self, kp_z=1.0,...
""" keras.py Methods to create, use, save and load pilots. Pilots contain the highlevel logic used to determine the angle and throttle of a vehicle. Pilots can include one or more models to help direct the vehicles motion. """ from abc import ABC, abstractmethod from collections import deque import numpy as np fro...
// main page for displaying list of all training series import React, { useEffect } from "react"; import { connect } from "react-redux"; import moment from "moment"; import { getNotifications } from "store/actions"; import history from "history.js"; import { withStyles } from "@material-ui/core/styles"; import { Li...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
// @flow import React, { type Node } from 'react'; import Text from './Text'; type Props = { children: Node | string }; export const BodyText = ({ children, ...rest }: Props) => ( <Text size="sm2" spacing={'small'} {...rest}> {children} </Text> );
import argparse import json """ Parse inputs for the XLM-R benchmark """ def dict_serialize(seqlen_dist_dict): """ dict->str Turns {1:'a',2:'b'}->"[[1,'a'],[2,'b']]" Why? Because this format plays nice with shell script that runs xlmr_bench. Avoids curly braces and spaces that makes shell script ...
#!/usr/bin/env python # Copyright (c) 2017 The Khronos Group Inc. # # 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 ap...