text stringlengths 27 775k |
|---|
require "support/invite_use_case_spy"
require "support/invite_use_case"
require "support/notifications_service"
describe "Sign up from invitation", type: :feature do
let(:invited_user_email) { "invited@gov.uk" }
let(:organisation) { create(:organisation) }
let(:user) { create(:user, organisations: [organisation]... |
# By what two things did Jesus Christ come?
Jesus Christ came by water and by blood.
|
package com.damon.cqrs.event_store;
import com.damon.cqrs.store.IEventOffset;
import org.springframework.jdbc.core.JdbcTemplate;
import javax.sql.DataSource;
import java.util.List;
import java.util.concurrent.CompletableFuture;
/**
* 事件偏移位置存储
* <p>
* 用于记录event store已发送的事件的偏移位置
*
* @author xianpinglu
*/
public ... |
class Quote
include Mongoid::Document
include Mongoid::Timestamps
field :quote, type: String
field :author, type: String
field :author_about, type: String
has_and_belongs_to_many :tags
validates :quote, presence: true
validates :author, presence: true
validates :author_about, presence: true
end
|
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of badge
*
* @author s092766
*/
class Badge extends MY_Database_Write_Model {
functio... |
import { renderHook } from '@testing-library/react-hooks';
import useDeepCompareEffect from '../index';
describe('useDeepCompareEffect', () => {
it('should be defined', () => {
expect(useDeepCompareEffect).toBeDefined();
});
it('test deep compare', () => {
let mountedState = 1;
const hook = renderHo... |
package com.stc.trawl.prometheus.aspect;
import com.stc.trawl.prometheus.Constants;
import java.lang.annotation.*;
import static com.stc.trawl.prometheus.Constants.DbCrudType.ANY;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface PrometheusStorage {
public Constants.D... |
#!/bin/bash
whale_producers=1
fish_producers=2
seeds=1
coordinators=1
namespace="gossipqa"
function restart {
POD_NAME=$1
CONTAINER=$2
# $kubectl exec $POD_NAME -c $CONTAINER -n $namespace /sbin/killall5
}
while read -r line
do
t=$[ ( $RANDOM % 20 ) + 1 ]
echo "waiting $t minutes"
sleep ${t}m... |
package second
fun String?.helloFun() {
}
fun String.helloWithParams(i : Int) : String {
return ""
}
fun <T: CharSequence> T.helloFunGeneric() {
}
fun Int.helloFake() {
}
fun dynamic.helloDynamic() {
} |
package com.udacity.project2.mymovies.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.udacity.project2.mymovi... |
from ..registry import HEADS
from ..utils import ConvModule
from .fcn_mask_head import FCNMaskHead
@HEADS.register_module
class HTCMaskHead(FCNMaskHead):
def __init__(self, *args, **kwargs):
super(HTCMaskHead, self).__init__(*args, **kwargs)
self.conv_res = ConvModule(
self.conv_out_c... |
use Test::Most;
use Test::MockModule;
use aliased 'OpenTracing::Implementation::DataDog::Tracer';
=for
instance_method build_context (
%span_context_args,
) :Return (SpanContext) {
( HashRef[Str] )->assert_valid( { %span_context_args } );
};
=cut
subtest "Build with known options" => sub {
my ... |
# Ogonek
Ogonek is mostly the result of me playing around with Unicode. Currently the
library is still in alpha stages, so I don't recommend using it for anything
serious, mainly because not all APIs are stabilised. You are welcome to play
around with it for any non-serious purposes, though.
## Status
The latest ver... |
namespace :yarn do
desc "install yarn dependencies"
task :install do
system('yarn install')
exit $CHILD_STATUS.exitstatus
end
end
|
#! /bin/sh
find /usr/src -d \! \( \( -type l -a \
-regex /usr/src/sys/amd64/conf/GARIPOV15_2 \) -o -regex /usr/src \) \
-delete && exit 0
|
package project
import org.apache.log4j.{Level, Logger}
import org.apache.spark.{SparkConf, SparkContext}
object TopRetweets {
def main(args: Array[String]): Unit = {
Logger.getLogger("org").setLevel(Level.OFF)
Logger.getLogger("akka").setLevel(Level.OFF)
val conf = new SparkConf().setAppName("To... |
<h4 class="page-title"><?= t("home.documents"); ?></h4>
<ol class="breadcrumb text-right">
<li><a href="/"><?= t("home.link"); ?></a></li>
<li class="active"><?= t("home.documents"); ?></li>
</ol>
<div class="container-fluid">
<div class="row">
<?php if ($documents) { ?>
<table class="table table-borde... |
<?php
declare(strict_types=1);
namespace App\Github;
use App\Exception\HttpResponseException;
class PullRequestManagement
{
const URL_MERGE = '/merge';
const URL_FILES = '/files';
/**
* @var Adapter
*/
private $adapter;
public function __construct(
Adapter $adapter
) {
... |
CREATE TABLE IF NOT EXISTS `guardian_students` (
`id` int(11) NOT NULL,
`guardian_id` int(11) NOT NULL,
`student_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=latin1 COMMENT='guardian and student link';
|
/*
Copyright (c) 2014 Aerys
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicens... |
#!/bin/bash
export COMPOSE_PROJECT_NAME=cotoami
export COTOAMI_HOST=${COTOAMI_HOST:-localhost}
wget -q https://raw.githubusercontent.com/cotoami/cotoami/${BRANCH_OR_TAG:-master}/launch/docker-compose.yml -O docker-compose.yml
docker-compose up -d
echo
echo "Cotoami will be ready at http://$COTOAMI_HOST:4000"
echo "... |
#include <utility>
using std::pair;
using std::make_pair;
#include <cmath>
using std::pow;
#include <iostream>
using std::cout;
using std::endl;
#include "Eigen/Core"
using Eigen::Array;
using Eigen::Dynamic;
using Eigen::ArrayXi;
using Eigen::ArrayXd;
using Eigen::ArrayXXd;
#include "batchlda.h"
#include "utils.h"... |
package com.thefrodo.copyright
import java.awt.FileDialog
import java.io.File
import javax.swing.JFileChooser
import javax.swing.JFrame
fun JFrame.getDirectory(): File? {
return if (System.getProperty("os.name").contains("Mac")) {
System.setProperty("apple.awt.fileDialogForDirectories", "true")
v... |
#!/bin/bash
set -eo pipefail
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && /bin/pwd -P)
source $SELF_PATH/realpath.sh
ROOT=$(realpath $SELF_PATH/..)
version=$1
if [ "$version" == "" ]; then
echo "Version parameter is mandatory" >&2
exit 1
fi
commit=$2
if [ -z "$commit" ]; then
commit=$(git --git-dir $ROOT/.git... |
namespace DotifyV2.Application.DTOs
{
public class AlbumDataDto
{
public int Id { get; set; }
public int ArtistId { get; set; }
public string Name { get; set; }
public string CoverArt { get; set; }
}
}
|
// Copyright (c) 2016-2017, ARM Limited or its affiliates. All rights reserved
//
// This file and the related binary are licensed under the ARM Object Code and
// Headers License; you may not use these files except in compliance with this
// license.
//
// You may obtain a copy of the License at <.../external/nrf_cc31... |
# frozen_string_literal: true
# Copyright (c) 2010-2016 Michael Dvorkin and contributors
#
# AmazingPrint is freely distributable under the terms of MIT license.
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
requ... |
use actix_web::{web, App, HttpServer};
mod config;
use play_actix_api::repositories::Database;
use play_actix_api::{resources, AppState};
use std::sync::{Arc, Mutex};
#[actix_web::main]
async fn main() -> std::io::Result<()> {
println!("=== Playing Actix Web APIs ===");
// Read in the configuration file
l... |
#!/bin/bash
function install_redis(){
docker pull redis:5.0.3
docker images|grep redis
mkdir -p /export/docker/redis_single/data
touch /export/docker/redis_single/redis.conf
echo 'protected-mode no'>>/export/docker/redis_single/redis.conf
echo 'appendonly yes'>>/export/docker/redis_single/redis.conf
docker run... |
use aes_ctr::{
Aes256Ctr, stream_cipher::NewStreamCipher, stream_cipher::SyncStreamCipher,
stream_cipher::generic_array::GenericArray,
};
use bytes::{BufMut, BytesMut};
#[cfg(feature = "client")]
use config::AdnlClientConfig;
#[cfg(feature = "server")]
use config::AdnlServerConfig;
use config::KeyOption;
use cu... |
export { CpfCnpjDirective } from './cpfcnpj.directive';
export { CpfCnpjModule } from './cpfcnpj.module';
export { CpfCnpjConfig } from './cpfcnpj.config';
|
package loodos.droid.bitcointicker.data.repositories.projectProfile
import androidx.lifecycle.LiveData
import loodos.droid.bitcointicker.api.Result
import loodos.droid.bitcointicker.api.succeeded
import loodos.droid.bitcointicker.data.local.database.CoinsListEntity
import loodos.droid.bitcointicker.data.local.prefs.Pr... |
#!/bin/bash
THISDIR=`pwd`
ETCHADOOP=/etc/hadoop/conf.compute/
HIVEPATH="/etc/hadoop/software/hive/lib/*"
OPTS="-Ddfs.permission=false -Dmapreduce.jobtracker.staging.root.dir=/user/tsingliar"
INFILE=/user/tsingliar/FB_Users_34579801_to_50000000_pulled_2012-10-03.csv
NETWORK=$THISDIR/input/Facebook.34579801_to_50000000.... |
require "mastery_answer_code_quality/version"
require "mastery_answer_code_quality/answer_location"
require "mastery_answer_code_quality/rubocop_execution"
require "mastery_answer_code_quality/answer_code_quality"
module MasteryAnswerCodeQuality
def self.build(spec_path,
answer_location_class=Answer... |
package com.seanshubin.kotlin.tryme.domain.jdbc
import java.sql.ResultSet
object ResultSetUtil {
fun toTable(resultSet: ResultSet): List<List<Any>> {
val columnNames = getColumnNames(resultSet)
val data = getData(resultSet, columnNames)
return listOf(columnNames) + data
}
private ... |
package quickstartguide.kotlin.chapter3.kotlin.overriding
open class Base {
open fun print() {
println("I'm called from the base type")
}
}
class Derived : Base() {
override fun print() {
println("I'm called from the super type")
}
}
open class Derived : Base() {
final override fu... |
//
// initunlo.c
//
// Initialization & unload functions
//
#define DEFINE_GUID
#include <initguid.h>
#include "orbenum.h"
#ifdef ALLOC_PRAGMA
#pragma alloc_text (INIT, DriverEntry)
#pragma alloc_text (PAGE, OrbEnumUnload)
#endif
NTSTATUS
DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
{
... |
require_relative 'tab'
module DocusignRest
class SignHereTab < Tab
hash_attr *(%i(optional scaleValue))
end
end |
import _ from 'lodash';
class WatcherHelper {
// count number of actions of a certain type
numOfActionTypes(watcher, type) {
return _.filter(watcher._source.actions, (a) => a[type]).length;
}
}
export { WatcherHelper as default };
|
subroutine read_ldad_prof(i4time_sys,i4_prof_window
1 ,NX_L,NY_L
1 ,ext,lun
1 ,filename,n_good_obs,istatus)
character*(*) filename,ext
!.................................................... |
package com.scallop.marveldex.data
import com.scallop.marveldex.data.api.MarvelApi
import com.scallop.marveldex.data.fakes.MarvelApiDispatcher
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
impo... |
from sum_proper_divisors import sum_proper_divisors
assert sum_proper_divisors(28) == 28
assert sum_proper_divisors(220) == 284
assert sum_proper_divisors(284) == 220
assert sum_proper_divisors(138123) == 64677
assert sum_proper_divisors(2**32) == 4294967295
assert sum_proper_divisors(123456789) == 54966027
|
using Newtonsoft.Json;
namespace DGP.Genshin.Core.Background.Xunkong
{
internal record XunkongWallpaperInfo
{
/// <summary>
/// 图片Url
/// </summary>
[JsonProperty("url")]
public string? Url { get; set; }
}
} |
package com.omvoid.community.metrics;
import org.eclipse.collections.impl.map.mutable.primitive.IntIntHashMap;
import org.jgrapht.graph.DefaultWeightedEdge;
import org.jgrapht.opt.graph.fastutil.FastutilMapIntVertexGraph;
import java.util.concurrent.atomic.DoubleAdder;
public class Modularity {
public static doubl... |
const { Structures } = require('discord.js');
module.exports = Structures.extend('TextChannel', TextChannel => {
/**
* Klasa's Extended TextChannel
* @extends external:TextChannel
*/
class KlasaTextChannel extends TextChannel {
/**
* @typedef {external:TextChannelJSON} TextChannelJSON
* @property {ext... |
package com.ashish.movieguide.data.models
data class Images(val backdrops: List<ImageItem>? = null, val posters: List<ImageItem>? = null) |
require 'yt/models/resource'
"LiveBroadcast".pluralize.camelize :lower
module Yt
module Models
# Provides methods to interact with YouTube channels.
# @see https://developers.google.com/youtube/v3/docs/liveBroadcasts
class LiveBroadcast < Resource
delegate :title, to: :snippet
delegate :chan... |
package handlers
import (
"errors"
"github.com/btnmasher/shiftr/api/models"
"github.com/labstack/echo/v4"
"gorm.io/gorm"
"net/http"
"time"
)
func CreateShift() func(echo.Context) error {
return func(c echo.Context) error {
// Collect the submitted data from the user
data := &models.Shift{}
err := c.Bind... |
mod mock;
use mock::Controller;
use pancurses::Input;
use paper::ui::{Index, BACKSPACE, ESC};
/// Entering characters in Command mode should add text to sketch and display.
///
/// GIVEN the application is in Command mode,
/// WHEN the user enters `abc`,
/// THEN the user interface should display the sketch `"abc"`.
... |
#!/bin/bash
docker run --env POSTGRES_USER=root --env POSTGRES_PASSWORD=123456 -p 5432:5432 postgres:13.0
|
-- | Code for representing an LSystem as a list of drawable points
module Draw where
import LSystem
import Control.Monad.Trans.State.Lazy
import Data.Monoid hiding (getAll)
import Test.QuickCheck
import Control.Monad
-- | represents what a given point should be drawn as
data DrawCommand = NOP | Pt | NewLine deriving ... |
class RenameBandsToArtists
include Evolver::Migration
sessions :default
def execute
session[:labels].find.update_all("$rename" => { "bands" => "artists" })
end
def revert
session[:labels].find.update_all("$rename" => { "artists" => "bands" })
end
end
|
#!/usr/bin/env bash
return_with () {
local ret_code="$1"
return "$ret_code"
}
return_with "$*"
|
-- SELECT all employees who works for Google:
SELECT e.employee_id, e.employee_name
FROM employee e
JOIN company_employee ce ON e.employee_id = ce.employee_id
WHERE ce.company_id = (SELECT company_id from company WHERE company_name LIKE 'Google'); |
<?php
return [
'manage_table' => 'Manage group customer',
'name' => 'Name',
'price_list_id' => 'Price list id',
'payment_type_id' => 'Payment type id',
'help_name' => 'Name of group customer',
'help_price_list_id' => 'Price use for this group customer',
'help_payment_type_id' => 'Payment type ... |
pub const DEFAULT_PORT: u32 = 55555;
pub const DEFAULT_HOST: &str = "0.0.0.0";
|
# SUSE's openQA tests
#
# Copyright 2020 SUSE LLC
# SPDX-License-Identifier: FSFAP
# Summary: Test flatpak
# * Install flatpak
# * Run smoke test (flatpak --version)
# * Search for gimp and vlc (both are available on aarch64 as well)
# * Install gimp
# * Run gimp
# Maintainer: Felix Niederwanger <felix.niede... |
// -target-api 0 -Wall
#pragma version(1)
#pragma rs java_package_name(struct)
typedef struct MyStruct { int f; } MyStruct;
// No Java array method reflection for kernel with struct input (only Allocation method reflection)
#pragma rs reduce(inStruct) accumulator(inStructAccum) combiner(inStructComb)
static void inSt... |
import React from 'react'
import { Container, ToolBar, Icon } from 'layui'
const ToolBarItem = ToolBar.Item
export default class ToolBarView extends React.Component {
render () {
return (
<div>
<Container></Container>
<ToolBar activeIndex={0}>
<ToolBarItem icon={<Icon name="home" ... |
---
- GuiCommand:/ru
Name:Part CrossSections
Name/ru:Поперечные сечения
MenuLocation:Деталь → Поперечные сечения
Workbenches:[Верстак Part](Part_Workbench/ru.md)
SeeAlso:[Разделить](Part_Section/ru.md)
---
# Part CrossSections/ru
## Описание
The **Cross-sections** utility creates one or more cross-sec... |
package work.shion.ktrecipe.pages.entrypoint
data class GalleryIndexItemEntity(
val cardUrl: String?,
val iconUrl: String?,
val title: String
)
|
/*
* By 'above', the question is referring to:
* \n (newline)
* \t (tab)
* \b (backspace)
* \" (double quote)
* \\ (backslash)
* We have to read carefully here, because using a non-specified escape sequence invokes undefined behaviour.
* The following program attempts to demonstrate all the legal escape sequences,
* ... |
package com.vaadin.flow.component.accordion.testbench;
/*
* Copyright 2000-2019 Vaadin Ltd.
*
* 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-... |
<?php
declare(strict_types = 1);
namespace LaravelFCM\Sender;
use GuzzleHttp\Exception\ClientException;
use LaravelFCM\Message\Options;
use LaravelFCM\Message\PayloadData;
use LaravelFCM\Message\PayloadNotification;
use LaravelFCM\Message\Topics;
use LaravelFCM\Request\Request;
use LaravelFCM\Response\DownstreamRespo... |
docker run --name "ping_service" --detach service_image_ping:1.0.1
docker run --name "hello_world_service" --detach service_image_hello_world:1.0.1
read |
/*
* @flow
*/
const RESET_REQUEST_STATE :'RESET_REQUEST_STATE' = 'RESET_REQUEST_STATE';
function resetRequestState(path :string[]) {
return {
path,
type: RESET_REQUEST_STATE,
};
}
export {
RESET_REQUEST_STATE,
resetRequestState,
};
|
require 'rails_helper'
RSpec.describe Trifle::RepairManifestJob do
let(:user) {nil}
let(:options) { { } }
let(:manifest) {
FactoryGirl.create(:iiifmanifest).tap do |m|
m.ordered_members << FactoryGirl.create(:iiifimage, image_source: 'oubliette:oubliette1')
m.ordered_members << FactoryGirl.creat... |
extern crate ticket;
use std::thread;
use ticket::{Ticketing, encode, decode, ID};
#[test]
fn test_unique() {
let mut generator = Ticketing::new();
let id_1 = generator.gen();
let id_2 = generator.gen();
assert_ne!(id_1, id_2);
}
#[test]
fn test_id_component() {
let id_1 = Ticketing::new().gen(... |
#ifndef CPPND_SYSTEM_MONITOR_PROCESS_PARSER_H
#define CPPND_SYSTEM_MONITOR_PROCESS_PARSER_H
#include "constants.h"
#include <algorithm>
#include <cerrno>
#include <chrono>
#include <cstring>
#include <dirent.h>
#include <fstream>
#include <iostream>
#include <math.h>
#include <thread>
#include <iterator>
#include <str... |
# What is Apitizer?
Apitizer is a Laravel library that primarily offers a Schema that allows you to
easily create documented API endpoints that are capable of filtering, sorting,
and selection of sparse fieldsets. For example, the following HTTP request could
be handled by the schema below it.
```
/users?fields=id,na... |
package dev.evo.prometheus.hiccup
import dev.evo.prometheus.HistogramLabelSet
import dev.evo.prometheus.Matcher
import dev.evo.prometheus.RegexLabelsMatcher
import dev.evo.prometheus.SampleMatcher
import dev.evo.prometheus.assertSamplesShouldMatchAny
import kotlinx.coroutines.test.runBlockingTest
import kotlin.test.... |
package bittrexJson2JavaObjects.publicApiObjects; /**
* Created by Ned Udomkesmalee on 7/13/17.
*/
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class MarketSummary {
@SerializedName("MarketName")
@Expose
private String marketName;
@SerializedN... |
use std::{iter, slice};
use super::{
handle::{Handle, Storage},
Store,
};
pub struct Iter<'r, T> {
inner: Inner<'r, T>,
}
impl<'r, T> Iter<'r, T> {
pub(super) fn new(store: &'r Store<T>) -> Self {
let handle: fn(&Storage<T>) -> Handle<T> = |storage| storage.handle();
let inner = store... |
#include <stdio.h>
#include <stdlib.h>
#include <csv.h>
static const char me[] = "column";
#define FMT "%.20g"
#define USED(x) \
if (x) \
; \
else { \
}
static void usg() {
fprintf(stderr, "%s [-s separator] [-k] [field..] < CSV\n", me);
exit(1);
}
int main(int argc, char** ar... |
const findTheDistanceValue = require('./findTheDistanceValue')
test('Example 1', () => {
const arr1 = [4, 5, 8]
const arr2 = [10, 9, 1, 8]
const d = 2
const result = findTheDistanceValue(arr1, arr2, d)
expect(result).toBe(2)
})
test('Example 2', () => {
const arr1 = [1, 4, 2, 3]
const arr2 = [-4, -3, ... |
package org.dominokit.domino.api.server.response;
import org.dominokit.domino.rest.shared.request.ResponseBean;
import java.util.List;
public interface ResponseContext<T extends ResponseBean> {
ResponseContext<T> putHeader(String name, String value);
ResponseContext<T> putHeader(String name, Iterable<Strin... |
package com.onefull.api.controller;
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.... |
using System;
using Sfs2X.Entities.Data;
using UnityEngine;
using YxFramwork.Common;
using YxFramwork.Framework.Core;
using YxFramwork.Manager;
namespace Assets.Scripts.Game.fillpit.Mgr
{
public class AnimationMgr : MonoBehaviour {
/// <summary>
/// 开始下注动画,设置Active即开始播放
/// </summary>
... |
import { Moment } from 'moment';
export interface User {
username: string,
firstname: string,
lastname: string,
email: string,
permissions: number
}
export interface Review {
creationTime: string,
imdbid: string,
review: string,
reviewid: string,
score: string,
usernameid: string
}
export class... |
<?php
namespace TrustPayments\Webhook;
/**
* Abstract webhook processor.
*/
abstract class AbstractWebhook {
private static $instances = array();
protected $registry;
private function __construct(\Registry $registry){
$this->registry = $registry;
}
/**
* @return static
*/
public static function instan... |
#!/usr/bin/env bash
_add_vcsh_upstream(){
vcsh_repo_name=$(basename "${MR_REPO#*:}" .git)
remote=$(vcsh run ${vcsh_repo_name} git config --get remote.origin.url)
if [[ "${remote}" =~ rdeville.private ]]
then
mr_log "INFO" "Adding upstream remote for vcsh **${vcsh_repo_name}**."
if [[ -n "${upstream_rem... |
// TotemHediff.cs created by Iron Wolf for PMTribal on 05/23/2020 1:04 PM
// last updated 05/23/2020 1:04 PM
using Pawnmorph.Hediffs;
namespace PMTribal.Hediffs
{
public class TotemHediff : MorphTf
{
/// <summary>
/// Gets a value indicating whether this instance should be removed.
/... |
package sk.euba.fhi.gui;
import ro.pippo.core.Pippo;
import ro.pippo.core.Session;
import sk.euba.fhi.data.DataFactory;
import sk.euba.fhi.model.interf.FirmaData;
import sk.euba.fhi.model.obj.Firma;
import sk.euba.fhi.model.obj.Prihlasenie;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
publi... |
#!/bin/bash
. ../bash_tap.sh
# This successfully finds "world" and exits with a zero exit code:
echo "Hello world" | grep "world"
# This cannot find "cookies" in the text, so it exits non-zero:
echo "Got milk?" | grep "cookies"
|
package ru.bbpax.keeper.security.service;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundE... |
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -Wunused-type-patterns #-}
module T16356_Compile2 where
class C (a :: j) where
type T1 (a :: j) (b :: k)
type T1 @j @_ a _ = Int
type T2 (a :: j) (b :: k)
type forall j (a :: ... |
# 6.6.0 (2017-10-20)
- [UPGRADED] Upgrade package: debug@^3.1.0.
# 6.5.0 (2017-05-23)
- [UPGRADED] Using cloudant-follow==0.13.0 dependancy.
|
import {
getDocs,
collection,
query,
orderBy,
onSnapshot,
addDoc,
serverTimestamp,
deleteDoc,
updateDoc,
doc,
getDoc,
} from "firebase/firestore";
import { IfcNote } from "../types/interfaces";
import { db } from "./firebase";
// New note interface
interface NewNote {
name: string;
content?:... |
RSpec.describe Playwright::Cli::Lib::InputParser do
describe "#parsed?" do
let(:command) { Class.new(Playwright::Cli::Lib::Base).new }
let(:parser) { Playwright::Cli::Lib::InputParser.new([], command) }
context "before #parse! has been called" do
it "returns false" do
expect(parser.parsed?).... |
#!/bin/bash
set -ev
# run only on CI, pull requests and when NODE_ENV=test
if [[ ${CI} == "true" && (${NODE_ENV} = "test" && ${TRAVIS_PULL_REQUEST} != "false") ]]; then
chmod ugo+x ./test/scripts/install_chromedriver_travis.sh
sudo ./test/scripts/install_chromedriver_travis.sh
gem install bundler -v '< 2'
fi
|
%% -*- mode: Erlang; fill-column: 80; comment-column: 76; -*-
%%%---------------------------------------------------------------------------
%%% @author Eric Merritt
%%% @copyright (C) 2006-2010
%%% @doc This module has been discontinued, use {@link ktj_parse} instead.
%%%
%%% ktj_parse API is not backwards compatible ... |
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'tito'
require 'byebug'
require 'minitest/autorun'
require 'webmock/minitest'
WebMock.disable_net_connect!
require 'dotenv'
Dotenv.load('.env')
ctx = OpenSSL::SSL::SSLContext.new
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
Tito::Base.ssl_context = c... |
/*
**==============================================================================
**
** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE
** for license information.
**
**==============================================================================
*/
/*
**==================================... |
use std::fmt;
use std::collections::HashMap;
use chrono::{DateTime, Utc};
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug)]
pub enum Priority {
Low,
Medium,
High,
}
impl fmt::Display for Priority {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let value = ... |
-- this first line is only used in the dev stage. you will want to remove it once your db is deployed.
DROP DATABASE IF EXISTS burger_timeDB;
CREATE database burger_timeDB;
USE burger_timeDB;
-- this is the table that will store burger name and if it has been eaten
CREATE TABLE burgers (
id INT NOT NULL AUTO_INCRE... |
# frozen_string_literal: true
module RubyElastic
module ServersDiscovery
end
end
|
class Tuple<A, B> {
final A item1;
final B item2;
const Tuple(this.item1, this.item2);
}
|
/*
ksvggraphtest03.cpp
Test for ksvggraph00.cpp in k09
Actually, this makes an example SVG file for explanation
*/
/* ********** Preprocessor Directives ********** */
#include <k09/ksvggraph00.cpp>
#include <k09/krand00.cpp>
#include <map>
/* ********** Namespace Declarations/Directi... |
using EFCore.Sharding.Util;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace EFCore.Sharding.SqlServer
{
internal class SqlServerRepository : DbRepository, IRepository
{
#region 构造函数
... |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../spec_helper'
module MCollective
describe Log do
before do
@logger = mock("logger provider")
@logger.stubs(:log)
@logger.stubs(:start)
@logger.stubs(:set_logging_level)
@logger.stubs(:valid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.