text
stringlengths
27
775k
'use strict'; define(function(require) { var Super = require('./realtime'), _ = require('underscore'), User = require('models/user'); var Model = Super.extend({ name: 'session' }); Model.prototype.getUser = function() { return this.getAndCache('user', User); }; Model.pro...
# Contributing Fork, then clone the repo: git clone git@github.com:your-username/grape_token_auth.git Set up your machine: ./bin/setup Make sure the tests pass: ./bin/rspec Make your changes and add tests for your change. I use [rubocop][rc] with the default style guide for consistency. Make sure th...
--- mediawiki: 3D_Filters title: 3D Filters --- ## 3D Filters 3D filtering using ellipsoidal neighbourhood, as part of the [3D ImageJ Suite](/plugins/3d-imagej-suite). ## Author {% include person id='mcib3d' %} Matthias Labschütz contributed a fast version for isotropic kernels (for min, max and mean filtering) #...
from rest_framework import serializers from rest_framework.exceptions import ValidationError from rest_framework.validators import UniqueTogetherValidator from digests.models import News from users.models import User, UserDigests, UserFavorite from users.settings import EMAIL_VERIFICATION class EmailSerialzer(serial...
//! Models related to the gateway. pub mod activity; pub mod presence;
package org.radargun.service; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.nio.file.FileSystems; import java.util.*; import com.hazelcast.cluster.MembershipEvent; import com.hazelcast.cluster.MembershipListener; import com.ha...
""" struct NestedNameSpecifier <: Any Hold a `clang::NestedNameSpecifier` opaque pointer. """ struct NestedNameSpecifier ptr::CXNestedNameSpecifier end Base.unsafe_convert(::Type{CXNestedNameSpecifier}, x::NestedNameSpecifier) = x.ptr Base.cconvert(::Type{CXNestedNameSpecifier}, x::NestedNameSpecifier) = x
namespace ASTRA.EMSG.Common.Enums { public enum Availability { Available, Unavailable } }
<?php namespace App\Http\Livewire\Admin\StorageInput; use App\Models\StorageInput; use Illuminate\Database\Eloquent\Builder; use Rappasoft\LaravelLivewireTables\DataTableComponent; use Rappasoft\LaravelLivewireTables\Views\Column; /** * Class StorageInputTable. */ class StorageInputTable extends DataTableComponent...
package kube import ( "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" ) type Client struct { kubeconfig *string cs *kubernetes.Clientset cfg *rest.Config } func NewClient(kubeconfig *string) (*Client, error) { cfg, err := RESTConfig(kubeconfig) if err !...
package io.kinference.compiler.generation.operators.logical import com.squareup.kotlinpoet.CodeBlock import io.kinference.compiler.generation.operators.OperatorGenerationInfo import io.kinference.compiler.generation.utils.DataTypeInfo import io.kinference.operators.logical.Greater import kotlin.time.ExperimentalTime ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using NATUPNPLib; using NETCONLib; using NetFwTypeLib; using Cyberarms.IntrusionDetection.Shared; namespace Cyberarms.IntrusionDetection { internal class FirewallPolicyManager { private INetFwPolicy2 firewallPolicyManag...
// Copyright 2020-2020 Juan Villacorta // // 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...
var marker; /*jshint browser:true */ /*global $ */(function() { "use strict"; /* hook up event handlers */ function register_event_handlers() { adicionarMarcador(-20,919, -46,981, 'Original Choop', 'OC', 'img/beer.png'); /* button Button */ $(document).on("click", "#btnPegarLocalizacao...
import { Component, OnInit } from "@angular/core"; import { ActivatedRoute } from "@angular/router"; import { ErrorService } from "@hb42/lib-client"; import { ConfigService } from "../config/config.service"; // FIXME kann wieder raus, sobald das interface in lib-client eingebaut ist interface ErrorMsg { title: strin...
package build; import org.denom.build.*; import org.denom.log.*; class BuildSendData { public static void main( String[] args ) { ILog log = new LogConsole(); JarBuilder jb = new JarBuilder( new LogConsole(), "SendData.jar" ); jb.addDirectory( ".bin" ); jb.addDirectory( "../../lib/libDenomCommon/.bin" ); ...
package graphql import "github.com/Albert221/mpra/domain" type Product struct { product *domain.Product } func (p *Product) Name() string { return p.product.ProductName } func (p *Product) CommonName() *string { return &p.product.CommonProductName } func (p *Product) Type() string { return p.product.Kind } fu...
/* * Copyright (C) 2022 Marcel Haßlinger * * 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 agree...
package com.andro.indie.school.pokedex.domain.usecase.detail import com.andro.indie.school.core.exception.Failure import com.andro.indie.school.core.functional.Either import com.andro.indie.school.core.interactor.UseCase import com.andro.indie.school.pokedex.domain.model.PokemonDetailInfo import com.andro.indie.school...
import com.genexus.*; public final class StructSdtB602_SD02_DB_LIST_DBItem implements Cloneable, java.io.Serializable { public StructSdtB602_SD02_DB_LIST_DBItem( ) { gxTv_SdtB602_SD02_DB_LIST_DBItem_Name = "" ; } public Object clone() { Object cloned = null; try { clon...
package com.bytesfly.mybatis.annotation; import com.bytesfly.mybatis.config.MybatisPlusConfig; import java.lang.annotation.*; /** * 使用@AutoResultMap注解的实体类 * 自动生成{auto.mybatis-plus_类名}为id的resultMap * {@link MybatisPlusConfig#initAutoResultMap()} */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementTy...
package it.mgt.util.json2jpa; class GlobMatcher { static boolean match(String expression, String path) { if (expression.equals("**")) { return true; } else if (expression.endsWith("**")) { expression = expression.substring(0, expression.length() - 3); i...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; class PagesController extends Controller { /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function...
using DevExpress.XtraEditors.Repository; using DevExpress.XtraEditors.ViewInfo; namespace CIIP.Module.Win.Editors { public class TokenEditViewInfoV2 : TokenEditViewInfo { public TokenEditViewInfoV2(RepositoryItem item) : base(item) { } } }
// LEREN DIGITAL HUMAN // // Created by Ronald Zad Muhanguzi. // 2021, All rights reserved. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. i...
package com.minimalist.weather.kotlin.feature.adapter.entity class WeatherDetail(var iconResourceId: Int, var key: String?, var value: String?)
<?php include "config.php"; check_from_weblab(); echo json_encode(array('should_finish' => 10));
#ifndef __ARRAY_DELETER__H #define __ARRAY_DELETER__H // ---------------------------------------------------------------------------! namespace YumaTest { /** * Template class that provides a deleter that can be passed to * a shared_ptr to automatically free arrays allocated using new[]. * * \tparam T The type of...
package com.hazelcast.spark.connector.rdd import com.hazelcast.client.HazelcastClientNotActiveException import com.hazelcast.client.cache.impl.ClientCacheProxy import com.hazelcast.client.proxy.ClientMapProxy import com.hazelcast.core.HazelcastInstance import com.hazelcast.spark.connector.conf.SerializableConf import ...
1 4 35 62 69 78 79 94 97 105 121 122 141 2 7 36 63 68 76 91 118 139 3 5 6 64 69 78 88 127 131 142 4 1 21 79 80 94 130 5 2 3 7 33 34 43 59 64 68 102 6 1 42 64 69 107 110 118 122 127 137 141 7 2 19 61 64 68 72 89 112 125 8 12 14 36 48 56 61 72 111 123 150 9 13 17 18 37 98 126 140 10 46 62 75 86 90 92 97 108 132 11 1 4 20...
CREATE TABLE acl_schd ( source character(1) NOT NULL, acl_id bigint, flight_id bigint, carrier_id bigint, leg_id bigint, airline_iata character(2), airline_icao character(3), flightnumber character varying(5), codeshare integer, operating_flightnumber character varying(10), flight_date date, std...
package com.github.zuihou.authority.api; import com.github.zuihou.authority.api.hystrix.UserApiFallback; import com.github.zuihou.base.R; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.*; import java.io.Serializable; import java.util.List; import java.util.Map; ...
require "plist" require "linter/manifest_linter" module Playgroundbook # A linter for verifying the contents of a page's Manifest.plist class PageManifestLinter < ManifestLinter SUPPORTED_LIVE_VIEW_MODES = %w(VisibleByDefault HiddenByDefault).freeze def lint super() live_view_mode = manifest_...
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Rack::Session::SDBM do before do @session_key = Rack::Session::SDBM::DEFAULT_OPTIONS[:key] @path = '/tmp/test-session.sdbm' @dbm = SDBM.new(@path) @increment_mockapp = lambda do |env| env['rack.session']['counter'] ||=...
using System.Collections.Generic; using System.IO; using Xe.BinaryMapper; using OpenKh.Common.Utils; namespace OpenKh.Bbs { public class Olo { private const int MagicCode = 0x4F4C4F40; // Always @OLO public class Header { [Data] public int MagicCode { get; set; } ...
--- templateKey: blog-post title: What the latests CABC findings point too?/SmileFM date: 2020-06-23T10:03:42.377Z description: Stuart Jones unpacks the results from a recent Protest report...what does this point too? A trend? featuredpost: true featuredimage: /img/algoa.png tags: - Media Coverage --- [Listen to fu...
# Test Mod Please Ignore A [Raft](https://raft-game.com/) mod to test mod icons
package pflagx import ( "fmt" "github.com/spf13/pflag" ) // TransformerFunc is a func that can be registered via RegisterTransformerFunc // to transform flag values before they are set. type TransformerFunc func(val string) string type transformingValue struct { pflag.Value fn TransformerFunc } func newTransfo...
exports.node = { name: 'Impôt sur les sociétés', modules: [ ] } exports.links = [ 'impots' ]
package com.brins.lightmusic.ui.fragment.discovery import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.brins.lightmusic.BaseApplication import com.brins.light...
package weco.api.items.services import grizzled.slf4j.Logging import weco.sierra.http.SierraSource import weco.api.stacks.models.SierraItemIdentifier import weco.catalogue.internal_model.identifiers.{IdState, IdentifierType} import weco.catalogue.internal_model.locations.{ AccessCondition, AccessMethod, Physical...
json.pages do json.current_page pages[:current_page] json.total_pages pages[:total_pages] end
import numpy as np from unittest import TestCase from ..base import e, tau class EFunctionTest(TestCase): def test_create_any_canonical_vector(self): actual = e(3, 10) self.assertEqual(actual.shape, (10, 1)) self.assertEqual(actual[3], 1) class TauFunctionTest(TestCase): def test_id...
#!/bin/sh rm -f test test.out test.exe gcc -DG_BASIC_ABBREV -Os -fdce -pipe -std=c11 -Wall -Wextra -pedantic -g g_algorithm.c test.c -o test 2>&1
Set Serveroutput On Size Unlimited format truncated set linesize 10000 set echo off create or replace package demo_doc_reporter1 is -- %suite -- %displayname(Demo of documentation reporter) -- %test -- %displayname(A passing test sample) procedure passing_test; -- %test procedure test_without_name; --...
import { StemmerRu } from '../../../../src/preprocess/engines/ru/stemmer-ru' describe('Russian stemmer', () => { test('Stemming sentence', () => { const stemmer = new StemmerRu() expect(stemmer.stem(['Говорящий', 'мысль'])).toEqual(['Говоря', 'мысл']) }) })
/* * BatteryTech * Copyright (c) 2010 Battery Powered Games LLC. * * This code is a component of BatteryTech and is subject to the 'BatteryTech * End User License Agreement'. Among other important provisions, this * license prohibits the distribution of source code to anyone other than * authorized parti...
import datetime from starlette.authentication import AuthenticationBackend, AuthCredentials from ..orm import oauth2token from ..orm.user import User class SessionAuthBackend(AuthenticationBackend): async def authenticate(self, request): if 'user_id' in request.session: user_id = request.sess...
/* * Copyright (C) 2017-2018 Dremio Corporation * * 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 l...
2020年08月27日00时数据 Status: 200 1.程璐 等下次复婚的时候再办吧 微博热度:2567809 2.日本多所大学收到恐吓邮件 微博热度:1826267 3.聚光少年易烊千玺 微博热度:1699555 4.大张伟真实 微博热度:1492813 5.乐华 微博热度:1336581 6.唐灿妈妈 微博热度:1042262 7.6000多人被网上养猫平台骗得血本无归 微博热度:986253 8.美宣布制裁24家参与南海建岛中企 微博热度:931286 9.易建联致敬科比 微博热度:924324 10.李尖尖凌霄接吻 微博热度:921516 11.张鑫的出轨对象是杨雁 微博热度...
#!/bin/bash # Refer to help text in the usage function for details. CPU_SYS_DIR=/sys/devices/system/cpu/ NR_CPUS=0 CPU= SHOW_LAYOUT=0 function usage() { echo "This script runs on HOST OS and gives core-id" echo "corresponding to the chip-id." echo "usage:" echo " $0 [cpu] [-L]"...
/** * Copyright 2019, Z Lab Corporation. All rights reserved. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package main import ( "bytes" "context" "fmt" "io/ioutil" "strings" "testing" "text/template" "time" hclog "git...
import createSelector from '../helpers/selectorCreator'; const getAppState = ({app}) => app.state; const getAppError = ({app}) => app.error; const getAppLoadingStep = ({app}) => app.loadingStep; export const makeAppSelector = () => createSelector( getAppState, getAppError, getAppLoadingStep, (state, error, lo...
const assert = require('assert') const helpers = require('../lib/helpers') describe('helpers', function () { describe('#splitArray()', function () { it('splitt array into chunks', function () { assert.deepStrictEqual(helpers.splitArray([1, 2, 3], 2), [[1, 2], [3]]) }) }) describe('#transformReposi...
program zthin use mod_za ! HYCOM array I/O interface implicit none c integer i,j,k,kdm,nhybrd,nsigma,nfill,nzero,np,ns real hmaxa,hmaxb,hmina,hminb,flat real dpk,dp00,dp00x,dp00m,dp00f,dsk,ds00,ds00x,ds00m,ds00f, & zp(0:99),zpmin,zpmax, & zs(0...
<?php namespace Webbhuset\Schema; use Webbhuset\Schema\Constructor as S; class FloatSchema implements \Webbhuset\Schema\SchemaInterface { protected $min; protected $max; public function min(float $min): self { if ($this->max !== null && $min > $this->max) { throw new \InvalidArg...
<?php namespace Kr\MvcCli\Templating\DomTwig\Filter; use Kr\MvcCli\Controller\Scope; interface FilterInterface { /** * Priority of this filter. * The higher it is, the earlier it gets applied * @return int */ public function getPriority(); /** * Apply filter to dom + scope *...
import hre from 'hardhat'; import { expect } from 'chai'; import FooJSON from '../dist/artifacts/contracts/Sample.sol/Foo.json'; import { Foo } from '../dist/types'; describe('Foo', () => { let contract: Foo; const [signer] = hre.waffle.provider.getWallets(); before(async () => { contract = await hre.waffl...
using System.Collections.Generic; using System.Linq; using System.Web; using Autofac; using Moq; using NUnit.Framework; using Orchard.Environment; using Orchard.Environment.Configuration; using Orchard.Environment.ShellBuilders; using Orchard.Environment.State; using Orchard.Environment.Descriptor.Models; u...
import { Component, OnInit, ViewContainerRef } from '@angular/core'; import { BreadcrumbService } from '../../shared/breadcrumb/components/breadcrumb.service'; import { Worker } from '../../../models/worker'; import { AccessService } from '../../../services/access/access.service'; import { WorkerInlineComponent } from ...
default="-O2 -msse" sse="-O2 -ftree-vectorize -msse2 -msse3 -msse4 -ffast-math" avx='-O2 -ftree-vectorize -mavx -mavx2 -mfma -ffast-math' # avx2='-O2 -mavx2' # native='-O2 -march=native' # change here from=$sse to=$avx find . -name "Makefile" -exec sed -i -e "s/$from/$to/" {} \; # opencv if [ "$to" == "-O2 -msse" ];...
(RTL::BVECP-ROOTS (1362 42 (:REWRITE PREFER-POSITIVE-ADDENDS-<)) (1050 66 (:REWRITE REDUCE-MULTIPLICATIVE-CONSTANT-<)) (840 6 (:REWRITE RTL::BITS-REVERSE-INDICES)) (840 6 (:REWRITE RTL::BITS-NEG-INDICES)) (642 54 (:REWRITE CONSTANT-<-INTEGERP)) (156 12 (:REWRITE |(+ y (+ x z))|)) (141 33 (:REWRITE NORMALIZE-ADDE...
package com.example.demo.concurrent; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atom...
import React from "react"; import styled from "styled-components"; const MoreViewButton = (props) => { return ( <> <Container> <Button>더 보기</Button> </Container> </> ); }; const Button = styled.button` cursor: pointer; margin: 1rem auto; display: block; border-radius: 10px; p...
using UnityEngine; using System.Collections; using System.IO; using System; using System.Linq; using System.Xml; using System.Xml.Serialization; /// <summary> /// 文件日志的实现 /// </summary> public class FileLog { /// <summary> /// 写文件日志 /// </summary> /// <param name="SceneID">life对象ID</param> /// <param name="Lin...
class Solution: def largestNumber(self, nums): strs = [str(num) for num in nums] # strs = map(str, nums) def compare(x, y): if x + y < y + x: return 1 elif x + y > y + x: return -1 return 0 strs.sort(cmp=compare) ...
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction // OPTIONS: usages package pack class P operator fun P.<caret>invoke() = 1 fun f(p: P) { p() p.invoke() }
class Tasks::Assign prepend SimpleCommand extend Memoist def initialize(task:, users:) @task = task @users = users || [] end def call assign end private attr_accessor :task, :users def assign TaskAssignment.where(user: (assigned - users)).destroy_all (users - assigned).all? d...
import React from 'react'; import { UUI } from '../../core/uui'; export interface LayoutBottomBarFeatureProps { /** * The container of LayoutBottomBar. */ children?: React.ReactNode; } export const LayoutBottomBar = UUI.FunctionComponent({ name: 'LayoutBottomBar', nodes: { Root: 'div', }, }, (prop...
import { Meta, Story } from '@storybook/react' import React, { useState } from 'react' import { RedBlackTree, useRedBlackTree } from '..' import { handleStyleArgTypes } from '../util' export default { title: 'Tree/Red Black Tree', component: RedBlackTree, argTypes: handleStyleArgTypes(), } as Meta export const ...
package storage import "fmt" type DBError struct { Message string } func (e DBError) Error() string { return fmt.Sprintf("db error: %q", e.Message) } type NotFound struct { Entity, ID string } func (e NotFound) Error() string { return fmt.Sprintf("%q not found in %q", e.ID, e.Entity) } type UndefinedEntity st...
package com.xw.dao.distributed.service; import com.xw.dao.distributed.BusinessEnum; import com.xw.dao.distributed.data.AckTaskData; import com.xw.dao.distributed.exception.UnSupportException; import com.xw.common.paginator.Pagination; import java.util.List; /** * 消息确人业务 * Created by huangdongbin on 2018/4/16. */ ...
import { PortalProvider } from '@gorhom/portal' import React from 'react' interface Props {} const PopMenuProvider: React.FC<Props> = ({ children }) => { return <PortalProvider>{children}</PortalProvider> } export { PopMenuProvider }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Request $request) { $market_data = $this->getMarketData(); ...
using System; namespace HatTrick.Text.Templating { #region tag kind enum public enum TagKind { Simple, If, EndIf, Each, EndEach, With, EndWith, Partial, Comment, VarDeclare, VarAssign, } #endregion }
cd $WORK/lugdunensis-softwares/ wget http://sourceforge.net/projects/snpeff/files/snpEff_latest_core.zip unzip snpEff_latest_core.zip rm snpEff_latest_core.zip
/* * Copyright 2022 The Android Open Source Project * * 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...
package crux.api.tx; import java.util.Date; import java.util.Objects; public final class DeleteOperation extends TransactionOperation { public static DeleteOperation create(Object id) { return new DeleteOperation(id, null, null); } public static DeleteOperation create(Object id, Date startValidTi...
#!/usr/bin/env ruby require File.expand_path(File.dirname(__FILE__) + '/../lib/puppettest') require 'puppettest' require 'mocha' require 'puppet/network/authstore' class TestAuthStore < Test::Unit::TestCase include PuppetTest Declaration = Puppet::Network::AuthStore::Declaration def mkstore store = nil ...
import logging from logging.handlers import RotatingFileHandler import redis from flask import Flask, render_template, g from flask_session import Session from flask_sqlalchemy import SQLAlchemy from flask_wtf.csrf import generate_csrf from config import config # 创建SQLAlchemy对象 db = SQLAlchemy() # redis的操作对象 redi...
<?php namespace Http; use Http\ResponseTrait; use Support\Contracts\JsonableInterface; use Support\Contracts\RenderableInterface; use Symfony\Component\HttpFoundation\Response as SymfonyResponse; use ArrayObject; class Response extends SymfonyResponse { use ResponseTrait; /** * The original content ...
/** * Copyright (c) 2020 EmeraldPay, Inc * * 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 o...
closes #<id_da_issue_relacionada> ## Descrição Descrição concisa do que foi feito ## Tarefas gerais realizadas * Tarefa 1 * Tarefa 2
import { createSelector } from "reselect"; import { Account, Token } from "@iov/bcp"; import { BnsConnection } from "@iov/bns"; import { Address, ChainId } from "@iov/core"; import { RootState } from "~/reducers"; import { AccountInfo } from "~/reducers/blockchain"; /*** TODO: separate this out into multiple files *...
# Musician's Practicing Player Try it out <a href="http://o3tt3rli.com/mpp" target="_blank">here</a>.
use std::collections::HashSet; use utils::firebase::*; pub type Token = String; pub type Email = String; #[derive(Clone, Debug)] pub enum Step { Start, One, Two, Three, Final } #[derive(Clone, Debug, Default)] pub struct RegisterData { pub token: Option<String>, pub email: Option<String>,...
/* * Copyright (C) 2019 The Android Open Source Project * * 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 app...
#include "fly/config/config_manager.hpp" #include "fly/parser/ini_parser.hpp" #include "fly/parser/json_parser.hpp" #include "fly/path/path_config.hpp" #include "fly/path/path_monitor.hpp" #include "fly/task/task_runner.hpp" #include <filesystem> #include <functional> namespace fly::config { //=====================...
const mongoose = require('mongoose'); const UserSchema = new mongoose.Schema({ username:{ type:String }, password: { type:String }, firstName:{ type:String }, lastName:{ type:String }, subject:{ type:String }, class:{ type:Strin...
# TESTING Create a branch for this cookbook. Create a PR. This will trigger a build on Travis CI. Make sure it succeeds. You can also use test kitchen with AWS. Make sure you modify it with your custom parameters like Security Group id and others. ``` KITCHEN_YAML=.kitchen.aws.yml kitchen verify default ```
using NUnit.Framework; using Regseed.Expressions; namespace Regseed.Test.Expressions { [TestFixture] public class ExpressionMetaDataExtensionTest { [Test] public void UpdateWith_SetsHasIntersectionToTrue_WhenNewValueIsTrue() { var oldValue = new ExpressionMetaData(); ...
module N ( x , y , z ) where import M
require_relative 'spec_helper' describe 'The mock/create page' do before :each do visit('/mock/create') end it 'allows user to create mock data without advanced options' do TestHelper.create_test_mock TestHelper.mockData TestHelper.submit_form_to_create_update_mock_data expect(page).to have_con...
<?php if (!$this->session->userdata('logged_in')) { redirect('user/login'); } ?> <?php $this->load->view("template/header"); ?> <div class="container"> <?php foreach ($single as $key): ?> <?php echo form_open('kategori/edit/'.$key->id_kategori, array('enctype'=>'multipart/form-data')); ?> <table> ...
# typed: strict module DeprecationHelper class DeprecationException < StandardError extend T::Sig sig { params(message: String).void } def initialize(message) super message end end end
import { getEventEditorState } from '../../event-editor/selectors/getEventEditorState'; import { plateStore } from '../plate.store'; /** * - Get the last focused editor id if any * - Else, get the last blurred editor id if any * - Else, get the first editor id if any * - Else, `null` */ export const getPlateId = ...
using CarDiaryX.Application; using CarDiaryX.Application.Contracts; using CarDiaryX.Infrastructure; using CarDiaryX.Infrastructure.Common.Extensions; using CarDiaryX.Integration; using CarDiaryX.Web; using CarDiaryX.Web.Middlewares; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft...
const Compliance = artifacts.require('./Compliance.sol'); const Customers = artifacts.require('./Customers.sol'); const SecurityToken = artifacts.require('./SecurityToken.sol'); const SecurityTokenRegistrar = artifacts.require('./SecurityTokenRegistrar.sol'); const NameSpaceRegistrar = artifacts.require('./NameSpaceReg...
#ifndef _JH_HEADER_ERROR_ #define _JH_HEADER_ERROR_ #include <iostream> namespace jh{ inline std::ostream& error() { return std::cerr; } } #endif //_JH_HEADER_ERROR_
#!/bin/sh # $Id$ # # This script compares autoconf-based installation against regular builds # provided files. # # This script should be run after `make install DESTDIR=debian/tmp' has been # run on autoconf-based build. # set -e P1=ACE_wrappers P2=debian/tmp/usr/include # Find files # ff <from> ff() { find "$1" -...