code
stringlengths
3
10M
language
stringclasses
31 values
/** * D header file for Linux err.h. * * Copyright: Copyright © 2019, The D Language Foundation * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Ernesto Castellotti */ module core.sys.linux.err; import core.stdc.stdarg : va_list; version (linux): extern (C): nothr...
D
/* THIS FILE GENERATED BY bcd.gen */ module bcd.fltk.Fl_Positioner; public import bcd.bind; public import bcd.fltk.Fl_Widget; public import bcd.fltk.Enumerations; extern (C) void _BCD_delete_13Fl_Positioner(void *); extern (C) int _BCD__ZN13Fl_Positioner6handleEi(void *This, int); extern (C) void *_BCD_new__ZN13Fl_Posi...
D
func int Spell_Logic_DestroyUndead(var int manaInvested) { PrintDebugNpc(PD_MAGIC,"Spell_Logic_DestroyUndead"); if(manaInvested >= SPL_SENDCAST_DESTROYUNDEAD) { return SPL_SENDCAST; }; return SPL_RECEIVEINVEST; };
D
module godot.mutex; import std.meta : AliasSeq, staticIndexOf; import std.traits : Unqual; import godot.d.meta; import godot.core; import godot.c; import godot.d.bind; import godot.object; import godot.classdb; import godot.reference; @GodotBaseClass struct Mutex { static immutable string _GODOT_internal_name = "_Mute...
D
/Users/ozgun/Desktop/IOSCase/build/Pods.build/Debug-iphonesimulator/RxRelay.build/Objects-normal/x86_64/Observable+Bind.o : /Users/ozgun/Desktop/IOSCase/Pods/RxRelay/RxRelay/Observable+Bind.swift /Users/ozgun/Desktop/IOSCase/Pods/RxRelay/RxRelay/Utils.swift /Users/ozgun/Desktop/IOSCase/Pods/RxRelay/RxRelay/PublishRelay...
D
/Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/InvocableType.o : /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observabl...
D
import std.stdio; int main(){ int arrNumbers[] = [1,2,3]; int sum = 0; for(int x = 0; x < arrNumbers.length; x++){ sum = sum + arrNumbers[x]; } writeln("Sum is ", sum); return 0; }
D
module android.java.android.media.MediaCasStateException_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.java.lang...
D
/Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/Routing.build/Routing/RoutableComponent.swift.o : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/routing.git-1521062748904756279/Sources/Routing/Utilities/Deprecated.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/routin...
D
instance Mod_1300_SLD_Organisator_MT (Npc_Default) { //-------- primary data -------- name = Name_Organisator; Npctype = Npctype_mt_soeldner; guild = GIL_mil; level = 4; voice = 8; id = 1300; //-------- abilities -------- B_SetAttributesToChapter (self, 4); Equi...
D
prototype BeliarWeaponPrototype_1H(C_Item) { name = NAME_ADDON_BELIARSWEAPON; mainflag = ITEM_KAT_NF; flags = ITEM_SWD; material = MAT_METAL; damagetype = DAM_EDGE; range = Range_Orkschlaechter; cond_atr[2] = ATR_STRENGTH; cond_value[2] = 0; visual = "ItMw_BeliarWeapon_1H.3DS"; effect = "SPELLFX_FIRESWORDBLA...
D
module hunt.database.driver.mysql.impl.codec.ResetConnectionCommandCodec; import hunt.database.driver.mysql.impl.codec.CommandCodec; import hunt.database.driver.mysql.impl.codec.CommandType; import hunt.database.driver.mysql.impl.codec.MySQLEncoder; import hunt.database.driver.mysql.impl.command.ResetConnectionComman...
D
/** Copyright: Copyright (c) 2015-2017 Andrey Penechko. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Andrey Penechko. */ module test.entitytest.plugin; import voxelman.log; import voxelman.container.buffer; import dlib.math; import pluginlib; import datadriven; import voxelman.core.events; i...
D
/** Contains routines for high level path handling. 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 dub.internal.vibecompat.inet.path; version (Have_vibe_d) public import vibe.inet.path; else: i...
D
module dscord.util.dynlib; import std.string; import dscord.util.errors; import core.stdc.stdio; import core.stdc.stdlib; import core.sys.posix.dlfcn; alias dynamicLibrary = void*; dynamicLibrary loadDynamicLibrary(string path) { void* lh = dlopen(toStringz(path), RTLD_NOW); if (!lh) { throw new BaseError(...
D
module httprequest; import socketnogc; import error; import core.stdc.stdlib; import core.stdc.string; import dplug.core.nogc; import core.stdc.stdio; enum Method { GET, POST, PUT, UPDATE, DELETE, OPTIONS, HEAD, TRACE, CONNECT } string methodToString(Method method) nothrow @nogc ...
D
/Users/harrisa/dev/apps/b.mobbing/chrono/SwiftyChrono/.build/x86_64-apple-macosx/debug/SwiftyChrono.build/Parsers/DE/DECasualDateParser.swift.o : /Users/harrisa/dev/apps/b.mobbing/chrono/SwiftyChrono/Sources/SwiftyChrono/Utils/Date.swift /Users/harrisa/dev/apps/b.mobbing/chrono/SwiftyChrono/Sources/SwiftyChrono/Utils/U...
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/yinheng/Desktop/code/node/rs/axum_live/target/debug/build/generic-array-34b096ef04c8c626/build_script_build-34b096ef04c8c626: /Users/yinheng/.cargo/registry/src/github.com-1ecc6299db9ec823/generic-array-0.14.5/build.rs /Users/yinheng/Desktop/code/node/rs/axum_live/target/debug/build/generic-array-34b096ef04c8c6...
D
module osc.interceptor; import std.stdio; import std.typetuple; enum Osc; template isOsc(alias T){ enum isOsc = staticIndexOf!(Osc, __traits(getAttributes, T)) != -1; } template oscMembers(C){ private{ enum members = __traits(allMembers, C); string memberName(in string m){ import ...
D
module wonne.wonne; private { static import wonne.awesomium; static import std.algorithm; static import std.traits; static import core.runtime; version(Windows) { static import core.sys.windows.windows; } } mixin template AWESingleProcessMain(alias real_main) { int main() { ...
D
module dunitconversion.tools; import dunitconversion.linearfunction; /** * Combines two linear functions * Returns: an object of type LinearFunction containing combined function */ LinearFunction combined(LinearFunction first, LinearFunction second) { return LinearFunction(first.k * second.k, second.k * fir...
D
/* * Copyright (C) 2019, HuntLabs * * 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...
D
//начальное размещение персонажей и индивидуальные особенности //однократно при старте игры в основном мире var int B_Hero_Start_Once; func void B_EquipBest(var C_NPC npc) { AI_EquipBestArmor(npc); AI_EquipBestMeleeWeapon(npc); AI_EquipBestRangedWeapon(npc); }; //окружение ГГ func void B_Hero_PreStart() { if (Cur...
D
a wide street in London stretching from Trafalgar Square to the Houses of Parliament the British civil service
D
/+++ Prerequisites to Compile: ------------------------- - Working D compiler Prerequisites to Run: --------------------- - Git - Posix: Working gcc toolchain, including GNU make which is not installed on FreeBSD by default. On OSX, you can install the gcc toolchain through Xcode. - Windows: Working DMC and MSVC too...
D
/* Copyright 2016 HaCk3D, substanceof https://github.com/HaCk3Dq https://github.com/substanceof 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 ...
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_3_BeT-11418612...
D
instance SFB_1041_Schuerfer (Npc_Default) { //-------- primary data -------- name = NAME_Schuerfer; npctype = Npctype_ambient; guild = GIL_SFB; level = 6; flags = 0; voice = 5; id = 1041; //-------- abilities -------- attribute[ATR_STRENGTH] = 30; attri...
D
func void oresmelting_s1() { if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(hero)) { self.aivar[AIV_INVINCIBLE] = TRUE; player_mobsi_production = MOBSI_ORESMELTING; AI_ProcessInfos(hero); }; }; instance PC_ORESMELTING_END(C_Info) { npc = PC_Hero; nr = 999; condition = pc_oresmelting_end_condition; info...
D
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/CacheSerializer.o : /Users/hanykaram/Desktop/MVC/Pods/Kingfisher/Sources/String+MD5.swift /Users/hanykaram/Desktop/MVC/Pods/Kingfisher...
D
/++ A web view wrapper. Uses CEF on Linux and WebView2 on Windows. Microsoft WebView2 is fairly stable and is unlikely to break, but CEF is not remotely stable and likely to break every release. You'll have to get the same version as me to use this unless you want to generate your own bindings (procedure found in...
D
young of domestic cattle the muscular back part of the shank fine leather from the skin of a calf young of various large placental mammals e.g. whale or giraffe or elephant or buffalo release ice birth
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 net.pms.newgui.ProfileChooser; import net.pms.Messages; ////import javax.swing.*; //import javax.swing.filechooser.FileFilter; import java.io.File; public class ProfileChooser { private static class ProfileChooserFileFilter : FileFilter { // XXX: this is more restrictive than the environment variable/prope...
D
/Users/yq/Project/Swift/SwiftGroup/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Timer.o : /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/yq/Project/Swift/SwiftGroup/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/yq/Proj...
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
/** A HTTP 1.1/1.0 server implementation. Copyright: © 2012-2013 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig, Jan Krüger, Ilya Shipunov */ module vibe.http.server; public import vibe.core.net; public import vibe.http.co...
D
a person of subnormal intelligence having a mental age of three to seven years
D
func void zs_stay() { printdebugnpc(PD_TA_FRAME,"ZS_Stay"); b_setperception(self); self.senses = SENSE_SEE | SENSE_HEAR | SENSE_SMELL; if(Npc_HasReadiedWeapon(self)) { AI_SetWalkMode(self,NPC_RUN); } else { AI_SetWalkMode(self,NPC_WALK); }; AI_GotoWP(self,self.wp); AI_AlignToWP(self); }; func void zs_s...
D
/** * D header file for C99. * * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/stdlib.h.html, stdlib.h) * * Copyright: Copyright Sean Kelly 2005 - 2014. * License: Distributed under the * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0). * (See accompan...
D
/** * modelEntity.d * tower * May 27, 2013 * Brandon Surmanski */ module entity.modelEntity; import std.math; import c.lua; import gl.glb.glb; import math.matrix; import container.geom.model; import container.geom.mesh; import entity.luaEntity; import entity.entity; import camera; class ModelInfo : LuaEntityI...
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/justinlew/Documents/iOS_dev/mealify.io/DerivedData/mealify/Build/Intermediates.noindex/mealify.build/Debug-iphonesimulator/mealify.build/Objects-normal/x86_64/MealTableViewCell.o : /Users/justinlew/Documents/iOS_dev/mealify.io/ViewController1.swift /Users/justinlew/Documents/iOS_dev/mealify.io/ViewController2.sw...
D
/Users/apple/Developer/Circle/build/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/SnapKit.o : /Users/apple/Developer/Circle/Pods/SnapKit/Source/Constraint.swift /Users/apple/Developer/Circle/Pods/SnapKit/Source/ConstraintAttributes.swift /Users/apple/Developer/Circle/Pods/SnapKit/Source/Constrain...
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
/** Deals with expanding #include directives inline. */ module dpp.expansion; import dpp.from; /** Params: translUnitFileName = The file name with all #include directives to parse context = The translation context language = Whether it's a C or C++ file includePaths = The list of ...
D
module game.vulkan.wrap; import game.vulkan.context; import erupted; import std.algorithm; import std.string; import std.typecons; import std.traits; version (Have_derelict_glfw3) { import derelict.glfw3.glfw3; mixin DerelictGLFW3_VulkanBind; } else import glfw3d : glfwGetRequiredInstanceExtensions; struct Vul...
D
/* crypto/stack/stack.h */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-...
D
/* EPANET 3 * * Copyright (c) 2016 Open Water Analytics * Distributed under the MIT License (see the LICENSE file for details). * */ module epanet.elements.demand; import epanet.core.network; import epanet.elements.pattern; class Demand { public: this(){ baseDemand = 0.0; fullDemand = 0.0;...
D
import std.stdio; import std.datetime; import std.random; const long N = 20000; const int size = 10; alias int value_type; alias long result_type; alias value_type[] vector_t; alias uint size_type; value_type scalar_product(const ref vector_t x, const ref vector_t y) { value_type res = 0; size_type siz = x.lengt...
D
module html5.elements.metadata; import html5; class BaseElement : Html5Element!("base"){ mixin(ElementConstructorTemplate!()); mixin(AttributeTemplate!(typeof(this), "href")); mixin(AttributeTemplate!(typeof(this), "target")); } class HeadElement : Html5Element!("head"){ mixin(ElementConstructorTemplate!()); } ...
D
/** * D header file for POSIX. * * Copyright: Copyright Sean Kelly 2005 - 2009. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Sean Kelly, Alex Rønne Petersen * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition */ /* Copyright Sean...
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; void main() { auto nl = readln.split.to!(int[]); auto N = nl[0]; auto L = nl[1]; int s, e = int.max; foreach (i; 0..N) { s += L+i; if (abs(L+i) < abs(e)) e = L+i; } wr...
D
module cpuio; //x86 I/O ports enum PIC1 = 0x20; enum PIC2 = 0xA0; enum PIC1Command = PIC1; enum PIC1Data = PIC1+1; enum PIC2Command = PIC2; enum PIC2Data = PIC2+1; enum PICEnd = 0x20; enum Timer0 = 0x40; enum Timer1 = 0x41; enum Timer2 = 0x42; enum TimerMode = 0x43; //TODO: wrap this, make it safer, add acc...
D
/** * <hr /> * $(B Deescover -) * A modern state-of-the-art SAT solver written in D. * * $(P) * $(I Deescover is based on the MiniSat-2 (see $(LINK http://minisat.se/)) * solver written in C++ by Niklas Een and Niklas Sorensson) $(BR) * <hr /> * * Authors: Uwe Keller, * License: MIT * ...
D
/** * Authors: Frank Benoit <keinfarbton@googlemail.com> */ module dwt.dwthelper.File; import dwt.dwthelper.utils; static import tango.io.model.IFile; static import tango.io.FilePath; static import tango.io.Path; version (TANGOSVN) { static import tango.sys.Environment; } else { static import tango.io.FileS...
D
/** PERMUTE_ARGS: -i LINK: **/ import imports.test23597; void main() { fun(); }
D
/* Copyright (c) 2014-2020 Timur Gafarov, Roman Chistokhodov 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, repr...
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/Content/URLEncoded.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILApp...
D
/Users/dali/Documents/GitHub/rustlings/target/debug/deps/parking_lot_core-aa84f195e538c87c.rmeta: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/parking_lot_core-0.8.3/src/lib.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/parking_lot_core-0.8.3/src/parking_lot.rs /Users/d...
D
//**************************** // EVT_ORNAMENT_SWITCH_BIGFARM_01_FUNC (Ornamentschalterrätsel beim Steinkreis Onars Hof) //ADDON //**************************** func void EVT_ORNAMENT_SWITCH_BIGFARM_01_FUNC () { if (ORNAMENT_SWITCHED_BIGFARM == FALSE) { }; }; //**************************** // EVT_ORNAMENT_S...
D
// expansion at C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\sys\windows\basetsd.d(49,5) alias void* HHOOK; // expansion at C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\sys\windows\basetsd.d(49,5) alias void* HGLOBAL; // expansion at C:\D\dmd2\windows\bin\..\..\src\druntime\import\core\sys\windows\bas...
D
import std.stdio; import std.datetime; import std.random; import std.range; import std.algorithm; import std.array; import core.memory; import common; import code.appender2; import code.fastappender; import code.fastappender2; import code.fastappender3; import code.fastappender4; import code.fastappender5; import code...
D
import std.stdio, std.conv, std.string, std.algorithm, std.range; void printChange(in uint tot, in uint[] coins) in { assert(coins.isSorted); } body { auto freqs = new uint[coins.length]; void inner(in uint curTot, in size_t start) { if (curTot == tot) return writefln("%-(%s %)", ...
D
/Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Zip+Collection.o : /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSw...
D
// SemiTwist Library // Written in the D programming language. module semitwist.util.text; import std.algorithm; import std.array; import std.conv; import std.digest.md; import std.stdio; import std.traits; import std.stream; import std.string; import std.system; import std.uni; import std.utf; public import std.str...
D
module dopt.nnet.layers.util; string dynamicProperties(Args...)(Args args) { static if(args.length > 0) { return " public " ~ args[0] ~ " " ~ args[1] ~ "() { return _" ~ args[1] ~ "; } public typeof(this) " ~ args[1] ~ "(" ~ args[0] ~ " p) { _" ~ args[1] ~ " = p; return this; } private " ~ args[0] ~ " ...
D
/** * The runtime module exposes information specific to the D runtime code. * * 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/_runtime.d) */ /* Copyright Sean Kelly 2005...
D
const ulong kPageSize4K = 4096; const ulong kPageSize2M = 512 * kPageSize4K; const ulong kPageSize1G = 512 * kPageSize2M; const size_t kPageDirectoryCount = 64;
D
// URL: http://codeforces.com/contest/964/problem/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,v);} ...
D
// Written in the D programming language. /** * Contains the elementary mathematical functions (powers, roots, * and trigonometric functions), and low-level floating-point operations. * Mathematical special functions are available in $(D std.mathspecial). * $(SCRIPT inhibitQuickIndex = 1;) $(DIVC quickindex, $(BO...
D
module ToggleTest; import std.container.array; import std.stdio; import std.algorithm; import std.ascii; //import std.exception; import std.string; import std.traits; import std.conv; import std.file; import std.path; import std.format; import std.math; import core.stdc.stdlib; import iup; import im; import cd; i...
D
instance Info_Vlk_2_EXIT(C_Info) { nr = 999; condition = Info_Vlk_2_EXIT_Condition; information = Info_Vlk_2_EXIT_Info; permanent = 1; description = DIALOG_ENDE; }; func int Info_Vlk_2_EXIT_Condition() { return 1; }; func void Info_Vlk_2_EXIT_Info() { AI_StopProcessInfos(self); }; instance Info_Vlk_2_EinerVon...
D
/********************************************************* Copyright: (C) 2008 by Steven Schveighoffer. All rights reserved License: $(LICENSE) **********************************************************/ module col.HashSet; public import col.model.Set; public import col.Functions; private import...
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; enum P = 10L^^9+7; void main() { auto N = readln.chomp.to!long; auto AS = readln.split.to!(ulong[]); long[61][] CS; CS.length = N; foreach_reverse (i; 0..N) { foreach (j; 0..61) { ...
D
//https://www.reddit.com/r/dailyprogrammer/comments/onfehl/20210719_challenge_399_easy_letter_value_sum/ import std.traits : isSomeString; import std.algorithm : map, sum; import std.stdio : writeln, writefln, stdin; unittest { static assert(letterSum("") == 0); static assert(letterSum("a") == 1); static a...
D
/Users/vishesh/Downloads/ContactBackup/build/ContactBackup.build/Debug-iphonesimulator/ContactBackup.build/Objects-normal/x86_64/Parser_DonloadReq.o : /Users/vishesh/Downloads/ContactBackup/ContactBackup/LaunchScreen.swift /Users/vishesh/Downloads/ContactBackup/ContactBackup/Parser_UploadBG.swift /Users/vishesh/Downloa...
D
// Generated by gnome-h2d.rb <http://github.com/ddude/gnome.d>. module gio.dbusauthobserver; /* GDBus - GLib D-Bus Library * * Copyright (C) 2008-2010 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publish...
D
import std.algorithm; import std.array; import std.conv; import std.file; import std.range; import std.regex; import std.stdio; import std.string; import std.typecons; void main() { auto bags = readText("day07.input").parseRules; bags.count("shiny gold").writeln; bags.countContains("shiny gold").writeln; } struct ...
D
module tefutefu3.reply; import twitter4d; import std.conv, std.json, std.file, std.regex, std.stdio, std.array, std.string, std.random, std.datetime, std.algorithm; import tefutefu3.util, tefutefu3.status; import weatherd; class EventReply{ mixin ...
D
module org.serviio.upnp.service.contentdirectory.command.image.ListImagesForCreationMonthAndYearCommand; import java.lang; import java.util.List; import org.serviio.library.entities.AccessGroup; import org.serviio.library.entities.Image; import org.serviio.library.local.service.ImageService; import org.serviio.profile...
D
/Users/mac/Documents/Bhupendra/RedialAnimateMenuBar/build/Pods.build/Debug-iphonesimulator/Macaw.build/Objects-normal/x86_64/RenderUtils.o : /Users/mac/Documents/Bhupendra/RedialAnimateMenuBar/Pods/Macaw/Source/export/MacawView+PDF.swift /Users/mac/Documents/Bhupendra/RedialAnimateMenuBar/Pods/Macaw/Source/MCAMediaTimi...
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Compute common subexpressions for non-optimized builds. * * Copyright: Copyright (C) 1985-1995 by Symantec * Copyright (C) 2000-2019 by The D Language Foundation, All Rights Reserved * Authors: $...
D
/** * Code generation 1 * * Handles function calls: putting arguments in registers / on the stack, and jumping to the function. * * Compiler implementation of the * $(LINK2 https://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1984-1998 by Symantec * Copyright (C) 2000-202...
D
module raider.collision; public { import raider.collision.shape; import raider.collision.space; }
D
// ************************************************ // EXIT // ************************************************ INSTANCE DIA_Boltan_EXIT (C_INFO) { npc = Mil_313_Boltan; nr = 999; condition = DIA_Boltan_EXIT_Condition; information = DIA_Boltan_EXIT_Info; permanent = TRUE; description ...
D
 module graphics.render.batcher; mixin template Batcher(uint batchSize, ARGS...) { import std.typecons : Tuple; private enum size = batchSize; private alias arrayType = Tuple!ARGS; private arrayType[size] data; private uint currentCount = 0; public void postBatch(ARGS args) { arrayType v = args; data[curr...
D
#!/usr/bin/env rdmd -I.. import std.stdio; import std.datetime.stopwatch; import std.algorithm; import std.range; import std.array; import kreikey.primes; import kreikey.intmath; import std.functional; alias primeFactors = memoize!(getPrimeFactors!ulong); void main () { StopWatch timer; auto p = new Primes!long()...
D
instance BDT_10314_Addon_RangerBandit_M (Npc_Default) { // ------ NSC ------ name = NAME_BANDIT; guild = GIL_BDT; id = 10314; voice = 1; flags = 0; //NPC_FLAG_IMMORTAL oder 0 npctype = NPCTYPE_AMBIENT; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); //...
D
module UnrealScript.UnrealEd.CurveEdPreset_UserSet; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.UnrealEd.CurveEdPresetBase; extern(C++) interface CurveEdPreset_UserSet : CurveEdPresetBase { public extern(D): private static __gshared ScriptClass mStaticClass; @property final stat...
D
instance KDW_600_Saturas (Npc_Default) { //-------- primary data -------- name = "Saturas"; npctype = NPCTYPE_FRIEND; guild = GIL_KDW; level = 29; voice = 14; id = 600; flags = NPC_FLAG_IMMORTAL; //-------- abilities -------- attribute[ATR_STRENGTH] = 50; attribute[ATR_DEXTERIT...
D
module logic.assimilation.RHF; import std.algorithm; import std.array; import std.conv; import std.mathspecial; import std.range; import std.stdio; import std.typecons; import logic.assimilation.Assimilator; import logic.assimilation.likelihood.Likelihood; import logic.data.Ensemble; import logic.data.Vector; import l...
D
/* TEST_OUTPUT: --- fail_compilation/fail16600.d(22): Error: `fail16600.S.__ctor` called with argument types `(string) const` matches both: fail_compilation/fail16600.d(16): `fail16600.S.this(string __param_0)` and: fail_compilation/fail16600.d(17): `fail16600.S.this(string __param_0) immutable` --- */ // http...
D
/Users/pali/Downloads/EncryptedNoteTaker-master/DerivedData/NoteTaker/Build/Intermediates/NoteTaker.build/Debug-iphonesimulator/NoteTaker.build/Objects-normal/x86_64/RegisterViewController.o : /Users/pali/Downloads/EncryptedNoteTaker-master/NoteTaker/AppDelegate.swift /Users/pali/Downloads/EncryptedNoteTaker-master/Der...
D
/* Copyright (c) 2019-2020 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 def; int def_a(int i) { return 10; } int def_a(double d){ return 20; } int def_a2(int i, double d=4.5) { return cast(int) (100*d + i); } int def_a3(int[] i...) { int ret = 42; foreach(_i; i) ret += _i; return ret; } string def_a4(string s1, int i1, string s2 = "friedman", int i2 = 4...
D
module data.collision; immutable ubyte[] COLLISION_MASKS = [ 0b00000000, // Empty 0b00001100, // Players 0b00000000, // Monsters 0b00000000, // Pickups 0b00000000, // Nodes 0b00010110, // Projectiles ]; enum CollideIndex : ubyte { EMPTY, PLAYERS, MONSTERS, PICKUPS, NODES, ...
D
// DDS decoders // Based on code from Nvidia's DDS example: // http://www.nvidia.com/object/dxtc_decompression_code.html // // Copyright (c) 2003 Randy Reddig // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following condi...
D
// Written in the D programming language. /** * Elementary mathematical functions * * Contains the elementary mathematical functions (powers, roots, * and trigonometric functions), and low-level floating-point operations. * Mathematical special functions are available in std.mathspecial. * * The functionality c...
D