text stringlengths 27 775k |
|---|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx908 < %s | FileCheck %s
%struct.A = type { [100 x i32] }
; The 64-bit pointer argument %arg1 will be split into two registers
; and for its llvm.dbg.declare, DAG should emit two DBG_VALUE instr... |
package ncreep.figi.configrity
import org.specs2.mutable._
import org.junit.runner._
import org.specs2.runner.JUnitRunner
import java.io.File
@RunWith(classOf[JUnitRunner])
class ConfigrityAdapterExampleSpecs extends Specification {
"The figi configrity adapter" should {
"have a test that resembles a ... |
#!/bin/bash
# This script must reside in the "tests" directory of the project
# Make sure the "dice" executable is in the "Compiler" directory
diceExecPath=./dice
testOption=$1 #stores the test flag since functions can't see the $1
vFlag=$2 #stores the -v flag since functions can't see it with $2
pass=0
fail=0
RED='\0... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DotVVM.Framework.Compilation.Parser.Binding.Parser;
using DotVVM.Framework.Compilation.Parser;
namespace DotVVM.Framework.Compilation.ControlTree.Resolved
{
/// <summary> Represents the @js di... |
package com.ng.ui
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Button
import butterknife.ButterKnife
import com.ng.ui.aty.CtbActivity
import com.ng.ui.aty.EcgActivity
import com.ng.ui.aty.PlActivity
import com.ng.ui.aty.WvActivity
import kotlinx.android.synthetic.main.... |
#include "../Headers/Material_Dielectric.h"
#include "../Headers/MaterialValueGraph.h"
using namespace RT;
ADD_MATERIAL_REFLECTION_DATA_CPP(Material_Dielectric);
bool Material_Dielectric::Scatter(const Ray& rIn, const Vertex& surface,
const Shape& shpe, FastRand& prng,
... |
#include <core/tetris_oracle.hpp>
#include <core/game_state_eval.hpp>
#include <cfloat>
#include <deque>
#include <string>
#include <algorithm>
float BestScore(GameState& state, Harmony const& h) {
std::vector<Tetromino> const* possible = FindPossibleMoves(state);
float maxScore = -1.0*FLT_MAX;
for (unsign... |
<html>
<head>
<title></title>
</head>
<body>
<h1>{mytitle|upper}</h1>
<p></p>
<h2>{content}</h2>
</body>
</html> |
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace GestaoFluxoFinanceiro.Dados.Migrations
{
public partial class Inicial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Alunos",
... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class DBTable
{
public function exists($table)
{
return \Illuminate\Support\Facades\Schema::hasTable($table);
}
public function showDetails($table)
{
if (!exist($table)) {
return $this->warn("Atençã... |
#!/bin/sh
# composerを用いてLaravelをインストールするスクリプト。
#
# [参考]
# https://laravel.com/docs/8.x#installation-via-composer
apt update
apt install zip unzip
mkdir -p /usr/mochi
cd /usr/mochi
composer create-project laravel/laravel sandbox
cd sandbox
php artisan serve
|
Expirates only.biden for.languages -russia .event.6 -class.6 make.create {execute
entrophy.physic door.common cybertask.for -languages = olivetti.dmg/mac.10.0
os.secure dedsec.open windows.updates /ct.os {execute.qurl = dedsec}
sigmatic.values./count pates.roon /biden.secure -open.s... |
var Vtext = require('virtual-dom/vnode/vtext.js')
var isVdom = require('./isVdom')
var Component = require('./component')
function toVdom (object) {
if (object === undefined || object === null) {
return new Vtext('')
} else if (typeof (object) !== 'object') {
return new Vtext(String(object))
} else if (o... |
export default interface TargetProductInterface {
targetCurrency: string;
targetPrice: number;
targetLink: string;
}
|
ALTER TABLE screenings
DROP COLUMN contact_date;
CREATE TABLE contacts
(
id bigint PRIMARY KEY IDENTITY (1, 1),
contact_date date NOT NULL,
screening_id bigint NOT NULL,
CONSTRAINT fk_contacts_screening_id
FOREIGN KEY (screening_id)
REFERENCES screenings (id)
... |
#### Hensikt
Denne applikasjonen er ment å forbedre planleggingen av *modultreff*,
også med deltakere fra flere europeiske land.
De viktigste funksjonene er å føre et register over alle *modelljernbanemoduler*,
inkludert alle detaljer som er nødvendige for planleggingsplanlegging og tidsplaner,
og møteplanlegging med... |
package internal
import (
"bytes"
"encoding/hex"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
"testing"
"github.com/boltdb/bolt"
"github.com/kylelemons/godebug/diff"
"github.com/nochso/bolster"
)
var reUnderscore = regexp.MustCompile(`([A-Z][^/_]+)_`)
// Gold compares actual to a gold... |
import { ReactElement } from 'react';
import { Connect } from 'react-redux';
export interface Action<T = any> {
type: T
}
export interface AnyAction extends Action {
// Allows any extra properties to be defined in an action.
[extraProps: string]: any
}
export interface Dispatch<A extends Action = AnyAction> {
... |
<?php
declare(strict_types = 1);
namespace App\Entity\Exception;
use App\Entity\Meetup;
use App\Entity\User;
final class UserNotAttending extends \DomainException
{
public static function fromMeetupAndUser(Meetup $meetup, User $user) : self
{
return new self(sprintf(
'User "%s" is not att... |
<div class="grid">
<div class="grid__row">
<div class="grid__column">1</div>
<div class="grid__column">2</div>
<div class="grid__column">3</div>
<div class="grid__column">4</div>
</div>
<div class="grid__row">
<div class="grid__column">1</div>
<div class="gr... |
package app.allever.android.lib.core.function.network.cache
import app.allever.android.lib.core.app.App
import app.allever.android.lib.core.ext.log
import app.allever.android.lib.core.helper.NetworkHelper
import app.allever.android.lib.core.function.network.cache.HttpCacheManager.getCacheTime
import app.allever.androi... |
#!/bin/bash
set -e
set -u
rsync -a --delete ./test/html_/ ./test/html/
node test/test.js
|
repos_file=${repos:-repos.txt}
repositories=$(< "${repos_file}")
polyrepoprefix=git@github.com:repomerger
upstream=../upstream
polyrepo=../polyrepo
monorepodir=../monorepo
mainbranch=main
declare -a branches=(v1.0 v2.0 main)
monorepo_remote=git@github.com:repomerger/monorepo.git
|
# Used for comparing stream events
class ActivityStream::Key < Struct.new(:actor, :verb, :object, :target)
def initialize(actor, verb, object, target)
super(actor, verb.to_sym, object, target || NilClass)
end
def verb=(verb)
super(verb.to_sym)
end
def hash
target_class = target.respond_to?(:base... |
namespace IbanNet.Validation.Rules
{
/// <summary>
/// Asserts that the IBAN has the correct length as defined for its country.
/// </summary>
internal class IsValidLengthRule : IIbanValidationRule
{
/// <inheritdoc />
public void Validate(ValidationContext context)
{
if (context.Value.Length != context.... |
package com.systemticmethods.nifi.deploy
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatest.{BeforeAndAfter, FlatSpec}
/**
see http://doc.scalatest.org/2.2.6/#org.scalatest.FlatSpec
*/
@RunWith(classOf[JUnitRunner])
abstract class UnitTest extends FlatSpec with BeforeAndA... |
package App::Manoc::ControllerBase::CRUD;
#ABSTRACT: Base class for API controllers
use Moose;
##VERSION
use namespace::autoclean;
BEGIN { extends 'Catalyst::Controller'; }
with 'App::Manoc::ControllerRole::CommonCRUD';
=head1 DESCRIPTION
This class can be used as a base for controllers using the L<App::Manoc::C... |
package com.android.commandpattern.command;
/**
* Description: #TODO
*
* @author Shawn(zhao_zepeng@hotmail.com)
* @since 2016-08-14
*/
public class Client {
public static void main(String[] args) {
Light light = new Light();
Door door = new Door();
LightOnCommand lightOnCommand = new ... |
import React, { Fragment, ReactNode } from 'react';
import tonumber from 'lodash.tonumber';
import { getColorByRealValue, getSymbolByRealValue, getRealTextWithPrecision } from './util';
export interface PercentPropInt {
prefix?: ReactNode;
suffix?: ReactNode;
value?: number | string;
precision?: number;
// ... |
# Copyright 2019 Google 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 or agreed to in writing,... |
using Cpp2IL.Core.Analysis.Actions.Base;
using Cpp2IL.Core.Analysis.ResultModels;
using Mono.Cecil.Cil;
using Instruction = Iced.Intel.Instruction;
namespace Cpp2IL.Core.Analysis.Actions.x86
{
public class UnknownClassOffsetReadAction : BaseAction<Instruction>
{
private uint _offset;
public U... |
RSpec.describe RailsAuthorize do
it 'has a version number' do
expect(RailsAuthorize::VERSION).not_to be nil
end
subject do
extend(described_class)
end
let(:post) { Post.new }
let(:without_policy) { WithoutPolicy.new }
let(:user) { {name: 'User'} }
let(:current_user) { {name: 'Current user'} }
... |
var searchData=
[
['display_3',['Display',['../classmy_matrix.html#a0e0488e9af50c513bc79f930a9d37f95',1,'myMatrix']]]
];
|
module NomineeActivityHelper
ACTIVITY_MAPPINGS = {
"ARM": "Armed Forces",
"ART": "Arts and Media",
"ASY": "Asylum Seekers and Refugees",
"PLY": "Children and Young People",
"SOC": "Community Hubs and Services",
"CUL": "Cultural",
"DIS": "Disability",
"EDU": "Education and Employment",... |
#!/bin/sh
LOCATION="/root/work/wb"
python ${LOCATION}/rdup.py -i ${LOCATION} -o ${LOCATION}
python ${LOCATION}/upload_v3.py -i ${LOCATION} -o ${LOCATION}
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Hastelloy_Products extends CI_Controller {
public function index()
{
$data['content'] = 'hastelloy_products/template';
$this->load->view('template',$data);
}
public function Hastelloy_Pipes_And_Tubes(){
$data['content'] = 'hast... |
from os import environ
import logging
class Logger():
def __init__(self, name, level=logging.INFO):
self.level = level
self.log = logging.getLogger(name)
self.log.setLevel(level if level else environ.get("LOGLEVEL", logging.INFO))
def addConsoleHandler(self, level=None, formatted=Tru... |
package kr.ac.kpu.lbs_platform.adapter
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.widget.AppCompatImageView
import androidx.fragme... |
package com.dxc.ssi.agent.api.callbacks.didexchange
enum class DidExchangeError {
INVALID_INVITATION_URL,
UNKNOWN_ERROR
} |
#!/usr/bin/env bash
info "Creating symlinks..."
# Symlink dotfiles to our home.
ln -sf "$HOME/code/dotfiles" "$DOTFILES_DIR"
ln -sf "$SOLARIZED_DIR/dircolors-solarized/dircolors.ansi-dark" "$HOME/.dircolors"
# zsh
ln -sf "$DOTFILES_DIR/zsh/zlogin" "$HOME/.zlogin"
ln -sf "$DOTFILES_DIR/zsh/zshrc" "$HOME/.zshrc"
ln -... |
const { MigrationInterface, QueryRunner, TableColumn } = require('typeorm');
module.exports = class UserAddingTest1645043163256 {
async up(queryRunner) {
await queryRunner.addColumn(
'user',
new TableColumn({
name: 'test',
type: 'boolean',
}),
);
}
async down(queryRunne... |
var utils = require('../../../lib/utils');
module.exports = {
re: [
/^https?:\/\/elections\.huffingtonpost\.com\/pollster\/(?:embed\/)?([-a-z0-9]+)(?:\/edit)?(.*)/i
],
mixins: ["*"],
getLink: function(urlMatch) {
return {
href: '//elections.huffingtonpost.com/pollste... |
---
data_non_statistical: false
goal_meta_link:
goal_meta_link_text:
graph_title: localised_indicators.10-1-1-x-title
graph_type: line
indicator_number: 10.1.1.x
indicator_name: localised_indicators.10-1-1-x-title
indicator_sort_order: 10-01-01-xx
published: true
reporting_status: notstarted
sdg_goal: '10'
target_name:... |
{
TMongoWire: mongoStream.pas
Copyright 2010-2017 Stijn Sanders
Made available under terms described in file "LICENSE"
https://github.com/stijnsanders/TMongoWire
v1.1.0
}
unit mongoStream;
{$D-}
{$L-}
interface
uses Classes, mongoWire, jsonDoc;
type
TMongoStream = class(TStream)
privat... |
{-# LANGUAGE GADTs, DeriveFunctor #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE DerivingVia #-}
module ArtHistory.Languages.Definitions where
import ArtHistory.Messages
import Types.Common as Common (Message)
import ArtHistory.Types (Event,Quiz,QuizConfig,Error,A... |
# @effection/atom
## 2.0.0-beta.3
### Patch Changes
- Updated dependencies [3e77f29]
- Updated dependencies [5d95e6d]
- Updated dependencies [9700b45]
- Updated dependencies [9700b45]
- @effection/subscription@2.0.0-beta.3
- @effection/core@2.0.0-beta.3
- @effection/channel@2.0.0-beta.3
## 2.0.0-beta.2
### P... |
package com.oratakashi.covid19.data.model.recovered
import com.google.gson.annotations.SerializedName
data class DataRecovered (
@SerializedName("provinceState") val provinceState : String?,
@SerializedName("countryRegion") val countryRegion : String?,
@SerializedName("lat") val lat : Float?,
@Seriali... |
part of '../dart_stream.dart';
class _TakeWhileOp<T> extends _DsPipeline<T, T> {
final JPredicate<T> predicate;
_TakeWhileOp(_AbstractPipeline previousStage, this.predicate)
: super.op(previousStage, _OpFlag.NOT_SIZED);
@override
_Sink<T> opWrapSink(int flags, _Sink<T> sink) {
return _TakeWhileSink... |
# assessment
あなたのいいところ診断ゲーム
https://rock-for-you.github.io/assessment/assessment.html
|
# frozen_string_literal: true
require_relative 'action/buy_train'
module Engine
class Phase
attr_reader :buy_companies, :name, :operating_rounds, :train_limit, :tiles
TWO = {
name: '2',
operating_rounds: 1,
train_limit: 4,
tiles: :yellow,
}.freeze
THREE = {
name: '3',... |
package org.jetbrains.plugins.scala.lang.parameterInfo.functionParameterInfo
class FunctionParameterInfoConstructorsTest extends FunctionParameterInfoTestBase {
override def getTestDataPath: String =
s"${super.getTestDataPath}constructors/"
def testAnnotations(): Unit = doTest()
def testMemberModifiers():... |
use futures::executor;
use rumpsteak_oneshot::{session3, End, Left, Receive, Right, Send, SessionPair};
type AdderAToB = Send<i32, Receive<i32, End>>;
type AdderAToC = Send<i32, Receive<i32, End>>;
type AdderAQueue = Left<Left<Right<Right<End>>>>;
type AdderBToA = Receive<i32, Send<i32, End>>;
type AdderBToC = Send<i... |
package org.apache.spark.mllib.stat.correlation
import org.apache.spark.rdd.RDD
object ExposedPearsonCorrelation {
def computeCorrelation(a: RDD[Double], b: RDD[Double]): Double =
PearsonCorrelation.computeCorrelation(a,b)
} |
<?php declare(strict_types=1);
namespace Gitilicious\Preflight;
class Results implements \Iterator
{
private $position = 0;
private $results = [];
public function addResult(Result $result)
{
$this->results[] = $result;
}
public function isPassed(): bool
{
foreach ($this-... |
## **v1.1.0**
##### 💥️ 重大变动
- 取消AcornModel1的方式发布flink作业
##### ✨ 新功能
- 支持使用sql发布作业
- 支持使用java发布作业
##### 🎨 优化
- 添加项目打包脚本,方便用户快速启动插件
##### 🐛 修复
- 无
## **v1.0.0**
> 发布时间 2021-12-11
##### 💥️ 重大变动
- 无
##### ✨ 新功能
- 支持kafka同步到mysql
- 支持kafka同步到kafka
- 支持kafka同步到doris
- 支持kafka同步到hive
##### 🎨 优化
- 无
####... |
CLOUDFRONT_DISTRIBUTION_ID="E3G41PDQ01SVNY"
echo ""
echo "Invalidating cache:"
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/" |
import { IStringIdentifiable } from 'pip-services3-commons-node';
export declare class OperationalEventV1 implements IStringIdentifiable {
id: string;
org_id: string;
create_time?: Date;
creator_id?: string;
type: string;
rule_id?: string;
severity: number;
time: Date;
pos?: any;
... |
[avalanche](../README.md) › [API-AVM-InitialStates](api_avm_initialstates.md)
# Module: API-AVM-InitialStates
## Index
### Classes
* [InitialStates](../classes/api_avm_initialstates.initialstates.md)
|
use std::collections::HashMap;
fn main() {
let mut scores: HashMap<String, i32> = HashMap::new();
scores.insert("abc".to_string(), 10);
if let Some(v) = scores.get("abc") {
println!("v = {}", v);
}
let keys = vec![String::from("red"), String::from("yellow")];
let values = vec![1, 2];
... |
import 'package:flutter/material.dart';
class Language {
final String? title;
final Locale? locale;
final int? index;
Language({@required this.title, this.locale, this.index});
}
|
package typingsSlinky.reactNepalMap.components
import slinky.web.html.`*`.tag
import typingsSlinky.StBuildingComponent
import typingsSlinky.reactNepalMap.mod.itemProps
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlob... |
## Test Correlations
### Description
Provides a statistical significance test for correlations of the specified variables.
### Usage
```r
## Default S3 method
testCorrelations(...,main=NULL,digits=3)
## S3 method for class 'wss'
testCorrelations(CompStats,CorrStats,main=NULL,digits=3)
```
### Arguments
Argument ... |
# Your job is to create a calculator which
# evaluates expressions in Reverse Polish notation.
#
# For example expression 5 1 2 + 4 * + 3 -
# (which is equivalent to 5 + ((1 + 2) * 4) - 3 in normal notation)
# should evaluate to 14.
#
# Note that for simplicity you may assume that there are always spaces
# between numb... |
package pl.exsio.querydsl.entityql.kotlin.config.enums.by_ordinal
enum class KUserTypeByOrdinal {
ADMIN, CLIENT
} |
module Core.SpecHelp (
varn, lam, pi, app, appL, tcPasses, tcFails,
shouldEquate, shouldNotEquate, u0, u1, a, b,
c, va, vb, vc, x, y, z, vx, vy, vz
) where
import Protolude hiding (pi)
import Core.LTT
import Core.Evaluate
import Core.PrettyPrint (disp)
import Core.Environment
import Unbound.Generics.LocallyN... |
module Octopress
module Deploy
class Rsync
def initialize(options)
@options = options
@flags = @options[:flags] || ' -avz'
@user = @options[:user]
@port = @options[:port]
@local = @options[:site_dir] || '_site'
@remote_path ... |
import 'package:flutter/material.dart';
import 'package:bloc_test/bloc_test.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:formz/formz.dart';
import 'package:mocktail/mocktail.dart';
import 'package:flutter_idiomatic/import.dart';
class MockAuth... |
package org.scaffoldeditor.scaffold.plugin_utils;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.json.JSONObject;
im... |
#pragma once
// std
#include <concepts>
#include <string>
// SFML
#include <SFML/System/String.hpp>
// Game
#include "Common.h"
namespace YAML
{
class Node;
}
struct AppConfig
{
/// Parse YAML file containing app config and return AppConfig
static AppConfig from_file(const std::string& filename);
... |
package front
import (
"strconv"
"fmt"
"math"
"golang.org/x/text/message"
"golang.org/x/text/language"
"github.com/aws/aws-lambda-go/events"
"github.com/merlincox/aws-api-gateway-deploy/pkg/models"
)
func (front Front) statusHandler(request events.APIGatewayProxyRequest) (interface{}, models.ApiError) {
r... |
#!/usr/bin/env bash
MODULE_NAME='Home directory backup'
log_module_start
HOME_BACKUP_DIR="$HOME/.oldhome"
function has_all_home_dirs()
{
if dir_is_empty "$HOME"
then
echo "Home directory is empty, no backup performed"
return 1
fi
local directories='backup comms devel doc media other... |
module Jekyll
class TimeTag < Liquid::Tag
def render(context)
(Time.now.to_f).to_s.gsub(/\./,'')
end
end
end
Liquid::Template.register_tag('time', Jekyll::TimeTag) |
#!/usr/bin/env bash
set -e # exit when error, no verbose
printf "\nBuilding ${LIBRARY_NAME} library\n"
dist_dir="dist"
mkdir -p "${dist_dir}"
rm -rf "${dist_dir:?}"/*
BABEL_DISABLE_CACHE=1 BABEL_ENV=npm babel -q index.js -o "$dist_dir/index.js"
BABEL_DISABLE_CACHE=1 BABEL_ENV=npm babel -q src/ --out-dir "$dist_dir... |
<?php
namespace Website;
use Website\Traits\LanguageTrait;
use Phalcon\Mvc\Controller as PhController;
/**
* Class Controller
*
* @property \Website\Locale $locale
*
* @property \Website\Utils $utils
* @property \Phalcon\Mvc\View\Simple $viewSimple
*/
class Controller extends PhController
{... |
! { dg-do run }
! Tests the fix for PR27113, in which character structure
! components would produce the TODO compilation error "complex
! character array constructors".
!
! Test based on part of tonto-2.2;
! Contributed by Paul Thomas <pault@gcc.gnu.org>
!
type BASIS_TYPE
character(len=8) :: label
end type
... |
package com.sdoward.rxgooglemap
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.model.Marker
import io.reactivex.Observable
import io.reactivex.functions.Function
class InfoWindowLongClickFunc : Function<GoogleMap, Observable<Marker>> {
override fun apply(t: GoogleMap): Observable... |
package dev.komu.ahwen.metadata
import dev.komu.ahwen.record.Schema
import dev.komu.ahwen.record.TableInfo
import dev.komu.ahwen.tx.Transaction
import dev.komu.ahwen.types.ColumnName
import dev.komu.ahwen.types.IndexName
import dev.komu.ahwen.types.TableName
/**
* A facade to database metadata.
*/
class MetadataMan... |
# mini-alexa-code
### A basic python which tells you a joke or a riddle or plays a game with you
|
using System;
namespace DP16Mediator
{
public abstract class Colleague
{
public Mediator TheMediator { get; set; }
public abstract void ReceiveNotice(string notice);
public void PublishNotice(string notice)
{
this.TheMediator.Bulletin(notice);
}
}
}
|
/*==========================================================
File: commands.c
Author: _pragma
Description: Misc console command functions. (Most will
be in the file they are related to, see
commands.h)
==========================================================*/
#include <... |
# frozen_string_literal: true
require_relative '../test_helper'
module Opus::Types::Test
class AbsurdTest < Critic::Unit::UnitTest
it 'raises when called' do
ex = assert_raises(TypeError) do
T.absurd(nil)
end
assert_includes(ex.message, 'Control flow reached T.absurd. Got value:')
e... |
export * from "./tagFactory"
export * from "./shelfFactory"
export * from "./entryFactory"
|
#include "GenerateRectAtlasMesh.h"
#include "AtlasExtractSubmesh.h"
#include <atlas/array.h>
#include <atlas/grid.h>
#include <atlas/mesh/actions/BuildEdges.h>
#include <atlas/meshgenerator.h>
#include <atlas/util/CoordinateEnums.h>
namespace {
bool TriangleInBB(const atlas::Mesh& mesh, int cellIdx, std::tuple<doubl... |
//////////////////////////////////////////////////////////////////////////
//
// USER-SPACE IMPLEMENTTION OF HTTP.SYS
//
// 2018 (c) ir. W.E. Huisman
// License: MIT
//
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "http_private.h"
#include "ServerSession.h"
#... |
package passive.signature;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
*
* @author isayan
*/
public class IPCookieProperty {
@Expose
@SerializedName("scanRequest")
private boolean scanRequest = true;
public boolean getScanRequest() {
r... |
/// Rounds the given number to the given precision.
/// Takes a function parameter so the exact rounding function (ceil, floor or round)
/// can be specified.
#[cfg(any(feature = "ceil", feature = "floor", feature = "round"))]
#[inline]
pub(crate) fn round_to_precision<F>(num: f64, precision: i64, fun: F) -> f64
where
... |
-- Add CASADEs on all foreign-key relations.
-- This makes deleting manifests and layers much simpler.
ALTER TABLE indexreport
DROP CONSTRAINT indexreport_manifest_id_fkey;
ALTER TABLE indexreport
ADD CONSTRAINT indexreport_manifest_id_fkey
FOREIGN KEY (manifest_id)
REFERENCES manifest(id)
ON DELETE CASCADE;
ALTE... |
my ($nose, @eyes, %teeth);
our ($House, @Autos, %Kids);
state ($name, $rank, $serno);
local (*Spouse, $phone{HOME});
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using LogUtils;
namespace WorkerLib
{
public abstract class TimerWorker: ThreadWorker
{
public event EventTriggeredHandler<int> EventTriggered;
private AutoResetEvent periodModifiedEvent;
protected A... |
import normalizeProductId from './normalize-product-id';
/**
* 从 hostname 中提取产品 ID
*/
function getFromHostname(hostname: string): string {
const [productId] = hostname.split('.');
return normalizeProductId(productId);
}
export default function getFromUrl(href: string, base?: string): string {
let productId... |
package com.example.dankbrowser
import org.junit.Test
class TaskListGetItemCountTest {
@Test
fun returnZeroIfNoTasksAreCreated() {
val taskList = getNewTaskList()
assert(taskList.getItemCount() == 0)
}
@Test
fun totalNumberOfRvItems() {
val taskList = getNewTaskList()
... |
<?php
/**
*
* @copyright 2008 - https://www.clicshopping.org
* @Brand : ClicShopping(Tm) at Inpi all right Reserved
* @Licence GPL 2 & MIT
* @licence MIT - Portion of osCommerce 2.4
* @Info : https://www.clicshopping.org/forum/trademark/
*
*/
namespace ClicShopping\Apps\Configuration\Admin... |
---
title: C28305 | Microsoft Docs
ms.custom: ''
ms.date: 11/15/2016
ms.prod: visual-studio-dev14
ms.reviewer: ''
ms.suite: ''
ms.technology:
- vs-devops-test
ms.tgt_pltfrm: ''
ms.topic: article
f1_keywords:
- C28305
helpviewer_keywords:
- C28305
ms.assetid: c9495d3f-aa11-4695-ab8d-1d2194da9ce3
caps.latest.revision: 5
... |
<?php
namespace Backend\APIBundle\Repository;
/**
* MagazineRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class MagazineRepository extends \Doctrine\ORM\EntityRepository
{
public function reorder($content)
{
$em = $this->getEntityM... |
## OpenXPKI::Workflow::Config
##
package OpenXPKI::Workflow::Context;
use strict;
use warnings;
use English;
use Encode;
use Data::Dumper;
use Workflow 1.39;
use OpenXPKI::Debug;
use OpenXPKI::Exception;
use OpenXPKI::Serialization::Simple;
use OpenXPKI::Server::Context qw( CTX );
use base qw( Workflow::Context );
... |
package ca.corefacility.bioinformatics.irida.config.environment;
import java.util.Map;
import java.util.Properties;
import com.google.common.collect.ImmutableMap;
import org.apache.commons.logging.Log;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.env.EnvironmentPostProcessor;
im... |
import pytest
from _pytest.config import UsageError
import aioredis.util
def pytest_addoption(parser):
parser.addoption("--redis", default=None,
help="run tests which require redis connection")
def pytest_configure(config):
config.addinivalue_line("markers", "redis: marked tests require... |
using System.Diagnostics.CodeAnalysis;
using EFT.Interactive;
#nullable enable
namespace EFT.Trainer.Extensions
{
public static class DoorExtensions
{
public static bool IsValid([NotNullWhen(true)] this Door? door)
{
return door != null;
}
}
}
|
import React from "react";
export default props => <h1>{props.text || "This is a header."}</h1>;
|
package org.cdlib.ill.report.vdx.procedures;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Objects;
import org.cdlib.ill.report.vdx.VdxCampus;
import org.cdlib.ill.report.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.