text
stringlengths
3
1.05M
from django.test import TestCase from geotrek.maintenance.tests.factories import InterventionJobFactory, LightInterventionFactory, ManDayFactory from geotrek.maintenance.forms import ManDayForm class ManDayFormTest(TestCase): @classmethod def setUpTestData(cls): cls.interv = LightInterventionFactory(...
COMPONENT('searchbox', 'cleartype:0;keypress:0;autotrim:1', function(self, config, cls) { var cls2 = '.' + cls; var els = {}; var isvisible = false; var type = {}; var skip = false; var initialized = false; var hidetimeout; self.readonly(); self.nocompile && self.nocompile(); self.make = function() { se...
#!/usr/bin/python3 import sys import csv field_size_limit = sys.maxsize while True: try: csv.field_size_limit(field_size_limit) break except OverflowError: field_size_limit = int(field_size_limit / 10) entity_number = 0 entity = {} slug = {} if __name__ == "__main__": # id,pre...
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # 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 ...
# SMOP -- Simple Matlab/Octave to Python compiler # Copyright 2011-2016 Victor Leikehman from __future__ import print_function import py_compile import tempfile import fnmatch import tarfile import sys import os import traceback from os.path import basename, splitext from . import options from . import parse from . ...
from Script.Bullet import Bullet class testBullet(Bullet): def __init__(self,point,orbit): super(testBullet, self).__init__(50, 1, 1,orbit,point) self.image_path = "assets/bullet_16x16.png" self.postion = [0, 0] def getImage(self): return self.image_path
// rollup.config.js import vue from 'rollup-plugin-vue'; import buble from 'rollup-plugin-buble'; import commonjs from 'rollup-plugin-commonjs'; import replace from 'rollup-plugin-replace'; import { terser } from 'rollup-plugin-terser'; import minimist from 'minimist'; const argv = minimist(process.argv.slice(2)); co...
// Copyright (c) 2013 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 CHROME_COMMON_CRASH_KEYS_H_ #define CHROME_COMMON_CRASH_KEYS_H_ #include "base/debug/crash_logging.h" namespace crash_keys { // Registers a...
description = 'Devices for the HAMEG 8131 spin flipper' pvprefix = 'SQ:SANS:flip' devices = dict( flip_freq = device('nicos_sinq.devices.epics.generic.WindowMoveable', description = 'Set frequency', readpv = pvprefix + ':FREQ_RBV', writepv = pvprefix + ':FREQ', abslimits = (100E-6,...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Exercise the wallet keypool, and interaction with wallet encryption/locking from test_framework.test_f...
# Copyright 2018 ETH Zurich # # 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, sof...
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
var jsdom = require('jsdom'); var expect = require('expect.js'); global.expect = expect; global.document = jsdom.jsdom('<!doctype html><html><body></body></html>'); global.window = document.defaultView; global.navigator = {userAgent: 'node.js'};
import asyncio import datetime import json import logging from bson import ObjectId from src.utils.errors import ErtisError from src.utils.json_helpers import bson_to_json, object_hook, maybe_object_id logger = logging.getLogger("events") __HANDLERS = {} __GLOBAL_HANDLERS = [] class Event(object): def __init...
"""A demo for parsing pcap and labelling the extracted flows. """ # Authors: kun.bj@outlook.com # # License: xxx import os from pparser.parser import PCAP from utils.tool import dump_data RANDOM_STATE = 42 def main(): pcap_file = 'data/demo.pcap' pp = PCAP(pcap_file, flow_ptks_thres=2, verbose=10, random_s...
# -*- coding: utf-8 -*- import tensorflow as tf def contradiction_acl(model_class, model_kwargs, pooling_function=tf.reduce_sum, entailment_idx=0, neutral_idx=1, contradiction_idx=2, debug=False, is_bi=False): model = model_class(reuse=True, **mod...
import logging import numpy as np import tensorflow as tf from mlagents.trainers.models import LearningModel, EncoderType, LearningRateSchedule logger = logging.getLogger("mlagents.trainers") class PPOModel(LearningModel): def __init__( self, brain, lr=1e-4, lr_schedule=LearningR...
# -*- coding: utf-8 -*- # # Natural Language Toolkit: Snowball Stemmer # # Copyright (C) 2001-2019 NLTK Project # Author: Peter Michael Stahl <pemistahl@gmail.com> # Peter Ljunglof <peter.ljunglof@heatherleaf.se> (revisions) # Lakhdar Benzahia <lakhdar.benzahia@gmail.com> (co-writer) # Assem Ch...
X = 67 for n in range(1, X): result = {(n**i) % X for i in range(X)} if len(result) == X - 1: print(n)
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG ่“้ฒธๆ—ฅๅฟ—ๅนณๅฐ available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG ่“้ฒธๆ—ฅๅฟ—ๅนณๅฐ is licensed under the MIT License. License for BK-LOG ่“้ฒธๆ—ฅๅฟ—ๅนณๅฐ: ------------------------------------------------...
{ 'targets': [ { 'target_name': 'disvm-exec', 'type': 'executable', 'sources': [ 'main.cpp', 'debugger.cpp' ], 'include_dirs': [ '../include' ], 'includes': [ '../compiler_settings.gypi' ], 'dependencies': [ '../vm/disvm...
import axios from 'axios' import { Message } from 'element-ui' import store from '@/store' import { getToken } from '@/utils/auth' // create an axios instance const service = axios.create({ baseURL: process.env.BASE_API, // api็š„base_url timeout: 5000 // request timeout }) // request interceptor service.intercepto...
# -*- coding: utf-8 -*- ''' Component abstract base class module This module contains the abstract base class for classes Author: Bennet Meyers ''' from abc import ABC, abstractmethod import numpy as np import cvxpy as cvx class Component(ABC): def __init__(self, **kwargs): self.__parameters = self._ge...
var struct___s_s_l___interface__ = [ [ "buttons", "struct___s_s_l___interface__.html#a857acc115a822e2651e1d9c6eccd8c93", null ] ];
'use strict'; /** * pratice Node.js project * * @author Zongmin Lei <leizongmin@gmail.com> */ import {expect} from 'chai'; import {request} from '../test'; describe('login', function () { it('signup', async function () { try { const ret = await request.post('/api/signup', { name: 'test2', ...
#!/usr/bin/env python import threading, logging, time import multiprocessing from kafka import KafkaConsumer, KafkaProducer class Producer(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.stop_event = threading.Event() def stop(self): self.stop_even...
import { useState } from "react"; function useLocalStorage(key, initialValue) { // State to store our value // Pass initial state function to useState so logic is only executed once const [storedValue, setStoredValue] = useState(() => { try { // Get from local storage by key const item = window.l...
# -*- coding: utf-8 -*- from dp_tornado.engine.controller import Controller class MiscController(Controller): pass
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2017 The University of Tennessee a...
var pingPong = function(inputNumber) { var numberSet = []; if (inputNumber < 0) { numberSet.push("Whoops! You must enter a number that is greater than 0."); } if (isNaN(inputNumber)) { numberSet.push("Whoops! You must enter a number!"); } for (var i = 1; i <= inputNumber; i++) { if (i % 15 === 0) { numberS...
import React from "react"; import styled from "styled-components"; const StyledDiv = styled.div` font-family: Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: 400; font-size: 1rem; line-height: 1.25; display: block; position: relative; min-heigh...
import time from icissp_paper.src.utils.commons import local_rpc_object, default_rpc_object local_rpc_object.delexpiredinvoice() pmnt_hash = local_rpc_object.invoice(msatoshi=5000, label="test", description="Initial balance redistribution", expiry=10)["payment_hash"] print(pmnt_ha...
inherit "room/room"; object monster; init() { ::init(); add_action("map", "map"); } reset(arg) { if(arg) return; if (!monster) { monster = clone_object("/world/monsters/citizen.c"); move_object(monster, this_object()); } add_exit("west","/world/city/wood5.c"); ...
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/alpinejs/dist/module.esm.js": /*!**************************************************!*\ !*** ./node_modules/alpinejs/dist/module.esm.js ***! \**************************************************/ /***/ ((__unused_webpac...
import numpy as np from pydub import AudioSegment import shutil import subprocess import os import _thread as thread from time import sleep import datetime from manimlib.constants import FFMPEG_BIN from manimlib.constants import STREAMING_IP from manimlib.constants import STREAMING_PORT from manimlib.constants import ...
#!/usr/bin/python # -*- coding: UTF-8 -*- ##################################################### #@ๅฏผๅ…ฅMYSQLๆ•ฐๆฎๅบ“ #@author:GUOLeiLei #@blog:https://blog.csdn.net/rong11417 #@mail:1040446144@qq.com # ####################################################### import MySQLdb import sys,commands,time path=commands.getoutput(('pwd'...
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.14. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
import React from 'react'; import { TYPE_NAME, TYPE_DESC, TYPE_INSTRUCTION, TYPE_SUGGESTION_OPTIONS, } from 'constants/replyType'; import { EDITOR_FACEBOOK_GROUP, EDITOR_REFERENCE } from 'constants/urls'; const localStorage = typeof window === 'undefined' ? {} : window.localStorage; const formInitialState = {...
# coding=utf-8 iso4217 = [ {'country.name': 'AFGHANISTAN', 'currency.code': 'AFN', 'currency.digits': '2', 'currency.number': '971', 'currency.name': 'Afghani'}, {'country.name': 'ร…LAND ISLANDS', 'currency.code': 'EUR', 'currency.digits': '2', 'currency.number': '978', 'currency.name': 'Euro'}, {'country.n...
const Discord = require('discord.js') const configs = require('../../conf/config.json') const command_handler = require('../../commands') const colors = require('../../conf/colors.json') const fs = require('fs') const xp = require('../handler/xp') var time = {} module.exports = { type: 'message', run: async (...
from PyQt5 import QtWidgets, QtGui class logUI(QtWidgets.QMainWindow): def __init__(self): super(logUI, self).__init__() self.init_ui() def init_ui(self): self.resize(800, 600) self.setWindowTitle("Running Results") self.textB = QtWidg...
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
import re URLS_PATTERN = re.compile('https?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+') # noqa PASSWORD = 'password1232@'
# from power_hello import *
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # The entire source code is OSSRPL except # 'download, uploadir, uploadas, upload' which is MPL # License: MPL and OSSR...
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-10 00:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Compro...
# -*- coding: utf-8 -*- """ Created on Fri Jun 8 04:38:14 2018 @author: sushy """ guess = 50 high = 100 low = 0 step = guess//2 guessed = False print("Please think of a number between 0 and 100!") while guessed == False: print("Is your secret number " + str(guess) + "?") choice = input("Enter 'h' to indica...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRe...
import pandas as pd from actionserver.controllers.faqs.similarity import Match from fuzzywuzzy import fuzz from fuzzywuzzy import process from actionserver.controllers.faqs.filter import Filter class FAQ: def __init__(self, csv_file): self.df = pd.read_csv(csv_file) self.fuzz = fuzz # self...
import unittest from silasdk.users import User from silasdk.processingTypes import ProcessingTypes from tests.test_config import (app, user_handle) class Test012GetTransactionsTest(unittest.TestCase): def test_get_transactions_200(self): payload = { "user_handle": user_handle, "se...
// // Generated by the J2ObjC translator. DO NOT EDIT! // source: /Volumes/Personal/Documents/raspi-config/client-framework/build/j2oSources/com/google/common/collect/ForwardingNavigableMap.java // #include "J2ObjC_header.h" #pragma push_macro("INCLUDE_ALL_ComGoogleCommonCollectForwardingNavigableMap") #ifdef REST...
// // MainViewController.h // Ninety Nine // // Created by Matthew Mascioni on 2/16/2014. // Copyright (c) 2014 Matthew Mascioni. All rights reserved. // #import <UIKit/UIKit.h> #import "UptimeLabel.h" @class RegularLabel; @class MMUptimeRobot; @interface MainViewController : UIViewController @property (strong,...
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. from collections import OrderedDict import os import shutil import signal import time import traceback import gevent import gevent.event import gevent.queue from . import utils from .config import config_value from .dataset import DatasetJob from ...
'use strict' const chalk = require('chalk') const Game = require('./game') const TextIo = require('./text-io-util') /** * This class is responsible for rendering the current state of a game. */ class GameStateRenderer { /** * Creates a new instance. * @param {Game} game the game to ...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
import os import signal import subprocess import sys from pathlib import Path from typing import Tuple from chia.daemon.server import pid_path_for_service from chia.util.path import mkdir def launch_service(root_path: Path, service_command) -> Tuple[subprocess.Popen, Path]: """ Launch a child process. "...
import React from 'react' import axios from 'axios' import Logo from '../img/rust-logo.png' import Crown from '../img/subscribed-crown.png' import Crown_two from '../img/cancelled-crown.png' import ProfileLogo from '../img/user-profile-final.png' import '../css/consistent.css' import { VscMenu } from 'react-icons/vsc'...
from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import * class MainModule: def __new__(cls, arg1=None): ''' :returns: MainModule :rtype: UnityEngine.ParticleSystem.MainModule ''' pass @staticmethod def get_ringBufferMode(): ...
# 2089. Find Target Indices After Sorting Array # Runtime: 44 ms, faster than 88.20% of Python3 online submissions for Find Target Indices After Sorting Array. # Memory Usage: 14.2 MB, less than 54.18% of Python3 online submissions for Find Target Indices After Sorting Array. class Solution: # Count def tar...
//// [typeLiteralCallback.ts] interface Foo<T> { reject(arg: T): void ; } var foo: Foo<string> interface bar<T> { fail(func: (arg: T) => void ): void ; fail2(func: { (arg: T): void ; }): void ; } var test: bar<string>; test.fail(arg => foo.reject(arg)); test.fail2(arg => foo.reject(arg)); // Should be O...
/* * SPDX-License-Identifier: ISC * SPDX-URL: https://spdx.org/licenses/ISC.html * * Copyright (C) 2006 Jilles Tjoelker, et al. * * This file contains code for the NickServ GROUP command. */ #include <atheme.h> static void ns_cmd_group(struct sourceinfo *si, int parc, char *parv[]) { struct mynick *mn; struc...
"""Test InterpLinear_py.cpp.""" import unittest import numpy as np from xms import interp class TestInterpLinear(unittest.TestCase): """Test Interpolator API.""" def setUp(self): """Runs before each test case.""" self.interp_pts = ((2, 1, 0), (5, 10, 2.5), (5, 5), (7, 3), (2, 7), (7, 7)) ...
function SvgAirlineSeatIndividualSuiteRound(props) { return ( <svg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 24 24' width='1em' className='svg-icon' {...props}> <path d='M0 0h24v24H0V0z' fill='none' /> <path d='M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6...
/* * Container component * All data handling & manipulation should be handled here. */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { roles } from '../../actions/roleActions'; import RoleDetails from '../../roles/components/RoleDetails';...
class Account: id = int name = str document = str email = str password = str def __init__(self, name, document): self.name = name self.document = document
#include "alphasparse/kernel_plain.h" alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_CSC *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *y, const ALPHA_INT ldy) { ALPHA_SPMAT_CSC *conjugated_mat; transpose_conj_csc(mat, &...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{ /***/ "./resources/js/custom.js": /*!********************************!*\ !*** ./resources/js/custom.js ***! \********************************/ /*! no static exports found */ /***/ (function(module, exports) { // Save new user to database jQuery(d...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
import requests import json import time from datetime import datetime import subprocess import wasabi # SNAPSHOT END POINT API_SNAPSHOT = 'http://127.0.0.1:8888/v1/producer/create_snapshot' # Snapshot parameters SNAPSHOT_DATA= { "next": { "snapshot_name": "test" } } ## Create snapshot and return filename + locati...
from setuptools import setup from setuptools import find_packages version = '0.27.0.dev0' # Remember to update local-oldest-requirements.txt when changing the minimum # acme/certbot version. install_requires = [ 'acme>=0.21.1', 'certbot>=0.21.1', 'dnspython', 'mock', 'setuptools', 'zope.inter...
require('@babel/register'); ({ ignore: /node_modules/ }); require('@babel/polyfill'); const HDWalletProvider = require('@truffle/hdwallet-provider'); let mnemonic = 'kidney arena oxygen foot ecology rescue rural misery grace define army gentle'; let testAccounts = [ "0xf222aba48075ec63a663625c5d63d927e151359c383...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/enums/custom_interest_type.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import re...
const path = require('path'); // TODO: async graphql const createTagPages = (createPage, posts) => { const allTagsIndexTemplate = path.resolve('./src/templates/allTagsIndex.js') const singleTagIndexTemplate = path.resolve('./src/templates/singleTagIndex.js') const postsByTag = {} posts.forEach(({no...
// 1. ๋™์ „ ๋ฐ”๊ฟ”์ฃผ๊ธฐ(๋ƒ…์ƒ‰์•Œ๊ณ ๋ฆฌ์ฆ˜) // ๋ช…๋ณด๋„ค ๋™๋„ค ๊ฐ€๊ฒŒ์˜ ํ˜„๊ธˆ ์ถœ๋‚ฉ๊ธฐ์—๋Š” k๊ฐ€์ง€ ๋™์ „์ด ๊ฐ๊ฐn1, n2, ... , nk๊ฐœ ์”ฉ ๋“ค์–ด์žˆ๋‹ค. // ๊ฐ€๊ฒŒ ์ฃผ์ธ์€ ๋ช…๋ณด์—๊ฒŒ T์›์˜ ์ง€ํ๋ฅผ ๋™์ „์œผ๋กœ ๋ฐ”๊ฟ” ์ฃผ๋ ค๊ณ ํ•œ๋‹ค. ์ด๋•Œ, ๋™์ „ ๊ตํ™˜ ๋ฐฉ๋ฒ•์€ ์—ฌ๋Ÿฌ // ๊ฐ€์ง€๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ๋‹ค.์˜ˆ๋ฅผ ๋“ค์–ด, 10์› ์งœ๋ฆฌ, 5์› ์งœ๋ฆฌ, 1์› ์งœ๋ฆฌ ๋™์ „์ด ๊ฐ๊ฐ2๊ฐœ, 3๊ฐœ, 5๊ฐœ์”ฉ // ์žˆ์„ ๋•Œ, 20์› ์งœ๋ฆฌ ์ง€ํ๋ฅผ ๋‹ค์Œ๊ณผ ๊ฐ™์€4๊ฐ€์ง€ ๋ฐฉ๋ฒ•์œผ๋กœ ๊ตํ™˜ํ•  ์ˆ˜ ์žˆ๋‹ค. // 20 = 10ร—2 // 20 = 10ร—1+5ร—2 // 20 = 10ร—1+5ร—1+1ร—5 // 20 = 5ร—3+1ร—5 // ์ž…๋ ฅ์œผ๋กœ ์ง€ํ์˜...
import numpy as np import logging import colorlog import re import os import collections logger = logging.getLogger('ClangAutoMarker') logger.setLevel(logging.INFO) #------------------------------------------------------------------------------ global_values = dict() def init_global(key): global global_valu...
const tape = require('tape'), vl = require('../'); tape('Type check switches map arrays', function(t) { const objects = vl.tooltip([ vl.tooltip().fieldN('country'), vl.tooltip().fieldN('fertility'), vl.tooltip().fieldN('life_expect') ]); const strings = vl.tooltip([ 'country', 'fertili...
from functools import reduce from typing import List, Union from stift.exceptions import ParserError TokenResponse = List[List[dict]] class ParseTypes: function = "function" array = "array" variable = "variable" class Token: """A token member of a perser.""" def __init__(self, type=ParseTypes...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
# dummy __init__ for nvpy package
/*! * ${copyright} */ // Provides the base class for all controls and UI elements. sap.ui.define([ '../base/DataType', '../base/Object', '../base/ManagedObject', '../base/ManagedObjectRegistry', './ElementMetadata', '../Device', "sap/ui/performance/trace/Interaction", "sap/base/Log", "sap/base/assert", "sa...
const I = actor(); const retryCount = 3; module.exports = { fields: { consentOrderNotProvided: 'input[id="rejectReason-consentOrderNotProvided"]', miamCertificateNotProvided: 'input[id="rejectReason-miamCertificateNotProvided"]', incompleteEvidenceOfMiamExamption: 'input[id="rejectReason-incompleteEviden...
import re import pathlib import warnings from itertools import groupby from ..pipeline import subject, session, scan from ..paths import get_imaging_root_data_dir from datajoint.errors import DuplicateError from element_interface.utils import find_full_path """ Notes from Chris 1. I placed previous default (r'C:\\data...
const _ = require(`lodash`) const fs = require(`fs-extra`) const path = require(`path`) const loki = require(`@moocar/lokijs`) const uuidv4 = require(`uuid/v4`) const customComparators = require(`./custom-comparators`) // Ensure sorting behavior matches old lodash `orderBy` // implementation. See `custom-comparators.j...
from . import length, middleware
from collections import OrderedDict from itertools import count from time import time from typing import Any from typing import Dict from typing import Iterable from typing import Optional # TODO: There needs to be two versions, the one with a fixed TTL and the other with # varying TTL, for which priority queue may be...
from django.test import TestCase # Create your tests here. RELEASE_TAG_EVENT = """ Request URL: https://mrbelvedereci.herokuapp.com/webhook/github/push Request method: POST content-type: application/json Expect: User-Agent: GitHub-Hookshot/fa15ca8 X-GitHub-Delivery: b965ab50-a096-11e8-953c-9b1d5d8d5661 X-GitHub-Even...
var React = require('react'); var ReactDOM = require('react-dom'); var Layout = require('../'); var VerticalLayout = React.createClass({ render: function() { return ( <Layout layoutWidth={this.props.width} layoutHeight={this.props.height}> <Layout className="nav" layoutHeight={100}> <div>...
/* 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( 'font', 'pt-br', { fontSize: { label: 'Tamanho', voiceLabel: 'Tamanho da fonte', panelTitle: 'Tamanho' }, label: 'Fonte', ...
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
# Generated by Django 2.2.7 on 2019-12-16 22:32 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('contest', '0004_auto_20191215_2000'), ('problem', '0010_auto_20191216_2143'), ] operations = [ migrations.AlterUniqueTogether( n...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Copyright (c) 2017 The Gpunion Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Helpful routines for regression testing.""" from base...
module.exports = function (math) { var util = require('../../util/index'), Complex = require('../../type/Complex'), Unit = require('../../type/Unit'), isNumber = util.number.isNumber, isString = util.string.isString, isComplex = Complex.isComplex, isUnit = Unit.isUnit; /** ...
//***************************************************************************** // // remoti_rti.h - RemoTI API defines and declarations. // // Copyright (c) 2012 Texas Instruments Incorporated. All rights reserved. // TI Information - Selective Disclosure // //*********************************************************...
from __future__ import print_function import argparse import bz2 import email import json import logging from itertools import product from operator import itemgetter import attr import pkg_resources from pathlib2 import Path from requests import Session from six.moves.urllib_parse import urljoin @attr.s class R...
#ifndef SORBET_DSL_TYPEMEMBERS_H #define SORBET_DSL_TYPEMEMBERS_H #include "ast/ast.h" namespace sorbet::dsl { /** * This class does nothing but raise errors for and then delete duplicate type members */ class TypeMembers final { public: static void patchDSL(core::MutableContext ctx, ast::ClassDef *cdef); ...
/* Savedraft */ $('#formtempgpu').on('beforeSubmit', function (e) { var l = $('.ladda-button').ladda(); l.ladda('start'); var form = $(this); $.post( form.attr('action'), // serialize Yii2 form form.serialize() ) .done(function (result) { i...
const { Folder } = require("../models"), { errorHandler } = require("../helpers/error"); // Find the current folder using the id parameter and pass it in the req.locals object as currentFolder exports.getCurrentFolder = async (req, res, next) => { try { const foundFolder = await Folder.findById(req.params.id); ...
'''This test suite contains 7 passing tests. ''' import pytest from seleniumbase import BaseCase from basic_methods import BasicMethods as bm import config import constants as const import time class TestTasksList(BaseCase): def get_task_name(self, row=1, column=2): '''Returns value of elemen...
""" General conftest for pytest execution of all integration tests lying in the certbot_integration tests package. As stated by pytest documentation, conftest module is used to set on for a directory a specific configuration using built-in pytest hooks. See https://docs.pytest.org/en/latest/reference.html#hook-referen...
// @flow import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { fetchAccountIfNeeded } from './actions'; type Props = { dispatch: () => void, app: { account: { metaTitle: string, metaDescription: string, }, }, children: a...