code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
// REQUIRED_ARGS: -o-
/*
TEST_OUTPUT:
---
fail_compilation/fail8179b.d(10): Error: cannot cast expression `[1, 2]` of type `int[]` to `int[2][1]`
---
*/
void foo(int[2][1]) {}
void main() {
foo(cast(int[2][1])[1, 2]);
}
| D |
module org.serviio.upnp.service.contentdirectory.command.video.ListVideosForGenreCommand;
import java.util.List;
import org.serviio.library.entities.AccessGroup;
import org.serviio.library.entities.Video;
import org.serviio.library.local.service.VideoService;
import org.serviio.profile.Profile;
import org.serviio.upnp... | D |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | D |
module hunt.security.cert.CertPath;
import hunt.security.cert.Certificate;
import hunt.collection;
import std.array;
import std.conv;
/**
* An immutable sequence of certificates (a certification path).
* <p>
* This is an abstract class that defines the methods common to all
* {@code CertPath}s. Subclasses can ... | D |
/Users/dimdew/CLionProjects/talent_plan_kv/simple_kv/target/debug/kvs_client-432ee5324e9b6374: /Users/dimdew/CLionProjects/talent_plan_kv/simple_kv/src/bin/kvs-client.rs /Users/dimdew/CLionProjects/talent_plan_kv/simple_kv/src/engine/kvs.rs /Users/dimdew/CLionProjects/talent_plan_kv/simple_kv/src/engine/mod.rs /Users/d... | D |
/Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/PublishSubject.o : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sin... | D |
a storm with widespread snowfall accompanied by strong winds
| 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 |
func void ZS_MCHunting()
{
PrintDebugNpc(PD_TA_FRAME,"ZS_MCHunting");
ObservingPerception();
AI_SetWalkMode(self,NPC_WALK);
AI_GotoWP(self,self.wp);
};
func void ZS_MCHunting_Loop()
{
PrintDebugNpc(PD_TA_LOOP,"ZS_MCHunting_End");
if(Wld_DetectNpc(self,-1,NOFUNC,GIL_MINECRAWLER))
{
PrintDebugNpc(PD_TA_CHECK,"... | D |
/**
This module provides an $(D Array) type with deterministic memory usage not
reliant on the GC, as an alternative to the built-in arrays.
This module is a submodule of $(LINK2 std_container_package.html, std.container).
Source: $(PHOBOSSRC std/container/_array.d)
Macros:
WIKI = Phobos/StdContainer
TEXTWITHCOMMAS =... | D |
/*
Copyright (c) 2019-2023 Timur Gafarov
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
this license (the "Software") to use, reproduce, display, distribute,... | D |
module conc.pooledexecutor;
import conc.threadfactoryuser;
import conc.executor;
import conc.channel;
import conc.waitnotify;
private import conc.synchronouschannel;
const цел ДЕФ_МАКС_РАЗМ_ПУЛА = цел.max;
const цел ДЕФ_МИН_РАЗМ_ПУЛА = 1;
const дол ДЕФ_ВРЕМЯ_АКТИВНОСТИ = 60000;
class КатушечныйИсполнитель : Поль... | D |
cause to ripen or develop fully
grow ripe
| D |
/**
*
* THIS FILE IS AUTO-GENERATED BY ./parse_specs.d FOR MCU at90pwm3 WITH ARCHITECTURE avr4
*
*/
module avr.specs.specs_at90pwm3;
enum __AVR_ARCH__ = 4;
enum __AVR_ASM_ONLY__ = false;
enum __AVR_ENHANCED__ = true;
enum __AVR_HAVE_MUL__ = true;
enum __AVR_HAVE_JMP_CALL__ = false;
enum __AVR_MEGA__ = false;
enu... | D |
/home/suru/Documents/awesome_wasm/target/rls/debug/build/num-iter-2ab19f25b72c3402/build_script_build-2ab19f25b72c3402: /home/suru/.cargo/registry/src/github.com-1ecc6299db9ec823/num-iter-0.1.42/build.rs
/home/suru/Documents/awesome_wasm/target/rls/debug/build/num-iter-2ab19f25b72c3402/build_script_build-2ab19f25b72c3... | D |
module godot.visibilitynotifier2d;
import std.meta : AliasSeq, staticIndexOf;
import std.traits : Unqual;
import godot.d.meta;
import godot.core;
import godot.c;
import godot.object;
import godot.classdb;
import godot.node2d;
@GodotBaseClass struct VisibilityNotifier2D
{
static immutable string _GODOT_internal_name = ... | D |
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.build/Demangler.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/core/Sources/Debugging/Debuggable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/core/Sources/Debuggin... | D |
package(std)
ref intersect()
{
}
package(std)
auto intersect()
{
}
package(std)
const intersect()
{
}
| D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Bo... | D |
import std.stdio;
import passport;
import std.file;
import std.algorithm.searching;
import std.string;
import std.exception;
void main()
{
auto e = readText("input").split("\n\n");
int valid = 0;
foreach(entry; e) {
Passport p;
try {
p = Passport.deserialize(entry);
... | D |
/Users/artemon/Desktop/projects/Swift/HARMAN/FitHelper/build/FitHelper.build/Debug-iphoneos/FitHelper.build/Objects-normal/arm64/ExerciseCDClass.o : /Users/artemon/Desktop/projects/Swift/HARMAN/FitHelper/ExerciseCDPR.swift /Users/artemon/Desktop/projects/Swift/HARMAN/FitHelper/TrainingCDPR.swift /Users/artemon/Desktop/... | D |
/**
* Poodinis Dependency Injection Framework
* Copyright 2014-2018 Mike Bierlee
* This software is licensed under the terms of the MIT license.
* The full terms of the license can be found in the LICENSE file.
*/
module poodinis.test.testClasses;
import poodinis;
import poodinis.test.foreignDependencies;
versi... | D |
const string SLD_732_CHECKPOINT = "NC_PLACE02";
instance Info_SLD_732_FirstWarn(C_Info)
{
npc = SLD_732_Soeldner;
nr = 1;
condition = Info_SLD_732_FirstWarn_Condition;
information = Info_SLD_732_FirstWarn_Info;
permanent = 1;
important = 1;
};
func int Info_SLD_732_FirstWarn_Condition()
{
if((hero.aivar[AIV_... | D |
module webkit2webextension.DOMHTMLParamElement;
private import glib.Str;
private import webkit2webextension.DOMHTMLElement;
private import webkit2webextension.c.functions;
public import webkit2webextension.c.types;
/** */
public class DOMHTMLParamElement : DOMHTMLElement
{
/** the main Gtk struct */
protected Web... | D |
func void B_GotoWPNextToNpc(var C_Npc slf,var C_Npc oth)
{
var string waypoint;
PrintDebugNpc(PD_ZS_DETAIL,"B_GotoWPNextToNpc");
waypoint = Npc_GetNextWP(oth);
AI_GotoWP(slf,waypoint);
};
func void B_CantSeeTurn()
{
PrintDebugNpc(PD_ZS_DETAIL,"B_CantSeeTurn");
if(!C_BodyStateContains(self,BS_SIT) && !Npc_CanSee... | D |
// Written in the D programming language.
/** This module is used to manipulate path strings.
All functions, with the exception of $(LREF expandTilde) (and in some
cases $(LREF absolutePath) and $(LREF relativePath)), are pure
string manipulation functions; they don't depend on any state outside
the p... | D |
/*
* Collie - An asynchronous event-driven network framework using Dlang development
*
* Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
*
* Developer: putao's Dlang team
*
* Licensed under the Apache-2.0 License.
*
*/
module collie.bootstrap.server;
import collie.socket;
import collie.channel;
i... | D |
instance TPL_1403_Templer(Npc_Default)
{
name[0] = NAME_Templer;
npcType = npctype_guard;
guild = GIL_TPL;
level = 17;
flags = 0;
voice = 8;
id = 1403;
attribute[ATR_STRENGTH] = 95;
attribute[ATR_DEXTERITY] = 75;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 274;
attr... | D |
// REQUIRED_ARGS: -m64
/*
TEST_OUTPUT:
---
fail_compilation/fail15999b.d(11): Error: bad type/size of operands 'and'
---
*/
void foo(ulong bar)
{
asm { and RAX, 0xFFFFFFFF00000000; ret; }
}
| D |
/**
* Generate $(LINK2 https://dlang.org/dmd-windows.html#interface-files, D interface files).
*
* Also used to convert AST nodes to D code in general, e.g. for error messages or `printf` debugging.
*
* Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 h... | D |
import std.stdio;
import botan.all;
//import botan.rng.auto_rng;
pragma(lib, "botan");
void main()
{
LibraryInitializer init;
AutoSeededRNG asr = new AutoSeededRNG();
writeln(asr.nextByte());
}
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.bigint;
int[][100] T;
bool[100] H;
void main()
{
auto nx = readln.split.to!(int[]);
auto n = nx[0];
auto x = nx[1]-1;
foreach (i, h; readln.split.to!(int[])) H[i] = h == 1;
foreach (_; 0..n-... | D |
module isodi.tools.skeleton.crop;
import isodi;
import raylib;
import std.traits;
import isodi.tools.skeleton.utils;
import isodi.tools.skeleton.structs;
@safe:
alias BoneResource = Pack.Resource!string;
/// Create a new bone texture, cropping each angle to given size and setting it at given position.
/// Retur... | D |
/**
* Copyright: (c) 2009 John Chapman
*
* License: See $(LINK2 ..\..\licence.txt, licence.txt) for use and distribution terms.
*/
module juno.xml.core;
import juno.base.string;
/// Specifies the type of the node.
enum XmlNodeType {
None, /// An unsupported node.
Element, /// ... | D |
import std.conv, std.stdio, std.array, std.algorithm;
string buff = import("input");
string sample = q"EOS
""
"abc"
"aaa\"aaa"
"\x27"
EOS";
void main()
{
/* auto charCodes = sample.split("\n") */
/* .filter!(a => a != "") */
/* .map!(a => a.length).sum; */
... | D |
.source T_ifne_4.java
.class public dot.junit.opcodes.if_nez.d.T_if_nez_4
.super java/lang/Object
.method public <init>()V
.limit regs 1
invoke-direct {v0}, java/lang/Object/<init>()V
return-void
.end method
.method public run(Ljava/lang/Object;)I
.limit regs 6
if-nez v5, Label9
const/1... | D |
module dscord.types.guild;
import std.stdio,
std.algorithm,
std.array,
std.conv;
import dscord.types,
dscord.client,
dscord.gateway;
alias GuildMap = ModelMap!(Snowflake, Guild);
alias RoleMap = ModelMap!(Snowflake, Role);
alias GuildMemberMap = ModelMap!(Snowflake, GuildMember);
a... | D |
func void BS_SHARP_S1 ()
{
if (Npc_IsPlayer(self))
{
if(CreationMethod == R_BS && max_itemamount != 0)
{
var float a;
Npc_SetAivar(self,AIV_INVINCIBLE,TRUE);
a = IntToFloat((R_CreateColdown*2)/7);
AI_Wait(hero,a);
AI_UseMob (hero, MOBNAME, -1);
TRIG_FIRST_SEND = TRUE;
Wld_SendTr... | 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 |
module sqld.ast.query_node;
import sqld.ast.expression_node;
import sqld.ast.node;
import sqld.ast.subquery_node;
immutable abstract class QueryNode : Node
{
immutable(ExpressionNode) toSubquery()
{
return new immutable SubqueryNode(this);
}
}
| D |
module sphere;
import std.typecons;
import std.math;
import gl3n.linalg;
class Sphere
{
vec3 center;
float radius;
float radiusSquared;
vec3 surfaceColor;
vec3 emissionColor;
float transparency;
float reflection;
this(
vec3 c,
float r,
vec3 sc,
float re... | D |
module app;
import std.stdio;
import plugin;
import iface;
void main() {
auto p = new Plugin("./plugin/hello.so", "Hello");
writeln("Plugin loaded");
p.Call!void("SayHello");
p.Call!void("SayHelloTo", "Thibaut", "Thomas");
string s = p.Call!string("GetHello");
writeln(s);
writeln("========================... | D |
/Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Fluent.build/QueryBuilder/QueryBuilder+Aggregate.swift.o : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent.git--7619811335752932298/Sources/Fluent/Model/ID.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/fluent.git... | D |
/Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/AnimatedZoomViewJob.o : /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/Jaskeerat/Desktop... | D |
const int SPL_Cost_Inflate = 10;
const int SPL_Inflate_Damage = 5;
const int SPL_TIME_Inflate = 19;
instance Spell_Inflate(C_Spell_Proto)
{
time_per_mana = 0;
targetCollectAlgo = TARGET_COLLECT_FOCUS;
};
func int Spell_Logic_Inflate(var int manaInvested)
{
if((Npc_GetActiveSpellIsScroll(self) && (self.attribute[... | D |
.hd block "convert text to block letters" 01/13/83
block [ -c <char> ] [ -w <width> ]
.ds
'Block' reads lines of text from standard input, converts them
to large block letters, and writes them on standard output.
Each character produced is 5 columns in width by 9 lines in height,
with 2 blank columns between consecutiv... | D |
disparaging terms for small people
| D |
an electrical phenomenon whereby an electric charge is stored
an electrical device characterized by its capacity to store an electric charge
| D |
module benchmark.controller.index;
package import benchmark.controller.index.index;
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
ulong to_g(ulong n)
{
return n^(n>>1);
}
ulong from_g(ulong n)
{
n = n^(n>>32);
n = n^(n>>16);
n = n^(n>>8);
n = n^(n>>4);
n = n^(n>>2);
n = n^(n>>1);
return n;
}
int popcount(ulong... | D |
module hunt.wechat.bean.paymch.PayContractorderResult;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import hunt.wechat.bean.AdaptorCDATA;
@XmlRo... | D |
/**
* DStruct - Object-Relation Mapping for D programming language, with interface similar to Hibernate.
*
* Source file dstruct/dialects/sqlitedialect.d.
*
* This module contains implementation of PGSQLDialect class which provides implementation specific SQL syntax information.
*
* Copyright: Copyright 2013
... | D |
func void b_orc_idle_ani()
{
var int ani;
ani = Hlp_Random(130);
if(ani < 10)
{
AI_PlayAni(self,"T_PERCEPTION");
}
else if(ani < 20)
{
AI_PlayAni(self,"T_WARN");
}
else if(ani < 30)
{
AI_PlayAni(self,"T_ANGRY");
}
else if(ani < 40)
{
AI_PlayAni(self,"T_FRIGHTEND");
}
else if(ani < 50)
{
AI_Pl... | D |
/Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/Migration/MigrationLog.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/fluent/Sources/Fluent/Model/ID.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppU... | D |
/Users/tsu06/Documents/Repos/Stencil/.build/x86_64-apple-macosx10.10/debug/Stencil.build/Filters.swift.o : /Users/tsu06/Documents/Repos/Stencil/Sources/Inheritence.swift /Users/tsu06/Documents/Repos/Stencil/Sources/Node.swift /Users/tsu06/Documents/Repos/Stencil/Sources/Include.swift /Users/tsu06/Documents/Repos/Stenci... | D |
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:org.eclipse.papyrus.table.instance.papyrustableinstance="http://www.eclipse.org/Papyrus/Table/0.8.0/pap... | D |
import std.conv;
import std.stdio;
void main(string args[])
{
auto mapping = createMapping();
char current = '5';
foreach (line; File("day2.1.input").byLine)
{
current = getCode(mapping, line, current);
write(current.to!string);
}
writeln;
auto advancedMapping = createAdvancedMapping();
... | D |
/Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/Build/Intermediates.noindex/CryptoSwift.build/Debug/CryptoSwift.build/Objects-normal/x86_64/String+FoundationExtension.o : /Users/darthjuda/Documents/snippets/swiftPackage/ovhAPI/DerivedData/ovhAPI/SourcePackages/checkouts/CryptoSwift/Sources/CryptoSwi... | D |
// ************************************************************
// EXIT
// ************************************************************
INSTANCE DIA_Addon_Skip_EXIT(C_INFO)
{
npc = PIR_1355_Addon_Skip;
nr = 999;
condition = DIA_Addon_Skip_EXIT_Condition;
information = DIA_Addon_Skip_EXIT_Info;
per... | D |
/Users/sriramprasad/Dev/rough/tableImage/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Notifications.o : /Users/sriramprasad/Dev/rough/tableImage/Pods/Alamofire/Source/MultipartFormData.swift /Users/sriramprasad/Dev/rough/tableImage/Pods/Alamofire/Source/Timeline.swift /Users/sriramprasad... | D |
/* Client for IHello
* Heavily modified from:
*/
/*
* SELFREG.CPP
* Server Self-Registrtation Utility, Chapter 5
*
* Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
*
* Kraig Brockschmidt, Microsoft
* Internet : kraigb@microsoft.com
* Compuserve: >INTERNET:kraigb@microsoft.com
*/
impor... | D |
module org.serviio.ui.representation.BrowsingCategory;
import java.lang;
import java.util.ArrayList;
import java.util.List;
import org.serviio.upnp.service.contentdirectory.definition.ContainerVisibilityType;
public class BrowsingCategory
{
private String id;
private String title;
private ContainerVisibil... | D |
pragma(LDC_no_moduleinfo);
pragma(LDC_no_typeinfo);
import ldc.attributes;
import spasm.types;
import spasm.spa;
import spasm.rt.array;
mixin Spa!App;
enum FilterStyle {
All,
Active,
Completed
}
struct App {
@style!"todoapp" mixin Node!"section";
@child Header header;
@child Main main;
@child Footer ... | D |
/home/joseph/Desktop/wasm-game-of-life/target/rls/debug/build/memchr-0fe74fb6572a0106/build_script_build-0fe74fb6572a0106: /home/joseph/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.3.0/build.rs
/home/joseph/Desktop/wasm-game-of-life/target/rls/debug/build/memchr-0fe74fb6572a0106/build_script_build-0fe74fb6... | D |
module durge.system.windows.native.rawinput;
version (Windows):
import durge.system.windows.native.common;
import durge.system.windows.native.hid;
import durge.system.windows.native.windows;
enum // Input Device Type
{
RIM_TYPEMOUSE = 0,
RIM_TYPEKEYBOARD = 1,
RIM_TYPEHID = 2,
}
enum // Input Dev... | D |
a man who is a respected leader in national or international affairs
| D |
/* This version of microEmacs is based on the public domain C
* version written by Dave G. Conroy.
* The D programming language version is written by Walter Bright.
* http://www.digitalmars.com/d/
* This program is in the public domain.
*/
/*
* The functions in this file implement commands that search in the f... | D |
/*
* types.d
* Objective-D runtime
*
* Copyright (c) 2010 Justin Spahr-Summers <Justin.SpahrSummers@gmail.com>
*
* 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, ... | D |
instance PIR_1352_Addon_AlligatorJack(Npc_Default)
{
name[0] = "Alligator Jack";
guild = GIL_PIR;
id = 1352;
voice = 12;
flags = 0;
npcType = npctype_main;
aivar[AIV_FollowDist] = 800;
B_SetAttributesToChapter(self,4);
level = 1;
fight_tactic = FAI_HUMAN_MASTER;
EquipItem(self,ItMw_Piratensaebel);
CreateIn... | D |
/Users/dunjamaksimovic/Documents/FirebaseNotifier/build/Pods.build/Debug-iphonesimulator/CoreXLSX.build/Objects-normal/x86_64/Cell.o : /Users/dunjamaksimovic/Documents/FirebaseNotifier/Pods/CoreXLSX/Sources/CoreXLSX/Worksheet/CellReference.swift /Users/dunjamaksimovic/Documents/FirebaseNotifier/Pods/CoreXLSX/Sources/Co... | D |
module logic.Bullet;
import std.math;
import d2d;
import logic.Entity;
import logic.Event;
import logic.Game;
import graphics.Constants;
/**
* A bullet is a travelling entity that damages other entities
*/
class Bullet : Entity {
private Entity immune; ///Which entity is immune to the bullet
immutable spee... | D |
// Vicfred
// https://atcoder.jp/contests/abc165/tasks/abc165_b
// simulation
import std.conv;
import std.stdio;
import std.string;
void main() {
long x = readln.chomp.to!long;
long current = 100;
long answer = 0;
while(current < x) {
current += current/100;
answer += 1;
}
an... | D |
void main() {
import std.stdio, std.string, std.conv, std.algorithm;
auto args = readln.split.to!(string[]);
const long mod = 10 ^^ 9 + 9;
long[][] solve(string n) {
auto dp = new long[][][](n.length + 1, 2, n.length * 10);
dp[0][0][0] = 1;
foreach (i; 0 .. n.length) {
foreach (l; 0 .. 2) {
... | D |
class ExistentialError : Error {
public this() {
super("Object does not exist anymore.");
}
}
| D |
/**
* Module for texture sprite handling.
*
* Authors:
* Jacob Jensen
* License:
* https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE
*/
module poison.ui.sprite;
import dsfml.graphics : Sprite, Texture;
import dsfml.system : Vector2f;
import poison.core : Point;
/// An extension class to the sprite im... | D |
# FIXED
PROFILES/gapbondmgr.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/profiles/roles/gapbondmgr.c
PROFILES/gapbondmgr.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/inc/bcomdef.h
PROFILES/gapbondmgr.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/comdef.... | D |
# FIXED
utils/flash_pb.obj: C:/ti/TivaWare_C_Series-2.1.4.178/utils/flash_pb.c
utils/flash_pb.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdbool.h
utils/flash_pb.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h
utils/flash_pb.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LT... | D |
public import Player;
import std.algorithm;
import std.stdio;
import std.conv:to;
import std.file;
class dummyPlayer:Player {
this(string name) {
super("dummyPlayer: "~name);
}
void printHand() {writeln(Hand);}
override void makeMove () {
writeln("Well Player "~Name~" what do you want to do ?");
//if(in... | D |
// Copyright Michael D. Parker 2018.
// 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 bindbc.opengl.bind.gl13;
import bindbc.loader : SharedLib;
import bindbc.opengl.config,
b... | D |
/Users/nathaneidelson/Developer/CS51-Demo/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/ParameterEncoding.o : /Users/nathaneidelson/Developer/CS51-Demo/Pods/Alamofire/Source/AFError.swift /Users/nathaneidelson/Developer/CS51-Demo/Pods/Alamofire/Source/Alamofire.swift /Users/... | D |
module grain.dpp.cudnn;
import core.stdc.config;
import core.stdc.stdarg: va_list;
static import core.simd;
static import std.conv;
struct Int128 { long lower; long upper; }
struct UInt128 { ulong lower; ulong upper; }
struct __locale_data { int dummy; }
al... | D |
import command;
void main()
{
gCommandInterpreter.run();
}
| D |
/Users/shawngong/Centa/.build/debug/Fluent.build/Query/Comparison.swift.o : /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Database.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Database/Driver.swift /Users/shawngong/Centa/Packages/Fluent-1.4.0/Sources/Fluent/Entity/Entity.swif... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Bo... | D |
/Users/a123456/Desktop/React/WeiBoNews/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Alamofire.o : /Users/a123456/Desktop/React/WeiBoNews/Pods/Alamofire/Source/AFError.swift /Users/a123456/Desktop/React/WeiBoNews/Pods/Alamofire/Source/Alamofire.swift /Users/a123456/Desktop/R... | D |
/Users/trietnguyen/Documents/Blockchain Development/NEAR SEPTEMBER/NEAR-Hackathon/smart-cert/contract/target/debug/build/syn-a003b890383149cf/build_script_build-a003b890383149cf: /Users/trietnguyen/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.57/build.rs
/Users/trietnguyen/Documents/Blockchain Development/N... | D |
import common;
import std.algorithm;
import std.array;
import std.conv;
import std.container;
import std.file;
import std.stdio;
import std.string;
import std.typecons;
alias RedBlackTree!(Tuple!(ulong, ulong))[ulong] AlignmentSet;
auto GetOneWayAlignments(string probsFileName, string foreignCorpusFileName, string n... | D |
module hunt.http.Exceptions;
import hunt.http.WebSocketStatusCode;
import hunt.Exceptions;
/**
*
*/
class SessionInvalidException : RuntimeException {
mixin BasicExceptionCtors;
}
/**
*
*/
class SessionNotFoundException : RuntimeException {
mixin BasicExceptionCtors;
}
class WebSocketException : R... | D |
Long: key-type
Arg: <type>
Help: Private key file type (DER/PEM/ENG)
Protocols: TLS
Category: tls
Example: --key-type DER --key here $URL
Added: 7.9.3
See-also: key
---
Private key file type. Specify which type your --key provided private key
is. DER, PEM, and ENG are supported. If not specified, PEM is assumed.
If th... | D |
a drug that reduces excitability and calms a person
tending to soothe or tranquilize
| D |
module dxx.plugin.toolexample.examplecmd;
class ExampleCommand {
const CMD = "examplecmd";
}
| D |
United States civil rights leader whose college registration caused riots in traditionally segregated Mississippi (born in 1933)
English novelist and poet (1828-1909)
| D |
module android.java.java.util.Locale_FilteringMode_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import2 = android.java.java.lang.Class_d_interface;
import import1 = android.java.java.lang.Enum_d_in... | D |
func void ReInit_Menu()
{
if(hero.hitchance[1]>=30)
{
Ico_1hst2="Ico_1h2Yes.tga";
}
else
{
Ico_1hst2="Ico_1h2No.tga";
};
/**************************************/
if(hero.hitchance[1]>=60)
{
Ico_1hst3="Ico_1h3Yes.tga";
}
else
{
Ico_1hst3="Ico_1h3No.tga";
};
/**************************************/
if(hero.hitchance[2]... | D |
module nsl.parse;
import nsl.scriptfile : ScriptFile;
/*
size_t estimateMaxAstNodeCount(size_t text_length)
{
// maybe max 1 ast_node per 50 characters?
return (unsigned)(text_length / 50);
}
*/
void parse(ScriptFile file)
{
//assert(!file.astNodes, "codebug: parse was called on a script file that was alread... | D |
module logmaster.signals;
import std.stdio;
template Signal(T...) {
// Type of a slot
alias slot_t = void delegate(T);
class Signal {
private slot_t[] slots;
void emit(T...)(T t) {
foreach(f; this.slots) {
f(t);
}
}
void connect(sl... | D |
module hunt.markdown.node.CustomNode;
import hunt.markdown.node.Node;
import hunt.markdown.node.Visitor;
abstract class CustomNode : Node {
override public void accept(Visitor visitor) {
visitor.visit(this);
}
}
| D |
module darepl.x86.parser;
import std.conv,
darepl.core.expressions,
darepl.core.lexer,
darepl.core.parser,
darepl.x86.enums,
darepl.x86.expressions,
darepl.x86.instructions,
darepl.x86.machine;
public final class X86Parser : Parser
{
private X86Machine _machine;
... | D |
// Written in the D programming language
/*
Copyright (C) 2004-2005 Christopher E. Miller
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission ... | D |
module state.preparation;
import std.range;
import allegro;
import state.gamestate;
import gui.all;
import geometry.all;
import util.all;
import model.character;
import model.item;
import util.savegame;
import util.bicycle;
import state.battle;
import tilemap.loader;
private enum {
// button sprites
lbButtonPos =... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.