text
stringlengths
27
775k
using System; using Microsoft.Maui.Graphics; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using UwpApp = Microsoft.UI.Xaml.Application; using UwpControlTemplate = Microsoft.UI.Xaml.Controls.ControlTemplate; using UwpScrollBarVisibility = Microsoft.UI.Xaml.Controls.ScrollBarVisibility; using WVisibility = ...
#!/bin/bash # Use colors, but only if connected to a terminal, and that terminal # supports them. (From oh-my-zsh/tools/install.sh) if which tput >/dev/null 2>&1; then ncolors=$(tput colors) fi if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then RED="$(tput setaf 1)" GREEN="$(tput setaf 2)" ...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:orgonetchatappv2/models/UserModel.dart'; class FirebaseHelper { static Future<UserModel?> getUserModelById(String uid)async{ UserModel? userModel; DocumentSnapshot docSnap = await FirebaseFirestore.instance.collection("users").doc(uid)...
using System; using System.Collections.Generic; using System.Text; namespace ElementIoT.Particle.Infrastructure.Model.Handling { public interface IEventHandlerRegistry { void Register(IEventHandler handler); } }
package jaskell.parsec import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers /** * TODO * * @author mars * @version 1.0.0 * @since 2020/05/11 10:50 */ class AheadSpec extends AnyFlatSpec with Matchers { import Txt.{text, space} import Combinator.ahead "Simple" should "E...
const colors = require('colors') // eslint-disable-line no-unused-vars const moment = require('moment') const { logo, welcomeText } = require('../other/text') const NetcatServer = require('netcat/server') const HiveInterface = require('./hive') const { broadcast } = require('./utilities') const fs = require('fs') const...
mapdive.LooseState = function() { var stateStartTime = 0; var self = {}; var hasSentCloudMsg=false; self.setActive = function() { sendMessage( {mapzoom : "off"} ); stateStartTime = now(); viewState.player.parachute=now(); viewState.player.trails=0; setCameraMode("end-loose1", 4); hasSentCloudMsg=false...
"Create AtomicSolution for SDE." function Solutions.AtomicSolution(equation::AbstractEquationSDE{DT,TT}) where {DT,TT} AtomicSolutionSDE(equation.t₀, equation.q₀[begin], zeros(DT,equation.m), zeros(DT,equation.m)) end "Create AtomicSolution for SDE." function Solutions.AtomicSolution(solution::SolutionSDE{AT,TT})...
<?php namespace Ubermanu\Email\Console\Command; use Magento\Developer\Model\Config\Source\WorkflowType; use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Phrase; use Magento\Store\Model\Store; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; us...
package no.nav.syfo.config import no.nav.syfo.kafka.NAV_CALLID import org.slf4j.MDC import org.springframework.core.annotation.Order import org.springframework.http.HttpRequest import org.springframework.http.client.ClientHttpRequestExecution import org.springframework.http.client.ClientHttpRequestInterceptor import o...
/* * MIT License * * Copyright (c) 2020-present Cloudogu GmbH and Contributors * * 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 r...
// NOTE: This file is not used it production // It's just here to allow elm-live to work (`yarn memberui`) import { notifyAuthStatus } from "../auth"; export { notifyAuthStatus } from '../auth'; var app = Elm.Flux.MemberUI.Main.fullscreen(); notifyAuthStatus(app); //# sourceMappingURL=scripts.js.map
"use strict"; exports.__esModule = true; exports.StatementExpressionList = void 0; var statement_expression_list_children_model_1 = require("./statement-expression-list-children.model"); var location_model_1 = require("./location.model"); var StatementExpressionList = /** @class */ (function () { function Statement...
// Copyright 2017 Google Inc. All rights reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
package com.blueberrysolution.pinelib19.sqlite.exposed import org.jetbrains.exposed.sql.* import org.jetbrains.exposed.sql.transactions.transaction import org.jetbrains.exposed.sql.SchemaUtils.create import org.jetbrains.exposed.sql.SchemaUtils.drop class ExposedTest { fun test(){ Database.connect("jdbc:h...
package ratelimiter import ( "testing" "time" "github.com/axiaoxin-com/goutils" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" ) func TestGinMemRatelimiter(t *testing.T) { gin.SetMode(gin.ReleaseMode) r := gin.New() r.Use(GinMemRatelimiter(GinRatelimiterConfig{ TokenBucketConfig: func(c *g...
// TARGET_BACKEND: JVM_IR // FILE: A.java public class A { @Override public String toString() { return "O"; } } // FILE: B.java public class B { @Override public String toString() { return "K"; } } // FILE: main.kt fun test(x: Any): String { return when (x) { is A -...
import { I18nResolver } from '../index'; export class QueryResolver implements I18nResolver { constructor(private keys: string[]) {} resolve(req: any) { let lang: string; for (const key of this.keys) { if (req.query != undefined && req.query[key] !== undefined) { lang = req.query[key]; ...
using EdFi.SampleDataGenerator.Core.Config; namespace EdFi.SampleDataGenerator.Core.Helpers { public static class SchoolProfileHelpers { public static string GetSchoolEntityId(this ISchoolProfile schoolProfile) { return $"SCOL_{schoolProfile.SchoolId}"; } } }
package control.free import cats.free.{Free, Inject} import cats.{Id, ~>} import CounterA._ sealed trait CounterA[A] object CounterA { final case class Set(n: Int) extends CounterA[Unit] final case class Add(n: Int) extends CounterA[Unit] final case class Subtract(n: Int) extends CounterA[Unit] final case ob...
#!/usr/bin/env bash echo "build and uploadArchives..." ./gradlew uploadArchives -PRELEASE_REPOSITORY_URL=file:///debug/ -PSNAPSHOT_REPOSITORY_URL=file:///debug/ if [ $? -eq 0 ] then echo "deploy successful!" exit 0 else echo "deploy failed!" exit 1 fi
export * from './PostHeader'; export * from './PostBody';
#!/bin/bash set -eo pipefail shopt -s nullglob # # populates an environment variable from a file useful with docker secrets # secretDebug() { if [ ! -z "$ENV_SECRETS_DEBUG" ]; then echo -e "\033[1m$@\033[0m" echo fi } getSecrets () { for env_var in $(printenv | cut -f1 -d"=" | grep _FILE) do name...
#pragma once #include "core/utils/RingBuffer.h" #include "core/midi/MidiMessage.h" #include <array> #include <algorithm> #include <cstdint> #include <cinttypes> class RecordHistory { public: enum class Type : uint8_t { NoteOn, NoteOff, }; struct Event { uint32_t tick; Ty...
use std::collections::HashMap; use ryson::{Json,Jerr}; #[test] fn accepts_null(){ let text = String::from("null"); let json = Json::parse(&text).unwrap(); assert_eq!(json,Json::Null); } #[test] fn accepts_true(){ let text = String::from("true"); let json = Json::parse(&text).unwrap(); assert_e...
# 基于Facenet和SVM的实时人脸识别 详细说明参考文章[SVM、Pickle vs HDF5、性能和日志](https://www.imooc.com/article/286128)或[项目Wiki](https://github.com/seed-fe/face_recognition_using_opencv_keras_scikit-learn/wiki)。 另有Facenet+KNN的方案参考[master分支](https://github.com/seed-fe/face_recognition_using_opencv_keras_scikit-learn/tree/master),简单CNN的方案参考[us...
Requirements: ------------- * Python >= 2.7.3 (NOT Python 3) * virtualenv * pip Steps: ------ * Setup the virtual environment. ```virtualenv chowk_env``` * Activate it ```./chowk_env/bin/activate``` * Install all required libraries inside it ```pip install -r requirements.txt``` * Put your Kannel & RapidPro serv...
import React, { useState, useEffect } from 'react' import { useMutation } from '@apollo/react-hooks' import { makeStyles } from '@material-ui/styles' import PropTypes from 'prop-types' import Box from '@material-ui/core/Box' import Paper from '@material-ui/core/Paper' import clsx from 'clsx' import Typography from '@ma...
!SLIDE subsection # Docker !SLIDE center ![docker_logo](docker_logo.png) !SLIDE # in 5 minutes !SLIDE small # containers for your programs !SLIDE small # to isolate from other programs !SLIDE small # to escape "dependency hell" !SLIDE small # *one* container for *one* program !SLIDE # **for one Unix process** !...
# Services Use this folder to store your services, such as HTTP, GraphQL and Websocket.
package walkmc.graphical.engines import org.bukkit.inventory.* import walkmc.* import walkmc.graphical.* /** * A toggle engine that's will toggle the filter state of a filter graphical. * * If the graphical owner of this engine is not a [FilterGraphical], nothing will be done. */ open class ToggleFilterEngine : T...
<?php namespace Spydemon\CatalogProductImportCategoryByID\Exception; use Exception; use Magento\Framework\Exception\LocalizedException; /** * Class CategoryNotFoundException */ class CategoryNotFoundException extends LocalizedException { /** * CategoryNotFoundException constructor. * * @param Ex...
#!/bin/sh # # CIP Core tiny profile # A helper script to easily run images on QEMU targets # # Copyright (c) 2019 TOSHIBA Corp. # # SPDX-License-Identifier: MIT # usage() { echo "Usage: ${0} <MACHINE> [QEMU_OPTS]" exit 1 } MACHINE="${1}" if [ -z "${MACHINE}" ]; then usage fi DEPLOY_DIR=build/tmp/deploy/images/${M...
class Task { Task(String content) { this.content = content; isDone = false; } bool isDone; String content; }
#!/bin/bash set -e BASEDIR=$PWD REBUILD=false UPLOAD=false while [[ $# -gt 0 ]] do key="$1" case $key in -r|--rebuild) REBUILD=true ;; -u|--upload) UPLOAD=true ;; *) echo "Unknown command line argument $1" # unknown option exit 1 ;; esac shift # past argument or value...
const baseURL = process.env.REACT_APP_API_URL; export const urlChallenges = `${baseURL}/challenges`;
using System.Collections.Generic; using System.Linq.Expressions; using PrtgAPI.Parameters; namespace PrtgAPI.Linq.Expressions { abstract class QueryHelper<TObject> { public abstract Expression FlagKeep(Expression expr); public abstract List<List<SearchFilter>> AdjustFilters(List<SearchFilter>...
import { STORAGE_PREFIX } from "@/constants"; import { DataState } from "@/types/enums"; import { loadFromStorage, removeFromStorage, saveToStorage, } from "@/utils/storage"; import Subscribable from "./Subscribable"; const DEFAULT_VERSION = 1; interface IStoreEntry<T> { state: DataState; version?: number; ...
import { CollectionViewer, DataSource } from "@angular/cdk/collections"; import { Team } from "../models/team.model"; import { catchError, finalize } from "rxjs/operators"; import { of, Observable, BehaviorSubject } from "rxjs"; import { TeamService } from "./team.service"; import OrderByDirection = firebase.firestore...
package com.z80h3x.kezd_kov.ui.add_char import com.z80h3x.kezd_kov.data.generic.BaseCharacter sealed class AddCharViewState object Form : AddCharViewState() object Loading : AddCharViewState() object CharacterFailed : AddCharViewState() data class AddCharReady(val characterId: Long) : AddCharViewState() data class...
require 'logger' module Advansible # class Logger # def initialize(logfile = $stdout) # @instance = ::Logger.new(logfile) # @instance.progname = 'advansible' # # :nocov: # @instance.formatter = proc do |severity, datetime, progname, msg| # "#{severity} [#{datetime}]: #{msg}\n" #...
A Simple Solution is to keep an array of size k. The idea is to keep the array sorted so that the k’th largest element can be found in O(1) time (we just need to return first element of array if array is sorted in increasing order) How to process a new element of stream? For every new element in stream, check if the ne...
package prometheus type kialiMetric struct { name string istioName string isHisto bool useErrorLabels bool } var ( kialiMetrics = []kialiMetric{ kialiMetric{ name: "request_count", istioName: "istio_request_count", isHisto: false}, kialiMetric{ name: "reques...
package botkop.numsca import botkop.{numsca => ns} import org.scalatest.{FlatSpec, Matchers} class NumscaSpec extends FlatSpec with Matchers { val ta: Tensor = ns.arange(10) val tb: Tensor = ns.reshape(ns.arange(9), 3, 3) val tc: Tensor = ns.reshape(ns.arange(2 * 3 * 4), 2, 3, 4) "A Tensor" should "transpos...
package com.developi.wink.template.api; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import com.ibm.commons.util.io.json.JsonJavaObject; import com.ibm.domino.osgi.core.context.ContextInfo; import lotus.domino.NotesException; import lotus.domin...
alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.7.1-complete.jar:$CLASSPATH" org.antlr.v4.Tool' antlr4 -Dlanguage=JavaScript src/Hplsql.g4 -visitor
#!/usr/bin/env ruby require_relative "../challenge_utils" include ChallengeUtils ## SOLUTION BEGINS def solve(input) duplicate_counts = Hash.new(0) input.map do |id| id.chars.sort_by(&:ord).group_by {|c| c}.values.map(&:size).uniq.select {|l| l.between?(2,3)}.each do |l| duplicate_counts[l] += 1 end...
require 'spec_helper' describe ScopedSerializer::Scope do let(:scope) { ScopedSerializer::Scope.new(:default) } describe '.from_hash' do it 'should initialize a scope from hash' do scope = ScopedSerializer::Scope.from_hash({ :attributes => [:title, :created_at], :associations => [:user...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using TanMiniToolSet.Common; ///<summary> ///项目名称:Diana轻量级开发框架 ///版本:0.0.1版 ///开发团队成员:胡凯雨,张梦丽,艾美珍,易传佳,陈祚松,康文洋,张婷婷,王露,周庆,夏萍萍,陈兰兰 ///模块和代码页功能描述:第三方登录工厂类 ///最后修改时间:2018/1/22 /// </summary> namespace common.ThreeLogin { public class T...
package com.genymobile.scrcpy; public final class DisplayInfo { private final Size size; private final int rotation; private final int type; private String name; private final int ownerUid; private String ownerPackageName; public DisplayInfo(Size size, int rotation, int type, String name, ...
from alento_bot.storage_module.formats.save_format import SaveLoadConfig from alento_bot.storage_module.formats.config_format import ConfigData import logging logger = logging.getLogger("main_bot") class BaseCache(SaveLoadConfig, path="you_shouldnt_see_this_cache.yaml"): def __init__(self, config: ConfigData): ...
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50720 Source Host : localhost:3306 Source Database : school Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2019-06-13 18:45:13 */ -- 创建数据库并使用 CREATE DATABASE `school` ...
import { axios } from "../helpers/auth"; import { BASE_URL } from "./../constants/Config"; const config = { headers: { "Content-Type": "multipart/form-data" }, }; // CREATE AN INSTANCE OF AXIOS const axiosInstance = axios.create({ baseURL: BASE_URL, timeout: 100000, }); axiosInstance.defaults.headers.common = ax...
Ext.define('VIV.view.admin.roles.RolesGrid', { extend: 'Ext.grid.Panel', xtype: 'roles-grid', width: '100%', border: false, autoScroll: true, features: [{ groupHeaderTpl: 'Modulo: {name}', ftype: 'groupingsummary', collapsible: false }], initComponent: func...
import React from 'react'; interface ListviewProps { items: JSX.Element[]; } interface ListviewState { // } export class Listview extends React.Component<ListviewProps, ListviewState> { public render() { if (this.props.items.length < 1) { return <div>There is no items!</div>; ...
#include <stdio.h> #include "esp_system.h" #include "esp_wifi.h" #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h" #include "freertos/task.h" #include "freertos/timers.h" #include "mdf_common.h" #include "unity.h" #define WIFI_SSID CONFIG_WIFI_SSID #define WIFI_PASSWORD CONFIG_WIFI_PSWD static const ...
use crate::api::use_context; use crate::codegen_traits::LuaApiTable; use crate::component::{ Camera, GlyphRenderer, GlyphRendererConfig, LuaComponentCamera, LuaComponentGlyphRenderer, LuaComponentNinePatchRenderer, LuaComponentSpriteRenderer, LuaComponentTilemapRenderer, LuaComponentUIScaler, NinePatchRende...
#!/bin/bash set -e IFS='|' profileName=${AWS_PROFILE:-default} FLUTTERCONFIG="{\ \"ResDir\":\"./lib/\",\ }" AMPLIFY="{\ \"projectName\":\"amplifyDataStoreInteg\",\ \"envName\":\"test\",\ \"defaultEditor\":\"code\"\ }" FRONTEND="{\ \"frontend\":\"flutter\",\ \"config\":$FLUTTERCONFIG\ }" AWSCLOUDFORMATIONCONFIG="{\...
#!/usr/bin/env python __author__ = "Bharat Medasani" __copyright__ = "Copyright 2014, The Materials Project" __version__ = "1.0" __maintainer__ = "Bharat Medasani" __email__ = "mbkumar@gmail.com" __status__ = "Development" __date__ = "Jul 24, 2016" import os import logging import logging.config from monty.serializat...
import sbt._ import com.twitter.sbt._ class NodeRegistry(info: ProjectInfo) extends StandardProject(info) { val specs = "org.scala-tools.testing" % "specs" % "1.6.2.1" val vscaladoc = "org.scala-tools" % "vscaladoc" % "1.1-md-3" val configgy = "net.lag" % "configgy" % "1.6.1" val xrayspecs = "com.twitter" % "...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; using RealmiusAdvancedExample.Model; using Xamarin.Forms; namespace RealmiusAdvancedExample.ViewModel { public class AuthorisationPageViewModel : RootViewModel { ...
#!/usr/bin/env node import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import DirectoryTree from './components/DirectoryTree'; import { initConfig, getConfig } from './config'; import * as FSUtils from './fsUtils'; const mdFileTree = async (dirPath, linkPrefix, depth = ...
package com.vlad1m1r.bltaxi.about import android.app.Application import android.os.Build import androidx.fragment.app.testing.launchFragmentInContainer import androidx.test.platform.app.InstrumentationRegistry import com.nhaarman.mockitokotlin2.mock import com.nhaarman.mockitokotlin2.verify import com.nhaarman.mockito...
import { randBetween } from "./SensorDataUtil"; class KeyEvent { time: number; idCharCodeSum: number; longerThanBefore: boolean; constructor(time: number, idCharCodeSum: number, longerThanBefore: boolean) { this.time = time; this.idCharCodeSum = idCharCodeSum; this.longerThanBe...
#!/bin/sh set -eu : "${SOURCECRED_REMOTE:=git@github.com:sourcecred/sourcecred.git}" : "${SOURCECRED_REF:=origin/master}" : "${DEPLOY_REMOTE:=git@github.com:sourcecred/sourcecred.github.io.git}" : "${DEPLOY_BRANCH:=master}" : "${DEPLOY_CNAME_URL:=sourcecred.io}" toplevel="$(git -C "$(dirname "$0")" rev-parse --show-t...
return { zh_CN: "Simplified Chinese", en_US: "English", ja_JP: "Japanese" };
package dance_strategy import "fmt" func Waltz() { fmt.Println("I'm dancing waltz") }
from .helpers import update_mapping, proc_mapping from .ScopeObjs import ScopeTransformer from sklearn.preprocessing import OneHotEncoder import pandas as pd class BPtTransformer(ScopeTransformer): def fit(self, X, y=None, mapping=None, fit_index=None, **fit_params): # Need the output from a...
#| This file is a part of Courier (c) 2019 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (in-package #:courier) (defun make-tag (campaign &key title description (save T)) (let ((campaign (ensure-campaign campaign))) (check-title-exists 'tag title (db:query (:a...
<?php namespace DeltaCli\Extension\WordPress\Script; use DeltaCli\Project; use DeltaCli\Script; use Symfony\Component\Console\Input\InputOption; class Install extends Script { private $force = false; public function __construct(Project $project) { parent::__construct( $project, ...
{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} -- | The multi-valued version of mtl's RWS / RWST module Control.Monad.Trans.MultiRWS.Lazy ( -- * MultiRWST MultiRWST(..) , MultiRWSTNull , MultiRWS -- * MonadMulti classes , MonadMul...
<?php /** * This prints all modules and their providers. * The list can be copied by gdo6 authors to Core/ModuleProviders.php */ use GDO\File\Filewalker; use GDO\Util\Common; use GDO\Util\Strings; # Use gdo6 core include "GDO6.php"; include "protected/config.php"; global $mode; /** @var $argv string **/ $mode = @...
--- title: Slicing volume data --- We can slice our 3D Fermi map data in order to get a particular plane using the `plane_slice` function. Say, we need a constant energy cut. ```python showLineNumbers import arpespythontools as arp data, energy, theta, phi = arp.load_ses_map('sample_map_data.zip') # We want i...
using Acr.UserDialogs; using Xamarin.Forms; // ReSharper disable ExplicitCallerInfoArgument namespace SchinkZeShips.Core.Infrastructure { public abstract class ViewModelBase : NotifyPropertyChangedBase { /// <summary> /// Constant for the PushView request /// </summary> public const string NavigationPu...
import 'package:flutter/material.dart'; import 'package:rnr/style/styles.dart'; import 'gender.dart'; import 'about.dart'; import 'package:rnr/model/config.dart'; class SettingPageWidget extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('设置...
/* * Copyright © 2021 Michael Smith <mikesmiffy128@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS ...
class BurritoController < ApplicationController # this controller is/should only be accessed by admin before do # Check if User exists & is logged in if !current_user redirect "/" end end get "/burritos/new" do # should have proper admin check here if current_user.username == "sam_...
import { getRelativePathTo, getRoot } from '../src'; function setup(path: string): { path: string; spy: jest.SpyInstance } { const spy = jest.spyOn(process, 'cwd'); spy.mockReturnValue(path); return { path, spy }; } describe('getRoot', () => { it('returns the root path', () => { const { path, spy } = setu...
package com.wavesplatform.dex.api.http.routes.v0 import akka.http.scaladsl.marshalling.ToResponseMarshallable import akka.http.scaladsl.server._ import akka.stream.Materializer import com.wavesplatform.dex.api.http.directives.HttpKamonDirectives._ import com.wavesplatform.dex.api.http.directives.ProtectDirective impor...
module SearchForLettersSpec (spec) where import SearchForLetters (search) import Test.Hspec spec :: Spec spec = do it "example tests" $ do search "a **& bZ" `shouldBe` "11000000000000000000000001" search "" `shouldBe` "00000000000000000000000000" search "\144748" `shouldBe` "00000000000000000000000000"...
#/usr/bin/env bats load test_helper @test "Verify that AppArmor is enabled on the kernel command line" { run bash -c "grep 'apparmor=1' /proc/cmdline" [ "$status" -eq 0 ] } @test "Verify that AppArmor is enabled" { run bash -c "apparmor_status | grep 'apparmor module is loaded'" [ "$status" -eq 0 ] } @test ...
require 'qtrix/logging' require 'qtrix/persistence' require 'qtrix/queue_store' require 'qtrix/override_store' require 'qtrix/queue' require 'qtrix/override' require 'qtrix/matrix' require 'qtrix/host_manager' require 'qtrix/locking' ## # Facade into a dynamically adjusting global worker pool that auto # balances work...
/** 入驻小区 **/ (function (vc) { var DEFAULT_PAGE = 1; var DEFAULT_ROWS = 10; vc.extends({ data: { groupBuyManageInfo: { products: [], total: 0, records: 1, moreCondition: false, productId: '', ...
do $$ begin if exists (select * from system_settings where key = 'shopwood') then update system_settings set value = '1' where key = 'wood'; else insert into system_settings (key, value) values('shopwood', '1'); end if; if exists (select * from system_settings where key = 'shopbronze') then update system_sett...
"use strict"; var parse5 = require('parse5'); var serializer = new parse5.TreeSerializer(require('./documentAdapter')); exports.domToHtml = function(dom) { if (dom._toArray) { // node list dom = dom._toArray(); } if (typeof dom.length !== "undefined") { var ret = ""; for (var i = 0, len = dom.le...
require 'test_helper' require 'e_courier/services/fetch_emails' require 'e_courier/models/email' require 'net/imap' require 'time' module ECourier class FetchEmailsTest < MiniTest::Test @@service = FetchEmails.new @@service.execute def test_fetches_emails assert_kind_of Email, @@service.emails.first e...
package edu.uoc.elc.spring.lti.tool; import com.fasterxml.jackson.databind.ObjectMapper; import edu.uoc.lti.namesrole.ContentTypes; import org.springframework.http.MediaType; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import java.nio.charset.StandardCharsets; import java.util....
namespace MobileDevApp.RemoteProviders.Models { public class MessageInput { public int ReceiverID { get; set; } public int? ChatID { get; set; } public string Text { get; set; } } }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
C C $Id: pj23dp.f,v 1.5 2008-07-27 00:17:12 haley Exp $ C C Copyright (C) 2000 C University Corporation for Atmospheric Research C All Rights Reserved C C The use of this Software is governed by a License Agreement. C SUBROUTINE PJ23DP (COORD,CRDIO,INDIC) C C -- M O D I F I E...
require 'rails_helper' RSpec.describe User, type: :model do context 'ActiveRecord associations' do it 'has many articles' do expect(User.reflect_on_association(:articles).macro).to be(:has_many) end it 'does not has just one article' do expect(User.reflect_on_association(:articles).macro).no...
import '../../styles/project/experiment-detail.scss' import { Q_FUNC_TYPE_OPTIONS, SCALER_OPTIONS } from '../../constants' import React, { useContext, useState } from 'react' import { Button } from '../forms' import { ConfirmationDialog } from '../ConfirmationDialog' import { DownloadPolicyDialog } from './Download...
package mutex import ( "testing" "time" "github.com/go-redis/redis/v8" "github.com/go-redsync/redsync/v4" "github.com/go-redsync/redsync/v4/redis/goredis/v8" "github.com/stretchr/testify/require" ) func TestRedisMutex(t *testing.T) { r := NewRedis(redsync.New(goredis.NewPool(redis.NewClient(&redis.Options{}))...
/* @flow */ import test from 'tape'; import { times } from '../../src/utils'; test('utils/index', (t) => { t.test('times', (q) => { const result = times(5, (i) => `${i}t`); q.deepEqual(result, ['1t', '2t', '3t', '4t', '5t']); q.end(); }); t.end(); });
@model DancingGoat.Models.CoffeesFilterViewModel <h4>@Resources.DancingGoat.Coffees_CoffeeProcessing</h4> @for (var i = 0; i < Model.AvailableProcessings.Count; ++i) { <span class="checkbox js-postback"> @Html.HiddenFor(m => m.AvailableProcessings[i].Value) @Html.CheckBoxFor(m => m.AvailableProce...
package com.d3.commons.notary import com.d3.commons.model.IrohaCredential import com.d3.commons.sidechain.SideChainEvent import com.d3.commons.sidechain.iroha.consumer.IrohaConsumerImpl import com.d3.commons.sidechain.iroha.consumer.IrohaConverter import com.d3.commons.util.createPrettySingleThreadPool import com.gith...
App: Wedding --- Make sure to split up Wedding & Giftery clearly. === General === UserAuth via User (old table) === Wedding === WeddingInformation: - id: PrimaryKey - userId: ForeginKey - markdownInfo: String - date: String Timeline: - id: PrimaryKey - wedding: ForeignKey - time: String (datestamp?) - markdown...
2020年12月08日01时数据 Status: 200 1.郑爽回应直播失控 微博热度:846920 2.成都确诊病例家中冰箱和门把手阳性 微博热度:533550 3.李现 我就是喜欢看小姐姐 微博热度:387751 4.邻居称坠楼女婴已是二次坠楼 微博热度:384302 5.潘成然被公司解约 微博热度:309180 6.毛戈平又出裸妆大法 微博热度:291956 7.印度已有超300人感染不明原因怪病 微博热度:243837 8.成都再新增1例确诊病例 微博热度:237403 9.华春莹感谢世界各国祝贺嫦五奔月 微博热度:221005 10.梅婷7岁女儿登杂志封面 微博热度:220244 ...
# This mixin provides shared behavior for experiments. Includers must implement # `enabled?` and `publish(result)`. # # Override Scientist::Experiment.new to set your own class which includes and # implements Scientist::Experiment's interface. module Scientist::Experiment # Whether to raise when the control and cand...
<?php namespace Symfony\Cmf\Bundle\FileEditorBundle\Controller; use Puli\Repository\Api\ResourceRepository; use Symfony\Component\Templating\EngineInterface; use Symfony\Cmf\Bundle\ResourceBundle\Registry\ContainerRepositoryRegistry; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\R...