text
stringlengths
3
1.05M
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @noflow ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { getRouter } from '../../public/crud_app/services'; import { setupEnv...
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Wor...
/* * Dark Souls 2 - Open Server * Copyright (C) 2021 Tim Leonard * * This program is free software; licensed under the MIT license. * You should have received a copy of the license along with this program. * If not, see <https://opensource.org/licenses/MIT>. */ #pragma once #include "Server/Streams/Frpg2UdpPac...
# LayerMapping -- A Django Model/OGR Layer Mapping Utility """ The LayerMapping class provides a way to map the contents of OGR vector files (e.g. SHP files) to Geographic-enabled Django models. For more information, please consult the GeoDjango documentation: http://geodjango.org/docs/layermapping.html """ impo...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const graphql_1 = require("graphql"); const ts_mixer_1 = require("ts-mixer"); const internal_1 = require("../internal"); const utils_1 = require("../utils"); class OperationTypeDefinitionApi extends ts_mixer_1.Mixin(internal_1.Mixin.NamedTypeM...
import React from 'react'; import dispatcher from './../../helpers/dispatcher'; import ObjectAttributes from './../../stores/ObjectAttributes'; import ObjectKeyModal from './ObjectKeyModal'; //global theme import Theme from './../../themes/getStyle'; //this input appears when adding a new value to an object export d...
from collections import defaultdict from pprint import pprint from math import log # comparison values for n degrees freedom # These values are useable for both the chi^2 and G tests _ptable = { 1:3.841, 2:5.991, 3:7.815, 4:9.488, 5:11.071, 6:12.592, ...
import sys sys.path.append("c:\\src\\lang-playground\\playground") import pytest from playground_interpreter import PlaygroundInterpreter def run_stdout_test(capfd, in_str, ans_str): in_str = in_str.strip() ans_str = ans_str.strip() pgp = PlaygroundInterpreter() pgp.interp(input_str=in_s...
import * as React from 'react'; import wrapIcon from '../utils/wrapIcon'; const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 48, height: 48, viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", className: className }, React.crea...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import argparse import qsharp from qsharp import IQSharpError from Microsoft.Quantum.Samples.IntegerFactorization import FactorSemiprimeInteger def factor_integer(number_to_factor, n_trials, use_robust_phase_estimation): """ Use Shor's algo...
from .detect import detect __all__ = ["detect"]
/* * bootstrap-tagsinput v0.8.0 * */ (function ($) { "use strict"; var defaultOptions = { tagClass: function(item) { return 'label label-primary'; }, focusClass: 'focus', itemValue: function(item) { return item ? item.toString() : item; }, itemText: function(item) { re...
import collections import enum from itertools import starmap, product from contextlib import suppress import ibis.util as util import ibis.common as com import ibis.expr.types as ir import ibis.expr.schema as sch import ibis.expr.datatypes as dt try: from cytoolz import curry, compose, identity except ImportErr...
import datetime as _datetime import logging as _logging import uuid as _uuid import six as _six from deprecated import deprecated as _deprecated from flytekit.common import interface as _interface from flytekit.common import nodes as _nodes from flytekit.common import promise as _promises from flytekit.common import ...
from flask import Flask, jsonify, abort, make_response, request, url_for,session from flask import render_template, redirect import json import re import requests import hashlib import os from web3 import Web3 rpc = "https://naklecha.blockchain.azure.com:3200/C7sLbEihlinGLsD2k9AXwVWH" web3 = Web3(Web3.HTTPProvider(r...
// MIT License // // Copyright (c) 2017-2018 Artur Wyszyński, aljen at hitomi dot pl // // 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 th...
# Copyright 2016 The TensorFlow 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 applica...
const { csprngBytes } = require('./csprng-bytes') const { prngBytes } = require('./prng-bytes') const { CharSet } = require('./charSet') const BITS_PER_BYTE = 8 const { ceil, floor, log2, round } = Math const charset64 = new CharSet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_') const charset32...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #ifndef __ctrlplane__xmpp_factory__ #define __ctrlplane__xmpp_factory__ #include "base/factory.h" class TcpServer; class XmppChannelConfig; class XmppChannelMux; class XmppConnection; class XmppClient; class XmppClientConnection; class XmppLife...
"""Setup some useful test variables. """ import sys import os TESTDIR = os.path.dirname(__file__) ROOTDIR = os.path.join(TESTDIR, os.pardir) INTEGRATION_FILEDIR = os.path.join(TESTDIR, 'integration') ENDTOEND_FILEDIR = os.path.join(TESTDIR, 'end-to-end') sys.path.append(ROOTDIR)
from .validator import validate __all__ = [ "validate" ]
/** ****************************************************************************** * @file stm32l0xx_hal_rtc.c * @author MCD Application Team * @brief RTC HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Real-Time Clock (RTC)...
import sys as _sys import typing as _typing from cryptography.hazmat.backends import default_backend as _default_backend from cryptography.hazmat.primitives.ciphers import Cipher as _Cipher from cryptography.hazmat.primitives.ciphers import algorithms as _algorithms from cryptography.hazmat.primitives.ciphers import m...
// Copyright 2020 The Fuchsia 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 LIB_ZBITL_ERROR_STDIO_H_ #define LIB_ZBITL_ERROR_STDIO_H_ #include <inttypes.h> #include <stdio.h> #include <string_view> // The format of the e...
const usersRoutes = require('./userRoutes/usersRoutes') const authenticationRoutes = require('./userRoutes/authenticationRoutes') const adminUsersRoutes = require('./userRoutes/adminUsersRoutes') const articlesRoutes = require('./articlesRoutes/articlesRoutes') const authArticlesRoutes = require('./articlesRoutes/authA...
# -- coding: utf-8 -- """ This module contains helper methods for rasterio.crs.CRS. """ def crs_to_wkt(rasterio_crs): """ This is to deal with change in rasterio.crs.CRS. Parameters ---------- rasterio_crs: :obj:`rasterio.crs.CRS` Rasterio object. Returns ------- str: WKT str...
#pragma once #include <memory> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include "catalog/catalog_defs.h" #include "common/macros.h" #include "common/managed_pointer.h" #include "common/strong_typedef.h" #include "parser/expression/abstract_expression.h" #include "parser/...
const express = require("express"); const ProtectedRouter = express.Router(); const { authenticate } = require("./../middlewares/auth"); const { profile, UserDashboard, UpdateUserDashbaord, AddNewProject, SendContactEmail, VerifyEmailSend, VerifyEmail, AddComment, AddLike, AddNewRating, AddBadge }...
#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 STTabbarVersionNumber; FOUNDATION_EXPORT const unsigned char STTabbarVersionString[];
const difUtil = require('../diff-util.js'); const { AxePuppeteer } = require('@axe-core/puppeteer'); const AxeUtil = require('../axe-util.js'); describe('Unit and Functional Tests for squid-alert',()=>{ let browser = null; let page = null; beforeAll(async () => { jasmine.DEFAULT_TIMEOUT_INTERVAL = ...
#----------------------------------------------------------------------- # Autonoumous Kit - Test ToF (Single) #----------------------------------------------------------------------- # # Written by SparkFun Electronics, October 2019 # Author: Wes Furuya # SparkFun Electronics # # License: This code is public domain ...
import voluptuous as vol import esphomeyaml.config_validation as cv from esphomeyaml import pins from esphomeyaml.components import light from esphomeyaml.components.power_supply import PowerSupplyComponent from esphomeyaml.const import CONF_CHIPSET, CONF_CLOCK_PIN, CONF_DATA_PIN, \ CONF_DEFAULT_TRANSITION_LENGTH,...
from __future__ import print_function import sys import os import re # By default, test cases are expected to switch and emit warnings if there was none # If a test is found in this list, it's expected not to switch. no_switch_tests = '''test_patched_select.SelectTestCase.test_error_conditions test_patched_ftplib.*.te...
from bs4 import BeautifulSoup from copy import copy class Html_handler: def __init__(self, file): self.file = BeautifulSoup(file, "html.parser") self.positions = list( map(lambda x: int(x.string[:-2]), self.file.find_all(class_="position")) ) self.usernames = list( ...
// Copyright 2020 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. goog.provide('InstanceChecker'); /** * Used to prevent multiple instances of the extension from running * simultaneously. */ const InstanceChecker = c...
/*** * Excerpted from "Practical Microservices", * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purpose. * Visit...
import os image_files = [] os.chdir(os.path.join("data", "test")) for filename in os.listdir(os.getcwd()): if filename.endswith(".jpg"): image_files.append("data/test/" + filename) os.chdir("..") with open("test.txt", "w") as outfile: for image in image_files: outfile.write(image) outfil...
import abc from ..strategies import StrategyEvaluationFactory from ..errors import NotSupportedError class Field(abc.ABC): ''' Base class for fields. ''' supported_strategies = ('value') def __init__(self, name, typ, strategy, arguments=[]): if strategy not in self.supported_strateg...
import request from '@/utils/request' export function getDicts() { return request({ url: 'admin/dict/all', method: 'get' }) } export function add(data) { return request({ url: 'admin/dict', method: 'post', data }) } export function del(id) { return request({ url: 'admin/dict/' + id,...
import numpy as np import scipy.stats from torch import nn def init_embedding_(weight, dimension): range_ = 0.5 / dimension nn.init.uniform_(weight, -range_, range_) def dump_embedding(embedding, dimension, word_from_id, path): embedding_array = embedding.cpu().data.numpy() with open(path, 'w') as f...
from typing import Optional from chia.consensus.block_record import BlockRecord from chia.consensus.constants import ConsensusConstants from chia.util.ints import uint8, uint32 def calculate_deficit( constants: ConsensusConstants, height: uint32, prev_b: Optional[BlockRecord], overflow: bool, num...
var _ = require('lodash'), Value = require('./value'), inherits = require('./inherits'), matchers = []; var Valueable = function Valueable(value) { var klass, inst; if (value instanceof Value) { return new value.constructor(value.val()); } for (var ix = 0; ix < matchers.length; ix++) { if ...
// You should implement your task here. module.exports = function towelSort(matrix = []) { let a = []; for (let i = 1; i < matrix.length; i = i + 2) { matrix[i].reverse(); } a = [].concat(...matrix); return a; };
from ..environment import convert_to_unsigned_integer class TokenMapper: """ Map a token in a language to a Python value. :param str|None attr: The name of an attribute of an object mapped with this token. If None, the object is unmodified during deserialization and nothing is produced during ...
from rest_framework.generics import ListCreateAPIView from rest_framework.generics import RetrieveUpdateDestroyAPIView from .models import Micropost, Usr from .serializers import MicropostSerializer import logging logger = logging.getLogger(__name__) class MicropostsListView(ListCreateAPIView): serializer_class...
from textacy.augmentation import transforms from textacy.augmentation import utils as aug_utils from textacy.types import AugTok import pytest @pytest.fixture(scope="module") def aug_toks(doc_en): return aug_utils.to_aug_toks(doc_en) @pytest.mark.skipif( aug_utils.concept_net.filepath is None, reason="...
Template.users_list_actions.helpers({ isInvited: function() { return this.telescope.isInvited; }, userIsAdmin: function(){ return Users.is.admin(this); }, }); Template.users_list_actions.events({ 'click .invite-link': function(e){ e.preventDefault(); Meteor.users.update(this._id, {$set: {"tel...
// @flow declare module 'react-navigation' { /** * First, a bunch of things we would love to import but instead must * reconstruct (mostly copy-pasted). */ // This is a bastardization of the true StyleObj type located in // react-native/Libraries/StyleSheet/StyleSheetTypes. We unfortunately can't // ...
from __future__ import print_function from .util import getattr_maybelist import json import urllib.request as request import urllib from http.cookiejar import CookieJar from urllib import parse from collections import defaultdict import os import sys from .util import make_fields import uuid from six import string_t...
const chalk = require('chalk'); const isProduction = process.argv.indexOf('--production') > -1; const isVerbose = process.argv.indexOf('--verbose') > -1; module.exports.logStartTask = (packageName, task) => { console.log(`${getTimePrefix(packageName)} Starting: ${chalk.cyan(task)}`); }; module.exports.logEndTask =...
;(function (ns) { var listeners = []; ns.add = function add(handler, timeout) { listeners.push({ handler: handler, timeout: timeout, timer: setTimeout(handler, timeout) }); } ns.reset = function reset() { listeners.forEach(function (listene...
$(function (ready) { SetDateTextBoxes(); LoadDataAggregateTypes(); }); function SetDateTextBoxes (){ $(".datepicker").attr('type', 'text'); $("#StartDateDay").val($.datepicker.formatDate('mm/dd/yy', new Date())); $("#EndDateDay").val($.datepicker.formatDate('mm/dd/yy', new Date())); $...
import socket import pytest from tests.utils import * timeout = 60 dimension = 128 delete_timeout = 60 def pytest_addoption(parser): parser.addoption("--ip", action="store", default="localhost") parser.addoption("--service", action="store", default="") parser.addoption("--port", action="store", default=...
({ onInit: function (component, event, helper) { helper.initPlan(component); helper.initRoutes(component); }, viewRoute: function (component, event, helper) { helper.viewRoute(component); }, handleStepEvent: function (component, event, helper) { var status = event.getParam('status'), eventId = event...
#!/usr/bin/env python #Copyright 2015 RAPP #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 wr...
(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{618:function(s,t,a){"use strict";a.r(t);var r=a(3),e=Object(r.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("div",{staticClass:"language-js line-numbers-mode"},[a("pr...
'use strict'; module.exports = function() { this.Then(/^I create a "([^"]*)" from current "([^"]*)" with next params:$/, function(setterName, currentEntity, table, callback) { var _this = this; _this.error = undefined; var model = "create"; var dependantObject; ...
# Copyright (C) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. # Prepare training and test data. import unittest from mmlspark.nn.ConditionalBallTree import ConditionalBallTree from mmlsparktest.spark import * class NNSpec(unittest.TestCase...
/* * Copyright (c) 2000-2011 Apple Inc. All Rights Reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * ...
import pytest requests = pytest.importorskip("requests") from sentry_sdk import capture_message from sentry_sdk.integrations.stdlib import StdlibIntegration def test_crumb_capture(sentry_init, capture_events): sentry_init(integrations=[StdlibIntegration()]) events = capture_events() response = requests...
import React from 'react' import { ApolloProvider } from 'react-apollo' import { client } from './client' export const wrapRootElement = ({ element }) => ( <ApolloProvider client={client}>{element}</ApolloProvider> )
import 'jest-enzyme'; import React from 'react'; import { shallow, mount } from 'enzyme'; import { CellMeasurer, MultiGrid } from 'react-virtualized'; import { ClassNames } from '@emotion/core'; import Cell from './cell'; import BaseTable from './base-table'; import SortableHeader from './sortable-header'; import cellR...
import FWCore.ParameterSet.Config as cms import CondTools.Ecal.conddb_init as conddb_init import CondTools.Ecal.db_credentials as auth process = cms.Process("ProcessOne") process.MessageLogger = cms.Service("MessageLogger", debugModules = cms.untracked.vstring('*'), cout = cms.untracked.PSet( threshol...
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-12 18:29 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations....
import qs from 'qs'; let responseCallback = null; let axios = null; /** * @description: 网络请求配置 * @param {function} 请求成功后的回调函数 * @return {void} */ export const httpConfig = (axiosInstance, resCall) => { axios = axiosInstance; responseCallback = resCall; }; /** * @description: axios封装网络请求 * @param {string} 请求...
Ext.data.JsonP.draw2d_layout_anchor_ShortesPathConnectionAnchor({"tagname":"class","name":"draw2d.layout.anchor.ShortesPathConnectionAnchor","autodetected":{},"files":[{"filename":"ShortesPathConnectionAnchor.js","href":"ShortesPathConnectionAnchor.html#draw2d-layout-anchor-ShortesPathConnectionAnchor"}],"inheritable":...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- select_utt_file = '../exp_synthesis/chain/tdnn7q/decode_train/scoring_kaldi/wer_details/per_utt_select_0.8' with open(select_utt_file,'r') as ur: select_utt = ur.readlines() # print(select_utt) with open('../exp_synthesis/chain/tdnn7q/decode_train/scoring_kaldi/wer_d...
// // SlideShowViewController.h // SlideShow // // Created by Adrian Russell on 11/12/2017. // Copyright © 2017 Adrian Russell. All rights reserved. // #import <UIKit/UIKit.h> @interface SlideShowViewController : UIViewController @end
# -*- coding: utf-8 -*- """ Created on Mon Mar 25 20:53:20 2019 用来提取头动参数 @author: lenovo """
/** * @name exports * @summary ImagingStudy Class */ module.exports = class ImagingStudy { constructor(opts) { // Create an object to store all props Object.defineProperty(this, '__data', { value: {} }); // Define getters and setters as enumerable Object.defineProperty(this, '_id', { enumerable: true, ...
#pragma once #include "ext/sokol/sokol_gfx.h" #include "sp/Asset.h" namespace cl { // TODO: Move to sp:: enum class MaterialTexture { Albedo, Normal, Mask, Count, }; const char *getPixelFormatSuffix(sg_pixel_format format); struct MeshMaterial : sp::Asset { static sp::AssetType SelfType; using PropType = sp...
/* code page 10008 (Mac Simplified Chinese) */ /* generated from https://download.microsoft.com/download/C/F/7/CF713A5E-9FBC-4FD6-9246-275F65C0E498/Windows Supported Code Page Data Files.zip:CodpageFiles/10008.txt */ /* DO NOT EDIT!! */ #include "wine/asm.h" #ifdef __ASM_OBSOLETE #include "unicode.h" static const W...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function () { return _styleFunctionSx.default; } }); Object.defineProperty(e...
import codecs import json import logging from collections import Counter import os import argparse import fasttext import numpy as np from numpy import save from tqdm import tqdm from CQIL_dataset import get_lex_match from config import get_config logger = logging.getLogger(__name__) logging.basicConfig(level=loggin...
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="color", parent_name="indicator.gauge.step.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_nam...
""" Real Time Facial Expression Detection Helper Function By: Xiaochi (George) Li Dec.2018 """ from tensorflow.keras.models import load_model from tensorflow.logging import set_verbosity from tensorflow.logging import ERROR import numpy as np def prediction(img): """ prediction function By: Xiaochi (Geor...
export const PUBLIC_DATA_URL = 'https://raw.githubusercontent.com/beoutbreakprepared/nCoV2019/master/latest_data/latestdata.csv'; export const AUTHORITIES_LIST_URL = 'https://raw.githubusercontent.com/tripleblindmarket/safe-places/develop/healthcare-authorities.yaml';
#!/usr/bin/env python import sys from testplan import test_plan from testplan.testing.multitest import MultiTest, testsuite, testcase @testsuite class Alpha(object): @testcase def test_comparison(self, env, result): result.equal(1, 1, 'equality description') @test_plan(name='Multiply') def main(plan...
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', './util'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('./util')); } else { var mod = { exports: {} }; ...
/****************************************************************************** * * Copyright (C) 2015 Xilinx, Inc. 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 Softwa...
def open_account(): print("새로운 계좌가 생성되었습니다.") open_account()
#ifndef _VECTOR2D_H #define _VECTOR2D_H #include <cmath> #include <cstdlib> template<class T> class Vector2D{ private: T x; T y; public: Vector2D(): x(T(0)), y(T(0)){} //initialize both x and y to 0 Vector2D(const T& x, const T& y); //getters and setters const ...
import React, { useState, useEffect } from 'react'; import Filter from './Filter'; import PersonForm from './PersonForm'; import Persons from './Persons'; import Notification from './Notification'; import personsService from '../service/persons'; const App = () => { const [ persons, setPersons] = useState([]); ...
import {expect} from 'chai'; import {createLocalVue, mount, shallowMount} from '@vue/test-utils'; import Input from '@/components/Input/Input.vue'; import Button from '@/components/Button/Button.vue'; import Select from '@/components/Select/Select.vue'; import Datepicker from '@/components/Datepicker/Datepicker.vue'; i...
apos.define('apostrophe-resource-modal', { extend: 'apostrophe-modal', source: 'modal', construct: function(self, options) { self.afterHide = function() { alert('hiddhd') }; } });
import _plotly_utils.basevalidators class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name="ticklabelstep", parent_name="scattersmith.marker.colorbar", **kwargs ): super(TicklabelstepValidator, self).__init__( ...
from multiprocessing.dummy import Pool as ThreadPool from os import path, mkdir, system, name from threading import Thread, Lock from time import sleep, strftime, gmtime, time from traceback import format_exc from colorama import Fore, init from console.utils import set_title from easygui import fileopenbox f...
var callbackArguments = []; var argument1 = function callback(a,b,c) { callbackArguments.push(JSON.stringify(arguments)) argument2[25] = 4.986131741521439e+307 return a*b-c }; var argument2 = function callback(a,b,c) { callbackArguments.push(JSON.stringify(arguments)) argument4['AO?'] = "" return a/b/c }; var a...
module.exports = { mongoDbKey: "mongodb://naduhrin:urmywitch09@ds127704.mlab.com:27704/merndb", secret: "youshallnotpass" };
/** * @flow */ import { initDevtools } from "frontend"; import Bridge from "agent/bridge"; const target = document.getElementById("target"); const targetWindow = target.contentWindow; target.src = "./target/index.html"; target.onload = () => { initDevtools({ connect(cb) { inject("../build/backend.js").t...
"use strict"; /* * Wire * Copyright (C) 2019 Wire Swiss GmbH * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. *...
#!/usr/bin/python from __future__ import print_function from bcc import BPF from time import sleep, strftime # for influxdb from influxdb import InfluxDBClient import lmp_influxdb as db from db_modules import write2db from datetime import datetime DBNAME = 'lmp' client = db.connect(DBNAME,user='root',passwd=12345...
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='field_ops', version=...
import * as effectTypes from './effectTypes'; //递归里调用runSaga我们可以近乎的认为是开始一个新的子进程,这个新的子进程会单独工作,跟当前的saga就无关 //在我们把saga全部执行完成会执行completeCallback // saga 是一个generator函数 // 1 如果是take就进行监听并且阻塞 // 2 如果是put不阻塞并且发送请求 function runSaga (env, saga, completeCallback) { const { dispatch, channel, getState } = env const it =...
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by ...
import pytest from unittest.mock import patch import logging from pyvesynclevoit import VeSync, VeSyncWallSwitch from pyvesynclevoit.helpers import Helpers as helpers from . import call_json DEV_LIST_DETAIL = call_json.LIST_CONF_WS CORRECT_WS_LIST = call_json.DEVLIST_WS ENERGY_HISTORY = call_json.ENERGY_HISTORY COR...
// @flow type X = () => number; declare var x1: ?X; declare var x2: X; (x1?.(): empty); (x2?.(): empty) declare var x3: ?(() => (() => number)); x3?.()(); (x3?.())();
#include "../../bam_tview.c" #include <stdbool.h> const char header_1[] = "@HD VN:1.4 SO:undefined\n" "@SQ SN:dummy\n" "@RG ID:blah SM:po\n"; void setup_test_1(char** header) { *header = strdup(header_1); } khash_t(kh_rg)* run_test_1(char* header) { khash_t(kh_rg)* test_result = get_rg_sample(header,"po"); return...
const numeric = require('./numeric'); module.exports = async function max(field, value, maxNum) { if (!numeric(field, maxNum)) { return false; } if (Number(value) > Number(maxNum)) { return false; } return true; }