text
stringlengths
3
1.05M
/* * Copyright 2009-2017 Alibaba Cloud 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...
/** * 槽控规则计算管理初始化 */ var Rules = { id: "RulesTable", //表格id seItem: null, //选中的条目 table: null, layerIndex: -1 }; /** * 初始化表格的列 */ Rules.initColumn = function () { return [ {field: 'selectItem', radio: true}, {title : '行号',formatter : function(value, row, index) {return...
// We override only the things we need to -- the rest we'll just inherit from // original-harness.js. Polymorphism, kind of. ReflectionHarness.conformanceTesting = true; ReflectionHarness.test = function(fun, description) { test(fun, this.getTypeDescription() + ": " + description); } ReflectionHarness.assertEquals...
import React from 'react'; import Savedhighlight from "./components/Savedhighlight"; import SessionActions from "../../../../actions/SessionActions"; import SearchStore from "../../SearchStore"; import SessionStore from "../../../../stores/SessionStore"; // import SavedhighlightStore from "./SavedhighlightStore"; impo...
""" show_isis.py IOSXE parsers for the following show commands: * show isis neighbors * show isis hostname * show isis lsp-log * show isis database detail * show isis node * show isis topology * show isis topology {flex_algo} * show isis flex-algo * show isis flex-algo {flex_algo} ...
from django.db import migrations def move_data_to_course(apps, _schema_editor): Course = apps.get_model('evaluation', 'Course') Evaluation = apps.get_model('evaluation', 'Evaluation') for evaluation in Evaluation.objects.all(): course = Course.objects.create( name_de=evaluation.name_de...
from django.contrib import admin from django.contrib.auth.models import Group from allauth.account.models import EmailAddress, EmailConfirmation from allauth.account import app_settings as allauth_settings admin.site.unregister(Group) admin.site.unregister(EmailAddress) if not allauth_settings.EMAIL_CONFIRMATION_HMA...
const units = { chinilla: 1, vojo: 1 / 1e12, colouredcoin: 1 / 1e9, }; const aliases = { chinilla: ['ch', 'chinilla', 'Chinilla'], vojo: ['mj', 'vojo'], colouredcoin: ['cc', 'colouredcoin'], }; const display = { chinilla: { format: '{amount} CH', fractionDigits: 12, }, vojo: { format: '{...
/** @format */ import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex); export default new Vuex.Store({ modules: {}, });
#!/usr/bin/python # This program is intended to make decision tree testing easier for Akhil. Based # on a configuration JSON, it will download events and panels for a given set of # datasets and write files of the appropriate format for passing to decision # tree phase 1 testing. from __future__ import print_function...
import React from "react"; import { Link } from "react-router-dom"; import styled from 'styled-components'; import Note from "./Note"; const NoteWrapper = styled.div` max-width: 800px; margin: 0 auto; margin-bottom: 2em; padding-bottom: 2em; border-bottom: 1px solid #f5f4f0; ` const NoteFeed = ({ notes }) ...
# coding: utf-8 import pprint import re import six class AgencyAuthIdentity: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value...
import Twitter from 'twitter'; import objConfig from '../config'; const client = new Twitter(objConfig.client), main = async () => { try { const myTweets = await client.get( `statuses/user_timeline`, { count: 200, screen_na...
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
#include <sys/stat.h> #ifdef _WIN32 # ifndef WIN32_LEAN_AND_MEAN # define WIN32_LEAN_AND_MEAN # endif # include <windows.h> # undef WIN32_LEAN_AND_MEAN # include <io.h> /* _get_osfhandle() */ # include <errno.h> #else # include <fcntl.h> /* open() */ # include <unistd.h> /* close() */ # include <sys/mman.h> /* mmap(...
$("h1").addClass("big-title margin-50"); //$("button").click(function () { // $("h1").css("color", "purple"); //}); //$("h1").before("<button>New</button>"); //after(); //prepend(); //append(); $("button").click(function () { $("h1").slideToggle().animate({opacity: "0.5"});//.animate()only can have numer...
'use strict'; import route from './agent.route'; const agentPageModule = angular.module('agent-module', [ 'ui.router' ]); agentPageModule .config(route); export default agentPageModule;
import React from 'react'; import Layout from "../layouts/Layout" import { graphql } from "gatsby" import Search from '../components/search/SearchBox'; const Tags = ({ pageContext, data }) => { const {y } = pageContext; const { totalCount } = data.portfolio; return ( <Layout> <div className="mx-auto overflo...
// import classNames from 'classnames'; // import types from 'prop-types'; // import React from 'react'; // // Components // // import Name from '../../'; // // Style // import './style.scss'; // // ---------------- // // Type of props // Name.propTypes = { // prop: types.string, // }; // // vbyz // Name.def...
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from __future__ import (absolute_import, division, print_function, unicode_literals) import nump...
/* * netlink-types.h Netlink Types (Private) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation version 2.1 * of the License. * * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch>...
module.exports = ['România'];
from discord.ext import commands import traceback import logging import dbl from auth import YOUTUBE_API_KEY, DBL_TOKEN logger = logging.getLogger('cogs.admin') class Admin(commands.Cog): def __init__(self, bot): self.bot = bot self.dbl_token = DBL_TOKEN self.dblpy = dbl.DBLClient(self...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function # from __future__ import unicode_literals __author__ = "d01 <Florian Jung>" __email__ = "jungflor@gmail.com" __copyright__ = "Copyright (C) 2015-16, Floria...
const models = require('../../models'); const Utilities = require('../Utilities'); const BATCH_SIZE = 15; /** * Runs all pending payout commands */ class M1PayoutAllMigration { constructor({ logger, blockchain, config, profileService, }) { this.logger = logger; this.config = config; ...
# 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 may ...
const logger = require('log4js').getLogger('webui'); const Promise = require('bluebird'); const merge = require('merge'); const path = require('path'); const uuidv4 = require('uuid/v4'); const serveStatic = require('serve-static') const utils = require('../utils'); const ScriptRunner = require('../process/ScriptRunner'...
import React from 'react'; import createSvg from './utils/createSvg'; export default createSvg(<path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z" />, 'LocalConvenienceStoreSharp', '0 0 24 24');
import config from '../node_modules/esri-leaflet/profiles/base.js'; config.input = 'src/EsriLeafletVector.js'; config.output.name = 'L.esri.Vector'; export default config;
// This file was procedurally generated from the following sources: // - src/assignment-target-type/expression-comma-assignmentexpression-0.case // - src/assignment-target-type/invalid/parenthesized.template /*--- description: Static Semantics AssignmentTargetType, Return invalid. (ParenthesizedExpression) esid: sec-gr...
// You should implement your task here. module.exports = function towelSort (matrix) { if (!matrix) return []; return matrix.map((array, idx) => { if (idx % 2) return array.reverse(); else return array; }).flat(); }
var debug = require('ghost-ignition').debug('themes'), common = require('../../lib/common'), themeLoader = require('./loader'), active = require('./active'), validate = require('./validate'), Storage = require('./Storage'), settingsCache = require('../settings/cache'), themeStorage; // @TOD...
# Copyright (c) 2018-2020 Beijing Ekitech Co., Ltd. # All rights reserved. import logging import re from functools import lru_cache from .httputil import RestAPI __all__ = [ 'PhenoApt', 'PhenoAptResult', ] logger = logging.getLogger(__name__) class PhenoAptResult(object): """ PhenoApt response wrapp...
const $service = $('#service_type'); const $user = $('#auth_username'); const $pass = $('#auth_password'); const $token = $('#auth_token'); const $mirror = $('#mirror'); const $items = $('#migrate_items').find('input[type=checkbox]'); export default function initMigration() { checkAuth(); $user.on('keyup', () => ...
load("fcfbc86708bc3a4062c2091a062e13b6.js"); load("bcb77b03ed13784489484535627fca54.js"); /* * Any copyright is dedicated to the Public Domain. * http://creativecommons.org/licenses/publicdomain/ */ //----------------------------------------------------------------------------- var BUGNUMBER = 1204027; var summary ...
import { Router } from 'express'; import { createUser, login } from '../authentication/user'; const auth = Router(); const entrypoint = '/auth'; // Create user auth.post(`${entrypoint}/signup`, createUser); auth.post(`${entrypoint}/login`, login); export default auth;
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <UIKit/UIKit.h> #import <ReactABI30_0_0/ABI30_0_0RCTShadowView.h> @interface ABI30_0_0RCTScrollContentShadowView : ABI30_0_0RC...
import numpy as np import pandas as pd from piecewise_linear import node_scores_xy_with_crossvalidation from keras import backend as K import tensorflow as tf import gc from time import time from os.path import join import pickle from sklearn.metrics import log_loss def gc_model(model): # Garbage colle...
from flask import Flask, render_template from flask_socketio import SocketIO, send from flask_cors import CORS app = Flask(__name__) app.config['SECRET_KEY'] = 'secret!' socketio = SocketIO(app, cors_allowed_origins="*") @socketio.on('connect') def test_connect(): print('nueva conexion') #@socketio.on('get_va...
import * as I2C from 'I2C' function byteArrayToArrayBuffer(byteArray) { return new Uint8Array(byteArray).buffer } class HW_I2C { constructor(options) { if (!options || !options.id) { throw new Error("options is invalid"); } this.options = { id: options.id ...
from homeassistant.components.climate.const import ( HVAC_MODE_HEAT, HVAC_MODE_OFF, PRESET_AWAY, PRESET_COMFORT, PRESET_BOOST, SUPPORT_PRESET_MODE, SUPPORT_TARGET_TEMPERATURE, ) from homeassistant.components.light import COLOR_MODE_BRIGHTNESS from homeassistant.const import STATE_U...
const GURKHA_SUV_HOTSPOTS_CONFIG = [ { variant: { images: [ { src: 'https://scaleflex.cloudimg.io/v7/demo/360-assets/AIR_SNORKEL_FINAL_JPG.png?vh=88bccb', alt: 'air snorkel' } ], title: 'Air Intake Snorkel', description: 'The snorkel gives the Gurkha an unmatched water-wading abili...
const data = [ { id: 58587, title: 'The Amazing Spider-Man (2015) #21 (Rivera Variant)', issueNumber: 21, description: 'mock description testing', format: 'Comic', urls: [ { type: 'detail', url: 'http://marvel.com/comics/issue/58587/the_amazing_spider-man_2015_21_rivera_v...
from collections import defaultdict from comet_ml import Experiment import os import sys sys.path.append("../data_processing") import numpy as np from loading import load_train_valid_data, load_test_data import pandas as pd import torch from torch import nn, optim import torch.nn.functional as F from torch.utils.data i...
import logging import numpy as np import pandas as pd from precovery import orbit, precovery_db # Load some orbits. df = pd.read_csv("mpc_orbits.csv") orbits = [ orbit.Orbit(i, np.array([row[1:].values], dtype=np.float64, order="F")) for i, row in df.iterrows() ] # Load the database. db = precovery_db.Preco...
from pyxmpp.jid import JID from jabber.objects.shared_status.status import SharedStatus, SHARED_STATUS_NS import jabber from logging import getLogger from common.actions import action from .gtalkStream import GoogleTalkStream import util.callbacks as callbacks import uuid from common import pref log = getLogger('gtal...
/* Copyright (c) 1994-2017 Sage Software, Inc. All rights reserved. */ "use strict"; var loginUI = loginUI || {}; loginUI = { model: {}, companyList: [], ddCompanies: [], companiesSecureMap: {}, pageInit: true, userIdUpdated: true, enterToLogin: false, // Main routine init: func...
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; // There should be no errors in this file var Derived = (function (_super) { __extends(Derived, _s...
# 입국심사 # 이진탐색을 이용한 풀이 # https://programmers.co.kr/learn/courses/30/lessons/43238 def solution(n, times): left,right=0,times[-1]*n while left<right: mid=(left+right)//2 nn=sum(map(lambda x:mid//x,times)) if nn>=n: right=mid else: left=mid+1 return left # 시간초과 & 틀린풀이 # f...
import React, { useEffect, useState } from "react"; import { Auth } from "aws-amplify"; import { Grid, Button, TextField, Typography } from "@mui/material"; import makeStyles from "@mui/styles/makeStyles"; import { DataStore } from "aws-amplify"; import * as models from "../../../models/index"; import { TextFieldUn...
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:45:28 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/TVRemoteCore.framework/TVRemoteCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
from django.contrib import admin from .models import HolidayType, ACPHoliday class HolidayTypeAdmin(admin.ModelAdmin): list_display = ('short_name', 'name') class ACPHolidayAdmin(admin.ModelAdmin): list_display = ('date', 'holiday_type', 'fiscal_year') admin.site.register(HolidayType, HolidayTypeAdmin) a...
# SPDX-License-Identifier: MIT import textwrap import pytest import pep621 @pytest.mark.parametrize( ('items', 'data'), [ # empty ([], ''), # simple ( [ ('Foo', 'Bar'), ], 'Foo: Bar\n', ), ( [ ...
from __future__ import absolute_import import ctypes from .._base import _LIB from .. import ndarray as _nd def layer_normalization(in_arr, ln_scale, ln_bias, mean, var, out_arr, eps, stream=None): assert isinstance(in_arr, _nd.NDArray) assert isinstance(ln_scale, _nd.NDArray) assert isinstance(ln_bias, ...
""" Tools: Numpy numpy.array(tuple) array.shape --> rows, columns array.dtype numpy.zeros(shape, dtype=float, order='C') numpy.ones(shape, dtype=None, order='C')[source] numpy.empty(shape, dtype=float, order='C') numpy.eye(N, M=None, k=0, dtype=<type 'float'>) numpy.arange([start, ]stop, [step, ]dtype=None) """ impor...
// 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...
# # RunLength decoder (Adobe version) implementation based on PDF Reference # version 1.4 section 3.3.4. # # * public domain * # def rldecode(data): """ RunLength decoder (Adobe version) implementation based on PDF Reference version 1.4 section 3.3.4: The RunLengthDecode filter decodes data that ...
import numpy as np import os import preprocess from modelSegCNN import multi_scale_model from utils import train_data_generator from hparams import * from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, EarlyStopping from keras.models import load_model train_fundus_dir = '../dat...
from taf.BSF import BSF_Runner from taf.BSF.ELG import ELG # --------------------------------------------------------------------------------- # # # # # --------------------------------------------------------------------------------- class ELG00007(ELG): # ----------------------------------------------------...
# -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 """ Messaging API API to send & receive messages: - currently SMS, Email, RSS & Twitter Messages get sent to the Outbox (& Log) From there, the Scheduler tasks collect them & send them @copyright: 2009-2015 (c) Sahana Software F...
from datetime import datetime from typing import Tuple from watchmen_data_kernel.storage import TopicDataService from watchmen_model.dqc import MonitorRule from watchmen_storage import EntityCriteriaExpression, EntityCriteriaOperator from .data_service_utils import build_column_name_literal from .factor_value_assert i...
// TODO good way to declare props export default { title: 'Components/DataTable', argTypes: { theme: { control: {type: 'inline-radio', options: ['white', 'g10', 'g90', 'g100'] } }, rowSize: { name: 'Row Size', control: { type: 'select', options: ['', 'compact', 'short', 'tall'] } }, autoWidth: { name: '...
#pragma once #include <ionir/construct/type.h> namespace ionir { struct Pass; enum struct DecimalKind { BitSize8 = 8, BitSize16 = 16, BitSize32 = 32, BitSize64 = 64, BitSize128 = 128 }; struct TypeDecimal : Type { const DecimalKind decimalKind; bool isSigned; explicit T...
import React from 'react' import algoliasearch from "algoliasearch/lite" import { InstantSearch, SearchBox, Hits, Stats } from "react-instantsearch-dom" import Hit from "./Hit" import * as S from "./styled" const algolia = { appId: process.env.GATSBY_ALGOLIA_APP_ID, searchOnlyApiKey: process.env.GATSBY_ALGOLIA_...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
const fs = require('fs'); const XlsxTemplate = require('xlsx-template'); const dateformat = require('dateformat'); module.exports = async function(tmplPath, data){ return new Promise(function(resolve, reject){ try{ fs.readFile(tmplPath, function(err, tmpldata) { if(err){ console.log(err); reject(er...
// 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...
idom_build_config = {"js_package": "some_js_pkg"}
from flask import render_template,redirect,url_for,request,flash from . import auth from flask_login import login_user,logout_user,login_required from ..models import User from .forms import RegistrationForm, LoginForm from .. import db # registration route @auth.route('/reqister',methods=['GET','POST']) def registe...
"""Example low-level socket usage""" import time import sys import libzt def print_usage(): """print help""" print( "\nUsage: <server|client> <storage_path> <net_id> <remote_ip> <remote_port>\n" ) print("Ex: python3 example.py server . 0123456789abcdef 8080") print("Ex: python3 example.p...
"""Transliteration of https://open.gl/feedback into Python""" from __future__ import print_function import pygamegltest from OpenGL._bytes import as_8_bit from OpenGL.GL import * from OpenGL.GL import shaders vertex_shader = """#version 150 core in float inValue; out float geoValue; uniform float junk; // J...
import appRoot from 'app-root-path'; import winston from 'winston'; const options = { file: { level: 'info', filename: `${appRoot}/logs/app.log`, handleExceptions: true, json: true, maxsize: 5242880, // 5MB maxFiles: 5, colorize: false, }, console: { level: 'debug', handleExce...
import http from '@/utils/request' // 创建目录 export const createCatalog = (data) => { return http.post('/setting/catalog', data) } // 查询目录列表 export const catalogs = (data) => { return http.get('/setting/catalog', { params: data }) } // 更新目录 export const catalogUpdate = (id, data) => { return http.put('/setting/c...
"""show_xconnect.py show xsconnect parser class supported commands: * show l2vpn xconnect * show l2vpn xconnect brief * show l2vpn xconnect detail * show l2vpn xconnect mp2mp detail """ import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema, \ ...
class MyCircularDeque: def __init__(self, k: int): """ Initialize your data structure here. Set the size of the deque to be k. """ self.head = ListNode(None) self.tail = ListNode(None) self.k = k self.len = 0 self.head.right = self.tail self.t...
// @flow const P5CANVAS_COLORS = [ '232, 105, 156', '255, 198, 115', '128, 128, 255', '105, 232, 194', '234, 255, 128' ]; const P5CANVAS_OPACITY = 0.5; /** * Generic function template for P5Canvas. * * @param {string?} argument * @returns {string} */ export function genericP5function(argume...
#!/usr/bin/env python # # Copyright (c) 2020, Pycom Limited. # # This software is licensed under the GNU GPL version 3 or any # later version, with permitted additional terms. For more information # see the Pycom Licence v1.0 document supplied with this file, or # available at https://www.pycom.io/opensource/licensing ...
// LICENSE : MIT "use strict"; import * as assert from "assert"; import FixerTask from "../task/fixer-task"; import SourceCodeFixer from "./source-code-fixer"; import TaskRunner from "../task/task-runner"; import { TextlintSourceCodeImpl } from "../context/TextlintSourceCodeImpl"; import { isTxtAST } from "@textlint/as...
// // ae_test_utils.h // #pragma once #include <cpp_utils/yas_url.h> namespace yas::ae::test_utils { url test_url(); void create_test_directory(); void remove_contents_in_test_directory(); } // namespace yas::ae::test_utils
class Parrot(): def __init__(self, model_tag="prithivida/parrot_paraphraser_on_T5", use_gpu=False): from transformers import AutoTokenizer from transformers import AutoModelForSeq2SeqLM import pandas as pd from parrot.filters import Adequacy from parrot.filters import Fluency from parrot.fi...
import React from "react"; import Form from "./Form"; function Header() { return ( <header className="header"> <h1>todos</h1> <Form /> </header> ); } export default Header;
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.24 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
from application import create_app app = create_app() if __name__ == "__main__": app.run(host="0.0.0.0")
jQuery(document).ready(function($) { $("#phone").submit(function() { var str = $(this).serialize(); var delay = 3000; $.ajax({ type: "POST", url: "ASTERISK_HOST", data: str, success: function(msg) { if(msg == 'OK') { result = ' Уже звоним :)'; } else { result = msg; } $(...
#ifndef _MACH_H #include_next <mach.h> #include <mach-shortcuts-hidden.h> #ifndef _ISOMAC libc_hidden_proto (__mach_msg_destroy) libc_hidden_proto (__mach_msg) #endif #endif
import logging import numpy as np from abc import ABCMeta, abstractmethod from ..frames.local import to_local, to_tnw log = logging.getLogger(__name__) class Man(metaclass=ABCMeta): """Abstract Maneuver class""" @abstractmethod def check(self): pass class ImpulsiveMan(Man): """Impulsive m...
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
import { actions } from '../actions/configuration'; const initialState = { stack: [], current: null }; export default (state = initialState, action) => { switch (action.type) { case actions.CONFIGURATION_PUSH: return { ...state, current: { name: action.to }, stack: [ ...state.s...
"""Typing helper.""" from typing import TYPE_CHECKING, Optional, Set # pylint: disable=invalid-name if TYPE_CHECKING: from music_assistant.mass import MusicAssistant from music_assistant.models.player_queue import ( QueueItem, PlayerQueue, ) from music_assistant.models.streamdetails im...
var _index=require('../index');var chai=require('chai');var path=require('path');chai.should(); describe('selectors',function(){ it('should get the d2l user from state',function(){ var user=(0,_index.getUser)({ login:{ user:{ d2lUser:{ Identifier:'foo'}, authenticatedUrl:'bar'}}}); user.Identifier.should...
import time import nb_log from test_frame.test_celery.test_celery_app import add, sub t1 = time.time() for i in range(1,20000): # print('生产者添加任务') # print(i) # result = add.delay(i, i * 2) # time.sleep(0.01) result = add.apply_async(args=(i, i * 2),countdown=0) # result = add.apply_async(arg...
# Generated by Django 2.0.5 on 2018-08-01 17:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('trade', '0005_auto_20180801_1704'), ] operations = [ migrations.AlterField( model_name='ordergo...
const exportPatterns = require('../bin/cli-actions/export'); const tap = require('tap'); const wrapAsync = require('../bin/utils').wrapAsync; tap.test('Export ->', t => { t.plan(2); t.test('with options empty', tt => wrapAsync(function*() { try { yield exportPatterns(); } catch (err) { tt.type(err, T...
# For the Avalanche adaptation: ################################################################################ # Copyright (c) 2022 ContinualAI # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms...
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author:...
import Ember from 'ember'; import { LATEX_EXPRESSIONS } from 'gooru-web/config/question'; import { removeHtmlTags, generateUUID, validateSquareBracket } from 'gooru-web/utils/utils'; /** * Rich text editor component * * @module */ export default Ember.Component.extend({ // ---------------------------------...
""" This file offers the methods to automatically retrieve the graph Microbulbifer sp. ZGT114. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--prote...
/* This just represents the non-kernel parts of <linux/quota.h>. Copyright (C) 1998-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publish...
from services.celery import app as celery_app __all__ = ('celery_app',)
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...