code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
instance DIA_GorNaRan_Exit(C_Info)
{
npc = TPL_1405_GorNaRan;
nr = 999;
condition = DIA_GorNaRan_Exit_Condition;
information = DIA_GorNaRan_Exit_Info;
permanent = 1;
description = "KONIEC";
};
func int DIA_GorNaRan_Exit_Condition()
{
return TRUE;
};
func void DIA_GorNaRan_Exit_Info()
{
AI_StopProcessInfos(s... | D |
module magra.init;
import std.exception;
import std.string;
import magra.base;
import magra.renderer;
import magra.callbacks;
class InitSettings
{
int screenWidth = 640;
int screenHeight = 480;
bool fullscreen = false;
string windowTitle = "Magra Game";
int soundChannels = 32;
int sound... | D |
module owlchain.xdr.ledgerEntry;
import owlchain.xdr.type;
import owlchain.xdr.accountEntry;
import owlchain.xdr.ledgerEntryType;
import owlchain.xdr.trustLineEntry;
import owlchain.xdr.offerEntry;
import owlchain.xdr.dataEntry;
import owlchain.xdr.xdrDataInputStream;
import owlchain.xdr.xdrDataOutputStream;
struct L... | D |
//SQRT - Correct
import std.stdio;
import std.math;
import smack;
float getRoot(float n)
in {
__VERIFIER_assert(n > 0);
}
do {
return sqrt(n);
}
int main() {
float n = 20;
float root = getRoot(n);
return 0;
} | D |
// Written in the D programming language.
/**
JavaScript Object Notation
Copyright: Copyright Jeremie Pelletier 2008 - 2009.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Jeremie Pelletier, David Herberth
References: $(LINK http://json.org/)
Source: $(PHOBOSSRC std/_json.d)
*/
/*
... | D |
/*******************************************************************************
Uses OpenAL to play Ogg and Wav files.
Authors: ArcLib team, see AUTHORS file
Maintainer: Clay Smith (clayasaurus at gmail dot com)
License: zlib/libpng license: $(LICENSE)
Copyright: ArcLib team
... | D |
/**
* D header file for POSIX.
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Sean Kelly
* Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
*/
/* Copyright Sean Kelly 20... | D |
struct S
{
int x;
}
void main()
{
int x;
S s;
with (s)
{
x++;
}
}
| D |
// Written in the D programming language.
/**
* Read/write data in the $(LINK2 http://www.info-_zip.org, zip archive) format.
* Makes use of the etc.c.zlib compression library.
*
* Bugs:
* $(UL
* $(LI Multi-disk zips not supported.)
* $(LI Only Zip version 20 formats are supported.)
* $(LI ... | D |
module ast.type;
import parser.lexer, ast.all, visitor.visitor;
abstract class Type: ASTNode {
Location loc;
Attribute attr;
this(Location l, Attribute a = Attribute.none) {
loc = l;
attr = a;
}
// shallow copy
override @property Type dup() {
return this;
}
//... | D |
// written in the D programming language
module samples.PyramidStack;
import dchip.all;
import samples.ChipmunkDemo;
static cpSpace *space;
static void
update(int ticks)
{
int steps = 3;
cpFloat dt = 1.0f/60.0f/cast(cpFloat)steps;
for(int i=0; i<steps; i++){
cpSpaceStep(space, dt);
}
}
s... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range;
void get(Args...)(ref Args args)
{
import std.traits, std.meta, std.typecons;
static if (Args.length == 1) {
alias Arg = Args[0];
static if (isArray!Arg) {
... | D |
package com.android.server.location;
/**
* A simple implementation of exponential backoff.
*/
class ExponentialBackOff {
private static final int MULTIPLIER = 2;
private final long mInitIntervalMillis;
private final long mMaxIntervalMillis;
private long mCurrentIntervalMillis;
ExponentialBackOff... | D |
ZUNGLQ (F08AWF) Example Program Data
3 4 :Values of M and N
( 0.28,-0.36) ( 0.50,-0.86) (-0.77,-0.48) ( 1.58, 0.66)
(-0.50,-1.10) (-1.21, 0.76) (-0.32,-0.24) (-0.27,-1.15)
( 0.36,-0.51) (-0.07, 1.33) (-0.75, 0.47) (-0.08, 1.01) :End of matrix A
| D |
module csfml.window.context;
public import csfml.window.types;
extern(C) {
sfContext* sfContext_Create();
void sfContext_Destroy(sfContext* context);
void sfContext_SetActive(sfContext* context, bool active);
}
| D |
instance DIA_Addon_Saturas_EXIT(C_Info)
{
npc = KDW_1400_Addon_Saturas_NW;
nr = 999;
condition = DIA_Addon_Saturas_EXIT_Condition;
information = DIA_Addon_Saturas_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_Saturas_EXIT_Condition()
{
return TRUE;
};
func void DIA_Addon_Satur... | D |
module SettingsLoader;
import drc.ast.Node,
drc.ast.Declarations,
drc.ast.Expressions;
import drc.semantic.Module,
drc.semantic.Pass1,
drc.semantic.Symbol,
drc.semantic.Symbols;
import drc.Messages;
import drc.Diagnostics;
import drc.Compilation;
import Settings;
import common;
imp... | D |
/**
Differentiable type.
*/
module karasunum.differential.differentiable;
import std.typecons : Rebindable, rebindable;
import std.exception : assumeWontThrow;
import karasunum.differential.add_sub : Addition, add, Subtraction, sub;
import karasunum.differential.constant : zero, one, two, constant;
import karasunum.d... | D |
module served.utils.trace;
import core.time;
import std.stdio : File;
struct TraceDataStat(T)
{
T min;
T max;
T total;
void resetTo(T value)
{
min = value;
max = value;
total = value;
}
void put(T value)
{
if (value < min)
min = value;
if (value > max)
max = value;
... | D |
// ************************************
// ZS_Circle für Auge Innos Beschwörung
// ************************************
func void ZS_Ritual_Pyrokar ()
{
Perception_Set_Normal();
B_UseHat (self);
B_ResetAll (self);
if (self.aivar[AIV_Schwierigkeitsgrad] < Mod_Schwierigkeit)
|| (self.aivar[AIV_Schwierigkeits... | D |
module GameFundamentals.instance;
import GameFundamentals.definitions;
import GameFundamentals.database;
import automem;
/**
An instance of the game
extern(C++) to interact with the real world
shared because there only be one
*/
extern(C++)
shared final class gameInstance {
Unique!rtmDatabase db;
}
| D |
/*
TEST_OUTPUT:
---
fail_compilation/fail10528.d(19): Error: module fail10528 variable a10528.a is private
fail_compilation/fail10528.d(20): Error: variable a10528.a is not accessible from module fail10528
fail_compilation/fail10528.d(22): Error: module fail10528 enum member a10528.b is private
fail_compilation/fail105... | D |
// Compiler implementation of the D programming language
// Copyright (c) 1999-2015 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.sideeffect;
import ddmd... | D |
instance Org_825_Organisator_Exit(C_Info)
{
npc = ORG_825_Organisator;
nr = 999;
condition = Org_825_Organisator_Exit_Condition;
information = Org_825_Organisator_Exit_Info;
permanent = 1;
description = DIALOG_ENDE;
};
func int Org_825_Organisator_Exit_Condition()
{
return 1;
};
func void Org_825_Organisator... | D |
instance DIA_Sagitta_EXIT(C_Info)
{
npc = BAU_980_Sagitta;
nr = 999;
condition = DIA_Sagitta_EXIT_Condition;
information = DIA_Sagitta_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Sagitta_EXIT_Condition()
{
if(Kapitel < 3)
{
return TRUE;
};
};
func void DIA_Sagitta_EXIT_Info()
... | D |
/Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/Objects-normal/x86_64/UIRefreshControl+Rx.o : /Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/Pods/RxCocoa/RxCocoa/RxCocoa.swift /Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/Pods/RxCocoa... | D |
/**
* Copyright © Webd 2018
* License: MIT (https://github.com/DiamondMVC/Webd/blob/master/LICENSE)
* Author: Jacob Jensen (bausshf)
*/
module webd.modules.basemodules;
import diamond.views.view;
import webd.modules;
import webd.web.page;
/// Page render arguments.
final class PageRenderArgs
{
private:
/// The v... | D |
/Users/Trupti/Desktop/Eva/build/Eva.build/Debug-iphonesimulator/Eva.build/Objects-normal/x86_64/TransactionsResultViewController.o : /Users/Trupti/Desktop/Eva/Eva/ThirdPartyFiles/FloatingTextField/FloatingTextField.swift /Users/Trupti/Desktop/Eva/Eva/Helper/Models/CardRecommand.swift /Users/Trupti/Desktop/Eva/Eva/AppDe... | D |
/**
* Documentation: https://dlang.org/phobos/dmd_parsetimevisitor.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/parsetimevisitor.d
*/
module dmd.parsetimevisitor;
/** Basic and dumm visitor which implements a visit method for each AST node
* implemented in AST. This visitor is the pare... | D |
// Copyright (C) 2002-2013 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine" for the D programming language.
// For conditions of distribution and use, see copyright notice in irrlicht.d module.
module irrlicht.scene.IMeshWriter;
import irrlicht.scene.IMesh;
import irrlicht.scene.EMeshWriterEnums;
import... | 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 |
/Users/mac/Documents/GitHub/PerfectServer/.build/x86_64-apple-macosx/debug/StORM.build/StORMDataSourceOptions.swift.o : /Users/mac/Documents/GitHub/PerfectServer/.build/checkouts/StORM/Sources/StORM/StORM.swift /Users/mac/Documents/GitHub/PerfectServer/.build/checkouts/StORM/Sources/StORM/StORMDataSource.swift /Users/m... | D |
/Users/riccardo/github/PhotoStack/photo-stack-back/rust_server/target/debug/build/syn-1a3c94a7141b0b18/build_script_build-1a3c94a7141b0b18: /Users/riccardo/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-0.15.39/build.rs
/Users/riccardo/github/PhotoStack/photo-stack-back/rust_server/target/debug/build/syn-1a3c94a7... | D |
/home/tebogo/Documents/RUST/authentication-app/target/debug/deps/slab-b096a143352a0be7.rmeta: /home/tebogo/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.4.2/src/lib.rs
/home/tebogo/Documents/RUST/authentication-app/target/debug/deps/slab-b096a143352a0be7.d: /home/tebogo/.cargo/registry/src/github.com-1ecc6299... | D |
// PERMUTE_ARGS:
import core.simd;
struct S213
{
int4 vec;
}
void test213()
{
S213 s, b;
assert(s == b);
}
| D |
module optimize;
import brainfuck;
import std.algorithm.iteration;
import std.algorithm.searching;
import std.array;
import std.range;
import std.conv;
alias Counts = size_t[string];
Counts count_instructions(BrainfuckInstruction[] insts) {
Counts counts;
foreach(inst; insts) {
counts[typeid(inst).... | D |
// REQUIRED_ARGS: -w
class F { }
int test1() {
scope F f = new F(); // comment out and warning goes away
return 0;
}
int test2() { // no return at end of function
try {
return 0;
} finally { }
}
void main()
{
test1();
test2();
}
| D |
module gfm.sdl2.framecounter;
import std.string;
import derelict.sdl2.sdl;
import gfm.core.queue,
gfm.math.statistics,
gfm.sdl2.sdl;
/// Utility class which gives time delta between frames, and
/// logs some framerate statistics.
final class FrameCounter
{
public
{
this(SDL2 sdl)
... | D |
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM ROCKTYPE
-41.9634396 47.1283348 5 200 35 100 -30.5 139.300003 1165 4.43196392 29.1188412 sediments, redbeds
225.800003 43.9000015 7.5999999 145.5 71 89 -9.69999981 119.599998 7799 4.9000001 8.69999981 sediments
321.100006 59.7999992 1.29999995 137.5 65 90 -... | D |
module startup;
version(GNU)
{
static import gcc.attribute; // we need this to get the section, weak and alias attributes
void wfi(){ version(ALLOW_WFI){ asm{ "wfi"; } } }
}
else version(LDC)
{
import ldc.llvmasm;
void wfi(){ version(ALLOW_WFI){ __asm("wfi"); } }
}
import core.stdc.config; // we need th... | D |
module android.java.android.view.MotionEvent_PointerProperties_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.android.view.MotionEvent_PointerProperties_d_interface;
import imp... | D |
module servlib.http.requestmod.HttpFile;
import servlib.http.request;
import std.container, std.outbuffer;
import std.conv;
/**
Stocke une entree fichier d'une requete Http
*/
class HttpFile {
/**
Le nom de l'input dans lequel a ete place le fichier
*/
ref string name () {
return this._name;
}... | D |
import esdl;
import uvm;
import std.stdio;
import std.string: format;
enum satp_mode_t: byte {
BARE = 0b0000,
SV32 = 0b0001,
SV39 = 0b1000,
SV48 = 0b1001,
SV57 = 0b1010,
SV64 = 0b1011
}
enum riscv_instr_group_t: byte {
RV32I,
RV64I,
RV32M,
RV64M,
RV32A,
RV64A,
RV32F,
... | D |
#source: lea1.s
#as: --32 -mrelax-relocations=yes
#ld: -pie -melf_i386
#objdump: -dw
.*: +file format .*
Disassembly of section .text:
#...
[ ]*[a-f0-9]+: 8d 81 ([0-9a-f]{2} ){4} * lea -0x[a-f0-9]+\(%ecx\),%eax
[ ]*[a-f0-9]+: 8d 81 ([0-9a-f]{2} ){4} * lea 0x[a-f0-9]+\(%ecx\),%eax
[ ]*[a-f0-9]+: 8d 81 ([0-9... | D |
////////////////////////////////////////////////////////////////////////////////
//
// Przyklad jak odczytac dane o ograniczeniu czasowym (date wygasniecia)
//
// Wersja : PELock v2.0
// Jezyk : D
// Autor : Bartosz Wójcik (support@pelock.com)
// Strona domowa : https://www.pelock.com
//
////... | D |
/home/roldan/Documentos/repo/TFG/rust/rust_loop_1000000/target/debug/deps/rust_loop_1000000-7b330595c442c47f: src/main.rs
/home/roldan/Documentos/repo/TFG/rust/rust_loop_1000000/target/debug/deps/rust_loop_1000000-7b330595c442c47f.d: src/main.rs
src/main.rs:
| D |
instance Mod_7549_OUT_Wache_DT (Npc_Default)
{
// ------ NSC ------
name = "Wache";
guild = GIL_STRF;
id = 7549;
voice = 8;
flags = 0;
npctype = NPCTYPE_AMBIENT;
// ------ Attribute ------
B_SetAttributesToChapter (self, 5);
// ------ Kampf-Taktik ------
f... | D |
: C B L A S _ C G E M M T EXAMPLE PROGRAM DATA
3 4 :Values of n, k
(0.5, 0.0) (1.2, 0.0) :Values of alpha, beta
122 111 112 101 :Values of uplo, transA, transB, layout
( 1.0, 0.0) ( 2.0, 3.2) (3.0, 0.0) ( 4.0, 0.0)
( 3.2,-0.1) ( 2.7, 0.0) (8.1, 4.0) ( 5.0, 0.0)
( 0.0, 0.... | D |
<?xml version="1.0" encoding="ASCII"?>
<di:SashWindowsMngr 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">
<pageList>
<availablePage>
<emfPageIdentifier href="model.notation#_U_CgMDSbEeKHnb_Vy6... | D |
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.array;
void main() {
ubyte[] s = readln.strip.map!(to!ubyte).array;
writeln(s.sort!("a > b").map!(to!char));
}
| D |
module userauth.services.fconnect;
import userauth.userauth;
class FConnectAuthService : UserAuthService {
string generateAuthMixin(HttpServerRequest req, string path_prefix)
{
assert(false);
}
void registerRoutes(UrlRouter router, string path_prefix)
{
assert(false);
}
} | D |
module std.experimental.allocator.mallocator;
import std.experimental.allocator.common;
/**
The C heap allocator.
*/
struct Mallocator
{
unittest { testAllocator!(() => Mallocator.instance); }
/**
The alignment is a static constant equal to $(D platformAlignment), which
ensures proper alignment fo... | D |
/**
* This module exposes functionality for inspecting and manipulating memory.
*
* Copyright: Copyright Digital Mars 2000 - 2010.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright, Sean Kelly
*/
/* Copyright Digital Mars 2000 - 2010.
* Distri... | D |
// 1.
CHAIN IF ~InParty("ADAngel")
See("ADAngel")
!StateCheck("ADAngel",CD_STATE_NOTVALID)
!StateCheck("O#Xan",CD_STATE_NOTVALID)
CombatCounter(0)
!See([ENEMY])
Global("G#XB.AngeloXanToBBanter1","GLOBAL",0)~ THEN BO#XAN25 AngeloXanToBBanter#1.1
~Having known you so long I find myself still wondering. How do you bear i... | D |
/* ========================================================================= */
/* === AMD_info ============================================================ */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | D |
/Users/liyi/Desktop/WeiBo/DerivedData/WeiBo/Build/Intermediates.noindex/WeiBo.build/Debug-iphonesimulator/WeiBo.build/Objects-normal/x86_64/WBHomeVC.o : /Users/liyi/Desktop/WeiBo/Classes/View/Profile/WBProfileVC.swift /Users/liyi/Desktop/WeiBo/Classes/View/Home/WBHomeVC.swift /Users/liyi/Desktop/WeiBo/Classes/View/Main... | D |
/Users/y15fuji/Programming/Products/don't_break_the_chain/Build/Intermediates/don't_break_the_chain.build/Debug-iphonesimulator/don't_break_the_chain.build/Objects-normal/x86_64/AppDelegate.o : /Users/y15fuji/Programming/Products/don't_break_the_chain/don't_break_the_chain/ViewController.swift /Users/y15fuji/Programmin... | D |
/Users/user143130/Desktop/Tumblr.Yeah/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData.o : /Users/user143130/Desktop/Tumblr.Yeah/Pods/Alamofire/Source/MultipartFormData.swift /Users/user143130/Desktop/Tumblr.Yeah/Pods/Alamofire/Source/Timeline.swift /U... | D |
/*
* #121 Spelling - Quest: "Shrikes Hütte" (DE)
*
* The content of the string constant will be checked and a log topic will be temporarily created with the original
* topic name. After applying the fix, its name should be updated correctly.
*
* Expected behavior: The wording of the constant and the log topic nam... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Routing/RoutesLog.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.b... | D |
import core.thread;
import std.datetime;
import std.math;
import std.stdio;
void main() {
auto func = (double t) => sin(cast(double) PI * t);
Integrator integrator = new Integrator(func);
Thread.sleep(2000.msecs);
integrator.setFunc(t => 0.0);
Thread.sleep(500.msecs);
integrator.stop();
w... | D |
an independent agency of the United States government responsible for aviation and spaceflight
| D |
/*******************************************************************************
copyright: Copyright (c) 2004 Kris Bell. Все права защищены
license: BSD стиль: $(LICENSE)
version: Initial release: April 2004
author: Kris
***********************... | D |
// Written in the D programming language.
/**
D's built-in garbage-collected allocator.
Source: $(PHOBOSSRC std/experimental/allocator/_gc_allocator.d)
*/
module std.experimental.allocator.gc_allocator;
import std.experimental.allocator.common;
/**
D's built-in garbage-collected allocator.
*/
struct GCAllocator
{
... | D |
/*
TEST_OUTPUT:
---
fail_compilation/diag11840.d(12): Error: undefined identifier 'i'
fail_compilation/diag11840.d(12): Error: undefined identifier 'j'
---
*/
void main()
{
int[10] data;
data[i .. j] = 0;
}
| D |
/home/kazakov/code/Rust/kuev-emu/target/debug/build/memchr-e620b33bbfc09618/build_script_build-e620b33bbfc09618: /home/kazakov/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.3.3/build.rs
/home/kazakov/code/Rust/kuev-emu/target/debug/build/memchr-e620b33bbfc09618/build_script_build-e620b33bbfc09618.d: /home/k... | D |
module Dgame.System.VertexRenderer;
private {
debug import std.stdio;
import derelict.opengl3.gl;
}
/**
* Primitive Types and targets
*/
final abstract class Primitive {
/**
* Primitive Types for the draw methods
*/
enum Type {
Quad = GL_QUADS, /** Declare that the stored vertices are Quads. */
Qu... | D |
module android.java.android.view.textclassifier.TextLanguage_Request_Builder_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.lang.CharSequence_d_interface;
import import1 =... | D |
used of wines and waters
(of a liquid) giving off bubbles
marked by high spirits or excitement
| D |
a heavy grey-white metallic element
| D |
unittest
{
foreach (int i, char c; a)
{
writefln("a[%d] = '%c'", i, c);
}
}
| D |
// ************************************************************
// EXIT
// ************************************************************
INSTANCE DIA_Addon_Garett_EXIT(C_INFO)
{
npc = PIR_1357_Addon_Garett;
nr = 999;
condition = DIA_Addon_Garett_EXIT_Condition;
information = DIA_Addon_Garett_EXIT_In... | D |
/*
TEST_OUTPUT:
---
fail_compilation/ice11982.d(19): Error: basic type expected, not `scope`
fail_compilation/ice11982.d(19): Error: found `scope` when expecting `;` following statement `new _error_` on line fail_compilation/ice11982.d(19)
fail_compilation/ice11982.d(19): Error: basic type expected, not `}`
fail_compil... | D |
// Written in the D programming language
// License: http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0
import std.uni, std.array, std.string, std.conv, std.algorithm, std.range;
import dexpr,dutil;
struct DParser{
string code;
int numBinders=0;
void skipWhitespace(){
while(!code.empty&&code.front.isWhite()... | D |
// Written in the D programming language.
/**
* Templates which extract information about types and symbols at compile time.
*
* $(SCRIPT inhibitQuickIndex = 1;)
*
* $(DIVC quickindex,
* $(BOOKTABLE ,
* $(TR $(TH Category) $(TH Templates))
* $(TR $(TD Symbol Name _traits) $(TD
* $(LREF fullyQualifie... | D |
module directx.d3d11;
/*-------------------------------------------------------------------------------------
*
* Copyright (c) Microsoft Corporation
*
*-------------------------------------------------------------------------------------*/
public import directx.dxgi;
public import directx.d3dcommon;
enum D3D11_1... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
///
struct PriorityQueue(alias _fun, T) {
import std.functional : binaryFun;
import std.algorithm : swap;
alias fun = binaryFun!_fun;
///
this(T[] ts) {
foreach (t; ts) enqueue(t);
}
... | D |
module smtp.attachment;
import std.base64;
import std.conv;
import std.string;
/**
Implements mail message attachment.
*/
struct SmtpAttachment
{
string filename;
ubyte[] bytes;
string cid;
/++
Returns plain base64 represenation of the attachment.
The representaiton is ready to be injected into t... | D |
/******************************************************************//**
* \file deps/gl/glu.d
* \brief Wrapper for GLUT
*
* <i>Copyright (c) 2012</i> Danny Arends<br>
* Last modified Apr, 2012<br>
* First written 2010<br>
* Written in the D Programming Language (http://www.digitalmars.com/d)
*******************... | D |
/*
REQUIRED_ARGS: -verrors=context
TEST_OUTPUT:
---
fail_compilation/staticforeach4.d(16): Error: index type `byte` cannot cover index range 0..257
static foreach (byte a, int b; data) { }
^
fail_compilation/staticforeach4.d(17): Error: index type `byte` cannot cover index range 0..257
st... | D |
a fibrous amphibole
| D |
/// vpe.input submodule
module vpe.input.mousebutton;
import vpe.internal;
/// Mouse button
enum MouseButton {
/// Left mouse button
Left = GLFW_MOUSE_BUTTON_1,
/// Middle mouse button
Middle = GLFW_MOUSE_BUTTON_3,
/// Right mouse button
Right = GLFW_MOUSE_BUTTON_2
}
| D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Database/Executor.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/FormURLEncoded/StructuredData+FormURLEncoded.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/... | D |
module config;
import std.json;
import std.file;
struct Config
{
string aws_key;
string aws_secret;
string aws_endpoint;
string s3_bucket;
string base_dir;
}
Config c;
void load_config(string filename)
{
string contents = cast(string)read(filename);
JSONValue jv = parseJSON(contents);... | D |
/* Converted to D from ../include/capi/cef_resource_handler_capi.h by htod */
module cef_resource_handler_capi;
// Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following condition... | D |
// PERMUTE_ARGS:
import std.algorithm, std.ascii, std.conv, std.exception,
std.file, std.getopt, std.path, std.range, std.stdio,
std.string, std.traits;
auto binaryFun(string pred, T, U)(T a, U b)
{
return(mixin(pred));
}
/**
If $(D startsWith(r1, r2)), consume the corresponding elements off $(D
r1) and ... | D |
module sys.msscript;
private import win, sys.activex, sys.WinIfaces;
//pragma(lib,"DRwin32.lib");
class СкриптДвижок
{
private АктивОбъ m_axo;
private ткст м_движок = "VBScript";
this(ткст движок)
{
м_движок = движок;
}
~this()
{
}
public проц пуск()
... | D |
/+
Implements a stable 3-way partitioning algorithm which runs in O(n log n)
time without any heap allocations; uses O(log n) stack space for recursion.
Authors: Xinok
License: Public Domain
+/
import std.algorithm : SwapStrategy;
/++
TODO add/update documentation here
++/
auto isPartitioned3... | D |
/Users/julia/ruhackathon/target/debug/deps/fiat_crypto-776766cbb84afaf0.rmeta: /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/fiat-crypto-0.1.8/src/lib.rs /Users/julia/.cargo/registry/src/github.com-1ecc6299db9ec823/fiat-crypto-0.1.8/src/curve25519_64.rs /Users/julia/.cargo/registry/src/github.com-1ecc629... | D |
/Users/mac/Documents/Bhupendra/RealmSignUpDemo/build/Pods.build/Debug-iphonesimulator/RealmSwift.build/Objects-normal/x86_64/Migration.o : /Users/mac/Documents/Bhupendra/RealmSignUpDemo/Pods/RealmSwift/RealmSwift/Schema.swift /Users/mac/Documents/Bhupendra/RealmSignUpDemo/Pods/RealmSwift/RealmSwift/ObjectSchema.swift /... | D |
/**
* Declarations for back-end functions that the front-end invokes.
*
* This 'glues' either the DMC or GCC back-end to the front-end.
*
* Copyright: Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LI... | D |
module hunt.framework.config.ConfigManager;
import hunt.framework.config.ApplicationConfig;
import hunt.framework.Init;
import hunt.logging.ConsoleLogger;
import hunt.util.Configuration;
import std.exception;
import std.format;
import std.file;
import std.path;
import std.process;
import std.string;
import std.trait... | D |
module restcloud.configuration.appconfig;
import restcloud.configuration.baseconfig;
import vibe.data.json;
import std.file;
import vibe.d;
class AppConfigUtil : BaseConfigUtil {
static AppConfig loadAppConfig() {
auto jsonString = readText("config/appConfig.json");
AppConfig config = deserializeJson!AppCon... | D |
/*
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,
execute, and transmit the Soft... | D |
module twm.x11;
version (linux):
import std.stdint;
public import twm.common;
bool constructWindow(uint16_t width, uint16_t height, Window* window)
{
return false;
}
void pollEvents(const Window* window, Event* events, size_t eventCount)
{
}
void shutdownWindow(Window* window)
{
}
| D |
import std.stdio;
/* My first program in D */
void main(string[] args) {
writeln("test!");
}
| D |
// URL: https://atcoder.jp/contests/abc119/tasks/abc119_d
import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;
auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void pickV(R,T...)(ref R r,ref T t){foreach(ref v;t)pick(r... | D |
module android.java.android.renderscript.ScriptIntrinsic_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import3 = android.java.android.renderscript.Element_d_interface;
import import4 = android.java.... | D |
/+
+ Copyright Andrej Mitrovic 2011.
+ 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)
+
+ Similar as Extra\VisualStyles, but adds hit testing.
+/
module VisualStyles;
import core.me... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.