text
stringlengths
3
1.05M
import requests from bs4 import BeautifulSoup import urllib.parse import os.path import sys url = sys.argv[1] # url to start from iterate = int(sys.argv[2]) depth_to_go = int(sys.argv[3]) # depth to go for directory = sys.argv[4] # directory name if not url.startswith("http"): url = "http://" + url...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20 15H4v-2h16v2zm0 2H4v2h16v-2zm-5-6l5-3.55V5l-5 3.55L10 5 4 8.66V11l5.92-3.61L15 11z" /> , 'LegendToggle');
import jieba from data_util_hdf5 import PAD_ID,UNK_ID,MASK_ID,_PAD,_UNK,_MASK, \ create_or_load_vocabulary import random import re import numpy as np import os import time import pickle import multiprocessing splitter = '|&|' eighty_percentage=0.8 nighty_percentage=0.9 def mask_language_model(source_file, tar...
from uuid import uuid4 from src.app.domain.collections.users.userValidationUtility import validateUserObject from src.app.domain.collections.users.userValidationUtility import validateUserUpdateObject from src.app.domain.collections.users.usersDatabaseUtility import * import src.app.domain.collections.users.users...
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.GaugeChart=n():t.GaugeChart=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[...
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. * * Copyright (c) 2008, Google Inc. * 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 sour...
import React, {Component} from "react"; import {connect} from "react-redux"; import Button from "@material-ui/core/Button"; import {changeLocale as changeLocaleAction} from "react-admin"; class LocaleSwitcher extends Component { switchToRussian = () => this.props.changeLocale("ru"); switchToEnglish = () => thi...
const { remote, ipcRenderer } = require('electron'); //const Store = require('electron-store'); //const config = new Store(); //const consts = require('./constants.js'); //const url = require('url'); //const rimraf = require('rimraf'); //const CACHE_PATH = consts.joinPath(consts.joinPath(remote.app.getPath('appData'), ...
import re import logging from decimal import Decimal import numpy as np import qcelemental as qcel from qcelemental.models import Molecule from qcelemental.molparse import regex from ..util import PreservingDict, load_hessian logger = logging.getLogger(__name__) def harvest_output(outtext): """Function to sepa...
# -*- coding: utf-8 -*- # Copyright 2014-2016 OpenMarket 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 # # Unless required by applicab...
/* * Copyright (c) 2002 Bob Beck <beck@openbsd.org> * Copyright (c) 2002 Theo de Raadt * Copyright (c) 2002 Markus Friedl * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribu...
from argparse import ( ArgumentParser ) import asyncio from eth.chains.base import ( BaseChain ) from eth.chains.mainnet import ( BYZANTIUM_MAINNET_BLOCK, BaseMainnetChain, ) from eth.chains.ropsten import ( BYZANTIUM_ROPSTEN_BLOCK, BaseRopstenChain, ) from p2p.cancel_token import ( Cancel...
# -*- coding: utf-8 -*- from IPython.core.autocall import IPyAutocall exit_org = exit class Exit(IPyAutocall): """ Overwrites ``exit`` and ``quit`` in a shell to keep kernel alive. """ def __call__(self): exit_org(keep_kernel=True) quit = exit = Exit()
import cProfile import pstats def profile_func(func): def inner(*args, **kwargs): profiler = cProfile.Profile() print(f"Function name: {func.__name__}") profiler.enable() result = func(*args, **kwargs) profiler.disable() stats = pstats.Stats(profiler).sort_stats(pst...
'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString = ''; let currentLine = 0; process.stdin.on('data', inputStdin => { inputString += inputStdin; }); process.stdin.on('end', _ => { inputString = inputString.trim().split('\n').map(string => { return string.trim(...
#!/usr/bin/env python2.7 import argparse import calendar import json import sys import datetime import time import urllib import re from subprocess import Popen, PIPE # use curl/grep to get placement group instances def get_instances_for_placement_groups(url): cmd = "curl -s {0} | grep -o '<\\(code\\).*</\\1>' | eg...
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' //fastclick移动端延迟300毫秒 import Fastclick from 'fastclick' //图片懒加载 import VueLazyload from 'vue-lazyload' //1、引用自己封装的插件 import toast from './components/common/toast' Vue.config.productionTip = false Vue.prototyp...
import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit'; module('Unit | Route | verificationPreview', function (hooks) { setupTest(hooks); test('it exists', function (assert) { const route = this.owner.lookup('route:verification-preview'); assert.ok(route); }); });
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | +---------...
/* Copyright (c) 2018 PaddlePaddle 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 required by applicable law or...
import collections import re import urllib.parse from typing import Dict, Set, Tuple, List, Optional, Sequence, Match, Mapping, Iterator, Iterable, Union from abstract_configuration import AbstractSessionInfo, PatternRegistry, SESSION_INFO, LogId from log_entry import LogEntry from opus import slug from .configuration...
import splunk_ta_paloalto_declare from splunktaucclib.rest_handler.endpoint import ( field, validator, RestModel, DataInputModel, ) from splunktaucclib.rest_handler import admin_external, util from splunk_aoblib.rest_migration import ConfigMigrationHandler util.remove_http_proxy_env_vars() fields =...
#coding=utf-8 import face_recognition from PIL import Image, ImageDraw import numpy as np import os import argparse import multiprocessing import logging SUPPORTED_IMAGE_EXT = ['.jpg', '.png'] def is_image_file(filename): _, ext = os.path.splitext(filename) if not ext.lower() in SUPPORTED_IMAGE_EXT: r...
""" Estimate time delay using GCC-PHAT """ import numpy as np def gcc_phat(sig, refsig, fs=1, max_tau=None, interp=1): ''' This function computes the offset between the signal sig and the reference signal refsig using the Generalized Cross Correlation - Phase Transform (GCC-PHAT)method. ''' # m...
$('#acction_compras').on('click', function(){ // 1 = COMPRAS // 2 = TRASLADOS var tipo = $("#acction_compras option:selected" ).attr("value"); if(tipo == 1){ $('#compras_uno').css({ "display": "none" }); $('#compras_dos').css({ "display": "block" }...
/** ****************************************************************************** * @file SPI/SPI_FullDuplex_ComPolling/Inc/stm32f4xx_hal_conf.h * @author MCD Application Team * @version V1.2.6 * @date 06-May-2016 * @brief HAL configuration file *******************************************...
#include "time32.h" #include <time.h> #include <utime.h> struct utimbuf32 { time32_t actime; time32_t modtime; }; int __utime_time32(const char *path, const struct utimbuf32 *times32) { return utime(path, !times32 ? 0 : (&(struct utimbuf){ .actime = times32->actime, .modtime = times32->modtime})); }
# This file was generated by 'versioneer.py' (0.18) from # revision-control system data, or from the parent directory name of an # unpacked source archive. Distribution tarballs contain a pre-generated copy # of this file. import json version_json = ''' { "date": "2019-10-26T21:45:29-0400", "dirty": false, "error...
# # Copyright 2014, yong sheng gong Unitedstack 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 # #...
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekBoldItalic.js * * Copyright (c) 2009-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complian...
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web_links', '0002_auto_20191210_0436'), ] operations = [ migrations.AlterField( model_name='weblink', name='template', field=models.TextField( ...
"""Common use cases for vtk_overlay_window""" #pylint: disable=no-member, no-name-in-module, protected-access # coding=utf-8 import datetime import logging import cv2 from PySide2.QtCore import QTimer from sksurgeryimage.acquire.video_source import TimestampedVideoSource from sksurgeryimage.acquire.video_writer impor...
import json from typing import Any, Dict, Union class SnsNotification: def __init__( self, *, message: Union[Dict, str], topic_arn: str = None, target_arn: str = None, phone_number: str = None, subject: str = None, attributes: Dict = None, ): ...
$(function () { //Get appSetting.json var appSetting = global.getAppSettings('AppSettings'); //Begin----check clear require---// $("#UnitCode").on("focusout", function () { if ($("#UnitCode").val() != '') { global.removeValidationErrors('UnitCode'); } }); ...
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import six import sys import time class Progbar(object): def __init__(self, target, width=30, interval=0.01, verbose=1): """(Yet another) progress bar. Ar...
# -*- coding: utf-8 -*- """Multivariate analysis of variance author: Yichuan Liu """ import numpy as np from statsmodels.compat.pandas import Substitution from statsmodels.base.model import Model from .multivariate_ols import MultivariateTestResults from .multivariate_ols import _multivariate_ols_fit from .multivari...
const should = require('should'); const _ = require('lodash'); const crypto = require('crypto'); const schema = require('../../../../core/server/data/schema'); const fixtures = require('../../../../core/server/data/schema/fixtures'); const defaultSettings = require('../../../../core/server/data/schema/default-settings'...
export * from './quick_presets_addable'; export * from './quick_presets_favorites'; export * from './quick_presets_recent'; export * from './download_osc'; export * from './ai_features_toggle'; export * from './rapid_poweruser_features'; export * from './rapid_covid_19_tracker'; export * from './export_safe_places'; e...
const fs = require('fs-extra') const path = require('path') function fixtures(subpath) { if (subpath == null) subpath = '' return path.resolve(`${__dirname}/../fixtures`, subpath) } const NOTHING = fixtures('nothing') const FIXTURE_BMP = fixtures('fixture.bmp') const FIXTURE_GIF = fixtures('fixture.gif') const F...
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.13.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x08\x19\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\x20\x...
#include <stdio.h> #include <stdlib.h> #include "stm32f1xx_hal.h" #include "ST7735.h" #include "ST7735_buffer.h" #include "DS18B20.h" #include "ftoa.h" #include "system_init.h" #include "interrupts_handlers.h" #include "game_engine.h" #pragma clang diagnostic push #pragma ide diagnostic ignored "EndlessLoop" SPI_Hand...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 26 18:58:08 2019 @author: owenmadin """ import emcee
''' The contents of this file are focused on the Timestep class, which is used for storage of imported data from N-body output files. ''' #TODO: UNIT TESTS #TODO: Create sort function that sorts based on id (not really importamt) #=============================================================================== # IMPOR...
# Find minimum depth of a binary tree from collections import deque # A Binary Tree node class Node: # Constructor to initialise node def __init__(self, data): self.data = data self.left = None self.right = None def get_min_depth(root): if root is None: return 0 queu...
# -*- coding: utf-8 -*- """Tools to manage the container structure""" import os import subprocess from udocker import is_genstr from udocker.config import Config from udocker.msg import Msg from udocker.utils.fileutil import FileUtil from udocker.utils.uprocess import Uprocess from udocker.helper.unique import Unique...
from opytimizer.optimizers.ba import BA # One should declare a hyperparameters object based # on the desired algorithm that will be used hyperparams = { 'f_min': 0, 'f_max': 2, 'A': 0.5, 'r': 0.5 } # Creating a BA optimizer o = BA(hyperparams=hyperparams)
from setuptools import ( find_packages, setup ) setup( name="py-tlds", version="1.0.0", description="util that retrieves and validates a list of top-level domains from the internet assigned names authority", url="https://github.com/critical-path/py-tlds", author="critical-path", author...
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
#!/usr/bin/env python3 """ Author : patarajarina Date : 2019-03-12 Purpose: Rock the Casbah """ import argparse import sys # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python script', ...
#ifndef WEBOFDATA_ENTITYSTREAMWRITER_H #define WEBOFDATA_ENTITYSTREAMWRITER_H #include <simple-web-server/server_http.hpp> #include <fstream> namespace webofdata { typedef SimpleWeb::Server<SimpleWeb::HTTP> HttpServer; class EntityStreamWriter { public: virtual ~EntityStreamWriter() {}; ...
# Palondrome Check..... s = input("Enter String: ") s = s.lower() sn = "" for i in range(len(s)-1, -1, -1): sn += s[i] if(s == sn): print("Palindrome") else: print("Not Paloindrome")
from office365.mail.attachment import Attachment from office365.runtime.client_object_collection import ClientObjectCollection class AttachmentCollection(ClientObjectCollection): """Attachment collection""" def __init__(self, context, resource_path=None): super(AttachmentCollection, self).__init__(co...
#!/usr/bin/python import optparse import operator import re import sys import gzip import pybedtools from pybedtools import BedTool #Parse options parser = optparse.OptionParser() parser.add_option("-s", "--snpfile", action="store",dest="snpfilename") #File matching SNPs to genes parser.add_option("-v", "--vcffile", ...
# Copyright 2014-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
import EntityHeaderContent from './EntityHeaderContent'; export default EntityHeaderContent;
#!/usr/bin/env python3 import csv import sys from outputs.pgsql import pgsql """one time import of csv data into pgsql""" if __name__ == '__main__': db = pgsql({"dbname": "piBot", "user": "piBot", "password": "simple", "host": "10.8.0.1", "port": "5432",}) db.open() with open(sys.argv[1], 'r') as csvfile...
function solve(speed, area){{ let status = ''; let speedLimit; switch(area){ case 'city': speedLimit =50; if (speed>speedLimit){ let diff = speed-speedLimit; if(diff<20){ status = 'speeding'; }else if(...
"use strict"; /** * @license * Copyright 2018 Google LLC. 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...
#include <stdio.h> #include <stdlib.h> // Arithmetics Operator (+,-,*,/,%) int main(){ int a,b; printf("Please input two numbers (a and b)\n"); scanf("%d %d", &a, &b); int c = a + b; printf("The result of a + b is %d\n",c); int d = a - b; printf("The result of a - b is %d\n",d); int e ...
# Testing the line trace facility. from test import support import unittest import sys import difflib import gc # A very basic example. If this fails, we're in deep trouble. def basic(): return 1 basic.events = [(0, 'call'), (1, 'line'), (1, 'return')] # Many of the tests below ...
export const colors = { primary : '#7367F0', success : '#28C76F', danger : '#EA5455', warning : '#FF9F43', dark : '#1E1E1E' } // CONFIGS const themeConfig = { disableCustomizer : false, // options[Boolean] : true, false(default) disableThemeTour : true, // options[Boolean] : true, false...
let $ = require('jquery'); const ipcR = require('electron').ipcRenderer; let fs = require('fs'); let filename = 'testidata'; $(document).ready(function () { $("#btn-contact").click(function () { ipcR.send('clicked_contact', 'ping'); }); }); $(document).ready(function () { $("#btn-statistics").cl...
/** * User: Jinqn * Date: 14-04-08 * Time: 下午16:34 * 上传图片对话框逻辑代码,包括tab: 远程图片/上传图片/在线图片/搜索图片 */ (function () { var remoteImage, uploadImage, onlineImage, searchImage; window.onload = function () { initTabs(); initAlign(); initButtons(); }; /* 初始化ta...
import logging import json from jsonschema import validate, ValidationError from buildtrigger.triggerutil import ( RepositoryReadException, TriggerActivationException, TriggerStartException, ValidationRequestException, InvalidPayloadException, SkipRequestException, raise_if_skipped_build, ...
from setuptools import setup import setuptools setup(name='gym_connect', version='0.0.1', install_requires=[ 'gym', 'pygame', # For ubuntu 20.04 install pygame==2.0.0.dev6 'numpy'],#And any other dependencies required description='Connect4 and Connect2 games with d...
// IMPORTS var dayjs = require("dayjs"); var request = require("request"); var fs = require("fs"); var zipmap = JSON.parse(fs.readFileSync("zipmap.json", "utf8")); // CONSTANTS const AccountAPIKey = "cf11637faf2d4c9faf82610151539de0"; const accountSid = "AC7d16462147c7cf8fa2aaccf4d8218dbd"; const authToken = "e117e431...
/* * FreeRTOS V202011.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, incl...
#include <math.h> #if defined(__HTM__) || __ARCH__ >= 9 long double fabsl(long double x) { __asm__ ("lpxbr %0, %1" : "=f"(x) : "f"(x)); return x; } #else #include "../fabsl.c" #endif
const router = require('express').Router(); const routeCache = require('route-cache'); module.exports = (pool) => { router.get('/users/:page?',async(req,res) => { try { const MAX_RESULTS = req.query.max_results ? parseInt(req.query.max_results) || 15 : 15; const selectedPage = r...
// For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html module.exports = { // All imported modules in your tests should be mocked automatically // automock: false, // Stop running tests after `n` failures bail: 1, // Respect "browser" fiel...
# -*- coding: utf-8 -*- ''' @author: Marcos Fernández Díaz December 2020 python pom1_worker.py --user <user> --password <password> --task_name <task_name> --dataset <dataset> --id <id> ''' import argparse import json import logging import sys, os # Add higher directory to python modules path. sys.path.app...
const playwright = require('playwright'); process.env.PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS = 1; (async () => { const browser = await playwright.chromium.launch({ executablePath: playwright.chromium.executablePath() }); await browser.close(); })();
#!/usr/bin/env python """ Use db file """ import argparse import os import collections import sys import sqlite3 import time import json import time from datetime import datetime # timestamp and uid must be the first two data_columns = [ "timestamp", "uid", "temperature", "humidity", "pressure", ...
class FASTPIX3D_API Mesh { private: int32 SubsetCount; Subset **Subsets; public: static Mesh* FromFile(string path); Mesh(int32 subsetCount); ~Mesh(); int32 getSubsetCount(); int32 getVertexCount(); int32 getTriangleCount(); Subset* getSubset(int32 index); void Draw(Matrix modelSpace); vo...
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
import input from './InputType' import link from './LinkType' import menu from './MenuType' import board from './BoardType' import autoSizeInput from './AutoSizeInputType' import linkTarget from './LinkTargetType' import switchButton from './SwitchButtonType' import gallery from './GalleryType' import filter from './Fi...
#!/usr/bin/env python # coding: utf-8 # In[19]: class Node: def __init__(self, val): self.data = val self.next = None class linked_list: def __init__(self): self.head = None self.tail = None def create(self, llist): if llist.head: print('\n\nLinke...
/* Copyright (c) 2014 The Linux Foundation. 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, this list o...
var OverlayTrigger = ReactBootstrap.OverlayTrigger var Tooltip = ReactBootstrap.Tooltip const {Editor, EditorState, convertFromRaw} = Draft; var formatDate = function(dateString){ let arrMonth = [ 'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', ...
/*NOCHKSRC*/ //============================================================================== // // PLEASE DO NOT EDIT; THIS FILE WAS AUTOMATICALLY GENERATED BY GENCLASS 1.2.5 // //============================================================================== #ifndef _cimple_Connector_h #define _cimple_Connector_h #i...
# preliminary set up from itertools import cycle import sys import epimargin.plots as plt import numpy as np import pandas as pd from epimargin.utils import setup # don't block plots when running in headless mode in CI if "headless" in sys.argv: sys.argv.remove("headless") block_figs = False else: block_f...
import React, { useState, useEffect } from 'react' export default function EditContact (props) { const [toEdit, setToEdit] = useState() useEffect(() => { setItemToEdit() }, [props.item]) const setItemToEdit = () => { setToEdit(props.item) console.log(toEdit) } const onEdit = e =>...
import React, { useState, useRef, useEffect } from 'react' import styled from 'styled-components' import { useStaticQuery, graphql } from 'gatsby' import Img from 'gatsby-image/withIEPolyfill' import theme from '../styles/theme' import { CenterFlex, FlexWrapper, CustomText, } from '../components/StyledCom...
__author__ = 'tsungyi' import copy import datetime import time from collections import defaultdict import numpy as np from . import mask as maskUtils class COCOeval: # Interface for evaluating detection on the Microsoft COCO dataset. # # The usage for CocoEval is as follows: # cocoGt=..., cocoDt=....
// Copyright (c) 2017 The Bitcoin Core developers // Copyright (c) 2014 The BlackCoin developers // Copyright (c) 2017-2019 The Raven Core developers // Copyright (c) 2020 The Miracle Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/license...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: test_platform/skylab_local_state/multihost.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.p...
""" Render redis-server responses. This module will be auto loaded to callbacks. func(redis-response, completers: GrammarCompleter) -> formatted result(str) """ import time import logging from prompt_toolkit.formatted_text import FormattedText from .config import config logger = logging.getLogger(__name__) NEWLINE_T...
"""This package contains modules related to objective functions, optimizations, and network architectures. To add a custom model class called 'dummy', you need to add a file called 'dummy_model.py' and define a subclass DummyModel inherited from BaseModel. You need to implement the following five functions: -- <__...
window.__NUXT__=(function(a,b,c,d,e){return {staticAssetsBase:"https:\u002F\u002Fwww.baca-quran.id\u002Fstatic\u002F1627814429",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"Baca Qur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark...
/* * 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 may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
/** * Auto-generated action file for "WebSite Management Client" API. * * Generated at: 2019-05-07T14:39:26.940Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / azure-com-web-service-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this conn...
import io import pprint from pretix.plugins.banktransfer.mt940import import parse TEST_DATA = [ # Source: https://www.ksk-koeln.de/Produkte/girokonten/Elektronisches%20Bezahlen/datenstruktur-mt940-swift.pdfx """ :20:951110 :25:45050050/76198810 :28:27/01 :60F:C951016DEM84349,74 :61:951017D6800,NCHK16703074 :8...
from django import template from templateaddons2.settings import TEMPLATEADDONS_COUNTERS_VARIABLE from templateaddons2.utils import decode_tag_arguments, parse_tag_argument register = template.Library() class Counter: def __init__(self, start=0, step=1, ascending=True): self.value = start self....
"""Crie um programa que simule o funcionamento de um caixa eletrônico. No início, pergunte ao usuário qual será o valor a ser sacado (número inteiro) e o programa vai informar quantas cédulas de cada valor serão entregues. OBS: considere que o caixa possui cédulas de R$50, R$20, R$10 e R$1.""" valorSaque = int(input('...
from __future__ import unicode_literals from django import forms from django.utils.translation import ugettext_lazy as _ class NotePostForm(forms.Form): content = forms.CharField( label=_("Content"), min_length=2, widget=forms.Textarea(), required=True, ) ...
#ifndef RESAMPLE_H #define RESAMPLE_H #include <fftw3.h> #include "eigen.h" using namespace Eigen; namespace Resample { constexpr int Nearest = 0; constexpr int Linear = 1; constexpr int Cubic = 2; template<typename Derived> double interpolate_sinc(const DenseBase<Derived> &y, double x, int maxD...
import hashlib import json import os import platform from typing import Any, List, Optional from datetime import datetime def read_json(filepath: str) -> List: with open(filepath) as data_file: data = json.load(data_file) return data def write_json(filepath: str, data: Any) -> Any: kwargs = {'ind...
from ..abstractvector import DocumentVector class InverseDocumentFrequencyVector(DocumentVector): pass
#!/usr/bin/env python3 """ Copyright 2020 Damian Yerrick Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
#!/usr/bin/env python # Copyright (c) 2009 Twisted Matrix Laboratories. # See LICENSE for details. from twisted.spread import pb, jelly from twisted.python import log from twisted.internet import reactor from cache_classes import MasterDuckPond class Sender: def __init__(self, pond): self.pond = pond ...