text
stringlengths
3
1.05M
import aiohttp import traceback from io import BytesIO import discord from data.tag import Tag import datetime import cogs.utils.permission_checks as permissions import cogs.utils.context as context from discord.ext import commands from discord.ext import menus class TagsSource(menus.GroupByPageSource): async de...
classes = '_!"#&\'()*+,-./0123456789:;?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ' cdict = {c:i for i,c in enumerate(classes)} icdict = {i:c for i,c in enumerate(classes)} cnn_cfg = [(2, 64), 'M', (4, 128), 'M', (4, 256)] cnn_top = 256 max_epochs = 240 batch_size = 20 level = "line" fixed_size = (4 * 3...
""" Common type operations. """ from typing import Any, Callable, Union import warnings import numpy as np from pandas._libs import algos, lib from pandas._libs.tslibs import conversion from pandas._typing import ArrayLike, DtypeObj from pandas.core.dtypes.dtypes import ( CategoricalDtype, DatetimeTZDtype, ...
const { rule } = use('Validator'); class StoreUser { get validateAll() { return true; } get rules() { return { name: [ rule('required'), rule('string'), rule('min', 3), rule('regex', /^[A-Za-záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ ]+$/), ], email: 'required|ema...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 19-4-23 下午3:54 # @Author : MaybeShewill-CV # @Site : https://github.com/MaybeShewill-CV/lanenet-lane-detection # @File : lanenet_data_feed_pipline.py # @IDE: PyCharm """ Lanenet data feed pip line """ import argparse import glob import os import os.path...
/** ****************************************************************************** * @file stm32l1xx_hal_iwdg.h * @author MCD Application Team * @version V1.1.3 * @date 04-March-2016 * @brief Header file of IWDG HAL module. ******************************************************************...
from ._base import * from ..tinygrail.bigc import BigC from ..tinygrail.model import TBid @click.command() @click.argument("player_name", type=TG_PLAYER) @click.argument("character_ids", type=int, nargs=-1) def force_view(player_name, character_ids): for cid in character_ids: big_c = BigC(player_name, cid...
var slideIndex = 0; showSlides(slideIndex); // Next/previous controls function plusSlides(n) { showSlides(slideIndex += n); } // Thumbnail image controls function currentSlide(n) { showSlides(slideIndex = n); } function showSlides(n) { var i; var slides = document.getElementsByClassName("mySlides"); var do...
const { Song, Output } = require('chorus'); require('chorus/names').into(global); const song = new Song({ bpm: 132, sections: [{ parts: [{ pitches: [C4, D4, E4, F4, C4, D4, E4, G4, B3, C4], rhythm: [1, 0.5, 0.5, 2, 1, 0.5, 0.5, 1.5, 0.5, 4], }] }] }); Output.select().then(output =>...
import _plotly_utils.basevalidators class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="bgcolorsrc", parent_name="scatterpolar.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, ...
#!/usr/bin/env python from setuptools import setup from os import path setup( name="django-tailwind", description="""Tailwind CSS Framework for Django projects""", long_description_content_type="text/markdown", long_description=open("README.md", encoding="utf-8").read(), author="Tim Kamanin", ...
const presets = [ [ "@babel/env", { useBuiltIns: "usage", corejs: "3.0.1" }, ], ]; module.exports = { presets };
import React from 'react'; import {Spinner} from 'react-bootstrap'; const Loader = () => { return ( <Spinner animation='border' role='status' style={{ height: '100px', width: '100px', margin: 'auto', display...
from ipaddress import IPv4Network, IPv6Network, ip_address, ip_network import time from typing import Optional, Union from twisted.internet import defer from twisted.internet.base import DelayedCall from twisted.names.server import DNSServerFactory from twisted.names import dns from dnsagent import logger from dnsage...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import shutil import sys import tempfile import time import unittest import ray from ray.rllib import _register_all from ray import tune from ray.tune import Trainable, TuneError from ray.tune impor...
# Copyright (c) 2018-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import numpy as np class Skeleton: def __init__(self, parents, joints_left, joints_right): assert len(joints_left...
# 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 ...
import os, math from .constants_gzrs2 import * from .classes_gzrs2 import * from .io_gzrs2 import * def readRs(self, path, state: GZRS2State): file = open(path, 'rb') id = readUInt(file) version = readUInt(file) matCount = readInt(file) for i in range(matCount): # skip material string...
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ goog.module('goog.structs.LinkedMapTest'); goog.setTestOnly(); const LinkedMap = goog.require('goog.structs.LinkedMap'); const recordFunction = goog.require('goog.testing.recordFunction'); const testSuite = goog.requi...
import numpy from chainer import cuda from chainer import function from chainer import utils from chainer.utils import type_check class Minimum(function.Function): """Element-wise minimum of input variables.""" def check_type_forward(self, in_types): type_check.expect( in_types.size() ==...
from django.urls import path, include from . import views urlpatterns = [ path('signup', views.signup, name='signup'), path('login', views.login, name='login'), path('logout', views.logout, name='logout'), ]
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib 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 a...
"""ohio URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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='home') Class-based vi...
void ("test string");
// Initializes the `info` service on path `/info` const createService = require('./info.class.js'); const hooks = require('./info.hooks'); module.exports = function (app) { const paginate = app.get('paginate'); const options = { paginate }; // Initialize our service with any options it requires app....
/* * This file is part of SolidInvoice project. * * (c) 2013-2017 Pierre du Plessis <info@customscripts.co.za> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ define(['backgrid', 'lodash', 'template'], function(Backgrid, _, Template) { Backg...
import React, { useState } from 'react'; import store, { tpdiSlice } from '../../store'; import { focusMap } from '../input/MapContainer'; const AirbusFeatureInfo = ({ feature }) => { const [expandedInfo, setExpandedInfo] = useState(false); const handleParseGeometryToMap = () => { store.dispatch(tpdiSlice.act...
Prism.languages.d=Prism.languages.extend("clike",{string:[/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/,/\bq"([_a-zA-Z][_a-zA-Z\d]*)(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\1"/,/\bq"(.)[\s\S]*?\1"/,/'(?:\\'|\\?[^']+)'/,/(["`])(?:\\[\s\S]|(?!\1)[^\\])*\1[cwd]?/],number:[/\b0x\...
import Tooltip from './Tooltip'; import {InfoIcon} from '@primer/octicons-react'; import {useTranslation} from 'react-i18next'; function StateMetaCard({ title, statistic, total, formula, date, description, className, }) { const {t} = useTranslation(); return ( <div className={`meta-item ${class...
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
import wikitopdf
from selenium import webdriver from fixture.session import SessionHelper from fixture.group import GroupHelper from fixture.contact import ContactHelper class Application: def __init__(self, browser, base_url): if browser == "firefox": self.wd = webdriver.Firefox() elif browser == "chr...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/DeviceDefinition) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .annotation import Annotation ...
var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), VERSION: '1.0b0', LANGUAGE: 'None', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt', NAVIGATION_WITH_KEYS: false, SEARCH_LA...
def uses_all(word, letters): # if letter in letters does not appear in word, it means this letter was not used in word which will return False for c in letters: if c not in word: return False return True print (uses_all("To day is a good day", "god")) print (uses_all("To day is a good day", "godA"))
// @flow const debug = require('debug')('athena'); import createWorker from '../shared/bull/create-worker'; // Our job-processing worker server import processMessageNotification from './queues/new-message-in-thread'; import processMentionNotification from './queues/mention-notification'; import processDirectMessageNoti...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var slicedToArray = require('./slicedToArray-0711941d.js'); require('./unsupportedIterableToArray-68db1d3b.js'); var React = ...
import React from 'react' import { connect } from 'react-redux' const QRCode = require('qrcode.react'); const mapStateToProps = ({wallet}) => { return { address: wallet.address } } const mapDispatchToProps = (dispatch, ownProps) => ({}) export const WithdrawalAddress = ({ address, ...rest }) => { return ( ...
// SH AANLI Inventory number : abap 2.3.0 at: 2021-04-23 11:59:34 const helpSign = [{ id: 'I', name: 'Include' }, { id: 'E', name: 'Exclude' }]; const helpOption = [ { id: 'EQ', name: 'is' }, { id: 'NE', name: 'is not' }, { id: 'GT', name: 'greater than' }, { id: 'LT', name: 'less than' }, { id: 'GE', name: ...
# Lint as: python3 # Copyright 2020 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 ...
import { createElement } from 'lwc'; import MyApp from 'my/spaRouter'; const app = createElement('my-app', { is: MyApp }); // eslint-disable-next-line @lwc/lwc/no-document-query document.querySelector('#main').appendChild(app);
# coding=utf-8 # Copyright 2018 The Tensor2Tensor 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...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSIndexPath.h" @interface NSIndexPath (IBIndexPathAdditions) - (id)indexPathByRemovingFirstIndex; @end
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef KBYTECOIN_SCRIPT_INTERPRETER_H #define KBYTECOIN_SCRIPT_INTERPRETER_H #i...
api_key = "YZ9KEK5TLUXK0KL6"
""" WSGI config for nebproject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
# -*- coding: utf-8 -*- """Main module.""" import torch from resseg.inference import segment_resection def resseg( input_path, output_path, tta_iterations, interpolation, num_workers, postprocess=True, mni_transform_path=None, ): repo = 'fepegar/re...
import gutil import tcontainers import tdbc import tutil def main(): chosen_template = gutil.choose_one ('Template class', tutil.template_description.templates()) if not chosen_template: return template = tutil.template_description.template (chosen_template) name_pref = chosen_template + '$' parameters...
import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import sinon from 'sinon'; import helpers from '../../lib/android-helpers'; import ADB from 'appium-adb'; import { withMocks } from 'appium-test-support'; import * as teen_process from 'teen_process'; import { fs } from 'appium-support'; import { p...
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("imagebase","en",{captionPlaceholder:"Enter image caption"});
import {default as marked} from 'marked'; const html = String.raw; const computeHash = (typeName, name, id) => { const typeReference = typeName.toLowerCase().substr(0, typeName.length - 1); return `${typeReference}-${name || id}`; } // Thx aslushnikov! const itemSort = (a, b) => { if (a.experimental !== b.expe...
(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{3612:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return o}));r(6),r(7);var n=r(0);function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(...
#include "uf2.h" #include "flash_nrf5x.h" #include <string.h> #include "boards.h" #include "tusb.h" #include "bootloader_settings.h" #include "bootloader.h" typedef struct { uint8_t JumpInstruction[3]; uint8_t OEMInfo[8]; uint16_t SectorSize; uint8_t SectorsPerCluster; uint16_t ReservedSectors; ...
from __future__ import absolute_import import errno import io import itertools import getopt import os, signal, subprocess, sys import re import stat import platform import shutil import tempfile import threading import io try: from StringIO import StringIO except ImportError: from io import StringIO from lit...
# -*- coding: utf-8 -*- """ Created on Fri Jul 14 13:24:34 2017 @author: user """ #from keras.preprocessing.image import ImageDataGenerator #from keras.models import Sequential #from keras.layers.core import Dense, Dropout, Activation, Flatten, SpatialDropout3D, Merge #from keras.layers.convolutional import...
import numpy as np import tensorflow as tf from tensorflow.contrib.training import HParams def default_hparams(): return HParams( n_vocab=0, n_ctx=1024, n_embd=768, n_head=12, n_layer=12, ) def shape_list(x): """Deal with dynamic shape in tensorflow cleanly.""" ...
import inspect import logging import time import traceback from functools import wraps from django.conf import settings from django.utils import timezone from silk.collector import DataCollector from silk.config import SilkyConfig from silk.models import _time_taken Logger = logging.getLogger('silk.profiling.profile...
#include <math.h> #include <stdlib.h> #include <wayland-client.h> #include "cairo.h" #include "background-image.h" #include "swaylock.h" #define M_PI 3.14159265358979323846 const float TYPE_INDICATOR_RANGE = M_PI / 3.0f; const float TYPE_INDICATOR_BORDER_THICKNESS = M_PI / 128.0f; static void set_color_for_state(cair...
var mainTable = null; function datatable() { $('#data-table-services').dataTable().fnDestroy(); $.fn.dataTable.ext.errMode = 'throw'; mainTable = $('#data-table-services').DataTable({ "bfilter": false, "dom": 'B f l t p r i', "paging": true, "searching": true, "order...
#include "nine.h" /* * References are managed as follows: * The channel to the server - a network connection or pipe - has one * reference for every Chan open on the server. The server channel has * c->mux set to the Mnt used for muxing control to that server. Mnts * have no reference count; they go away when c...
from __future__ import absolute_import from __future__ import unicode_literals from datetime import datetime, timedelta from django.test import TestCase from corehq.apps.app_manager.models import Application, LinkedApplication from corehq.apps.app_manager.tests.util import delete_all_apps from corehq.apps.domain.model...
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React ...
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import ctypes _...
import json import logging from pyeoskit import _pyeoskit logger=logging.getLogger(__name__) def set_contract_abi(account, abi): ret = _pyeoskit.abiserializer_set_contract_abi(account, abi) ret = json.loads(ret) if 'error' in ret: raise Exception(ret['error']) return True def pack_action_args...
#ifndef __GAME_CAM_H_ #define __GAME_CAM_H_ //---------------------------- //---------------------------- //game camera class C_game_camera: public C_unknown{ public: //update camera each frame virtual void Tick(int time) = 0; //-------------------------...
import sizes from "./sizes"; import bg from "./bg.svg" export default { "@global": { ".fade-exit": { opacity: 1 }, ".fade-exit-active": { opacity: 0, transition: "opacity 500ms ease-out" } }, root: { height: "100vh", display: "flex", alignItems: "flex-start", jus...
# -*- coding: utf-8 from __future__ import unicode_literals, absolute_import import distro import django DEBUG = True USE_TZ = True SPATIALITE_LIBRARY_PATH = 'mod_spatialite.so' # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "!2*nm%ps%x8!ykyb^s9+!l1vcmeh+(f&de%br=js*7(5i_rmet" # n...
from telegram.ext import BaseFilter from telegram.ext import Filters class _Status(BaseFilter): name = 'Filters.status' def __init__(self, status=[]): if isinstance(status, str): self.statuses = [status] elif isinstance(status, (list, tuple)): self.statuses = status ...
import os ############ # create a Logger file to write and save datas in CSV format # File information are based on parameters set in 'config' from a .ini file def createLoggerFile(config): #filename from config file filename,i=searchFileName(config.get('filenameLogger','folderPATH'), c...
import re import numpy as np import pytest from mpl_toolkits.axisartist.angle_helper import ( FormatterDMS, FormatterHMS, select_step, select_step24, select_step360) _MS_RE = ( r'''\$ # Mathtext ( # The sign sometimes appears on a 0 when a fraction is shown. # Check later th...
//#include include/takeable.js var label = "Fuelmaker Engine"; var version = "1309237250"; var name_single = "Fuelmaker Engine"; var name_plural = "Fuelmaker Engines"; var article = "a"; var description = "Install the Fuelmaker Engine and you're one step closer to being able to \"Make Fuelmaker go now!\""; var is_hidd...
"""Gaussian LSTM Policy. A policy represented by a Gaussian distribution which is parameterized by a Long short-term memory (LSTM). """ # pylint: disable=wrong-import-order import akro import numpy as np import tensorflow as tf from metarl.tf.models import GaussianLSTMModel from metarl.tf.policies.policy import Stoch...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSTextField.h" @interface MMLinkTextField : NSTextField { id <MMLinkTextFieldDelegate> _linkDelegate; } @property id <MMLinkTextFieldDelegate> linkDelegate; // @synth...
import styled from 'styled-components'; import { View } from 'react-native'; export const ScreenWrapper = styled(View)` flex: 1; background-color: #fff; `; export const Row = styled(View)` flex-direction: row; `;
OIMI_PQ8_R10_txt = ''' 0.2790 0.3233 0.3838 0.4227 0.4701 0.4844 0.4984 0.5040 ''' OIMI_PQ8_T_txt = ''' 1.10 1.12 1.35 1.65 2.65 3.73 6.79 10.8 ''' IVF2M_PQ8_R10_txt = ''' 0.3329 0.3926 0.4625 0.5019 0.5413 0.5531 0.5615 0.5648 ''' IVF2M_PQ8_T_txt = ''' 0.22 0.24 0.33 0.42 0.79 1.22 2.15 3.10 ''' IVF4M_PQ8_R10_txt = ...
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-typedarray-typedarray description: > Return abrupt from buffer.constructor.@@species.prototype info: | 22.2.4.3 TypedArray ( typedArray ) This description appl...
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
Global = {} $( document ).ready(function(){ setOccupationDropdown() setPredictButton() setInput() buildDefaultGraph() }); function buildDefaultGraph(){ var defaultData = [ {candidate:"Sanders",probability: .251}, {candidate:"Clinton",probability: .197}, {candidate:"Carson",probability: .185}, {c...
'use strict'; const webpack = require('webpack'); const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const {VueLoaderPlugin} = require('vue-loader'); module.exports = { context: __dirname, resolve: { modules: [ ...
import { withRouter } from "react-router-dom"; import React from "react"; import { connect } from "react-redux"; import ReactDOM from "react-dom"; // import { CSVLink, CSVDownload } from "react-csv"; import CsvParse from "@vtex/react-csv-parse"; import { Button, FormGroup, Label, Input } from "reactstrap"; import { ...
# Copyright (c) OpenMMLab. All rights reserved. # TODO: clean the functions in this file and move the APIs into box structures # in the future # NOTICE: All functions in this file are valid for LiDAR or depth boxes only # if we use default parameters. import numba import numpy as np from .structures.utils import limi...
import datetime import os def create_eps_based_prediction_data(prediction_horizon_in_days): tickers = _get_list_of_tickers_from_indexed_EPS() _create_prediction_data_file(tickers, prediction_horizon_in_days) def _get_list_of_tickers_from_indexed_EPS(): current_file_dir_path = os.path.dirname(os.path.rea...
const { inherits } = require('util'); const { EventEmitter } = require('events'); function Character(name) { this.name = name; // aqui pegamos o nome que passamos para a função e colocamos na propriedade name do objeto } inherits(Character, EventEmitter); // aqui herdamos todas as funções do EventEmitter para o C...
import abc import gtimer as gt from rlkit.core.rl_algorithm import BaseRLAlgorithm from rlkit.data_management.replay_buffer import ReplayBuffer from rlkit.samplers.data_collector import PathCollector class BatchRLAlgorithm(BaseRLAlgorithm, metaclass=abc.ABCMeta): def __init__( self, train...
import glob import subprocess import sys from pathlib import Path from parchmint.device import Device def test(): """ Run all unittests. Equivalent to: `poetry run python -u -m unittest discover` """ subprocess.run(["pytest", "-vv"]) def validate_dir_V1(): # glob through all the files in th...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.messages = exports.ruleName = undefined; exports.default = function (expectation) { var checker = (0, _utils.whitespaceChecker)("space", expectation, messages); return function (root, result) { var validOptions = (0, _utils...
import serial import time import threading import queue import math import time class RouterboardInterface: """ Acts as the interface the routerboard uses to communicate to Carla. Using threads, we are able to address all these functions simultaneously Reads in commands from buffer and executes them...
''' Benchmarking Neural Network Robustness to Common Corruptions and Perturbations (ICLR2019) Paper link: https://arxiv.org/abs/1903.12261 Benchmarking Robustness in Object Detection: Autonomous Driving when Winter is Coming Paper link: https://arxiv.org/abs/1907.07484 Modified by Xiaofeng Mao 2021.8.30 ''' from i...
from rdflib import Graph, Namespace, URIRef, Literal, RDF, RDFS import json import sys import re import csv import getopt JSON="qualityml.json" SKOS = Namespace('http://www.w3.org/2004/02/skos/core#') QML= Namespace('http://defs-dev.opengis.net/def/qualityml/') SCHEME = URIRef('http://defs-dev.opengis.net/def/qual...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { ext...
""" Tools for managing an encrypted directory on a cloud drive. See https://github.com/msh100/ACDTools/blob/gdrive-support/acdtools for the inspiration. """ from .cloud_drive_tools import cloud_drive_tools __all__ = [ 'cloud_drive_tools', ]
'use strict'; class Parser { constructor(){ this.commands = new Map(); this.commands.set("createTable", /^create table (\w+)\s\((.+)\)/); this.commands.set("insert", /^insert into (\w+)\s\((.+)\)\svalues\s\((.+)\)/); this.commands.set("select", /^select (\*?.*) from (\w+)(?:\swhere\...
const expect = require('chai').expect; const request = require('supertest'); const app = require('../../../app'); const { connectDB, disconnectDB } = require('../../../config/db'); describe('PUT /api/todos/:id', () => { before(async () => { try { await connectDB(); } catch (err) { console.log(er...
/** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return t...
/* */ "format cjs"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function")...
// Student.js module.exports = function (sequelize, DataTypes) { var Student = sequelize.define("Student", { firstName: DataTypes.STRING, lastName: DataTypes.STRING, mainLanguage: DataTypes.STRING, subLanguage: DataTypes.STRING, school: DataTypes.STRING, email: DataT...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2014 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consi...
'use strict'; $(document).ready(() => { // SAVE STYLING FUNCTIONALITY $('.edit-form') ? $('.edit-form').hide() : ''; $('.show-edit') ? $('.show-edit').click(function() { $(this).prev().show(); $(this).hide(); }) : ''; $('.cancel') ? $('.cancel').click(function() { $(this).parent().hide(); $(...
# -*-coding:utf-8 -*- import sys, os from FlokAlgorithmLocal import FlokDataFrame, FlokAlgorithmLocal import json import pandas as pd import nltk import re import jieba.analyse class Batch_TextPartition(FlokAlgorithmLocal): def run(self, inputDataSets, params): text_dict = inputDataSets.get(0)...