text
stringlengths
3
1.05M
import glob import optparse import os.path import subprocess import sys def main(): """ Repeatedly run GUI functional tests. """ parser = optparse.OptionParser() parser.add_option('-t', '--trials', type='int', default=100, help='# trials to attempt') parser.add_option('-n', '--no...
import { swapItems } from '../../toolFunction'; const changePayListCols = (state, action) => { let {items, status} = action; if (items) { return Object.assign({}, state, { changePayListCols: items }); } else if (status) { console.log('changePayListCols:', status); return state; } return state; };...
from scipy.stats import norm from statsmodels.tsa.holtwinters import ExponentialSmoothing from .base import BaseNewsvendor, ClassicMixin from ..utils.validation import check_cu_co, formate_hyperparameter from sklearn.utils.validation import check_array from sklearn.metrics import mean_absolute_error import numpy as np ...
'use strict' module.exports = { verbose: true, preset: 'ts-jest', testEnvironment: 'node', collectCoverage: true, collectCoverageFrom: ['./src/**/*.ts'], coverageReporters: ['json', 'lcov', 'text'], clearMocks: false, coverageThreshold: { global: { statements: 90, functions: 90, b...
(function(){function b(){return b}function c(b,d){var e=c.resolve(b),f=c.modules[e];if(!f)throw new Error('failed to require "'+b+'" from '+d);return f.exports||(f.exports={},f.call(f.exports,f,f.exports,c.relative(e),a)),f.exports}var a=this;c.modules={},c.resolve=function(a){var b=a,d=a+".js",e=a+"/index.js";return c...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
# import pytest # # from factories.factory_pipelines import OperationRunFactory # from lifecycles.task_runs import TaskRunLifeCycle # from lifecycles.pipelines import PipelineLifeCycle # from pipelines.celery_task import ClassBasedTask, OperationTask # from polyaxon.celery_api import celery_app # from tests.base.case i...
import mimetypes import os from ast import literal_eval import requests class Api(object): def __init__(self, url, private_token, proxy=None): self.url = url mimetypes.add_type('text/plain', '.log') mimetypes.add_type('application/octet-stream', '') self.request = requests.Sessio...
#!/usr/bin/env python """ Freight ======= A deploy service. :copyright: (c) 2015 Functional Software Inc. :license: Apache 2.0, see LICENSE for more details. """ from __future__ import absolute_import import os.path from setuptools import setup, find_packages # Hack to prevent stupid "TypeError: 'NoneType' object...
// DO NOT EDIT! This test has been generated by tools/gentest.py. // OffscreenCanvas test in a worker:2d.pattern.paint.norepeat.coord2 // Description: // Note: importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test(""); var t_pass = t.done.bind(t); var t_...
import React from 'react'; import Pane from '../elements/Pane'; /** * Pane for creating gallery from external source. Not implemented in current version. */ export default function ExternalSourcePane(){ return ( <Pane> <h5>Create dynamic galleries.</h5> <p>We are plaining to create...
import Box2D as b2 import numpy as np from staticobject import StaticObject from mind import programed #------------------------------------------------------------------------------- # Wheel #------------------------------------------------------------------------------- WDC_LEFT = 0x1 WDC_RIGHT = 0x2 WDC_UP = 0x4...
"""pyhaversion package.""" import asyncio from dataclasses import dataclass import async_timeout from .base import HaVersionBase from .consts import ( DATA_AUDIO, DATA_BOARD, DATA_CLI, DATA_DNS, DATA_HASSOS, DATA_HOMEASSISTANT, DATA_IMAGE, DATA_MULTICAST, DATA_OBSERVER, DATA_OS...
'use strict'; const FixtureLoader = require('./fixture-loader/FixtureLoader'); const AsyncAdapter = require('./fixture-loader/adapters/AsyncAdapter'); const { serviceRequest } = require('@envage/water-abstraction-helpers'); const config = require('../../../config'); const urlJoin = require('url-join'); const createRe...
from torch.utils.data import DataLoader from torch.utils.data.dataloader import default_collate class BaseDataLoader(DataLoader): """ Base class for all data loaders """ def __init__(self, dataset, batch_size, shuffle, num_workers, collate_fn=default_collate): self.n_samples = len(dataset) ...
import * as mars3d from "mars3d" export let map // mars3d.Map三维地图对象 // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) export const mapOptions = { scene: { center: { lat: 31.221078, lng: 117.305076, alt: 136530, heading: 10, pitch: -68 } } } /** * 初始化地图业务,生命周期钩子函数(必须) * 框架在地图初始化完成后自动调用该函数 * @param {mars3d.Map} mapI...
import express from 'express'; import { getIndexPage, postMedicineInCart, postOrder, getOrderPopup, getPharmacistId, getSaveVideo } from '../controllers/generalMedicine'; const router = express.Router(); router.get('/pharmacist', getIndexPage); router.get('/pharmacist-get-medicines/:medicineIds', postMedicineInCart...
const varListTemplate = { consentMain: true } let varList const mockSession = { setYarValue: (request, key, value) => null, getYarValue: (request, key) => { if (Object.keys(varList).includes(key)) return varList[key] else return 'Error' } } jest.mock('../../../../app/helpers/session', () => mockSessio...
from selenium import webdriver FILEURLSLIST = [] def findAllLink(browser): # ---------------- FIND ALL LINK START ------------- urls = browser.find_elements_by_xpath("//a") urlMetaData = [] # collect meta data for url in urls: link = url.get_attribute("href") print(link) ...
import functools import multiprocessing from typing import Dict, List, Tuple from pathlib import Path import click import pandas as pd import numpy as np import tqdm from covid_model_seiir_pipeline.lib import ( cli_tools, static_vars, ) from covid_model_seiir_pipeline.pipeline.forecasting.specification import...
import React, { Component } from 'react' import logo from '../assets/logo.png' class Home extends Component { render() { return ( <div className="homepage"> <div className='home-heading-and-links'> <div className='logo'> <img src={logo} alt='saywhat logo' /> <h4>T...
/*! * OpenUI5 * (c) Copyright 2009-2019 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides utility class sap.ui.core.BusyIndicatorUtils sap.ui.define(['./BlockLayerUtils', "sap/ui/thirdparty/jquery"], //require of sap/ui/core/library not possible ...
/** * @Created by kaicui. * @Date:2014-03-31 10:15 * @Desc: 用于对Date类进行基础扩展,使其支持更多的功能 * 1、增加直接按格式获取日期字符串功能 * 2、增加IE9-等对Date.now的支持 * @Change History: -------------------------------------------- @created:|kaicui| 2014-03-31 10:15. -------------------------------------------- */ //增加IE9-等对Date.now的支持 if (!Date...
"""Aggregator Endpoints."""
var searchData= [ ['navy_2ec',['Navy.c',['../_navy_8c.html',1,'']]] ];
#### 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 = Intangible() result.template = "object/draft_schematic/space/weapon/missile/shared_wpn_launcher_proton_mk3.iff" r...
import socket class Connection: isConnected = False ip = "" port = -1 service = None def __init__(self,ip,port): self.ip = ip self.port = port self.service = socket.socket() def connect(self): try: self.service.connect((self.ip,self.port)) ...
// Copyright 2018 the V8 project 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 V8_OBJECTS_EMBEDDER_DATA_SLOT_H_ #define V8_OBJECTS_EMBEDDER_DATA_SLOT_H_ #include <utility> #include "src/common/assert-scope.h" #include "sr...
import logging from scraper.common import ScrapeResult, Scraper, ScraperFactory class AmazonScrapeResult(ScrapeResult): def parse(self): alert_subject = 'In Stock' alert_content = '' # get name of product tag = self.soup.body.select_one('h1#title > span#productTitle') if ...
SCREEN_WIDTH = 1000 SCREEN_HEIGHT = BOX_HEIGHT = 800 WORLD_SIZE = 800 COLORS = { 'white': (255, 255, 255), 'black': (0, 0, 0) } SQUARE_SIZE = int(WORLD_SIZE / 60) SPEED = 333 PADDING = 10 BOX_WIDTH = SCREEN_WIDTH - WORLD_SIZE FONT_SIZE = 18
from django.core.management import BaseCommand from django.db.models import get_app, get_models from django.conf import settings from search.search_utils import index_instance, confirm_model_is_indexable class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument( '--test...
# Copyright 2018 The TensorFlow Probability 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 o...
// // zappearance.h // ZUtilsX // // Created by Char Aznable on 15/12/14. // Copyright © 2015年 org.cuc.n3. All rights reserved. // #ifndef ZUtilsX_zappearance_h #define ZUtilsX_zappearance_h #import "zobjc.h" #import "zarc.h" #import "zadapt.h" #import "UIImage+ZUX.h" #pragma mark - appearance - #define APPEARA...
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import copy import itertools import json import logging import numpy as np import os import pickle from collections import OrderedDict import pycocotools.mask as mask_util import torch from fvcore.common.file_io import PathManager import detectron2...
import * as React from "react"; import * as Constants from "~/common/constants"; import * as SVG from "~/common/svg"; import * as System from "~/components/system"; import * as Styles from "~/common/styles"; import * as Jumpers from "~/components/system/components/GlobalCarousel/jumpers"; import * as Utilities from "~/...
from __future__ import print_function, division, absolute_import import time import numpy as np NORTH = (-1, 0) SOUTH = (1, 0) EAST = (0, 1) WEST = (0, -1) class Carrier(object): def __init__(self, initial_map): self.pos = np.array((0, 0), dtype=int) self.vel = np.array(NORTH, dtype=int) ...
import { useEffect } from "react" function PersistGate({persistor = {}, children}) { useEffect(() => { persistor.initialize(); }, [persistor]) return <>{children}</> } export { PersistGate }
const WHITE = '#FFFFFF'; const BLACK = '#000000'; const DARK_RED = '#BD1B26'; const BUTTON_COLOR = '#9E3183'; const BG_YELLOW = '#F8F2D9'; const FONT_XXXL = 40; const FONT_SIZE_30 = 30; const FONT_SIZE_22 = 22; const FONT_XXL = 32; const FONT_XL = 28; const FONT_L = 24; const FONT_REGULAR = 20; const FONT_M = 18; cons...
"""Spinbox module.""" from PyQt6 import QtWidgets # type: ignore[import] class SpinBox(QtWidgets.QWidget): """SpinBox class.""" _label: "QtWidgets.QLabel" _spin_box: "QtWidgets.QSpinBox" _lay: "QtWidgets.QHBoxLayout" def __init__(self, parent=None): """Initialize.""" super()._...
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from ranger.gui.widgets.view_base import ViewBase from ranger.gui.widgets.browsercolumn import BrowserColumn class ViewMultipane(ViewBase): def __init__(self, win): ViewBase.__init__...
from os.path import join as pjoin # Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z" _version_major = 0 _version_minor = 1 _version_micro = 2 # use '' for first of series, number for 1 and above _version_extra = None # Uncomment this for full releases # Construct full version string from t...
import React from 'react'; import { Formik, Field } from 'formik'; import { cleanup, fireEvent, render } from '@testing-library/react'; import { INPUT, INPUT_ERROR, INPUT_FEEDBACK_GROUPING, LABEL } from 'common/constants/testIDs'; import { validationErrorMessages } from 'common/constants/messages'; import createSnapsho...
import { getDstStr } from './utils'; // TODO: let defaultDenyList = [ // /google/, ]; let denyListLength = defaultDenyList.length; export function setDenyList(denyList) { defaultDenyList = denyList; denyListLength = denyList.length; } export function filter(dstInfo) { const dstStr = getDstStr(dstInfo); le...
/// 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 /// "Use Terms"). Any redistribution of this code must retain the above /// copyrigh...
const taskApp = new TaskManager(); taskApp.load(); taskApp.render(); const formValidator = document.querySelector('#todo-form'); const taskInput = document.querySelector('#InputTaskName'); const taskDesc = document.querySelector('#InputTaskDescription'); const taskDueDate = document.querySelector('#duedate'); const tas...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val...
""" Test various functions regarding chapter 5: Fractional Differentiation. """ import unittest import os import math import numpy as np import pandas as pd from mlfinlab.features import fracdiff class TestFractionalDifferentiation(unittest.TestCase): """ Test get_weights, get_weights_ffd, frac_diff, and fr...
const BRIDGE_ERROR = { MISSING_WEB3: new Error('no web3 object found'), MISSING_WALLET: new Error('no wallet found'), MISSING_TXN: new Error('no transaction found'), MISSING_CONTRACTS: new Error('no contracts found'), MISSING_MNEMONIC: new Error('no authentication mnemonic found'), MISSING_URBIT_WALLET: ne...
/* * @Author: Caven * @Date: 2020-01-31 18:57:02 * @Last Modified by: Caven * @Last Modified time: 2020-06-25 08:52:43 */ import { Util } from '../../utils' import Transform from '../../transform/Transform' import Parse from '../../parse/Parse' import State from '../../state/State' import Overlay from '../Overlay...
/* * Copyright (c) 2020 Sebastian Kylander https://gaztin.com/ * * This software is provided 'as-is', without any express or implied warranty. In no event will * the authors be held liable for any damages arising from the use of this software. * * Permission is granted to anyone to use this software for any purpo...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @ignore */ const debug = () => { }; /** * @ignore */ const LTK_INFO_SIZE = 36; /** * @ignore */ const MGMT_OP_LOAD_LONG_TERM_KEYS = 0x0013; /** * @ignore */ class Mgmt { constructor(hciProtocol) { this._ltkInfos = [];...
import styled from "styled-components"; export const Section = styled.section` display: flex; justify-content: center; align-items: center; min-height:700px; height:100vh; width:100%; background-image:url('./images/Dragon.jpg'); background-position:top; background-size:cover; background-repeat:no-r...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
/* Altera DE2I-150 FPGA Driver for Linux made by Matheus Souza (github.com/mfbsouza) for the MusicBox Project, A Music Instrument Simulator using Arduino Uno and FPGA */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/init.h> #include <linux/fs.h> #include <asm/uaccess.h> ...
const handleFetchErrors = (res) => { if (!res.ok) { const error = new Error(res.statusText); error.code = res.status; throw error; } return res; }; export default handleFetchErrors;
import pygame import sys from battleship.tim.TimController import TimController as Controller class MenuController(Controller): def input(self, events): super().input(events) scene = self.engine.world for e in events: if e.type == pygame.KEYDOWN: if e.key == pyg...
import os os.environ["CUDA_VISIBLE_DEVICES"]="0" #for training on gpu import tensorflow as tf import numpy as np import pickle import time from random import shuffle from tensorflow import keras from tensorflow.python.keras.utils import to_categorical from tensorflow.python.keras.models import Sequential, load_model f...
import re from Products.ZenRRD.CommandParser \ import CommandParser from Products.ZenUtils.Utils \ import prepId class get(CommandParser): def processResults(self, cmd, result): """" Example output pool0 size 399431958528 - """ get_regex = r'^(?P<pool>\S+)\t(?P<ke...
from __future__ import print_function from __future__ import absolute_import from __future__ import division import rhinoscriptsyntax as rs __all__ = [ 'uv_points_from_surface', ] def uv_points_from_surface(srf, u_div, v_div): """Creates a nested uv point list from a surface. Parameters ----------...
// Copyright 2018 the V8 project 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 V8_WASM_WASM_LINKAGE_H_ #define V8_WASM_WASM_LINKAGE_H_ #include "src/assembler-arch.h" #include "src/machine-type.h" #include "src/signature.h...
H5P.Question = (function ($, EventDispatcher, JoubelUI) { /** * Extending this class make it alot easier to create tasks for other * content types. * * @class H5P.Question * @extends H5P.EventDispatcher * @param {string} type */ function Question(type) { var self = this; // Inheritanc...
/** * Copyright (C) 2016, BMW AG * Author: Stefan Holder (stefan.holder@bmw.de) * C++ Conversion: Junho Han (junhohan.kr@gmail.com) * * 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...
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__(self, plotly_name="color", parent_name="mesh3d.contour", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
module.exports = { name: 'Google Search', section: 'Other Stuff', subtitle (data) { const info = ['Title', 'URL', 'Snippet'] return `Google Result ${info[parseInt(data.info)]}` }, variableStorage (data, varType) { const type = parseInt(data.storage) if (type !== varType) return const inf...
#!/usr/bin/python3 # read the lines from the file fh = open('lines.txt') for line in fh.readlines(): print(line)
from service_capacity_modeling.capacity_planner import planner from service_capacity_modeling.interface import CapacityDesires from service_capacity_modeling.interface import certain_int from service_capacity_modeling.interface import DataShape from service_capacity_modeling.interface import Interval from service_capac...
import React, { Component } from 'react'; class About extends Component { render() { if(this.props.data){ var name = this.props.data.name; var profilepic= "images/"+this.props.data.image; var bio = this.props.data.bio; var street = this.props.data.address.street; var city = this.pr...
/** * 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. * * @flow */ import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags'; import typeof * as FeatureFlagsShimType from './R...
// // Datatypes.h // backendlessAPI /* * ********************************************************************************************************************* * * BACKENDLESS.COM CONFIDENTIAL * * *******************************************************************************************************************...
#include "sqlite3.c" #include "sqlc.h" /* types needed for SQLiteNative_JNI.c */ #include "SQLiteNative_JNI.c" #include "jsmn.c" #include "sqlc.c"
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 3:11:38 PM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /usr/libexec/gamed * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. */ #import <gamed/gamed-Structs.h>...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); //chat-scroll import Vue from 'vue' import...
import Mixin from '@ember/object/mixin'; import $ from 'jquery'; export let Serializer = Mixin.create({ getAttrs: function () { let parentAttrs = this._super(); let attrs = { class: { serialize: 'odata-id', deserialize: 'records' }, parameters: { serialize: false, deserialize: 'records' } }; ...
from abc import ABCMeta, abstractmethod from celery.result import AsyncResult from decimal import Decimal PROGRESS_STATE = 'PROGRESS' class AbtractProgressRecorder(object): __metaclass__ = ABCMeta @abstractmethod def set_progress(self, current, total): pass class ConsoleProgressRecorder(Abtra...
// Scrapes all the airing dramas const puppeteer = require('puppeteer'); const url = 'https://wiki.d-addicts.com/List_of_Dramas_aired_in_Korea_by_Network_in_2018'; (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto(url); await page.waitForSelector('.m...
# https://programmers.co.kr/learn/courses/30/lessons/42584 def solution(prices): answer = [] length = len(prices) for i in range(length): now_value = prices[i] for j in range(i+1, length): if prices[j] < now_value or j == length -1: answer.append(j-i) ...
import {CustomFunctionValidationRule} from '../../src/validation-rules'; import {Expectations} from '../expectations'; //No need to test empty values, they are filtered out by the "ValidationProperty" depending if they are 'isNotEmpty()' describe('Tests on CustomFunctionValidationRule', () => { it('should be work...
import { FaReact, FaBootstrap, FaNodeJs } from 'react-icons/fa'; import { SiMongodb, SiWebpack, SiHandlebarsdotjs, SiMysql, SiExpress, } from 'react-icons/si'; const Technologies = [ { id: 1, name: 'React', icon: <FaReact />, }, { id: 2, name: 'MongoDB', icon: <SiMongodb />, }...
import React, { Component } from "react"; import axios from "axios"; const urls = require("../../../config/config.json"); class ResumeDropdown extends Component { // Adding default state as a placeholder constructor(props) { super(props); this.state = { toggled: false, edit: false }; } ...
(function (angular) { "use strict"; angular.module("mfl.facility_mgmt.states.publish", [ "ui.router" ]) .config(["$stateProvider", function ($stateProvider) { $stateProvider .state("facilities_publish", { parent: "facility_mgmt", url: "^/facilities_publ...
import { compileToFunctions } from 'vue-template-compiler'; import mount from '../../../../src/mount'; import PropsComponent from '../../../resources/components/data-components/PropsComponent.vue'; import Watch from '../../../resources/components/watch/Watch.vue'; import DependantWatch from '../../../resources/componen...
from numpy import random # Este es una pésima implementación de k-means. Retorna centroides aleatorios. def kmeans(puntos,k): # Acá debería ir la lógica correcta de k-means centroides = random.randn(k,2) return centroides
""" Test Tool execution and state handling logic. """ from unittest import TestCase import galaxy.model from galaxy.tools.parameters import params_to_incoming from galaxy.util.bunch import Bunch from galaxy.util.odict import odict import tools_support from paste import httpexceptions BASE_REPEAT_TOOL_CONTENTS = '''...
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2005 - 2009 Intel Corporation. All rights reserved. * ...
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information.s Object.defineProperty(exports, "__esModule", { value: true }); const _isStatic = Symbol('ApiStaticMixin._isStatic'); /** * Mixin function for {@l...
#pragma once #include "Module.h" #include "Globals.h" #define MAX_MOUSE_BUTTONS 5 #define MAX_KEYS 300 enum EventWindow { WE_QUIT = 0, WE_HIDE = 1, WE_SHOW = 2, WE_COUNT }; enum KEY_STATE { KEY_IDLE = 0, KEY_DOWN, KEY_REPEAT, KEY_UP, KEY_ERROR }; class Input : public Module { public: Input(App* app, boo...
""" Given an array, count triplets, that will form a geometric progression """ """ Some GP fundae: The nth term in GP is: a(n) = a * (r ** (n-1)) a(n) = r * (a(n-1)) r (common-ratio) = """ from collections import Counter, defaultdict """ # Initial approach - that results in a TLE def countTriplets(arr, r): ctr ...
import React, { Component } from "react"; import Button from "@material-ui/core/Button"; import Dialog from "@material-ui/core/Dialog"; import DialogActions from "@material-ui/core/DialogActions"; import DialogContent from "@material-ui/core/DialogContent"; import DialogContentText from "@material-ui/core/DialogContent...
/* * This file contains the handling of command * responses as well as events generated by firmware. */ #include <linux/hardirq.h> #include <linux/slab.h> #include <linux/delay.h> #include <linux/sched.h> #include <asm/unaligned.h> #include <net/cfg80211.h> #include "cfg.h" #include "cmd.h" /** * lbs_mac_event_d...
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __markAsModule = (target) => __defProp(target...
/* * Backpack - Skyscanner's Design System * * Copyright 2018 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 * * Un...
from naya.json import parse, parse_string, stream_array __all__ = ["parse", "parse_string", "stream_array"]
import PropTypes from 'prop-types' import React from 'react' class PlayToken extends React.PureComponent { static propTypes = { recording_id: PropTypes.number, text: PropTypes.string } static defaultProps = { text: 't(Play recording)' } _handlePlay = this._handlePlay.bind(this) render() { ...
import React, { Component } from 'react'; class Mern extends Component { render () { } }
/* * module.c * * Created on: Jan 1, 2017 * Author: Dad */ #ifdef NEW_MODULE #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "../arena/strings.h" #include "../codegen/tokenizer.h" #include "../datastructure/map.h" #include "../datastructure/queue.h" #include "../error...
# Copyright (c) 2020 Foundries.io # SPDX-License-Identifier: Apache-2.0 import logging import os from tempfile import NamedTemporaryFile from expandvars import expandvars from apps.compose_apps import ComposeApps from apps.docker_registry_client import DockerRegistryClient from helpers import cmd as cmd_exe logger...
specific action log: gotoDay # #Stop script if user is process of picking a specific action group. If [ $$pick = 1 ] Show Custom Dialog [ Message: "Pick a specific-action tag or click the cancel button in the Tag window. After you do this you can go to the Day window."; Buttons: “OK” ] Exit Script [ ] End If # Select W...
#pragma once #include "c_types.h" void c_log_level(c_log_level_t level); void c_log(c_log_level_t level, const char *message); void c_logn(c_log_level_t level, const char *message);
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{263:function(t,r,e){"use strict";e(158)("fixed",function(t){return function(){return t(this,"tt","","")}})},320:function(t,r,e){"use strict";e(263),e(9),e(6),e(2),e(21);var n=e(1),i=e.n(n),o=e(19),a=e.n(o),c=e(84),s=e.n(c),u=e(0),l=e.n(u),h=(e(11),e(83)),f=e(235...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2020, Nikolay Dachev <nikolay@dachev.info> # GNU General Public License v3.0+ https://www.gnu.org/licenses/gpl-3.0.txt from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' --- module: api author: "Nikola...