code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
module directx.dcomptypes;
//---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------
version(Windows):
public import directx.dxgitype, directx.dxgi1_5;
//
//... | D |
// Written in the D programming language.
/**
This module defines the notion of a range. Ranges generalize the concept of
arrays, lists, or anything that involves sequential access. This abstraction
enables the same set of algorithms (see $(MREF std, algorithm)) to be used
with a vast variety of different concrete typ... | D |
extern (C):
/*
sokol_time.h -- simple cross-platform time measurement
Project URL: https://github.com/floooh/sokol
Do this:
#define SOKOL_IMPL
before you include this file in *one* C or C++ file to create the
implementation.
Optionally provide the following defines with your own i... | D |
auto help = "Basic vector routines.\n\n";
import petsc.c.sys;
import petsc.c.vec;
import petsc.c.options;
import std.math;
int main(string[] args) {
PetscErrorCode ierr;
PetscInitialize(args, help);
PetscInt n = 20;
ierr = PetscOptionsGetInt("-n",&n,null);CHKERRQ(ierr);
Vec x,... | D |
import std.exception;
import std.random;
import std.stdio;
auto doubleArray(size_t size) {
double[] result;
result.length = size;
result[] = 0.0;
return result;
}
int bitCount(int i) {
i -= ((i >> 1) & 0x55555555);
i = (i & 0x33333333) + ((i >> 2) & 0x33333333);
i = (i + (i >> 4)) & 0x0F0F... | D |
Long: oauth2-bearer
Help: OAuth 2 Bearer Token
Arg: <token>
Protocols: IMAP POP3 SMTP HTTP
Category: auth
---
Specify the Bearer Token for OAUTH 2.0 server authentication. The Bearer Token
is used in conjunction with the user name which can be specified as part of
the --url or --user options.
The Bearer Token and user... | D |
/Users/GMoran/Desktop/ClassicPlayer/DerivedData/ClassicPlayer/Build/Intermediates/IBDesignables/Intermediates/ClassicPlayer.build/Debug-iphonesimulator/ClassicPlayer.build/Objects-normal/x86_64/MusicMenuVC.o : /Users/GMoran/Desktop/ClassicPlayer/ClassicPlayer/NowPlayingVC.swift /Users/GMoran/Desktop/ClassicPlayer/Class... | D |
/Users/mkoltsov/Projects/Sources/NotesApp/XcodeBuild/Intermediates.noindex/NotesApp.build/Debug-iphonesimulator/NotesApp.build/Objects-normal/x86_64/KeyboardInfoController.o : /Users/mkoltsov/Projects/Sources/NotesApp/NotesApp/NotesStorage.swift /Users/mkoltsov/Projects/Sources/NotesApp/NotesApp/SceneDelegate.swift /Us... | D |
module bst.index;
import index;
static import bst.node;
static import bst.search.search;
static import bst.insert.insert;
static import bst.remove.remove;
static import bst.contents;
class BstIndex : index.Index {
bst.node.Node * root;
bool search(int value) {
return bst.search.search.search(root, value);
... | D |
/**
This module implements a convenience wrapper API for influx.
Authors: Atila Neves (Kaleidic Associates Advisory Limited)
Generated documentation:
http://influxdb.code.kaleidic.io/influxdb.html
*/
module influxdb.api;
version(unittest)
import unit_threaded;
else
struct Values { this(... | D |
/*******************************************************************************
Contains supporting code for managing enrollments registered by nodes
on the network to be a validator, which means the enrollment information
needs to be confirmed on the consensus protocol to be a validator. The
informat... | D |
/++
$(LINK2 https://en.wikipedia.org/wiki/Regular_expression, Regular expressions)
are a commonly used method of pattern matching
on strings, with $(I regex) being a catchy word for a pattern in this domain
specific language. Typical problems usually solved by regular expressions
include validation of user in... | D |
/Users/scott/projects/wasm_membrane/host/rust/target/debug/deps/autocfg-aa08a7cb6b0327c4.rmeta: /Users/scott/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.1/src/lib.rs /Users/scott/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.0.1/src/error.rs /Users/scott/.cargo/registry/src/github.com-1ecc62... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (c) 1999-2017 by Digital Mars, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1... | D |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | D |
var int Huno_ItemsGiven_Chapter_1;
var int Huno_ItemsGiven_Chapter_2;
var int Huno_ItemsGiven_Chapter_3;
var int Huno_ItemsGiven_Chapter_4;
var int Huno_ItemsGiven_Chapter_5;
func void B_GiveTradeInv_Addon_Huno(var C_Npc slf)
{
if((Kapitel >= 1) && (Huno_ItemsGiven_Chapter_1 == FALSE))
{
CreateInvItems(slf,ItMi_N... | D |
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* gtkD is distributed in th... | D |
module tt.logger;
import
std.stdio,
std.range,
std.string,
consoled;
struct Logger
{
void info(A...)(auto ref A args)
{
log(Color.lightGreen, args);
}
void info2(A...)(auto ref A args)
{
log(Color.lightMagenta, args);
}
void info3(A...)(auto ref A args)
{
log(Color.white, args);
}
void er... | D |
# FIXED
28335_inits.obj: C:/bacula2_jabyrns2/repository/trunk/CRSRobot/src/28335_inits.c
28335_inits.obj: C:/CCStudio_v7/bios_5_42_02_10/packages/ti/bios/include/tistdtypes.h
28335_inits.obj: C:/bacula2_jabyrns2/repository/trunk/CRSRobot/include/coecsl.h
28335_inits.obj: C:/CCStudio_v7/bios_5_42_02_10/packages/ti... | D |
import std.stdio;
import std.conv;
import resusage.memory;
void main(string[] args)
{
if (args.length < 2) {
auto memInfo = processMemInfo();
writeln("Virtual memory used by this process: ", memInfo.usedVirtMem);
writeln("Physical memory used by this process: ", memInfo.usedRAM);
}... | D |
of or relating to or used in or practicing obstetrics
| D |
/**
* ...
*
* Copyright: Copyright Benjamin Thaut 2010 - 2013.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Benjamin Thaut, Sean Kelly
* Source: $(DRUNTIMESRC core/sys/windows/_stacktrace.d... | D |
module dpk.util;
import std.array, std.exception, std.file, std.format,
std.functional, std.path, std.regex, std.string, std.c.process;
string fmtString(Args...)(string fmt, Args args) {
auto app = appender!string();
formattedWrite(app, fmt, args);
return app.data;
}
Range apply(alias fun, Range)(Range range... | D |
/***********************************************************************\
* objbase.d *
* *
* Windows API header module *
* ... | D |
/Users/oyo02699/apps/easycrm/easycrm-api/target/debug/deps/chrono-1b5d108a59d8f19c.rmeta: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/lib.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/chrono-0.4.19/src/sys.rs /Users/oyo02699/.cargo/registry/sr... | D |
//
// Deelox: Lox interpreter in D
//
// Leandro Motta Barros (just adapting the code from Bob Nystrom's Book, see
// http://www.craftinginterpreters.com)
//
module lox.scanner;
import lox.token: Token;
import lox.token_type;
struct Scanner
{
private string _source;
private Token[] _tokens = [ ];
private... | D |
//-------------------------------------------------------------------
//
// Contact and strike reaction calculation module
// (c) maisvendoo, 2015/01/19
//
//-------------------------------------------------------------------
module ConstReacts;
import std.math;
enum double STIFF = 1e9;
enum double DAMP_COEFF = 1... | D |
/**
Copyright: Copyright (c) 2016-2017 Andrey Penechko.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module voxelman.world.storage.arraycopy;
import voxelman.math;
import voxelman.geometry.box;
/// writes source to a box within dest
void setSubArray(T)(
T[] dest,
ivec3 ... | D |
// ************************************************************
// EXIT
// ************************************************************
var int Pock_ForgetAll;
// ************************************************************
INSTANCE DIA_Pock_EXIT (C_INFO)
{
npc = Bau_902_Pock;
nr = 999;
condition ... | D |
/Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Jay.build/Extensions.swift.o : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Jay-1.0.0/Sources/Jay/ArrayParser.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Jay-1.0.0/Sources/Jay/BooleanParser.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Jay-1.0.0/S... | D |
/Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Content/SingleValueGet.swift.o : /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/work/Projects/Hello/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/For... | D |
informal terms for the nose
a device on an automobile for making a warning noise
nocturnal bird of prey with hawk-like beak and claws and large head with front-facing eyes
| D |
/**
Contains routines for high level path handling.
Copyright: © 2012-2018 Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.core.path;
import std.algorithm.searching : commonPrefix, endsWith, startsWith;
import std.alg... | D |
module eventcore.drivers.winapi.sockets;
version (Windows):
import eventcore.driver;
import eventcore.drivers.winapi.core;
import eventcore.internal.win32;
import eventcore.internal.utils : AlgebraicChoppedVector, print, nogc_assert;
import std.socket : Address;
import core.time: Duration;
private enum WM_USER_SOCK... | D |
/Users/matthewnale/src/SearchForAccountsSample/SearchForAccountSample/Build/Intermediates/SearchForAccountSample.build/Debug-iphonesimulator/VoiceExtensionUI.build/Objects-normal/x86_64/IntentViewController.o : /Users/matthewnale/src/SearchForAccountsSample/SearchForAccountSample/VoiceExtensionUI/IntentViewController.s... | D |
/Users/DanielChang/Documents/Vapor/Hello/.build/debug/Turnstile.build/Credentials/APIKey.swift.o : /Users/DanielChang/Documents/Vapor/Hello/Packages/Turnstile-1.0.5/Sources/Turnstile/TurnstileError.swift /Users/DanielChang/Documents/Vapor/Hello/Packages/Turnstile-1.0.5/Sources/Turnstile/Core/Subject.swift /Users/Daniel... | D |
INSTANCE Info_Mod_HofstaatPassantin02_Fluffy (C_INFO)
{
npc = Mod_7337_HS_Passantin_REL;
nr = 1;
condition = Info_Mod_HofstaatPassantin02_Fluffy_Condition;
information = Info_Mod_HofstaatPassantin02_Fluffy_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_HofstaatPassantin02_Fluffy_Condition()
{
if (Mo... | D |
// automatically generated by the FlatBuffers compiler, do not modify
module MyGame.Example.Stat;
import std.typecons;
import flatbuffers;
struct Stat {
mixin Table!Stat;
static Stat getRootAsStat(ByteBuffer _bb) { return Stat.init_(_bb.get!int(_bb.position()) + _bb.position(), _bb); }
@property Nullable!strin... | D |
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/LeafProvider.build/LeafRenderer.swift.o : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/leaf-provider.git--3406657661258480084/Sources/LeafProvider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/Heroku... | D |
/***********************************\
SAVES
\***********************************/
func void BW_Savegame() {
};
func void BR_Savegame() {
};
//========================================
// [intern] Gibt Pfad zur Speicherdatei zurück
//========================================
func string _BIN_GetSavefi... | D |
a holding device attached to a workbench
| D |
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop;
void main() {
const long MOD = 10^^9 + 7;
auto N = readln.chomp.to!long;
long x1 = 1;
long x2 = 0;
if (N == 1) {
... | D |
module imagecenter.rest.impl.image;
import std.experimental.logger;
import std.file;
import std.path;
import std.string;
import std.process;
import vibe.web.rest;
import imagecenter.rest.api.image;
import imagecenter.model.file.appconf;
import imageserver.rest.api.volume;
import imagecommon.rest.api.common;
struct Vol... | D |
/*
*******************************************************************************************
* Dgame (a D game framework) - Copyright (c) Randy Schütt
*
* 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... | D |
instance DIA_Brian_EXIT(C_Info)
{
npc = VLK_457_Brian;
nr = 999;
condition = DIA_Brian_EXIT_Condition;
information = DIA_Brian_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Brian_EXIT_Condition()
{
if(Kapitel < 3)
{
return TRUE;
};
};
func void DIA_Brian_EXIT_Info()
{
AI_StopPr... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2019 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 |
module bio.bam.md.operation;
import bio.core.base;
import bio.core.sequence;
import std.conv;
import std.traits;
import std.bitmanip;
import std.algorithm;
/// MD tag operation types
enum MdOperationType : ubyte {
Match,
Mismatch,
Deletion
}
/// Single MD operation.
struct MdOperation {
private {
... | 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 |
/**
* The barrier module provides a primitive for synchronizing the progress of
* a group of threads.
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors: Sean Kelly
* Source: $(DRUNTIMESRC core/sync/_barrier.d)
*/
/* ... | D |
module purr.fs.har;
import purr.io;
import std.string;
import std.array;
import std.algorithm;
import purr.fs.memory;
import purr.fs.files;
import purr.srcloc;
MemoryDirectory parseHar(Location loc, MemoryDirectory dir)
{
string[] names = [];
string file;
bool lastWasData = false;
size_t lno = loc.lin... | D |
module sys.osx.nsapplication;
import sys.osx.objc_class;
import sys.osx.objc_runtime;
import sys.osx.nsobject;
import sys.osx.nsevent;
import util.Singleton;
private class NSApplication {
void terminate(id sender = nil) {
send(obj, sel("terminate:"), sender);
destroyPool(pool);
}
void run() {
send(obj, se... | D |
/Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/Internal/TextStyleMarker.swift.o : /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTML.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/... | D |
module hunt.redis;
import hunt.redis.Protocol.Keyword.MESSAGE;
import hunt.redis.Protocol.Keyword.PMESSAGE;
import hunt.redis.Protocol.Keyword.PSUBSCRIBE;
import hunt.redis.Protocol.Keyword.PUNSUBSCRIBE;
import hunt.redis.Protocol.Keyword.SUBSCRIBE;
import hunt.redis.Protocol.Keyword.UNSUBSCRIBE;
import hunt.util.Arr... | D |
/**
SQLite implementation of the [arsd.database.Database] interface.
Compile with version=sqlite_extended_metadata_available
if your sqlite is compiled with the
SQLITE_ENABLE_COLUMN_METADATA C-preprocessor symbol.
If you enable that, you get the ability to use the
queryDataObject() function with sqlite. (You c... | D |
module clang.c.CXCompilationDatabase;
public import clang.c.CXString;
extern (C):
/** \defgroup COMPILATIONDB CompilationDatabase functions
* \ingroup CINDEX
*
* @{
*/
/**
* A compilation database holds all information used to compile files in a
* project. For each file in the database, it can be queried for ... | D |
module magra.glutil;
import std.exception;
import std.string;
import std.conv;
import std.stdio;
import derelict.opengl;
import derelict.devil.il;
import derelict.devil.ilu;
import derelict.devil.ilut;
//FIXME: All of these objects should have cleanup in their destructors.
class VAO
{
struct Attribute
{
... | D |
module hunt.security.cert.X509Certificate;
import hunt.security.cert.Certificate;
import hunt.security.Principal;
import hunt.security.Provider;
import hunt.security.x500.X500Principal;
import hunt.security.x509;
import hunt.security.Key;
import hunt.collection;
import hunt.Exceptions;
import std.bigint;
import std.... | D |
module hunt.framework.queue.MemoryQueue;
import hunt.framework.queue.AbstractQueue;
import hunt.collection.List;
import hunt.concurrency.SimpleQueue;
import hunt.logging.ConsoleLogger;
import core.thread;
import std.parallelism;
/**
*
*/
class MemoryQueue : AbstractQueue {
private SimpleQueue!(ubyte[])[strin... | D |
/*
TEST_OUTPUT:
---
fail_compilation/fail176.d(13): Error: cannot modify immutable expression b[1]
---
*/
void foo()
{
auto a = "abc";
immutable char[3] b = "abc";
//const char[3] b = "abc";
b[1] = 'd';
}
| D |
// ***********************************************************************************************************
// Spell_ProcessMana_Release
// -------------------------
// wird aufgerufen, NACHDEM die Action Taste losgelassen wurde,
// und in Spell_ProcessMana der Spruch NOCH NICHT GECASTED und NOCH NICHT GESTOPPT wur... | D |
/* https://issues.dlang.org/show_bug.cgi?id=23262
*/
struct T()
{
string[] tags;
this(string[] tags...)
{
this.tags = tags; // don't infer `return` attribute for `tags`
}
}
void test()
{
T!() t;
}
| D |
// REQUIRED_ARGS: -o-
/*
TEST_OUTPUT:
---
fail_compilation/ice15688.d(12): Error: undefined identifier `mappings`
fail_compilation/ice15688.d(12): Error: function expected before `()`, not `0` of type `int`
---
*/
void main()
{
(mappings, 0)();
}
| D |
// Copyright 2019 - 2021 Michael D. Parker
// 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.freetype.bind.ftcache;
import bindbc.freetype.config;
import bindbc.freetype.bind.f... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 2011-2019 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 |
//taken from learning d by Michael Parker
import std.stdio;
align(1) struct FileHeader {
align(1):
byte fmtVersion;
int magic;
byte id;
}
void main() {
writeln(FileHeader.sizeof);
}
| D |
module org.serviio.upnp.discovery.MediaServerConstants;
public class MediaServerConstants
{
public static final String MEDIA_SERVER_DEVICE_TYPE = "urn:schemas-upnp-org:device:MediaServer:1";
public static final String MEDIA_RENDERER_DEVICE_TYPE = "urn:schemas-upnp-org:device:MediaRenderer:1";
public static final... | D |
void main()
{
abstract class AbstractC{}
static assert(!__traits(compiles, { new AbstractC(); }));
final class FinalC{}
static assert(!__traits(compiles, { class D : FinalC{} }));
scope class ScopeC{}
static assert(!__traits(compiles, { auto sc = new ScopeC(); }));
static assert( __trait... | D |
/**
This module provides some 2D geometric primates.
There are seperate integer and floating point Rect and Point types. The integer
types are for situatuions where you want exact pixel coordinates, like clip
rectangles or widget bounds etc.. The float tyes are more general 2D vectoral
primatives.
Copyrig... | D |
/**
* Hooks for application level policies on TLS connections
*
* Copyright:
* (C) 2004-2006,2013 Jack Lloyd
* (C) 2014-2015 Etienne Cimon
*
* License:
* Botan is released under the Simplified BSD License (see LICENSE.md)
*/
module botan.tls.policy;
import botan.constants;
static if (BOTAN_HAS_TLS):
import botan.tls... | D |
// See ../../README.md for information about DMD unit tests.
/**
* Test cases for issue [20861][1].
*
* It's intended to verify that a class implements all the methods of all
* interfaces it implements, even though code generation is not performed.
*
* Also https://github.com/ldc-developers/ldc/issues/3302.
*
... | D |
/Users/macosx/Desktop/TestNetWorkLayer/build/Pods.build/Debug-iphonesimulator/Nimble.build/Objects-normal/x86_64/SatisfyAllOf.o : /Users/macosx/Desktop/TestNetWorkLayer/Pods/Nimble/Sources/Nimble/DSL.swift /Users/macosx/Desktop/TestNetWorkLayer/Pods/Nimble/Sources/Nimble/Matchers/MatcherFunc.swift /Users/macosx/Desktop... | D |
/**
* Provides a depth-first statement visitor.
*
* 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, Boost License 1.0)
* Source: $(LINK2 https:... | D |
module android.java.android.media.MediaPlayer_DrmInfo_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.util.Map_d_interface;
import import1 = android.java.java.util.UUID_d_i... | D |
module dinu;
public import
dinu.content.output; | D |
instance KDF_511_Daron(Npc_Default)
{
name[0] = "Дарон";
guild = GIL_KDF;
id = 511;
voice = 2;
flags = 0;
npcType = npctype_main;
aivar[AIV_Temper] = TEMPER_MagicUser;
aivar[AIV_StoryFlags] = STORY_OutOfCamp;
B_SetAttributesToChapter(self,5);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_1h_Nov_Mace)... | D |
// Written in the D programming language.
/**
Functions that manipulate other functions.
Macros:
WIKI = Phobos/StdFunctional
Copyright: Copyright Andrei Alexandrescu 2008 - 2009.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(WEB erdani.org, Andrei Alexandrescu)
Source: $(PHOBOSSRC ... | D |
module test.samreader;
import std.stdio;
import std.string;
import std.array;
import dhtslib;
import htslib;
int main()
{
hts_set_log_level(htsLogLevel.HTS_LOG_INFO);
auto bam = SAMFile("../../htslib/test/range.bam");
auto samRecs = bam.all_records.array;
assert(samRecs.length == 112); // con... | D |
module net.smehlik.math.percentage;
/**
* Calculates the given number of percent from whole.
* Params:
* percent = amount of percent to take from whole
* whole = size of whole
* Returns:
* size of part
*/
pure T getPart(T = double)(T percent, T whole) nothrow
{
return whole * 0.01 * percent;
}
... | D |
/**
* Copyright: Copyright (c) 2011 Jacob Carlborg. All rights reserved.
* Authors: Jacob Carlborg
* Version: Initial created: Oct 6, 2011
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
*/
module clang.Diagnostic;
import std.typecons : RefCounted;
import clang.c.Index;
impor... | D |
module crate.mime;
string toExtension(string name) @safe {
immutable auto mime = [
"audio/basic": ".au",
"video/avi": ".avi",
"video/msvideo": ".avi",
"video/x-msvideo": ".avi",
"image/bmp": ".bmp",
"application/x-bzip2": ".bz2",
"text/css": ".css",
"application/xml-dtd": ".dtd",
... | D |
INSTANCE ITWr_DRUSUS_TAFEL (C_Item)
{
name = "Steintafel";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 50;
visual = "ItMi_StonePlate_PowerUp_01.3DS";
material = MAT_STONE;
description = name;
Text[0] = "Drusus Steintafel, leicht angeštzt";
}; | D |
module app.controllers;
import std.stdio;
class HomeController {
public void getTest() {
writefln("WooHoo Controlelr method fired");
}
} | D |
module Crypt;
import std.stdio;
import std.format: format;
import std.base64;
string AESencrypt(const string password, const string plaintext) {
auto aes = new AES(password);
return aes.encrypt(plaintext);
}
string AESdecrypt(const string password, const string ciphertext) {
auto aes = new AES(password);
return a... | D |
import std.conv;
import std.stdio;
import scanner;
class ParseException : Exception
{
this(string message, string file = __FILE__, int line = __LINE__, Throwable next = null)
{
super(message, file, line, next);
}
}
class Parser
{
Scanner scanner;
this(Scanner scanner)
{
this.scanner = scanner;
... | D |
/*
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | D |
// build: dmd main.d net/peers.d net/udp_bcast.d net/d-json/jsonx.d
import core.thread;
import core.time;
import std;
import peers;
import udp_bcast;
void main(string[] args){
string id;
args.getopt(
"id", &id,
);
if(id == string.init){
id = format!("%s#%d")(
n... | D |
func void ZS_MM_Rtn_OrcSit()
{
Perception_Set_Monster_Rtn();
b_staminainvent();
AI_SetWalkMode(self,NPC_WALK);
B_MM_DeSynchronize();
if(Hlp_StrCmp(Npc_GetNearestWP(self),self.wp) == FALSE)
{
AI_GotoWP(self,self.wp);
};
self.aivar[AIV_TAPOSITION] = NOTINPOS;
};
func int ZS_MM_Rtn_OrcSit_loop()
{
b_staminai... | D |
/Users/yufan/develop/my-open-source/rust/rust-demo/owner/target/rls/debug/deps/owner-54968b9102394c6d.rmeta: src/main.rs
/Users/yufan/develop/my-open-source/rust/rust-demo/owner/target/rls/debug/deps/owner-54968b9102394c6d.d: src/main.rs
src/main.rs:
| D |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 James Mahler, Richard Andrew Cattermole
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limi... | D |
// Written in the D programming language.
/**
This module implements the formatting functionality for strings and
I/O. It's comparable to C99's $(D vsprintf()) and uses a similar
format encoding scheme.
Macros: WIKI = Phobos/StdFormat
Copyright: Copyright Digital Mars 2000-.
License: $(WEB boost.o... | D |
module jugador.direccion.AvanzoFueraDeRangoException;
import std.exception;
public class AvanzoFueraDeRangoException : Exception{
this(string msg, string file = __FILE__, size_t line = __LINE__) {
super(msg, file, line);
}
} | 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_6_agm-43195211... | D |
/*
* Copyright (c) 2018-2020 sel-project
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | D |
/*
* expressionunit.d
*
* This module parses expressions.
*
*/
module parsing.d.declaratorunit;
import parsing.parseunit;
import parsing.token;
import parsing.d.tokens;
import parsing.d.nodes;
import parsing.d.declaratorsuffixunit;
import parsing.d.declaratortypeunit;
import io.console;
import djehuty;
clas... | D |
import reservoir;
import std.stdio;
import progresscounter;
import std.conv;
import std.file;
import core.stdc.stdlib;
import std.encoding;
import std.datetime;
struct SrcLine { long headPos;
ulong index; }
string getTimestamp()
{
auto time = Clock.currTime();
return text(cast... | D |
/* REQUIRED_ARGS: -dip1000
TEST_OUTPUT:
---
fail_compilation/fix18575.d(27): Error: returning `s.foo()` escapes a reference to parameter `s`, perhaps annotate with `return`
fail_compilation/fix18575.d(31): Error: returning `s.foo()` escapes a reference to parameter `s`, perhaps annotate with `return`
fail_compilation/f... | D |
/*
Copyright © 2019 Clipsey & Anego Studios
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 of conditions and the following dis... | D |
// Vicfred
// https://atcoder.jp/contests/abc155/tasks/abc155_c
// implementation
import std.algorithm;
import std.conv;
import std.stdio;
import std.string;
void main() {
int n = readln.chomp.to!int;
int[string] votes;
foreach(_; 0..n) {
string s = readln.chomp;
votes[s] = votes.get(s,0)... | D |
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Service.build/Container/BasicContainer.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceID.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/se... | D |
/Users/MohamedNawar/Desktop/appointment/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/NSButton+Kingfisher.o : /Users/MohamedNawar/Desktop/appointment/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/MohamedNawar/Desktop/appointment/Pods/Kingfisher/Sources/General/Deprecated.swift ... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.