text
stringlengths
3
1.05M
/****************************************************************************** * @file binary.h * @author MM32 AE * @version V1.00 * @date 10-June-2020 * @brief ...... ****************************************************************************** * @attention * * THE EXISTING FIRMWARE IS ONLY FOR ...
var class_cache_multi_map = [ [ "it_map_cit", "class_cache_multi_map.html#af62edae7bd40ce0cbce72fbf4585e126", null ], [ "it_map_it", "class_cache_multi_map.html#a4727f7236cd64f492823b375f141c59d", null ], [ "it_map_t", "class_cache_multi_map.html#a1692415fd0b6b378a35c619e1d06c0ea", null ], [ "item_t", "...
/** * @license Apache-2.0 * * Copyright (c) 2022 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...
__author__ = 'yinjun' # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param {TreeNode} root # @return {void} Do not return anything, modify root in-place instead. def flatt...
''' Run in CASA for first time initialization ''' print("Started CASA for initialization!")
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from mav_planning_msgs/PolynomialTrajectory4D.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import mav_planning_msgs.msg import genpy import std_msgs.msg class Polynomi...
module.exports = [ "g","gg","n","d","dd","r","m","b","bb","s","ss","","j","jj","c","k","t","p","h","ng","nn","nd","nb","dg","rn","rr","rh","rN","mb","mN","bg","bn","","bs","bsg","bst","bsb","bss","bsj","bj","bc","bt","bp","bN","bbN","sg","sn","sd","sr","sm","sb","sbg","sss","s","sj","sc","sk","st","sp","sh","","","",""...
const Vue = require('vue/dist/vue.common.js') const { ref, computed, h, provide, inject, reactive, toRefs, markRaw, toRaw, nextTick, } = require('../src') const { sleep } = require('./helpers/utils') describe('setup', () => { beforeEach(() => { warn = jest.spyOn(global.console, 'error').mockI...
"""Contains functions for getting information related to the user account.""" import os import robin_stocks.helper as helper import robin_stocks.profiles as profiles import robin_stocks.stocks as stocks import robin_stocks.urls as urls @helper.login_required def get_all_positions(info=None): """Returns a list co...
/** * @author Dell * nodeJS version: v8.9.3 * * 考虑到我们的硬件还没有完成,并且我们希望加快进度,于是就有了这段代码。 * 这段代码运行于NodeJS,当访问localhost:3035/log/YYYYMMDD时,返回一个JSON。 * considering that our hardware has not been completed, and we want to speed up the progress, we have this code. * this section of the code runs at NodeJS, and returns a J...
def biggerIsGreater(w): arr = list(w) l = "" # Find non-increasing suffix i = len(arr) - 1 while i > 0 and arr[i - 1] >= arr[i]: i -= 1 if i <= 0: return "no answer" # Find successor to pivot j = len(arr) - 1 while arr[j] <= arr[i - 1]: j -= 1 arr[i - 1],...
import click import json import sys from prettytable import PrettyTable from calm.dsl.api import get_api_client from calm.dsl.builtins import Ref from .task_commands import watch_task from .constants import ERGON_TASK from calm.dsl.config import get_context from calm.dsl.store import Cache from calm.dsl.constants impo...
/** * @index 874 * @title 比较含退格的字符串 * @difficulty 简单 * @tags stack,two-pointers,string,simulation * @draft false * @link https://leetcode-cn.com/problems/backspace-string-compare/ * @frontendId 844 */ /** * @param {string} s * @param {string} t * @return {boolean} * @date 2021/8/8 */ var backspaceCompare...
import string from nltk.tree import Tree from trees.parse_tree import ParseTree from utils.utils import unescape_penn_special_word class LexicalizedTree(ParseTree): "Extends nltk.tree to support lexical heads" head = -1 head_sup = -1 def unescape(self, mystr): #return replace_words(mystr....
"""badges module""" from django.core.exceptions import ObjectDoesNotExist from apps.managers.challenge_mgr import challenge_mgr from apps.managers.player_mgr.models import Profile from apps.utils import utils from apps.widgets.badges.models import BadgeAward, Badge from apps.managers.cache_mgr import cache_mgr def ge...
/* * Copyright (c) 2017 Cisco and/or its affiliates. * 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 applicabl...
/**************************************************************************** ** ** https://www.qxorm.com/ ** Copyright (C) 2013 Lionel Marty (contact@qxorm.com) ** ** This file is part of the QxOrm library ** ** This software is provided 'as-is', without any express or implied ** warranty. In no event will the authors...
# -*- coding: utf-8 -*- from copy import deepcopy from sdgen.config import render_config, safeget class ConfigurableMixin(object): """ """ _render_config_key = None _render_config_secondary_key = None _render_config_default_key = "default" def __init__(self, render_config_key=None, *args, ...
#!/usr/bin/python3 import json import sys import threading import time from collections import deque from collections.abc import Iterator from getpass import getpass from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Union import eth_account import eth_keys import rlp from eip712.messages i...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14 #pragma once #ifndef WINRT_Windows_Services_Cortana_H #define WINRT_Windows_Services_Cortana_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.210930.14"), "Mismatched C++/WinRT headers."); #define C...
const mongoose =require('mongoose') const Schema = mongoose.Schema const adminModels = new Schema({ adminId :{ type:String, required: true, unique: true, }, // 비밀번호 password: { type: String, required: true, }, // 이메일 email: { type: String, required: t...
(function() { Polymer({ is: 'arc-save-dialog-view', behaviors: [ Polymer.IronOverlayBehavior, Polymer.IronResizableBehavior ], hostAttributes: { 'role': 'dialog', 'tabindex': '-1' }, properties: { name: String, /** * True when overriding previous request */ isOverride: ...
import { fromJS } from "immutable" import { createXMLExample, sampleFromSchema } from "corePlugins/samples/fn" import expect from "expect" describe("sampleFromSchema", function() { it("handles Immutable.js objects for nested schemas", function () { var definition = fromJS({ "type": "object", "propert...
import request from '@/utils/request' const API_NAME = '/eduservice/course' export default { /** * Save course * @param courseInfo */ saveCourseInfo(courseInfo) { return request({ url: `${API_NAME}`, method: 'post', data: courseInfo }) }, /** * get course basic info by ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.3/esri/copyright.txt for details. //>>built define(["require","exports","../../../core/tsSupport/extendsHelper","./DisplayObject"],function(m,n,h,k){var l=[0,0];return function(g){function b(c){var a=g.call(t...
import matplotlib.pyplot as plt import matplotlib.path as mpath import numpy as np star = mpath.Path.unit_regular_star(6) circle = mpath.Path.unit_circle() # concatenate the star with an internal cutout of the circle verts = np.concatenate([star.vertices, circle.vertices[::-1, ...]]) codes = np.concatenate([star.code...
import styled from 'styled-components' const Wrapper = styled.div` position: relative; height: 100%; min-height: 100%; width: 100%; padding-bottom: 10em; padding-top: 2.8em; `; export default Wrapper
import shutil import tempfile import jinja2 import six import datetime import time from collections import defaultdict from contextlib import contextmanager @contextmanager def tmp_directory(): tmp_dir = tempfile.mkdtemp('_recipe') yield tmp_dir shutil.rmtree(tmp_dir) class NullUndefined(jinja2.Undefined...
$(document).ready(function(){ // Set the interval to be 5 seconds var t = setInterval(function(){ $("#carousel ul").animate({marginLeft:-480},1000,function(){ $(this).find("li:last").after($(this).find("li:first")); $(this).css({marginLeft:0}); }) },5000); });
const HTTP_STATUS_CODES = { OK: 200, BAD_REQUEST: 400, NOT_FOUND: 404, FORBIDDEN: 403, INTERNAL_SERVER_ERROR: 500 }; module.exports = HTTP_STATUS_CODES;
// Copyright 2016 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. TimelineModel.TimelineProfileTree = {}; /** * @typedef {Map<string|symbol, !TimelineModel.TimelineProfileTree.Node>} */ TimelineModel.TimelineProfileTr...
"use strict"; module.exports = { parserOptions: { ecmaVersion: 8 }, extends: [ "eslint" ], env: { node: true, es6: true }, root: true };
n = 10 count = 0 for i in range(n): for j in range(n): for k in range(n): if i < j < k: count += 1 # 10C3 print(count) n = 1000 count = 0 for i in range(n): for j in range(n): for k in range(n): if i < j < k: count += 1 # 1000C3 print(...
(function(){ $(".index_nav li").on({ mouseenter:function(){ $(this).children(".xl").slideDown(); $(this).siblings().children(".xl").slideUp(); }, mouseleave:function(){ $(".index_nav li").children(".xl").slideUp(); } }) })();
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import logging import warnings from typing import Any, Dict, List, Optional, Tuple, Union import ax.servic...
# -*- coding: utf-8 -*- # # Tempest documentation build configuration file, created by # sphinx-quickstart on Tue May 21 17:43:32 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
""" IPython shell wrapping """ from IPython.core.magic import (Magics, magics_class, line_magic) def ishell(local_ns): """Embed an IPython shell handing it the local namespace from :var:`local_ns`. """ banner = ( "Welcome to the pystuck interactive shell.\nUse the 'modules' dictionary " ...
!function(e){function s(a){if(l[a])return l[a].exports;var o=l[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,s),o.l=!0,o.exports}var l={};s.m=e,s.c=l,s.i=function(e){return e},s.d=function(e,l,a){s.o(e,l)||Object.defineProperty(e,l,{configurable:!1,enumerable:!0,get:a})},s.n=function(e){var l=e&&e.__e...
""" Rules and Macros to allow running kubebuilder from within bazel. """ def _kubebuilder_impl(ctx): """Implementation of the _kubebuilder rule. Args: ctx: the repository_context """ out_file = ctx.actions.declare_file(ctx.label.name + ".bash") substitutions = { "@@KUBEBUILDER_SHORT...
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.DiscountDstCampPrizeModel import DiscountDstCampPrizeModel from alipay.aop.api.domain.DstCampRuleModel import DstCampRuleModel from alipay.aop.api.domain.DateAreaModel ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from flask import Flask, render_template, Response import cv2 import numpy as np class VideoCamera(object): def __init__(self): # 通过opencv获取实时视频流 dispW=680 dispH=480 flip=2 #camSet2=' tcpclientsrc host=192.168.43.201 port=8554...
import time from testplan.testing.multitest import MultiTest, testsuite, testcase from testplan.runners.pools import ThreadPool from testplan.runners.pools.tasks import Task from testplan.common.utils.testing import ( check_report, log_propagation_disabled, ) from testplan.report import ( Status, Tes...
/** * Lodash (Custom Build) <https://lodash.com/> * Build: `lodash modularize exports="es" include="assign,capitalize,castArray,first,forEach,get,has,identity,includes,isArray,isEqual,isFunction,isNumber,isObject,isString,keys,map,mapValues,merge,noop,omit,pick,random,reduce,set,union,unset,without" -o src/common/lod...
from parameterized import parameterized from api.audit_trail.enums import AuditType from test_helpers.clients import DataTestClient from api.audit_trail.payload import format_payload class TestPayload(DataTestClient): @parameterized.expand( [ [AuditType.ADD_FLAGS, {"added_flags": "Flag 1, Fla...
import pandas as pd import re import vk from vk_module.vk_constants import * def load_default_token(): """if no token is set from outside, attempt will be taken to load some preset tokens from a certain module""" try: from .vk_tokens import super_secret_access_token return super_secret_ac...
import Layer from '../../Layer' import Tensor from '../../Tensor' import webgl2 from '../../WebGL2' /** * InputLayer layer class */ export default class Input extends Layer { /** * Creates an InputLayer layer * * @param {Object} [attrs] - inputsNum: number of inputs */ constructor(attrs = {}) { s...
import React, {Component} from 'react'; import {Contacts} from './common/Contacts'; export class Footer extends Component { render() { /* Some css code has been removed for brevity */ return ( <div className="row footer"> <div className="col-md-2"> <d...
# -*- coding: utf-8 -*- '''This module provides functions for connecting and downloading from Alaska satellite Faciltity's Vertex server ''' import os from os.path import join as opj import glob import requests import tqdm import multiprocessing from ost.helpers import helpers as h from ost import Sentinel1_Scene as ...
from django.urls import path from . import views app_name = 'noticias' urlpatterns = [ path('', views.listar, name='listar'), path('<int:id>', views.visualizar, name = 'visualizar'), path('cadastrar', views.cadastrar, name='cadastrar'), path('editar/<int:id>', views.editar, name='editar'), path('remover/<int...
import math import random import functools import operator import torch from torch import nn from torchvision import models import torch.utils.model_zoo as model_zoo from torch.nn import functional as F from torch.autograd import Function from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from t...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:09:08 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/PrivateFrameworks/HomeKitDae...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # Copyright (c) 2011 Piston Cloud Computing, Inc # Copyright (c) 2011 OpenStack Foundation # (c) Cop...
/* * cmdline.h -- * * This file is part of phlib library. * * Copyright (c) 2012 Andrey V. Nakin <andrey.nakin@gmail.com> * All rights reserved. * * See the file "COPYING" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * */ #ifndef __CMDLINE_...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ QiBuild """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print...
/* ** Copyright 2014-2016 The Earlham Institute ** ** 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...
from .objects import Objects from ..catalogs import Catalogs from ..constants import ObjectTableLabels class Messier(Objects): def __init__(self, place): super(Messier, self).__init__(place) self.objects = Catalogs.MESSIER.copy() # Compute transit of messier objects at given place self.objects[Objec...
from xml.etree.ElementTree import Element from frappe.model.document import Document from trebelge.TRUBLCommonElementsStrategy.TRUBLCommonElement import TRUBLCommonElement from trebelge.TRUBLCommonElementsStrategy.TRUBLFinancialInstitution import TRUBLFinancialInstitution class TRUBLBranch(TRUBLCommonElement): _...
"""Read DCTAP/CSV (expand prefixes?). Write and read config file.""" from csv import DictReader from dataclasses import asdict from typing import Dict, List from pathlib import Path from csv2shex.exceptions import CsvError from .csvshape import CSVShape, CSVTripleConstraint DEFAULT_SHAPE_NAME = ":default" # replace ...
const { CPU } = require('../classes/CPU') const { MockCpuInterface, CpuInterface } = require('../classes/interfaces/MockCpuInterface') const cpuInterface = new MockCpuInterface() const cpu = new CPU(cpuInterface) describe('CPU tests', () => { test('CPU should not execute after halting', () => { cpu.load({ data: ...
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const AlertOctagon = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" f...
exports.BattleAbilities = { angerpoint: { inherit: true, onCriticalHit: function () {}, onHit: function (target, source, move) { if (target.hp && move.category !== 'Status' && !move.damage && !move.damageCallback && target.runEffectiveness(move) > 0 && target.useItem()) { this.boost({atk: 6}); } } }...
import React, { useRef } from "react" import styled, { css, keyframes } from "styled-components" import { useStaticQuery, graphql } from "gatsby" import { ArrowDown } from "styled-icons/feather/ArrowDown" import { Download } from "styled-icons/feather/Download" import { Linkedin } from "styled-icons/feather/Linkedin" i...
var searchData= [ ['ibuildingmanager_2ecs_856',['IBuildingManager.cs',['../_i_building_manager_8cs.html',1,'']]], ['icitymanager_2ecs_857',['ICityManager.cs',['../_i_city_manager_8cs.html',1,'']]], ['icityplaceable_2ecs_858',['ICityPlaceable.cs',['../_i_city_placeable_8cs.html',1,'']]], ['imapplaceable_2ecs_859...
/* See LICENSE for license details. */ #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <pwd.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <sys/ioctl.h> #include <sys/select.h> #include <sys/types.h> #include <sys/wait...
import cv2 # Load the cascade face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml') # To capture video from webcam. cap = cv2.VideoCapture(0) # To use a video file as input # cap = cv2.VideoCapture('filename.mp4') while True: # Read the frame _, img = cap.read...
from lunavl.sdk.estimators.image_estimators.orientation_mode import OrientationModeEstimator, OrientationType from lunavl.sdk.image_utils.image import VLImage, RotationAngle from tests.base import BaseTestClass from tests.resources import ROTATED0, ROTATED90, ROTATED180, ROTATED270 class TestImageRotation(BaseTestCla...
module.exports = { bracketSpacing: false, jsxBracketSameLine: true, singleQuote: true, trailingComma: 'all', semi: true, tabWidth: 2, useTabs: false, };
/** * angular-input-masks * Personalized input masks for AngularJS * @version v1.4.3 * @link http://github.com/assisrafael/angular-input-masks * @license MIT */ (function (angular) { var StringMask = (function() { var tokens = { '0': {pattern: /\d/, _default: '0'}, '9': {pattern: /\d/, optional: true}, '#...
/*********************************************************************************************************************** * * API.AI iOS SDK - client-side libraries for API.AI * ========================================== * * Copyright (C) 2015 by Speaktoit, Inc. (https://www.speaktoit.com) * https://www.api.ai * ...
var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_ads_googleads_v4_enums_extension_setting_device_pb=require("../../../../../google/ads/googleads/v4/enums/extension_setting_device_pb.js");goog.object.extend(proto,google_ads_googleads_v4_enums_extension_setting_device_pb);var google_a...
/* mall2.c -- use two Queues interface */ /* compile with queue.c */ #include <stdio.h> #include <stdlib.h> /* prototype of rand(0 and srand() functions */ #include <time.h> /* prototype of time() function */ #include "queue.h" #define MIN_PER_HR 60.0 bool newcustomer(double x); /* is new customer coming? */ Item cus...
const router = require("express").Router(); router.get("/sound", (req, res) => { res.send(`oink`); }); module.exports = router;
!function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
#!/usr/bin/env python3 # Copyright (c) 2016-2020 The Picacoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test version bits warning system. Generate chains with block versions that appear to be signalling un...
#!/usr/bin/python2.7 import os import KernelCollection # Verify that an auxKC has a reverse vmAddr order def check(kernel_cache): # First build a kernel collection kernel_cache.buildKernelCollection("arm64", "/hello-world-auxkc/main.kc", "/hello-world-auxkc/main.kernel", "/hello-world-auxkc/extensions", [], ...
// Copyright (c) 2013, Facebook, Inc. 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. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #pragma once #ifndef ROCKSDB_LIT...
// Copyright 2016 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. #ifndef THIRD_PARTY_BASE_OPTIONAL_H_ #define THIRD_PARTY_BASE_OPTIONAL_H_ #include <functional> #include <type_traits> #include <utility> #include "thir...
from django.utils.translation import gettext_lazy as _ from cms.app_base import CMSApp from cms.apphook_pool import apphook_pool class Example1App(CMSApp): name = _("Example1 App") def get_urls(self, page=None, language=None, **kwargs): return ["cms.test_utils.project.placeholderapp.urls"] class M...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License...
#pragma once typedef unsigned char BYTE; class Color { public: Color(); Color(unsigned int val); Color(BYTE r, BYTE g, BYTE b); Color(BYTE r, BYTE g, BYTE b, BYTE a); Color(const Color& src); Color& operator=(const Color& src); bool operator==(const Color& rhs) const; bool operator!=(const Color& rhs) const; ...
# -*- coding: utf-8 -*- from __future__ import print_function import logging import unittest import epitran logging.basicConfig(level=logging.ERROR) def assemble_ipa(xs): return ''.join([x[3] for x in xs]) def map_slice(xs, start, end): return [x[start:end] for x in xs] class TestTurkish(unittest.TestC...
import copy import logging import os import sys import threading from mitmproxy.net import tcp, tls from mitmproxy import certs as mcerts from mitmproxy.net import websockets from mitmproxy import version import urllib from mitmproxy import exceptions from pathod import language from pathod import utils from pathod imp...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Import python libs import os import sys import shutil from setuptools import setup, Command NAME = 'idem' DESC = ('Transform configuration into idempotent action.') with open('README.rst', encoding='utf-8') as f: LONG_DESC = f.read() with open('requirements.txt')...
import RouterConfig from '../../config/router.config'; const BASE_URL = `http://localhost:${process.env.PORT || 8008}`; function formatter(data) { return data .reduce((pre, item) => { pre.push(item.path); return pre; }, []) .filter(item => item); } describe('Homepage', () => { const testP...
from pathlib import Path import tqdm class CompressedFile: """ Class to wrap compressed files """ def __init__(self,path): """ path: path to the compressed file """ self.file = Path(path).expanduser() self.extension = self.file.suffix def add_file(self,filen...
import copy import sys import os import eventlet import socketio import pathlib from .player import Player from .room import Room from .table import Table from .ai import AI import time import random import string import math roomList = [] sio = socketio.Server() app = socketio.WSGIApp(sio) @sio.event def connect(...
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
from uds.uds_config_tool.FunctionCreation.SecurityAccessMethodFactory import SecurityAccessMethodFactory from uds.uds_config_tool.UtilityFunctions import getSdgsDataItem if __name__ == "__main__": import xml.etree.ElementTree as ET import inspect filename = "Bootloader.odx" root = ET.parse(filenam...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2015, xuewen.chu * 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...
"use strict"; var request = require('request'); var cheerio = require('cheerio'); module.exports = { intent: /.*eiserne|eiserne hand.*/i, location: "linz", getMenu: function (callback) { var result = { title: "Eiserne Hand", url: 'http://gasthaus-eisernehand.at/', ...
/* Copyright (c) 2018 Anakin Authors, 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 ...
from random import randint from celery_tasks.sms.tasks import send_sms_code from django.shortcuts import render, redirect from django import http from django.views import View import re, json, logging from django.contrib.auth import login, authenticate, logout, mixins from django.core.paginator import Paginator, EmptyP...
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Xts(AutotoolsPackage): """This is a revamped version of X Test Suite (XTS) which removes s...
import random import string import time def create_random_number(digit): """ 生成随机数字 :param digit: 参数为位数(长度) :return: """ number_list = [] for n in range(digit): number = str(random.randint(1, 9)) number_list.append(number) random_number = " ".join(number_list).replace(...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
/* Microchip Technology Inc. and its subsidiaries. You may use this software * and any derivatives exclusively with Microchip products. * * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER * EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED * WARRANTIES OF NO...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 14, 2021 at 2:20:41 PM Mountain Standard Time * Operating System: Version 14.4 (Build 18K802) * Image Source: /usr/lib/libAWDSupportFramework.dylib ...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:05:55 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/PrivateFrameworks/RemoteUI.f...
#<!---------------------------------------------------------------------------> #<!-- ITU - IT University of Copenhagen --> #<!-- SSS - Software and Systems Section --> #<!-- File : Camera.py -...