code
stringlengths
3
10M
language
stringclasses
31 values
; 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
/******************************************************************************* * 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
// https://issues.dlang.org/show_bug.cgi?id=21514 // DISABLED: win32 win64 extern(C++) cdouble cpp_cadd1(cdouble c) { return c + 1; } extern(C++) creal cpp_cadd1l(creal c) { return c + 1; } cdouble cadd1(cdouble c) { return cpp_cadd1(c); } creal cadd1(creal c) { return cpp_cadd1l(c); }
D
func void B_StopMagicBurn() { var int randypfxdead; Npc_PercEnable(self,PERC_ASSESSMAGIC,B_AssessMagic); Npc_ClearAIQueue(self); AI_Standup(self); if(self.guild < GIL_SEPERATOR_HUM) { B_AssessDamage(); AI_ContinueRoutine(self); } else { Npc_SetTempAttitude(self,ATT_HOSTILE); AI_ContinueRoutine(self); ...
D
func void ZS_Potion_Alchemy() { if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Constantino)) { if(constantino_flag == 0) { constantino_flasks = Npc_HasItems(self,ItMi_Flask); constantino_flag = 1; }; } else if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Salandril)) { if(salandril_flag == 0) { ...
D
module imports.testmod2a; /**********************************/ // https://issues.dlang.org/show_bug.cgi?id=1904 // testmod.d private void bar(alias a)() {} void foo(alias a)() { .bar!(a)(); }
D
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Core.build/String+Utilities.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/core.git-9210800844849382486/Sources/Core/Data+Base64URL.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/core.git-921080...
D
module fint; import std.stdio; import std.conv : to; import metafint; version = large; version = small; version (small) { struct B2 { mixin BF!(B2, ubyte, 2, (1 << 1) + (1 << 0)); } struct B3 { mixin BF!(B3, ubyte, 3, (1 << 1) + (1 << 0)); } struct B4 { mixin...
D
/home/bexx/Projects/SmallRustProjects/threads/target/debug/deps/threads-b553cdeb16b145a9.rmeta: src/main.rs /home/bexx/Projects/SmallRustProjects/threads/target/debug/deps/threads-b553cdeb16b145a9.d: src/main.rs src/main.rs:
D
// Written in the D programming language. module wrapper.sodium.crypto_pwhash; import wrapper.sodium.core; // assure sodium got initialized public import deimos.sodium.crypto_pwhash : crypto_pwhash_ALG_ARGON2I13, crypto_pwhash_alg_argon2i13, ...
D
module android.java.java.sql.ParameterMetaData; public import android.java.java.sql.ParameterMetaData_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!ParameterMetaData; import import0 = android.java.java.lang.Class;
D
/* * Public domain * sys/mman.h compatibility shim */ module libressl.compat.sys.mman; public import core.sys.darwin.sys.mman; public import core.sys.dragonflybsd.sys.mman; public import core.sys.freebsd.sys.mman; public import core.sys.linux.sys.mman; public import core.sys.netbsd.sys.mman; public import core.sys...
D
improper or excessive use apply to a wrong thing or person change the inherent purpose or function of something
D
/Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/SubscriptionDisposable.o : /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo...
D
module UnrealScript.UTGame.GFxUI_InventoryButton; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.GFxUI.GFxClikWidget; import UnrealScript.GFxUI.GFxObject; extern(C++) interface GFxUI_InventoryButton : GFxClikWidget { public extern(D): private static __gshared ScriptClass mStaticClas...
D
import std.stdio, std.conv, std.exception; class Node(T, U) { T key; U value; Node!(T, U) next; this(T k, U v) { key = k; value = v; } } struct Map(T, U) { Node!(T, U) head; // Is k a key in the Map? bool opBinaryRight(string op)(T k) if (op == "in") { auto node = head; while (node !is null) { ...
D
/home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/HTTP.build/FoundationClient/Client+Foundation.swift.o : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/engine.git--7533756970564908605/Sources/HTTP/Async/Response+Async.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/engine.git--7...
D
/** * Copyright: Copyright (c) 2010-2011 Jacob Carlborg. All rights reserved. * Authors: Jacob Carlborg * Version: Initial created: Aug 15, 2010 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module dvm.dvm.dvm; import dvm.dvm.Application; int main (string[] args) { retu...
D
func void b_spreadandmemorize(var int newsid,var int source) { b_assessandmemorize(newsid,source,self,other,victim); };
D
module android.java.android.os.UserManager_UserOperationException_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import1 = android.java.java.io.PrintStream_d_interface; import import4 = android.java....
D
instance VLK_6036_BUERGERIN(Npc_Default) { name[0] = NAME_Buergerin; guild = GIL_VLK; id = 6036; voice = 17; flags = 0; npcType = NPCTYPE_AMBIENT; B_SetAttributesToChapter(self,1); aivar[AIV_MM_RestStart] = TRUE; level = 1; fight_tactic = FAI_HUMAN_COWARD; B_CreateAmbientInv(self); EquipItem(self,ItMw_1h_V...
D
/Users/pacmac/Documents/GitHub/Blockchain/substarte_blockchain/substrate-node-template/target/release/wbuild/node-template-runtime/target/wasm32-unknown-unknown/release/deps/ref_cast-cb670f9e8dcd98cf.rmeta: /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.6/src/lib.rs /Users/pacmac/.cargo/regi...
D
module rando.app; import std.conv; import std.file; import std.getopt; import std.meta; import std.random; import std.stdio : writeln; import std.traits; import rando.common; import rando.names; import rando.palette; import libgamestruct; void main(string[] args) { Options options; auto helpInformation = getopt...
D
/** License: 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,...
D
// SDLang-D // Written in the D programming language. module sdlang.ast; import std.algorithm; import std.array; import std.conv; import std.range; import std.string; import sdlang.exception; import sdlang.token; import sdlang.util; /** * Implements an attribute, that can be attached to an SDL tag. * Can store an...
D
/** * * THIS FILE IS AUTO-GENERATED BY ./parse_specs.d FOR MCU attiny28 WITH ARCHITECTURE avr1 * */ module avr.specs.specs_attiny28; enum __AVR_ARCH__ = 1; enum __AVR_ASM_ONLY__ = true; enum __AVR_ENHANCED__ = false; enum __AVR_HAVE_MUL__ = false; enum __AVR_HAVE_JMP_CALL__ = false; enum __AVR_MEGA__ = false; en...
D
module Script._ScriptableEx; import iscriptsystem; ////////////////////////////////////////////////////////////////////// class _ScriptableEx(T) { public: this() { //m_pScriptThis=NULL; //m_pScriptSystem=NULL; //m_nBase=NULL; } ~this() { //if(m_pScriptThis) //{ // m_pScriptThis->SetNativeData(NULL...
D
/** MemoryManager.D Ported from MemoryManager.cpp by Laeeth Isharc // // Platform: Microsoft Windows // ///*************************************************************************** */ module xlld.memorymanager; import xlld.sdk.xlcall: XLOPER12, LPXLOPER12; import xlld.any: Any; import std.experimental.allocato...
D
/** Contains useful functions for template the template parser implementations. Copyright: © 2012 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module vibe.templ.parsertools; import vibe.utils.string; import std.metas...
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 under t...
D
/* TEST_OUTPUT: --- fail_compilation/ice12179.d(25): Error: array operation a[] + a[] without assignment not implemented fail_compilation/ice12179.d(26): Error: array operation a[] - a[] without assignment not implemented fail_compilation/ice12179.d(27): Error: array operation a[] * a[] without assignment not implement...
D
instance DIA_HAUPTTORWACHE_EXIT(C_INFO) { npc = vlk_4143_haupttorwache; nr = 999; condition = dia_haupttorwache_exit_condition; information = dia_haupttorwache_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_haupttorwache_exit_condition() { return TRUE; }; func void dia_haupttorwache_...
D
/* PERMUTE_ARGS: TEST_OUTPUT: --- fail_compilation/test16188.d(17): Error: no property `name` for type `test16188.Where` --- */ // https://issues.dlang.org/show_bug.cgi?id=16188 /* This produces the message: * Error: no property 'name' for type 'Where' * when the actual error is 'getMember is undefined'. * This...
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Random.build/URandom.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/Random/RandomProtocol.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/crypto.git-7980259129511365902/Sources/Random...
D
instance KDW_14050_Addon_Merdarion_ADW(Npc_Default) { name[0] = "Merdarion"; guild = GIL_KDW; id = 14050; voice = 6; flags = NPC_FLAG_IMMORTAL; npcType = npctype_main; aivar[AIV_MagicUser] = MAGIC_ALWAYS; aivar[AIV_IgnoresFakeGuild] = TRUE; aivar[AIV_IgnoresArmor] = TRUE; B_SetAttributesToChapter(self,5); f...
D
module math.utils; import std.math; import base.vect3d; import gl3n.linalg : mat4; mat4 RotationMatrix(in Vect3Df rot){ return RotationMatrix(rot.x, rot.y, rot.z); } mat4 RotationMatrix(in float fX, in float fY, in float fZ){ float cosx = cos( fX ); float sinx = sin( fX ); float cosy = cos( fY ); float sin...
D
// Written in the D programming language. /** Functions for starting and interacting with other processes, and for working with the current _process' execution environment. Process_handling: $(UL $(LI $(LREF spawnProcess) spawns a new _process, optionally assigning it an arbitrary set of standard input, outpu...
D
/Users/y.imuta/pj/rust_study/big_query_rust/target/debug/build/lexical-core-b5b42f8eb2235339/build_script_build-b5b42f8eb2235339: /Users/y.imuta/.cargo/registry/src/github.com-1ecc6299db9ec823/lexical-core-0.7.5/build.rs /Users/y.imuta/pj/rust_study/big_query_rust/target/debug/build/lexical-core-b5b42f8eb2235339/build...
D
import std.stdio, std.string, std.file, std.c.stdlib, std.stream; import elf; int main() { FILE* unfout, unfoutun, grfout; char[] file; char* pt; int dwBase = 0x4000; char *strptr = null; struct __hirelt { u32 addr; u8 ori; u32 *inst; } __hirelt regs[32]; ElfReloc[] erl; ElfHeader h;...
D
prototype Mst_Default_Lurker(C_Npc) { name[0] = "Číhavec"; guild = GIL_LURKER; aivar[AIV_IMPORTANT] = ID_LURKER; level = 10; attribute[ATR_STRENGTH] = 50; attribute[ATR_DEXTERITY] = 50; attribute[ATR_HITPOINTS_MAX] = 110; attribute[ATR_HITPOINTS] = 110; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; p...
D
FUNC VOID GregIsBack_S1 () { };
D
format 71 classcanvas 128011 class_ref 142859 // MIEffet draw_all_relations default hide_attributes default hide_operations default hide_getset_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initia...
D
/Users/ozgun/Desktop/IOSCase/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Disposable.o : /Users/ozgun/Desktop/IOSCase/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/ozgun/Desktop/IOSCase/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/ozgun/Desktop/IOSCase/Pods/RxSwift/RxSwift...
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_11_BeT-7399612...
D
module app.config; import std.conv; import std.datetime; import std.experimental.logger; import hunt.application; import tinyredis.redis:Redis; import collie.libmemcache4d.memcache; string STATIC_URL; string REDIS_HOST; ushort REDIS_PORT; string LOGLEVEL; string LOGPATH; string MEMCACHED_HOST; ushort MEMCACHED_PORT;...
D
module mysql.mysql_row; import std.conv; import mysql.binding; import mysql.mysql; string yield(string what) { return `if(auto result = dg(`~what~`)) return result;`; } struct MysqlRow { package string[] row; package MysqlResult resultSet; string opIndex(size_t idx, string file = __FILE__, int line...
D
/Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChevronUpShapeRenderer.o : /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/varaprasadp/Desktop/React/Exam...
D
// ************************************************************************* // FIND NPC // ************************************************************************* INSTANCE Info_FindNPC_NC(C_INFO) { nr = 900; condition = Info_FindNPC_NC_Condition; information = Info_FindNPC_NC_Info; permanent = 1; de...
D
module user; package import user.controller; package import user.model; package import user.translation; package import user.views; package import app;
D
/** * Defines a package and module. * * Specification: $(LINK2 https://dlang.org/spec/module.html, Modules) * * 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/LICE...
D
module UnrealScript.TribesGame.TrAnimNodeBlendByVehicle; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.TribesGame.TrPawn; import UnrealScript.TribesGame.TrAnimNodeBlendList; extern(C++) interface TrAnimNodeBlendByVehicle : TrAnimNodeBlendList { public extern(D): private static __gs...
D
/Users/Fares/Documents/Projects/TransitApp/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Validation.o : /Users/Fares/Documents/Projects/TransitApp/Pods/Alamofire/Source/AFError.swift /Users/Fares/Documents/Projects/TransitApp/Pods/Alamofire/Source/Alamofire.swift /Users/Fares/Documents/Pr...
D
module betterc.array; public: extern(C): @nogc: nothrow: private import betterc.all; /** * An array with a compile-time known fixed capacity. * Elements can be added and removed as long as the capacity is not exceeded. */ struct Array(T,int CAPACITY) { @nogc: nothrow: private: alias ARRAY = Array!(T,CAPACIT...
D
/Users/KatiaHajjar/Documents/WhereAtV2/build/WhereAtV2.build/Debug-iphonesimulator/WhereAtV2.build/Objects-normal/x86_64/Meetup.o : /Users/KatiaHajjar/Documents/WhereAtV2/WhereAtV2/CreateAccountViewController.swift /Users/KatiaHajjar/Documents/WhereAtV2/WhereAtV2/MeetupTableViewController.swift /Users/KatiaHajjar/Docum...
D
instance Spell_ChargeFireball(C_Spell_Proto) { time_per_mana = 60; damage_per_level = SPL_Damage_ChargeFireball; damagetype = DAM_FIRE; canTurnDuringInvest = TRUE; }; func int Spell_Logic_ChargeFireball(var int manaInvested) { if((self.guild == GIL_FIREGOLEM) || (self.aivar[AIV_MM_REAL_ID] == ID_DRAGON_FIRE)) ...
D
/* * Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ module antlr.v4.runtime.ParserInterpreter; import std.typecons; import std.format; import std.container : DList; impor...
D
// URL: https://yukicoder.me/problems/no/159 import std.algorithm, std.array, std.bitmanip, std.container, std.conv, std.format, std.functional, std.math, std.range, std.traits, std.typecons, std.stdio, std.string; version(unittest) {} else void main() { double p, q; io.getV(p, q); io.putB(1-p < p*(1-q), "...
D
import lu.conv : Enum; import dialect; import std.conv : to; unittest { IRCParser parser; parser.client.nickname = "kameloso"; // Because we removed the default value { immutable event = parser.toIRCEvent("ERROR :Closing Link: 81-233-105-62-no80.tbcn.telia.com (Quit: kameloso^)"); with (...
D
import std.algorithm : map, sort; import std.array : array; import std.range : iota; import std.typecons : tuple; import std.stdio; size_t[] suffixArray(string document) { return 0.iota(document.length) .map!(a => tuple(a, document[a .. $])) .array .sort!((a, b) => a[1] < b[1]) .map...
D
// Written in the D programming language. /** <script type="text/javascript">inhibitQuickIndex = 1</script> $(BOOKTABLE , $(TR $(TH Category) $(TH Functions) ) $(TR $(TDNW Template API) $(TD $(MYREF SHA1) ) ) $(TR $(TDNW OOP API) $(TD $(MYREF SHA1Digest)) ) $(TR $(TDNW Helpers) $(TD $(MYREF sha1Of)) ) ) * Computes S...
D
/** Internal module with common functionality for REST interface generators. Copyright: © 2015-2016 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module vibe.web.internal.rest.common; import vibe.http.common : HTTPMeth...
D
func void ZS_GotoBed() { Perception_Set_Normal(); B_ResetAll(self); AI_SetWalkMode(self,NPC_WALK); if(!C_NpcIsOnRoutineWP(self)) { AI_GotoWP(self,self.wp); }; AI_StartState(self,ZS_Sleep,0,""); }; func void B_AssessSleepTalk() { if(C_BodyStateContains(self,BS_LIE)) { B_ResetFaceExpression(self); AI_Use...
D
instance DIA_Cornelius_Exit(C_Info) { npc = VLK_401_Cornelius; nr = 999; condition = DIA_Cornelius_Exit_Condition; information = DIA_Cornelius_Exit_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Cornelius_Exit_Condition() { return TRUE; }; func void DIA_Cornelius_Exit_Info() { AI_StopPro...
D
import std.stdio; import generald.functions; import std.typecons; class Printer(T) : Function!(T, void) { override void opCall(T x) { import std.stdio; writeln(x); } } class ArrayPrinter(T) : Function!(T[], void) { override void opCall(T[] x) { import std.stdio; writefln("%(%s\n%)", x); } } class Scor...
D
/Users/wayne/Desktop/github/ElegantProgress/Build/Intermediates/ElegantProgress.build/Debug-iphonesimulator/ElegantProgress.build/Objects-normal/x86_64/ViewController.o : /Users/wayne/Desktop/github/ElegantProgress/ElegantProgress/UIColor+Ex.swift /Users/wayne/Desktop/github/ElegantProgress/ElegantProgress/ElegantProgr...
D
import std.stdio, std.math, std.format; void main(){ real triangleNumber, numberOfDivisors; for(real i = 0; true; i++){ triangleNumber = i*(i+1)/2; numberOfDivisors = 0; /*This improvements make the brute-force approach viable. Because there for every divisor below the square root is a corresponding divisor ab...
D
module tinyredis.parser; private: import std.array : split, replace, join; import std.string : strip; import std.stdio : writeln; import std.conv : to, text, ConvOverflowException; public : const string CRLF = "\r\n"; enum ResponseType : byte { Invalid, Status...
D
import std.stdio; import std.getopt; import message_struct : PROTOCOL_VERSION; import dasted; int main(string[] args) { ushort port = 11344; bool printVersion; getopt(args, "port|p", &port, "version", &printVersion); if (printVersion) { writeln(PROTOCOL_VERSION); ...
D
/** OpenType/FreeType parsing. Copyright: Guillaume Piolat 2018. License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) */ module printed.font.opentype; import std.stdio; import std.conv; import std.string; import std.uni; import std.algorithm.searching; import binrange; /// A POD-type to repr...
D
module org.serviio.library.local.metadata.extractor.embedded.LPCMExtractionStrategy; import org.serviio.dlna.AudioContainer; import org.serviio.library.local.metadata.extractor.embedded.AudioExtractionStrategy; public class LPCMExtractionStrategy : AudioExtractionStrategy { override protected AudioContainer getCo...
D
module std.internal.unicode_comp; import std.internal.unicode_tables; static if (size_t.sizeof == 8) { //9280 bytes enum combiningClassTrieEntries = TrieEntry!(ubyte, 8, 7, 6)([0x0, 0x20, 0x180], [0x100, 0x580, 0x1840], [0x402030202020100, 0x908070206020205, 0x0, 0x0, 0x0, 0x0, ...
D
/** DMD compiler support. Copyright: © 2013-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 */ module dub.compilers.dmd; import dub.compilers.compiler; import dub.internal.utils; import dub.internal.vibecompat.core.log...
D
//##################################################################### //## //## KAPITEL 4 //## ========= //## Söldner, Banditen und Schürfer der Freien Mine werden //## getötet und beraubt. //## Drei Gardisten bewachen jetzt den Eingang zur Mine. //## //##############################################...
D
/workspace/target/debug/build/encoding_rs-d8586c04b0cf8b6f/build_script_build-d8586c04b0cf8b6f: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/encoding_rs-0.8.28/build.rs /workspace/target/debug/build/encoding_rs-d8586c04b0cf8b6f/build_script_build-d8586c04b0cf8b6f.d: /root/.cargo/registry/src/github.com-1ecc62...
D
restore strength give new life or vigor to
D
// COCKTAIL SHAKER SORT IN D import std.stdio; // function algorithm that returns the sorted array // algoritmo da função que retorna o array ordenado int[] cocktailShakerSort(int[] arr) { int beginIndex = 0, endIndex = cast(int)arr.length; bool swapped; do { swapped = false; endIndex--; for (int i = begi...
D
/******************************************************************************* @file ServerThread.d Copyright (c) 2004 Kris Bell This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for damages...
D
//----------------------------------------------------------------------------- // wxD/Samples - FileNameFunc.d // // absPath replaces wxFileName.Normalize() and wxFileName.GetFullPath() // these functions are from: http://www.digitalmars.com/d/archives/digitalmars/D/announce/4363.html // // (C) 2006 Joe Zuccarello // ...
D
/* Copyright (c) 2019-2022 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
/** Internal hash map implementation. Copyright: © 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 */ module vibe.utils.hashmap; import vibe.internal.utilallocator; import std.conv : emplace; import std.traits; stru...
D
module tvm; import tagion.utils.JSONCommon; /++ Options for the network +/ struct Options { int x; mixin JSONCommon; mixin JSONConfig; } import tagion.basic.Basic : doFront; import tagion.tvm.TVM; import std.algorithm.iteration : filter, each; import std.path : extension; import std.stdio; import std....
D
/** Thread based asynchronous file I/O fallback implementation Copyright: © 2012 RejectedSoftware e.K. Authors: Sönke Ludwig License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. */ module vibe.core.drivers.threadedfile; import vibe.core.log; import vibe.core.driver; impo...
D
#!/usr/bin/dmd -run import std.stdio, std.file, std.path, std.string, std.conv, std.math, std.container, std.algorithm, std.parallelism, std.range; string filesize(double size){ string units = "KMGT"; double left = cast(double)size.abs(); int unit = -1; while(left > 1100 && unit < 3){ left /=...
D
// ********************** // NSC benutzt Item Booze // ********************** func void ZS_Stand_Drinking () { Perception_Set_Normal(); B_ResetAll (self); AI_SetWalkmode (self,NPC_WALK); if (Npc_GetDistToWP (self,self.wp) > TA_DIST_SELFWP_MAX) { AI_GotoWP (self, self.wp); }; self.aivar[AIV...
D
/home/andy/source/rust/learn_rust/learn_htype2/target/debug/deps/autocfg-8380269cbeb39d13.rmeta: /home/andy/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/autocfg-0.1.7/src/lib.rs /home/andy/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/autocfg-0.1.7/src/error.rs /home/andy/.cargo/registry/src/mirr...
D
/Users/dimdew/CLionProjects/talent_plan_kv/simple_kv/target/debug/deps/c2_chacha-94a18a0b7ecce6b9.rmeta: /Users/dimdew/.cargo/registry/src/github.com-1ecc6299db9ec823/c2-chacha-0.2.3/src/lib.rs /Users/dimdew/.cargo/registry/src/github.com-1ecc6299db9ec823/c2-chacha-0.2.3/src/guts.rs /Users/dimdew/CLionProjects/talent_...
D
import std; enum inf(T)()if(__traits(isArithmetic,T)){ return T.max/4; } T scan(T=long)(){ return readln.chomp.to!T; } void scan(T...)(ref T args){ auto input=readln.chomp.split; foreach(i,t;T) args[i]=input[i].to!t; } T[] scanarr(T=long)(){ return readln.chomp.split.to!(T[]); } alias Q...
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
instance STRF_8140_Addon_Sklave(Npc_Default) { name[0] = NAME_Addon_Sklave_Orc; guild = GIL_STRF; id = 8140; voice = 3; flags = 0; npcType = NPCTYPE_BL_AMBIENT; aivar[AIV_NoFightParker] = TRUE; aivar[AIV_IgnoresArmor] = TRUE; B_SetAttributesToChapter(self,2); fight_tactic = FAI_HUMAN_COWARD; B_SetNpcVisual(...
D
an Iranian language spoken in Afghanistan
D
/Users/christian/GitHub/Tweescord/.build/x86_64-apple-macosx/debug/Debugging.build/Demangler.swift.o : /Users/christian/GitHub/Tweescord/.build/checkouts/core/Sources/Debugging/Debuggable.swift /Users/christian/GitHub/Tweescord/.build/checkouts/core/Sources/Debugging/SourceLocation.swift /Users/christian/GitHub/Tweesco...
D
instance DIA_Skip_Exit(C_Info) { npc = Grd_211_Skip; nr = 999; condition = DIA_Skip_Exit_Condition; information = DIA_Skip_Exit_Info; permanent = 1; description = DIALOG_ENDE; }; func int DIA_Skip_Exit_Condition() { return 1; }; func void DIA_Skip_Exit_Info() { AI_StopProcessInfos(self); }; var int Skip_T...
D
var int PrayIdolDay; var int RecievedMoney; var int GivenHitpoints; var int GivenMana; const int BeliarsDispo = 10000; //Joly: Gold, die Beliar im ganzen Spiel überhaupt hat. func void B_HitpointAngleich (var int BeliarsCost) { var int CurrentHitpoints; GivenHitpoints = GivenHitpoints + BeliarsCost; hero.attribute[...
D
// REQUIRED_ARGS: -d /* TEST_OUTPUT: --- fail_compilation/ice17831.d(19): Error: `case` variable `i` declared at fail_compilation/ice17831.d(17) cannot be declared in `switch` body fail_compilation/ice17831.d(33): Error: `case` variable `i` declared at fail_compilation/ice17831.d(31) cannot be declared in `switch` body...
D
interface I{ } class C: D{ } // error class D: C{ } immutable int u = v; // error immutable int v = u; const int cu = cv; // error const int cv = cu; int duh(typeof(guh) duh){} // error typeof(duh)* duh(typeof(duh)* duh){return 1;} // error int duh(typeof(guh)){return 1;} int guh(typeof(duh)){return 2;} int cir...
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_5_MobileMedia-...
D
// Written in the D programming language. /** JavaScript Object Notation Copyright: Copyright Jeremie Pelletier 2008 - 2009. License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. Authors: Jeremie Pelletier References: $(LINK http://json.org/) Source: $(PHOBOSSRC std/_json.d) */ /* ...
D
/Users/lanussebaptiste/Desktop/CubeSavinien/Build/Intermediates/CubeSavinien.build/Debug-iphonesimulator/CubeSavinien.build/Objects-normal/i386/ArcLayer.o : /Users/lanussebaptiste/Desktop/CubeSavinien/CubeSavinien/BottomViewController.swift /Users/lanussebaptiste/Desktop/CubeSavinien/CubeSavinien/RightViewController.sw...
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
/** * Padding functions */ module crypto.padding; /** * PKCS#7 padding * * Pad the given string to the given length * The padding byte is the expected length minus the string length * * Params: * str = The string * len = The length to pad to * * Returns: * The padded string */ ubyte[] pk...
D