code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
beat severely with a whip or rod
beat with a cane
| D |
module d.llvm.constant;
import d.llvm.codegen;
import d.ir.expression;
import util.visitor;
import llvm.c.core;
struct ConstantGen {
private CodeGen pass;
alias pass this;
this(CodeGen pass) {
this.pass = pass;
}
// XXX: This should be removed at some point, but to ease transition.
LLVMValueRef visit(Exp... | D |
module day9.part2.main;
import std;
import core.thread;
void main()
{
auto memory = File("input", "r").readln.strip.splitter(",").map!(to!long).array;
memory.length = 2048;
auto input = [2L];
auto output = outputRange!((long e) { e.writeln; })();
Scheduler().schedule(createFiber(memory, input, out... | D |
module android.java.android.provider.Telephony_Mms_Outbox_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.lang.Class_d_interface;
@JavaName("Telephony$Mms$Outbox")
final c... | D |
//****************************
// EVT_UNDEADDRAGONDEAD_ENDSITUATION (Funktion, die beim Durchschreiten des Triggerfeldes vor dem Untoten Drachen ausgeführt wird)
//****************************
var int EVT_UNDEADDRAGONDEAD_ENDSITUATION_OneTime;
func void EVT_UNDEADDRAGONDEAD_ENDSITUATION ()
{
};
| D |
; Copyright (C) 2008 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 applicable law ... | D |
/Users/mu/Hello/.build/x86_64-apple-macosx/debug/Command.build/Command/CommandArgument.swift.o : /Users/mu/Hello/.build/checkouts/console/Sources/Command/Command/Command.swift /Users/mu/Hello/.build/checkouts/console/Sources/Command/Base/CommandRunnable.swift /Users/mu/Hello/.build/checkouts/console/Sources/Command/Run... | D |
// https://issues.dlang.org/show_bug.cgi?id=2195
// REQUIRED_ARGS: -de
/*
TEST_OUTPUT:
---
fail_compilation/fail2195.d(16): Deprecation: variable `variable` is shadowing variable `fail2195.main.variable`. Rename the `foreach` variable.
---
*/
void main()
{
int[int] arr;
int variable;
foreach (i, j; arr)
... | D |
///
module nanogui.popup;
/*
nanogui/popup.h -- Simple popup widget which is attached to another given
window (can be nested)
NanoGUI was developed by Wenzel Jakob <wenzel.jakob@epfl.ch>.
The widget drawing code is based on the NanoVG demo application
by Mikko Mononen.
All rights reserved. Use... | D |
/Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/target/release/deps/libp2p_plaintext-50225a8fb6ccf863.rmeta: /Users/edward.wangcrypto.com/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-plaintext-0.29.0/src/lib.rs /Users/edward.wangcrypto.com/.cargo/registry/src/gith... | D |
/**
* d-hub, a githook web app.
*
* Author: Jan (ysgard) Van Uytven, ysgard@gmail.com
*
*/
module ysgard.dhub;
import core.stdc.stdlib;
import std.file;
import std.process;
import std.stdio;
import std.string;
import vibe.d;
enum Action { shell, rabbitmq }
struct Hook {
string branch;
Action action;
string ... | D |
instance KDW_14020_Addon_Nefarius_ADW(Npc_Default)
{
name[0] = "Нефариус";
guild = GIL_KDW;
id = 14020;
voice = 5;
flags = NPC_FLAG_IMMORTAL;
npcType = NPCTYPE_MAIN;
aivar[AIV_MagicUser] = MAGIC_ALWAYS;
aivar[AIV_IgnoresFakeGuild] = TRUE;
aivar[AIV_IgnoresArmor] = TRUE;
aivar[AIV_Teeth] = 1;
B_SetAttribute... | D |
interface Camera {
// member function prototypes and static methods
}
interface MobilePhone {
// member function prototypes and static methods
}
class CameraPhone: Camera, MobilePhone {
// member function implementations for Camera,
// MobilePhone, and CameraPhone
}
| D |
module hunt.security.acl.permission.Item;
struct PermissionItem
{
string key;
string name;
public this( string key , string name)
{
this.name = name;
this.key = key;
}
}
| D |
fi (1) --- terminate conditional statement 03/20/80
_U_s_a_g_e
if <value>
then
{ <command> }
else
{ <command> }
fi
_D_e_s_c_r_i_p_... | D |
/**************************************************************************
КАБАН
Трофеи: мясо, шкура.
***************************************************************************/
prototype Mst_Default_Keiler(C_Npc)
{
name[0] = "Кабан";
guild = GIL_Keiler;
aivar[AIV_MM_REAL_ID] = ID_Keiler;
level = ... | D |
module hunt.redis;
import hunt.collection.Linkedlist;
import hunt.collection.Queue;
public class Queable {
private Queue<Response<?>> pipelinedResponses = new LinkedList<Response<?>>();
protected void clean() {
pipelinedResponses.clear();
}
protected Response<?> generateResponse(Object data) {
Respo... | D |
module android.java.java.security.cert.CertPathChecker;
public import android.java.java.security.cert.CertPathChecker_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!CertPathChecker;
import import1 = android.java.java.lang.Class;
| D |
module UnrealScript.UTGame.UTTurretMuzzleFlashLight;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.UDKBase.UDKExplosionLight;
extern(C++) interface UTTurretMuzzleFlashLight : UDKExplosionLight
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final s... | D |
/Users/horkimlong/Desktop/Weather/Build/Intermediates.noindex/Weather.build/Debug-iphonesimulator/Weather.build/Objects-normal/x86_64/LocationWeatherTableViewCell.o : /Users/horkimlong/Desktop/Weather/Weather/Models/Location/LocationData.swift /Users/horkimlong/Desktop/Weather/Weather/Models/Weather/WeatherData.swift /... | D |
func void B_Bartok_ShitAnOrc()
{
AI_Output(self,other,"DIA_Bartok_Angekommen_04_02"); //(pro sebe) Skřet, a hned za branami města - do hajzlu...
};
| D |
/*
* hunt-proton: AMQP Protocol library for D programming language.
*
* Copyright (C) 2018-2019 HuntLabs
*
* Website: https://www.huntlabs.net/
*
* Licensed under the Apache-2.0 License.
*
*/
module hunt.proton.codec.transport.TransferType;
import hunt.collection.AbstractList;
import hunt.col... | D |
// Compiler implementation of the D programming language
// Copyright (c) 1999-2016 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
module ddmd.dinterpret;
import core... | D |
// Written in the D programming language.
/**
This is a submodule of $(MREF std, algorithm).
It contains generic iteration algorithms.
$(SCRIPT inhibitQuickIndex = 1;)
$(BOOKTABLE Cheat Sheet,
$(TR $(TH Function Name) $(TH Description))
$(T2 cache,
Eagerly evaluates and caches another range's `front`.)
$(T2 ca... | D |
/**
SDL format support for PackageRecipe
Copyright: © 2014 rejectedsoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module dub.recipe.sdl;
import dub.recipe.packagerecipe;
alias SDLNode = void*; // TODO
void parseSDL(ref Packag... | D |
module android.java.java.util.IntSummaryStatistics_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.util.IntSummaryStatistics_d_interface;
import import1 = android.java.java... | D |
/++ dub.json:
{
"name": "qshow",
"dependencies": {
"colorize": "~>1.0.5"
}
}
+/
import std;
import colorize : color, fg;
string removeCtrlCharAndEscSeq(string str)
{
auto ds = to!(dchar[])(str);
// remove control character
foreach(ref e; ds)
if(e < 0x20)
e = ' ';
... | D |
prototype Mst_Default_OrcWarrior(C_Npc)
{
name[0] = "Орк";
guild = GIL_ORC;
aivar[AIV_MM_REAL_ID] = ID_ORCWARRIOR;
voice = 18;
level = 5;
attribute[ATR_STRENGTH] = 100;
attribute[ATR_DEXTERITY] = 80;
attribute[ATR_HITPOINTS_MAX] = 400;
attribute[ATR_HITPOINTS] = 400;
attribute[ATR_MANA_MAX] = 0;
attribute[A... | D |
continuous and profound contemplation or musing on a subject or series of subjects of a deep or abstruse nature
(religion) contemplation of spiritual matters (usually on religious or philosophical subjects)
| D |
module deadcode.util.string;
import std.algorithm;
import std.traits;
import std.typecons;
import deadcode.test;
mixin registerUnittests;
// TODO: This could be optimized
auto uniquePostfixPath(R)(R names)
{
import std.algorithm;
import std.array;
import deadcode.core.path;
struct ... | D |
import std.stdio, std.file, std.conv, std.getopt;
import bio.gff3.file, bio.gff3.validation;
int main(string[] args) {
// Parse command line arguments
bool replace_escaped_chars = false;
bool validate = false;
bool parse_features = false;
uint feature_cache_size = 1000;
bool link_features = false;
try {
... | D |
/**
* Spelling suggestion based on the Spelling Corrector found at:
* norvig.com/spell-correct.html
*
* A word list, big.txt can also be downloaded from the website:
* norvig.com/big.txt
*
* Synopsis:
* --------
* buildList(std.file.readText("big.txt").replace(regex(".?!"), " ").split);
*
* if(misspelled(ar... | D |
module godot.script;
import std.meta : AliasSeq, staticIndexOf;
import std.traits : Unqual;
import godot.d.meta;
import godot.core;
import godot.c;
import godot.object;
import godot.resource;
@GodotBaseClass struct Script
{
static immutable string _GODOT_internal_name = "Script";
public:
union { godot_object _godot_o... | D |
/Users/macchamps/Desktop/MyPod/MMCommon/Example/build/Pods.build/Debug-iphonesimulator/MMCommon.build/Objects-normal/x86_64/MMButton.o : /Users/macchamps/Desktop/MyPod/MMCommon/MMCommon/Classes/MMTextField/MMTextField.swift /Users/macchamps/Desktop/MyPod/MMCommon/MMCommon/Classes/MMImage/MMImage.swift /Users/macchamps/... | D |
/Users/jessicavilaysak/Desktop/Shuffli\ 2/Build/Intermediates/Pods.build/Release-iphonesimulator/Toucan.build/Objects-normal/x86_64/Toucan.o : /Users/jessicavilaysak/Desktop/Shuffli\ 2/Pods/Toucan/Source/Toucan.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimu... | D |
module godot.separator;
import std.meta : AliasSeq, staticIndexOf;
import std.traits : Unqual;
import godot.d.meta;
import godot.core;
import godot.c;
import godot.object;
import godot.control;
@GodotBaseClass struct Separator
{
static immutable string _GODOT_internal_name = "Separator";
public:
union { godot_object ... | D |
/*******************************************************************************
copyright: Copyright (c) 2005 Kris Bell. Все права защищены
license: BSD стиль: $(LICENSE)
version: Initial release: December 2005
author: Kris
******... | D |
// *************************************************************
// B_SelectSpell
// -------------
// Magieauswahl für Menschen und Monster
// Wenn Auswahlkriterien erfüllt (je nach Gilde unterschiedlich)
// --> TRUE, sonst FALSE
// Humans zaubern nur als KdF, PAL oder DMT
// *******************************************... | D |
/Users/konshin/Documents/dev/my/EZJson/build/EZJson.build/Debug-iphoneos/EZJson.build/Objects-normal/arm64/JSON.o : /Users/konshin/Documents/dev/my/EZJson/EZJson/Types/JSONError.swift /Users/konshin/Documents/dev/my/EZJson/EZJson/Types/JSON.swift /Users/konshin/Documents/dev/my/EZJson/EZJson/Extensions/Extensions.swift... | D |
/*
* s_unknown.d : Unknown file formats (with offset)
*/
module Etc;
import core.stdc.stdio;
import dfile : fp, report, report_unknown;
/// Search for signatures that's not at the beginning of the file.
void scan_etc()
{
if (fseek(fp, 0x3C, SEEK_SET) == 0) { // Palm Database Format
import s_mobi : palm... | D |
module spriter.renderer;
import game, math, graphics, spriter.loader, spriter.types;
void addSprite(Renderer* renderer, ref SpriteInstance sprite, float2 position, Color color, float2 scale, float rotation = 0f)
{
//This is stupid.
auto object = SpriteManager.lookup(sprite.id);
auto anim = object.entities[sprite.e... | D |
void main() {
auto ip = readAs!(int[]), A = ip[0], B = ip[1], C = ip[2], X = ip[3], Y = ip[4];
int res;
if(2*C-B < A && 2*C*X < X*A) {
res += 2*C*X;
Y -= X;
X = 0;
}
if(2*C-A < B && 2*C*Y < Y*B) {
res += 2*C*Y;
X -= max(0, Y);
Y = 0;
}
if(X > 0) res += min(A*X, 2*C*max(X, 0));
if(Y > 0) res += min(B... | D |
/Users/elizabethgentile/Desktop/safe_steps_1.0/DerivedData/MapsDirection/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Timeline.o : /Users/elizabethgentile/Desktop/safe_steps_1.0/Pods/Alamofire/Source/MultipartFormData.swift /Users/elizabethgentile/Desktop/safe_steps_1.0/Pod... | D |
// generated by fakerjsgenerator
///
module faked.faker_nl;
import faked.base;
///
class Faker_nl : Faker {
@safe:
import std.random;
import std.array;
import std.format;
import std.conv : to;
///
this(int seed) {
super(seed);
}
///
override string loremWords() {
auto data = [
"alias",
"cons... | D |
module sb.threading.thread_worker;
import sb.threading.thread_enums;
/// Abstraction of a thread worker implementation, assigned + run by the a threading context.
/// Examples include the sb main thread, graphics thread, audio thread, and various worker threads.
/// Inter-thread messaging is done via the thread contex... | D |
/*
* Copyright 2015-2018 HuntLabs.cn
*
* 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... | D |
// Written in the D programming language.
/**
String handling functions.
$(SCRIPT inhibitQuickIndex = 1;)
$(DIVC quickindex,
$(BOOKTABLE ,
$(TR $(TH Category) $(TH Functions) )
$(TR $(TDNW Searching)
$(TD
$(MYREF column)
$(MYREF indexOf)
$(MYREF indexOfAny)
$(MYREF indexOfNeit... | D |
/Users/elizabethgentile/Desktop/safe_steps_1.0/DerivedData/MapsDirection/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData.o : /Users/elizabethgentile/Desktop/safe_steps_1.0/Pods/Alamofire/Source/MultipartFormData.swift /Users/elizabethgentile/Desktop/safe_step... | D |
module android.java.java.util.ListResourceBundle_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import2 = android.java.java.util.ResourceBundle_d_interface;
import import1 = android.java.java.util.Lo... | D |
/Users/arenomat/Documents/Development/FootballPool/FootballPool/Build/Intermediates.noindex/FootballPool.build/Debug-iphoneos/FootballPool.build/Objects-normal/arm64/StandingsViewController.o : /Users/arenomat/Documents/Development/FootballPool/FootballPool/AppDelegate.swift /Users/arenomat/Documents/Development/Footba... | D |
/home/cole/Documents/web-dev/react/peg/clientRS/target/release/build/log-1588c11b80093428/build_script_build-1588c11b80093428: /home/cole/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.11/build.rs
/home/cole/Documents/web-dev/react/peg/clientRS/target/release/build/log-1588c11b80093428/build_script_build-1588... | D |
module api;
import std.variant;
import std.array;
import vibe.d;
import models;
import mysql.db;
private T[] getTypeArray(T)(ref ModelSet!T set) {
T[] retval;
retval.length = set.length;
for(uint i = 0, len = set.length; i < len; i++) {
T t = set[i];
retval[i] = t;
}
return retval;
}
interface IGAAPI {
stri... | D |
/******************************************************************************
This module contains the parser part of the compiler. This uses a lexer to
get a stream of tokens, and parses the tokens into an AST.
License:
Copyright (c) 2008 Jarrett Billingsley
This software is provided 'as-is', without any express o... | D |
/Users/Lavanya/Desktop/AlbumsApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/DateTransform.o : /Users/Lavanya/Desktop/AlbumsApp/Pods/ObjectMapper/Sources/FromJSON.swift /Users/Lavanya/Desktop/AlbumsApp/Pods/ObjectMapper/Sources/ToJSON.swift /Users/Lavanya/Deskto... | D |
module Convert;
version(unittest) import fluent.asserts;
import std.container;
import std.range;
import Tokens;
class ParseException : Exception
{
this(string message)
{
super(message);
}
}
unittest
{
precedence(Token("+", TokenType.Operator)).should.be.lessThan(precedence(Token("*", TokenType.Operator)));
... | D |
/Users/abelfernandez/projects/vapor-server/Hello/.build/debug/Transport.build/Internet/Port.swift.o : /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/Stream.swift /Users/abelfernandez/projects/vapor-server/Hello/.build/checkouts/sockets.git-9729... | D |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This source file is made available under the terms contained in the README file
* accompanying this program. The README file should be located in the about_... | D |
module UnrealScript.Engine.RB_StayUprightSetup;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.RB_ConstraintSetup;
extern(C++) interface RB_StayUprightSetup : RB_ConstraintSetup
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static Scr... | D |
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_12_BeT-2541981... | D |
module grpc.GrpcCode;
string GetFunc(string funcstr)
{
import std.string;
string[] funcs = funcstr.split(".");
string myFunc;
if (funcs.length > 0)
myFunc = funcs[$ - 1];
else
myFunc = funcstr;
return myFunc;
}
string CM(O , string service , string funcs = __FUNCTION__)()
{
... | D |
/home/devjeetroy/Research/c2s_pytorch/rls/data-verifier/target/rls/debug/build/indexmap-b94be05cc9b575b9/build_script_build-b94be05cc9b575b9: /home/devjeetroy/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.3.2/build.rs
/home/devjeetroy/Research/c2s_pytorch/rls/data-verifier/target/rls/debug/build/indexmap-... | D |
/*
* Copyright (C) 2015 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... | D |
INSTANCE NASZ_302_Bandzior (Npc_Default)
{
// ------ NSC ------
name = "Bandzior";
guild = GIL_BDT;
id = 302;
voice = 11;
flags = 0;
npctype = NPCTYPE_AMBIENT;
aivar[AIV_IgnoresArmor] = TRUE;
// ------ Attribute ------
B_SetAttributesToChapter (self, 2);
... | D |
// Copyright (с) 2013 Gushcha Anton <ncrashed@gmail.com>
/*
* This file is part of Borey Engine.
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization
* obtaining a copy of the software and accompanying documentation covered by
* th... | D |
/Users/junanqu/Desktop/SPEED_Interven/DerivedData/SPEED_Interven/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/MapboxCoreNavigation.build/Objects-normal/x86_64/SimulatedLocationManager.o : /Users/junanqu/Desktop/SPEED_Interven/Pods/MapboxCoreNavigation/MapboxCoreNavigation/UIDevice.swift /Users/junanqu/D... | D |
/media/maher/extra/rust/rust_book/projects/saico/target/rls/debug/deps/sql-c44046aa2dd1b254.rmeta: sql/src/lib.rs
/media/maher/extra/rust/rust_book/projects/saico/target/rls/debug/deps/sql-c44046aa2dd1b254.d: sql/src/lib.rs
sql/src/lib.rs:
| D |
// mru example
// http://www.boost.org/doc/libs/1_48_0/libs/multi_index/example/serialization.cpp
import std.stdio;
import multi_index;
import std.string: strip;
class MRU(T){
alias MultiIndexContainer!(T,
IndexedBy!(Sequenced!(), "seq",
HashedUnique!(), "hash")) ItemList;
... | D |
/Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/.build/debug/Leaf.build/Tag/Models/Loop.swift.o : /Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/Packages/Leaf-1.0.3/Sources/Leaf/Argument.swift /Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersA... | D |
module android.java.android.gesture.GestureOverlayView_OnGesturePerformedListener;
public import android.java.android.gesture.GestureOverlayView_OnGesturePerformedListener_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!GestureOverlayView_OnGesturePerformedListener;
import import2 = android.ja... | D |
module util.filerange;
import std.mmfile;
auto fileRange(ByteType = ubyte)(string file) {
import std.traits;
static if(is(ByteType == ubyte)) {
FileRange!ByteType fr;
fr.file = new MmFile(file);
fr.end = fr.file.length;
return fr;
} else
static if(isSomeChar!ByteType) {
UtfFileRange!ByteType u8fr;
u8f... | D |
/Users/Lavanya/Desktop/AlbumsApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/EnumOperators.o : /Users/Lavanya/Desktop/AlbumsApp/Pods/ObjectMapper/Sources/FromJSON.swift /Users/Lavanya/Desktop/AlbumsApp/Pods/ObjectMapper/Sources/ToJSON.swift /Users/Lavanya/Deskto... | D |
in a vivid manner
| D |
// URL: https://yukicoder.me/problems/no/1509
import std;
version(unittest) {} else
void main()
{
int T; io.getV(T);
foreach (_; 0..T) {
long N, A, B; io.getV(N, A, B);
io.putB(gcd(A, B) == 1 && A - 1 <= N - B, "YES", "NO");
}
}
auto io = IO!()();
import lib.io;
| D |
/**
* TypeInfo support code.
*
* Copyright: Copyright Digital Mars 2004 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright
*/
/* Copyright Digital Mars 2004 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See... | D |
/*
TEST_OUTPUT:
---
fail_compilation/diag9004.d(4): Error: undefined identifier FooT.T
fail_compilation/diag9004.d(8): Error: template diag9004.bar does not match any function template declaration. Candidates are:
fail_compilation/diag9004.d(4): diag9004.bar(FooT)(FooT foo, FooT.T x)
fail_compilation/diag9004.d(... | D |
module teg.not;
import teg.try_;
class Not(T...) : Try!T {
alias Try!T base;
static bool skip(S)(S s) { return ! base.skip(s); }
static bool skip(S, O)(S s, ref O o) { return skip(s); }
}
| D |
module android.java.java.lang.reflect.GenericSignatureFormatError_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.io.PrintStream_d_interface;
import import4 = android.java.... | D |
# FIXED
third_party/FreeRTOS/Source/tasks.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/tasks.c
third_party/FreeRTOS/Source/tasks.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdlib.h
third_party/FreeRTOS/Source/tasks.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/inclu... | D |
/*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module rdmd_test;
/**
RDMD Test-suite.
Authors: Andrej Mitrovic
Notes:
Use the --compiler switch to specify a custom compiler ... | D |
an island in West Indies just off the northeastern coast of Venezuela
| D |
/home/iut/M3101/target/rls/debug/deps/queues-3e2e2411b2768caf.rmeta: structures/src/bin/queues.rs
/home/iut/M3101/target/rls/debug/deps/queues-3e2e2411b2768caf.d: structures/src/bin/queues.rs
structures/src/bin/queues.rs:
| D |
/* 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, software
* distributed... | D |
/Users/sriramprasad/Dev/rough/txt/build/txt.build/Debug-iphonesimulator/txt.build/Objects-normal/x86_64/ViewController.o : /Users/sriramprasad/Dev/rough/txt/txt/listVC.swift /Users/sriramprasad/Dev/rough/txt/txt/AppDelegate.swift /Users/sriramprasad/Dev/rough/txt/txt/Databasehandler.swift /Users/sriramprasad/Dev/rough/... | D |
void main() {
debug {
"==================================".writeln;
while(true) {
auto bench = benchmark!problem(1);
"<<< Process time: %s >>>".writefln(bench[0]);
"==================================".writeln;
}
} else {
problem();
}
}
void problem() {
auto N = scan!long;
a... | D |
module android.java.java.security.cert.CertStore;
public import android.java.java.security.cert.CertStore_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!CertStore;
import import0 = android.java.java.util.Collection;
import import6 = android.java.java.lang.Class;
import import3 = android.java.... | D |
/**
Contains the SSLContext class used for SSL based network connections.
Copyright: © 2012 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.crypto.ssl;
import vibe.core.log;
import deimos.openssl.rand;
impo... | D |
import test9435;//semantic;
template Visitors()
{
mixin Semantic!(typeof(this));
}
class Node
{
mixin Visitors;
}
class Expression : Node
{
}
class BinaryExp(TokenType op) : Expression
{
}
| D |
/**
* Open an online manual page.
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: Walter Bright, https://www.digitalmars.com
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/m... | D |
/**
Memory pool with destructors, useful for scoped allocators.
Copyright: © 2012-2013 RejectedSoftware e.K.
© 2014-2015 Etienne Cimon
License: Subject to the terms of the MIT license.
Authors: Sönke Ludwig, Etienne Cimon
*/
module memutils.pool;
import memutils.allocators;
import std.conv : em... | D |
/**
This module provides a `BinaryHeap` (aka priority queue)
adaptor that makes a binary heap out of any user-provided random-access range.
This module is a submodule of $(MREF std, container).
Source: $(PHOBOSSRC std/container/binaryheap.d)
Copyright: 2010- Andrei Alexandrescu. All rights reserved by the respective... | D |
import std.stdio, std.algorithm, std.string, std.array, std.conv;
string uniq_chr(string str){
auto buf=str;
foreach(int i;0..buf.length-1){
int j=i+1;
while(j<buf.length){
if(buf[i] == buf[j]){
auto buf2 = buf[0..j]~buf[j+1..buf.length];
b... | D |
/Users/mbodd/Desktop/RustProjects/RustTuts/struct_example/target/debug/deps/struct_example-b1a532f4779b8757.rmeta: src/main.rs
/Users/mbodd/Desktop/RustProjects/RustTuts/struct_example/target/debug/deps/struct_example-b1a532f4779b8757.d: src/main.rs
src/main.rs:
| D |
porridge made of rolled oats
a gathering at which burgoo stew is served
thick spicy stew of whatever meat and whatever vegetables are available
| D |
/Users/edward.wangcrypto.com/study/substrate_lesson_homework_template/node-template-benchmark/target/release/deps/async_process-b0833c270b6e8a27.rmeta: /Users/edward.wangcrypto.com/.cargo/registry/src/github.com-1ecc6299db9ec823/async-process-1.2.0/src/lib.rs /Users/edward.wangcrypto.com/.cargo/registry/src/github.com-... | D |
module engine.framework.scene_tree.base;
public:
import engine.framework.scene_tree.base.node;
import engine.framework.scene_tree.base.tree;
import engine.framework.scene_tree.base.render;
import engine.framework.scene_tree.base.main_loop;
void scene_tree_register_base() {
import engine.core.symboldb;
GSymbo... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.build/Bar/Loading/Console+LoadingBar.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Swift3.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleCha... | D |
/Users/slashare/zongjie/rust/code/messages-actix/target/rls/debug/build/indexmap-8b96184b48b881cb/build_script_build-8b96184b48b881cb: /Users/slashare/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.0/build.rs
/Users/slashare/zongjie/rust/code/messages-actix/target/rls/debug/build/indexmap-8b96184b48b881c... | D |
/*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | D |
/Users/heidsoft/Downloads/research/rust/heidsoft-rust/my-redis/target/debug/build/proc-macro-error-attr-b53e8723f870621f/build_script_build-b53e8723f870621f: /Users/heidsoft/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-attr-1.0.4/build.rs
/Users/heidsoft/Downloads/research/rust/heidsoft-rust/my-red... | D |
module ui.parse.t.parser;
//import ui : Element;
import std.traits : ReturnType;
import std.stdio;
import std.conv : to;
import std.string : stripRight;
import std.algorithm : startsWith;
import std.file : readText;
import std.stdio ... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.