text
stringlengths
3
1.05M
# -*- coding: utf-8 -*- import pytest from eth_utils import ( force_text, force_bytes, ) from web3.utils.empty import ( empty, ) from web3.utils.transactions import ( wait_for_transaction_receipt, ) @pytest.fixture() def math_contract(web3, MathContract): deploy_txn = MathContract.deploy() ...
// #include <stdio.h> // selection sort #include <stdio.h> #include <stdlib.h> void sort(int a[], int size) { int i = 0; while (i < size) { int j = i+1; while (j < size) { if (a[j] < a[i]) { int t = a[i]; a[i] = a[j]; a[j] = t; } j++; } i++; } return; } int main() { i...
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {batchActions} from 'redux-batched-actions'; import {Platform} from 'react-native'; import AsyncStorage from '@react-native-community/async-storage'; import {createBlacklistFilter} from 'redux-persist...
from usl import HouseManagerView if __name__ == '__main__': HouseManagerView().main()
class ObservationArrayExpectedDimFail(Exception): """ The input size does not corresponds to expected dimensions""" pass
const Plugin = require('./Plugin'); const express = require('express'); const fs = require('fs'); const path = require('path'); const fileUpload = require('express-fileupload'); var multer = require('multer'); class WebAPI extends Plugin{ constructor(params){ super(params); this.ap...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.snabbdom=e()}}(function(){return function e(t,n,r){func...
const {createUser, request, resetTable} = require('./utils/'); const db = require('../data/dbConfig'); const signToken = require('../config/token'); const User = require('../helpers/users-model'); const admin = createUser({admin: true}); const user = createUser({id: 2, email: 'other@user.com'}); const token = signTok...
'use strict'; require('dotenv').config(); const supertest = require('supertest'); const server = require('../server.js').server; const { db } = require('../models'); const mockRequest = supertest(server); describe('Auth Router', () => { let users = { admin: { username: 'admin', password: 'password', role: 'ad...
/* * Re-export form data */ /* * Form data for authentication pages */ export {default as signupForm} from './signupForm' export {default as signinForm} from './signinForm' export {default as settingsForm} from './settingsForm' export {default as recoverPasswordForm} from './recoverPasswordForm' export {default a...
const axios = require('axios'); axios.defaults.baseURL = 'https://fakerapi.it/api/v1'; axios.defaults.responseType = 'json'; axios.defaults.timeout = 1000; //Funzione di "interfaccia" tra la mia applicazione e il servizio esterno di // Faker: https://fakerapi.it/en exports.getData = (url,options) => { const key...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
"use strict"; /* Hierarchy of named folders */ var rootFolder = { name: "Categories", folders: [ {name: "Drama", folders: [ {name: "Courtroom"}, {name: "Political"} ]}, {name: "Classic", folders: [ {name: "Musicals", folders: [ {name: "Jazz"}, {name: "R&B/Soul"} ]}...
#! /usr/bin/env node /* * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you 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 * * Unl...
/* * Phoenix-RTOS * * Operating system kernel * * pmap - machine dependent part of VM subsystem (ARMv7 with MPU) * * Copyright 2017 Phoenix Systems * Author: Pawel Pisarczyk * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "pmap.h" #include "spinlock.h" #include "string.h" #include "consol...
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: user_view.py Description : Author : charl date: 2018/11/15 ------------------------------------------------- Change Activity: 2018/11/15: ------------------------------------------------- """ # f...
#!/usr/bin/env python import json import sys import urllib from argparse import ArgumentParser import requests def _mkurl(template, kws): for key in kws: template = template.replace(key, kws[key]) return template def main(hs, room_id, access_token, user_id_prefix, why): if not why: why...
require('dotenv').config(); const express = require('express'); const { repliesDB, postsDB, userNotificationsDB } = require('../db/models/index.js'); const router = express.Router(); const { maxNumOfNotifications } = require('../config/globals.js'); const pusher = require('../config/pusherConfig.js'); /**************...
exports.Connection = require('./lib/connection'); exports.Model = require('./lib/model');
var express = require('express') var router = express.Router() const jwt = require('jsonwebtoken') function getCookie(name, headers) { var value = "; " + headers; var parts = value.split("; " + name + "="); if (parts.length == 2) return parts.pop().split(";").shift(); } const auth = router.use((req, res...
/**axios封装 * 请求拦截、相应拦截、错误统一处理 */ import Vue from 'vue' import axios from 'axios'; import QS from 'qs'; import router from '../router/index' // import { Toast } from 'vant'; // import store from '../store/index' // 环境的切换 // if (!Vue.config.productionTip) { // axios.defaults.baseURL = 'http://192.168.3.3:8080/cloud-...
/*********************************************************** // OOP244 Workshop 2: Dynamic Memory // File Kingdom.h // Version 1.0 // Date 2018-05-23 // Author Aria Avazkhani // // // Revision History /////////////////////////////////////////////////////////// // Name Date Reason // ////////////////////////////...
import $ from 'jquery'; import utils from '@bigcommerce/stencil-utils'; import _ from 'lodash'; import { insertStateHiddenField } from './form-utils'; import swal from 'sweetalert2'; /** * If there are no options from bcapp, a text field will be sent. This will create a select element to hold options after the remote...
import React from 'react'; const DarkModeToggle = () => <input type="checkbox" role="switch" />; export default DarkModeToggle;
# tempfile.py unit tests. import tempfile import errno import io import os import signal import sys import re import warnings import contextlib import stat import weakref from unittest import mock import unittest from test import support from test.support import script_helper has_textmode = (tempfile._text_openflags...
//@target: ES6 function foo(s1, ...s) {} var tmp = Symbol.iterator; class SymbolIterator { next() { return { value: Symbol(), done: false }; } [tmp]() { return this; } } foo(...new SymbolIterator);
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'clipboard', 'he', { copy: 'העתקה', copyError: 'הגדרות האבטחה בדפדפן שלך לא מאפשרות לעורך לבצע פעולות העתקה אוטומטיות. יש להשתמש...
# -*- coding: utf-8 -*- class BiSep: def __init__(self, *, in_=None, out=' '): self.i = in_ self.o = out def split(self, text, maxsplit=None): maxsplit = -1 if maxsplit is None else maxsplit return text.split(self.i, maxsplit=maxsplit) def join(self, items): o = '...
const express = require('express') const _ = require('lodash') const pluralize = require('pluralize') const write = require('./write') const getFullURL = require('./get-full-url') const utils = require('../utils') const delay = require('./delay') module.exports = (db, name, opts) => { // Create router co...
/** * Created by same on 2016/7/18. * File description:用户找回密码 */ 'use strict'; import React,{Component,PropTypes} from 'react'; import Helmet from 'react-helmet'; import {connect} from 'react-redux'; import { sendCaptcha } from 'redux/modules/register'; import { getPassword } from 'redux/modules/password'; import {...
// poll_kqueue.h // Asyncronous I/O library. // // Copyright 2010 LibWebserver Authors. All rights reserved. #ifndef IO_POLL_KQUEUE_H__ #define IO_POLL_KQUEUE_H__ #include "poll.h" #include <inttypes.h> #include <vector> struct kevent; namespace io { class PollKQueue : public Poll { public: typedef std...
const shortestCompletingWord = require("./../main/shortestCompletingWord.js"); // Question // Find the minimum length word from a given dictionary words, // which has all the letters from the string licensePlate. // Such a word is said to complete the given string licensePlate // Here, ...
import logging import threading from uuid import uuid4 from hazelcast.exception import OperationTimeoutError, HazelcastError from hazelcast.util import current_time_in_millis, check_not_none from time import sleep class ListenerRegistration(object): def __init__(self, registration_request, decode_register_respon...
import React, { Component } from 'react'; import I18n from 'react-native-i18n'; import { connect } from 'react-redux'; import { View, Text, TouchableOpacity } from 'react-native'; import { Styles, Metrics } from '@theme/'; import styles from './styles'; import CommonWidgets from '@components/CommonWidgets'; import Uti...
// This file has been autogenerated. var profile = require('../../../lib/util/profile'); exports.getMockedProfile = function () { var newProfile = new profile.Profile(); newProfile.addSubscription(new profile.Subscription({ id: '947d47b4-7883-4bb9-9d85-c5e8e2f572ce', name: 'nrptest58.westus.validation.pa...
import os.path import pytest pytest_plugins = ['helpers_namespace'] @pytest.helpers.register def data_path(fn): return os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data/' + fn)
var struct_s_f2_1_1_render_1_1_sample_1_1_buffer_index = [ [ "BufferIndex", "struct_s_f2_1_1_render_1_1_sample_1_1_buffer_index.html#a35c1fe49439a1205b14377f158e70d61", null ], [ "finished", "struct_s_f2_1_1_render_1_1_sample_1_1_buffer_index.html#a8f0e37682a9c7d39709674d8f7fe16e1", null ], [ "hasIncrement"...
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # -*- coding: utf-8 -*- import logging import typing from collections import Counter, OrderedDict, defaultdict import torch from torch import nn from detectron2.structures import BitMasks, Boxes, ImageList, Instances from detectron2.utils.model_a...
from django.db.models import Q from tastypie.authorization import Authorization def get_module_name(meta): return getattr(meta, 'model_name', None) or getattr(meta, 'module_name') class GuardianAuthorization(Authorization): def base_checks(self, request, model_klass): # If it doesn't look like a mode...
typedef struct parameters_struct parameters; struct parameters_struct { int nr_simulations; int nr_vars; int first_bias; int adapt_fitness; int adapt_fitness_map; double adapt_map_factor; int memory_used; double optimum; int local_iter; int function; int local_search; int pop_size; int nr_iterations; double mut_rate; d...
""" Platform to control tuya humidifier and dehumidifier devices. """ import logging from homeassistant.components.humidifier import HumidifierEntity from homeassistant.components.humidifier.const import ( DEFAULT_MAX_HUMIDITY, DEFAULT_MIN_HUMIDITY, DEVICE_CLASS_DEHUMIDIFIER, DEVICE_CLASS_HUM...
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Speciallan import os checkpoint = './work_dirs_coco/fcos_td_r50_caffe_fpn/checkpoints/latest.pth' json_path = './work_dirs_coco/fcos_td_r50_caffe_fpn/results.json' cmd = 'python tools/test.py configs/coco/fcos_td_r50_caffe_fpn.py {} --json_out {} --eval bbox'.form...
angular.module('myApp').service('NavigationService', [function () { var NavigationService = {}; var urlStack = []; NavigationService.push = function (url, key, state) { var navItem = { url: url, key: key, state: state, returnData: null }; urlStack.push(navItem); }; NavigationService.pop = func...
import numpy as np from dataset import * def load_gt_roidb(dataset_name, image_set_name, root_path, dataset_path, result_path=None, flip=False, categ_index_offs=0, per_category_epoch_max=0, database_csv='',classes_list_fname='',\ return_num_classes=False, return_imdb=False,num_ex_p...
#!/usr/bin/env python # # Yahoo! Finance market data downloader (+fix for Pandas Datareader) # https://github.com/regularfry/regularfrynance # # Copyright 2020 Alex Young # Copyright 2017-2019 Ran Aroussi # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import pytest import ruscorpora as rnc def test_attributes(): tag = rnc.Tag('S,f,inan=sg,nom') assert tag.POS == 'S' assert tag.gender == 'f' assert tag.animacy == 'inan' assert tag.number == 'sg' assert tag.case =...
import datetime import re from collections import Counter from flask import render_template from redash.tasks.general import send_mail from redash.worker import celery from redash import redis_connection, settings, models from redash.utils import json_dumps, json_loads, base_url def key(user_id): return 'aggregat...
# Copyright (c) 2018 Red Hat, 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 requi...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){CKEDITOR.plugins.add("ajax",{requires:"xml"});CKEDITOR.ajax=function(){function g(){if(!CKEDITOR.env.ie||"file:"!=location.protocol)try{return new XMLHttpR...
/* cdwRetryJob - Add jobs that failed back to a cdwJob format queue.. */ /* Copyright (C) 2014 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "jks...
Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _jsxFileNam...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_ConstraintDSL_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_ConstraintDSL_E...
import React, { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import Layout from './Layout'; import { getCart } from './cartHelpers'; import Card from './Card'; import Checkout from './Checkout'; import Copyright from './Copyright'; const Cart = () => { const [items, setItems] = useSt...
var gulp = require('gulp'); // Define base folders var src = 'public/src/'; var dest = 'public/build/'; var bower = 'bower_components/'; // Include plugins var concat = require('gulp-concat'), rename = require('gulp-rename'), sass = require('gulp-ruby-sass'), cssmin = require("gulp-clean-css"), uglify...
/* */ import {describe, it} from 'mocha'; import {expect} from 'chai'; import {injectDeps, useDeps} from '../'; import {shallow} from 'enzyme'; import React from 'react'; describe('Depedancy Injection', () => { it('should inject context and allow to use them', () => { const context = {name: 'arunoda'}; cons...
(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{210:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return a})),n.d(t,"metadata",(function(){return c})),n.d(t,"rightToc",(function(){return l})),n.d(t,"default",(function(){return p}));var r=n(2),i=n(6),o=(n(0),n(310)),a={id:"go",title:"Go"...
from .locale import LocaleValidator from .timezone import TimezoneValidator __all__ = ( 'LocaleValidator', 'TimezoneValidator', )
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_54e.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.string.label.xml Template File: sources-sink-54e.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate us...
/** * Created by PolarisChen on 16/9/9. */ import React, { Component, PropTypes } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './UserList.scss'; import UserFlowItem from '../UserFlowItem'; import LoadingFlowItem from '../LoadingFlowItem'; import TextFlowItem from '.....
from django.template.backends.base import BaseEngine from django.template.backends.utils import csrf_token_lazy from django.template import TemplateDoesNotExist from django.urls import re_path from django.http import FileResponse from django.utils.http import http_date import re from pathlib import Path import mimetyp...
# !/usr/bin/env python """ 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")...
import boto3 import os from os import listdir from os.path import isfile, join #Key.set(os.environ.get('AWS_ACCESS_KEY_ID', '')) #BaseUrl.set(os.environ.get('AWS_SECRET_ACCESS_KEY', '')) class FaceCredentialsAWSInterface(object): def __init__(self, url_where_photos_are=None): self.url_where_photos_are = ...
#!/usr/bin/env python3 from constructs import Construct from cdk8s import App, Chart, Helm class MyChart(Chart): def __init__(self, scope: Construct, ns: str): super().__init__(scope, ns) Helm(self, 'redis', chart='bitnami/redis', values={ 'sentinel': { ...
export default theme => ({ textField: { marginLeft: theme.spacing.unit, marginRight: theme.spacing.unit, width: 200, }, });
/* * Copyright (C) 2017-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/debug_settings/debug_settings_manager.h" #include "shared/source/memory_manager/multi_graphics_allocation.h" #include "opencl/extensions/public/cl_ext_private.h" #include "opencl/source/api/c...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setMultiplicityDependencies = void 0; var _dependenciesIndexClassGenerated = require("./dependenciesIndexClass.generated.js"); var _dependenciesCompareNaturalGenerated = require("./dependenciesCompareNatural.generated.js"); var _...
# -*- coding: utf-8 -*- """ `TaggedBlock` objects. """ from __future__ import unicode_literals, absolute_import import six from . import docs from . import enums from . import path from . import util from typing import Any, BinaryIO, Dict, Optional, Set, TYPE_CHECKING, Union # NOQA if TYPE_CHECKING: from...
let heads = 0 let tails = 0 const main = async () => { const amount = process.argv.slice(2)[0]; console.time("elapsed"); for (let i = 0; i < amount; i++) { if (await flip()) { heads++ } else { tails++ } } // end of stopwatch console.timeEnd("elapsed"); /...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import rospy import numpy as np from std_msgs.msg import UInt8, Float64 from geometry_msgs.msg import Twist import time # from vision_msgs.msg import Center class DetectLane(): def __init__(self): self.sub_image_original = rospy.Subscriber('/camera/image', Im...
import logging import os import sys import time import re import shutil import itertools import ckan.plugins as p from pylons import config try: from collections import OrderedDict # from python 2.7 except ImportError: from sqlalchemy.util import OrderedDict from sqlalchemy.sql import func from ckan.lib.cli ...
"""Support for HomematicIP Cloud alarm control panel.""" import logging from typing import Any, Dict from homematicip.functionalHomes import SecurityAndAlarmHome from homeassistant.components.alarm_control_panel import AlarmControlPanel from homeassistant.components.alarm_control_panel.const import ( SUPPORT_ALAR...
#!/usr/bin/env python3 """ Main phoenix entry point +--------------------------------------------------------------------------+ | Copyright 2019 St. Jude Children's Research Hospital | | | | Licensed under a modified version ...
from django.contrib.auth import authenticate from django.utils.translation import gettext_lazy as _ from rest_framework import serializers class AuthTokenSerializer(serializers.Serializer): username = serializers.CharField(label=_("Username")) password = serializers.CharField( label=_("Password"), ...
import { combineReducers } from 'redux'; import * as types from './../actionTypes'; // imports all the types from actions types let dataState = { data: [], loading:true }; const dataReducer = (state = dataState, action) => { switch (action.type) { case types.DATA_AVAILABLE: state = Object....
// External Dependencies import React from 'react'; import { StaticQuery, graphql } from 'gatsby'; import Img from 'gatsby-image'; /* * This component is built using `gatsby-image` to automatically serve optimized * images with lazy loading and reduced file sizes. The image is loaded using a * `StaticQuery`, which ...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _LOGO_COLORS; /** @jsx node */ import { node } from 'jsx-pragmatic/src'; import { SVGLogo, getLogoColors } from '../../lib'; import { LOGO_COLOR, LOGO } f...
'use strict'; var importApp = soajsApp.components; var interfaceDomain = location.host; interfaceDomain = mydomain.split(":")[0]; importApp.controller('importAppCtrl', ['$scope', '$timeout', 'injectFiles', 'importSrv', 'detectBrowser', '$modal', '$window', 'ngDataApi', '$cookies', '$location', function ($scope, $timeo...
/******************************** Author: Sravanthi Kota Venkata ********************************/ #include <stdio.h> #include <stdlib.h> #include "segment.h" int main(int argc, char* argv[]) { float sigma = 0.6; float k = 4; int min_size = 10; char im1[256]; int num_ccs[1] = {0}; I2D *out; ...
const Mock = require('mockjs') const List = [] const count = 50 const image_uri = ["https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3"] for (let i = 0; i < count; i++) { List.push(Mock.mock({ id: '@increment', name: '@cword(2, 15)', logo: image_uri[0], intro: '@cword(20-50)', intro...
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2019-07-28 09:29 from __future__ import unicode_literals import directory_validators.string from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('company', '0086_auto_20190722_1759'), ] operati...
#ifndef UGINE_MAIN_H #define UGINE_MAIN_H #pragma warning(push, 0) #include "affector.h" #include "array.h" #include "bone.h" #include "camera.h" #include "collisionpixeldata.h" #include "emitter.h" #include "font.h" #include "glinclude.h" #include "image.h" //#include "isometricmap.h" //#include "isometricscene.h" //...
import React, { useState } from 'react'; import { Col, Container, Row, Spinner } from 'react-bootstrap'; import { Link, useParams } from 'react-router-dom'; import { useQuery } from 'react-query'; import './Detail.scss'; import ItemContainer from '../../../components/ItemContainer/ItemContainer'; import Produ...
/* * Foundation Responsive Library * http://foundation.zurb.com * Copyright 2013, ZURB * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ /*jslint unparam: true, browser: true, indent: 2 */ // Accommodate running jQuery or Zepto in noConflict() mode by // using an anonym...
const express = require("express"); const weatherRouter = require("./weather"); const pollutionRouter = require("./pollution"); const locationDataRouter = require("./locationData"); const photoRouter = require("./photos"); const app = express(); app.use("/weather", weatherRouter); app.use("/pollution", pollutionRout...
import json import unittest from secrets import token_bytes from blspy import AugSchemeMPL, PrivateKey from tests.util.keyring import using_temp_file_keyring from bytecash.util.keychain import Keychain, bytes_from_mnemonic, bytes_to_mnemonic, generate_mnemonic, mnemonic_to_seed class TestKeychain(unittest.TestCase)...
from typing import List, Union, Dict from unittest import TestCase from unittest.mock import ANY, patch, Mock from parameterized import parameterized from samcli.lib.cookiecutter.question import Question, QuestionKind, Choice, Confirm, Info, QuestionFactory class TestQuestion(TestCase): _ANY_TEXT = "any text" ...
/* * Author: Garrett Barboza <garrett.barboza@kapricasecurity.com> * * Copyright (c) 2014 Kaprica Security, Inc. * * 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, ...
/** * Copyright (c) 2016-present, Gregory Szorc * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #include "python-zstandard.h" extern PyObject *ZstdError; /** * Ensure the ZSTD_DCtx on a decompressor is initiate...
import React from 'react' import ReactDOM from 'react-dom' import moment from 'moment' import root from './root' ReactDOM.render(React.createElement(root, {now: moment.utc()}), document.querySelector('#root'))
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Restaurante Schema */ var RestauranteSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Restaurante name', trim: true }, created: { type: Date, default: Date...
/* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) | +---------...
import { FilledFunctions as TwoToneFunctions } from './FilledFunctions'; export { TwoToneFunctions };
BASE_URL = 'https://www.digipathos-rep.cnptia.embrapa.br' ENDPOINT_ITEMS = '/jspui/zipsincollection/123456789/3/?offset=0&limit=270'
/* MIT License Copyright (c) 2018 KubeMQ 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, publish, distrib...
"use strict"; const resolve = require("./resolve"); const { promise } = require("@xmpp/events"); async function fetchURIs(domain) { return [ // Remove duplicates ...new Set( ( await resolve(domain, { srv: [ { service: "xmpps-client", protocol: ...
/* qa - Modules to help do testing, especially on html based apps. */ #include "common.h" #include "hash.h" #include "dystring.h" #include "portable.h" #include "htmlPage.h" #include "errabort.h" #include "errCatch.h" #include "htmshell.h" #include "qa.h" char *qaStringBetween(char *text, char *startPattern, char *e...
import { FETCH_USERS } from '../actions/index'; import { FETCH_USER } from '../actions/index'; export default function(state=[], action) { switch(action.type) { case FETCH_USERS: return action.payload.items; case FETCH_USER: return action.payload; } return state; }
import {reject, map} from 'lodash'; import {takeEvery} from 'redux-saga'; import {put, select} from 'redux-saga/effects'; import {ENABLE, DISABLE, disable} from '../actions/tests'; import {applyHelpers, revertHelpers} from '../actions/helpers'; import {getEnabled} from '../selectors/tests'; import {getHelpersByTest} fr...
import request from '@/utils/request' export default { getAll(pageNum, pageSize, keyword) { return request({ url: '/web/cet4/page', method: 'get', params: { pageNum, pageSize, keyword } }) }, getById(id) { return request({ url: `/web/c...