code
stringlengths
3
10M
language
stringclasses
31 values
import std; // neko.txt.mecab は、Homebrewでインストールしたときについてくる標準の辞書を利用しています。 // neologdとかだと「我輩は猫である」が一つの名詞として解釈されてしまい、これは良いんですが、 // もしかしたら狙いとは違う分類になってしまうのかもしれないので。 // 表層形\t品詞,品詞細分類1,品詞細分類2,品詞細分類3,活用型,活用形,原形,読み,発音 /* * 表層形(surface), 基本形(base), 品詞(pos), 品詞細分解(pos1) */ string[string][][] readNeko() { string[string][][] res...
D
module SimpleGL; import xf.dcuda.cuda; import xf.dcuda.cutil; import xf.dcuda.Utils; import xf.dog.Dog; import xf.dog.ext.VERSION_1_5, xf.dog.ext.WGL_EXT_swap_control; // xf.dog.ext.ARB_vertex_buffer_object; import xf.hybrid.Hybrid; import xf.hybrid.backend.GL : HybridRenderer = Renderer, GLViewport, ...
D
module mongoschema; import core.time; import std.array : appender; import std.conv; import std.traits; import std.typecons : BitFlags, isTuple; public import vibe.data.bson; public import vibe.db.mongo.collection; public import vibe.db.mongo.connection; public import mongoschema.date; public import mongoschema.db; pu...
D
// Written in the D programming language. /** * Elementary mathematical functions * * Contains the elementary mathematical functions (powers, roots, * and trignometric functions), and low-level floating-point operations. * Mathematical special functions are available in std.mathspecial. * * The functionality cl...
D
// EXTRA_FILES: imports/bar10378.d int writeln() { return 3; } struct S { import imports.bar10378; void abc() { assert(writeln() == 3); } } void main() { S s; s.abc(); }
D
/* TEST_OUTPUT: --- fail_compilation/fail113.d(10): Error: forward reference to test --- */ // Issue 370 - Compiler stack overflow on recursive typeof in function declaration. void test(typeof(test) p) {}
D
module android.java.java.security.SecureRandomSpi; public import android.java.java.security.SecureRandomSpi_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!SecureRandomSpi; import import0 = android.java.java.lang.Class;
D
module testbed.scenebvh; import dlib.core.memory; import dlib.container.array; import dlib.math.matrix; import dlib.geometry.triangle; import dgl.graphics.scene; import dgl.graphics.mesh; import dmech.bvh; // TODO: This function is total hack, // need to rewrite BVH module to handle Triangle ranges, // and add a meth...
D
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid comm...
D
/** * The thread module provides support for thread creation and management. * * Copyright: Copyright Sean Kelly 2005 - 2009. * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Authors: Sean Kelly, Walter Bright * Source: $(DRUNTIMESRC core/_thread.d) */ /* Copyright S...
D
module unecht.core.components.editor.mouseControls; import unecht.core.events; import unecht.core.entity; import unecht.core.component; import unecht.core.components.internal.gui; import gl3n.linalg; /// final class UEEditorMouseControls : UEComponent { mixin(UERegisterObject!()); static immutable SPEE...
D
/** * Defines `TemplateDeclaration`, `TemplateInstance` and a few utilities * * This modules holds the two main template types: * `TemplateDeclaration`, which is the user-provided declaration of a template, * and `TemplateInstance`, which is an instance of a `TemplateDeclaration` * with specific arguments. * * ...
D
/***************************************** * Templer sucht MC und greift sie an * *****************************************/ func void ZS_MCHunting () // Gibt es Konzept, im Augenblick werden die Minecrawler sowieso nicht gefunden, // da nur AssessEnemy die Wahrnehmung füllen würde { PrintDebugNpc (PD_TA_FRA...
D
import std.stdio; import parser : parse, parse_and_update; void main() { string text = " Star green x 0 x 1 grey x 0 x 0 hover cursor.x > x cursor.x < w on click green Icon green x 1 x 2 grey x 3 x 4 yellow x 5 x 6 "; parse_and_update(text...
D
/** * Windows API header module * * Translated from MinGW Windows headers * * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(DRUNTIMESRC src/core/sys/windows/_rpcnsip.d) */ module core.sys.windows.rpcnsip; version (Windows): private import core.sys.windows.rpcdce, core.sys...
D
/Users/sunchuyue/Documents/test/RX_Product/DerivedData/RX_Product/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/ConstraintMaker.o : /Users/sunchuyue/Documents/test/RX_Product/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/sunchuyue/Documents/test/RX_Product/...
D
instance PIR_1390_Addon_InExtremo_DrPymonte(Npc_Default) { name[0] = "Др. Примонт"; npcType = npctype_main; guild = GIL_NONE; level = 4; voice = 12; id = 1390; flags = NPC_FLAG_IMMORTAL; attribute[ATR_STRENGTH] = 20; attribute[ATR_DEXTERITY] = 10; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attri...
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOWebSocket.build/WebSocketFrame.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/NIOWebSocket/SHA1.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938...
D
/********************************************************** ** ** LOGRAMM ** Interpreter ** ** (c) 2009-2014, Dr.Kameleon ** ********************************************************** ** src/backend.d **********************************************************/ module backends; //===========================...
D
/Users/cansoykarafakili/Desktop/Hello/build/Intermediates/Hello.build/Debug/Core.build/Objects-normal/x86_64/DispatchTime+Utilities.o : /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/core.git-9210800844849382486/Sources/Core/RFC1123.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/core.git-921080084...
D
/* * Copyright 2011-2016 Gian Merlino * * 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 agre...
D
/Users/lchan/Documents/gbc/swift-workspace/millionaire/Build/Intermediates.noindex/millionaire.build/Debug/millionaire.build/Objects-normal/x86_64/questions.o : /Users/lchan/Documents/gbc/swift-workspace/millionaire/millionaire/LifeLine.swift /Users/lchan/Documents/gbc/swift-workspace/millionaire/millionaire/Millionair...
D
/Users/bootcamp/Documents/collab2/DerivedData/goOSC/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/ResponseSerialization.o : /Users/bootcamp/Documents/collab2/Pods/Alamofire/Source/MultipartFormData.swift /Users/bootcamp/Documents/c...
D
import std.stdio, std.conv, std.array, std.string; import std.algorithm; import std.container; import std.range; import core.stdc.stdlib; import std.numeric; import std.math; ulong[] primeFactoring(ulong target) { ulong s = target.to!float.sqrt().floor.to!ulong; ulong num = target; ulong[] primes; for (ulong i ...
D
module gfm.fann.fann; import std.string; import derelict.fann.fann; import gfm.fann.lib; // ANN stands for Artificial Neural Network final class ANN { public { static ANN createStandard(FANNLib lib, uint[] layers) { FANN* fann = fann_create_standard_array(layers.length, layers.ptr)...
D
/** Module contains optical flow pyramid implementation. Pyramidal optical flow evaluation in $(BIG DCV) is designed to be a wrapper to actual optical flow algorithm. $(LINK2 #SparesePyramidFlow, Sparse) and $(LINK2 #DensePyramidFlow, dense) optical flow algorithms have a corresponding utility class which will evalu...
D
module parsers; public: import parsers.parserbase; import parsers.authenticatorparser;
D
/Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/Objects-normal/x86_64/UISlider.o : /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryPagingDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Sour...
D
/* ----------------------------------------------- ldc2 -betterC -O -release -mcpu=native mainB.d ----------------------------------------------- */ static immutable n = 10; static immutable iterations = 15; static immutable executions = 1_000; static immutable nrOfPoints = 100_000; alias Points = Point[nrOfPoints];...
D
const int SPL_Cost_PalHolyBolt = 10; const int SPL_Damage_PalHolyBolt = 100; instance Spell_PalHolyBolt(C_Spell_Proto) { time_per_mana = 0; damage_per_level = SPL_Damage_PalHolyBolt; }; func int Spell_Logic_PalHolyBolt(var int manaInvested) { if(Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SP...
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 distributio...
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
/** * XGap converter - translate between XGap types and qtlHD primitives **/ module qtl.core.xgap.converter; import std.stdio; import std.conv; import std.string; import std.path; import std.file; import qtl.core.primitives; import qtl.core.phenotype; import qtl.core.genotype; import qtl.core.xgap.xgap; import qtl...
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range; struct UFTree(T) { struct Node { T parent; T rank = 1; } /// T min_size, max_size; /// this(T n) { nodes.length = n; sizes.l...
D
// REQUIRED_ARGS: -preview=fixAliasThis // https://issues.dlang.org/show_bug.cgi?id=16086 struct A { void tail() {} } struct S16086 { struct Inner2 { Inner a; alias a this; } struct Inner { int unique_identifier_name; int tail = 2; } Inner2 inner; ...
D
/++ Copyright: Copyright © 2016-, Ilya Yaroshenko. License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Ilya Yaroshenko +/ module glas.precompiled.utility; import glas.ndslice; import glas.fortran; import ldc.attributes: weak; import ldc.intrinsics: llvm_expect; import mir.ndslice.slice: Structure; ...
D
/** * $(RED Deprecated. Please use $(D core.stdc.locale) instead. This module will * be removed in December 2015.) * C's &lt;locale.h&gt; * License: Public Domain * Standards: * ISO/IEC 9899:1999 7.11 * Macros: * WIKI=Phobos/StdCLocale */ /// Please import core.stdc.locale instead. This module...
D
no longer active no longer in existence the reduction of the intensity of radiation as a consequence of absorption and radiation complete annihilation a conditioning process in which the reinforcer is removed and a conditioned response becomes independent of the conditioned stimulus the act of extinguishing
D
module json.parser; package { import json.parser.lexer : Lexer; import json.parser.parser : Parser; } private { import json.value : JsonValue; import std.traits : isSomeString; import std.typecons : Flag; } public import json.parser.lexer : StandardCompliant; JsonValue parseJson( T )( T jso...
D
/home/imran82ali/batch6_34/may_12_2020_imran/panic/target/rls/debug/deps/panic-af49d07e923f52b1.rmeta: src/main.rs /home/imran82ali/batch6_34/may_12_2020_imran/panic/target/rls/debug/deps/panic-af49d07e923f52b1.d: src/main.rs src/main.rs:
D
// Written in the D programming language // License: http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0 import std.typecons, std.typetuple; import std.functional, std.algorithm; import std.conv, std.array; //import util; struct HashMap(K_, V_, alias eq_ , alias h_){ alias K=K_; alias V=V_; alias binaryFun!eq...
D
/Users/david/proyectosXcode/appVCDavidVillegas/build/appVCDavidVillegas.build/Debug-iphonesimulator/appVCDavidVillegas.build/Objects-normal/x86_64/PageCell.o : /Users/david/proyectosXcode/appVCDavidVillegas/appVCDavidVillegas/Page.swift /Users/david/proyectosXcode/appVCDavidVillegas/appVCDavidVillegas/AppDelegate.swift...
D
/Users/takanorifukuyama/git/github.com/takanorifukuyama/abs/target/rls/debug/deps/rustc_hash-8c38b1f5095425cc.rmeta: /Users/takanorifukuyama/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-hash-1.1.0/src/lib.rs /Users/takanorifukuyama/git/github.com/takanorifukuyama/abs/target/rls/debug/deps/rustc_hash-8c38b1f50...
D
module sqlist.sql_field; import sqlist; /** * This interface is meant as as way of flagging something as being returned * from a SQL statement. This might be the fields in a select or returning * clause for example. Generally this will be field names but it can also * include function calls. */ interfa...
D
import std.stdio; import std.typecons; import std.conv; import std.algorithm; import std.uni : byGrapheme; import std.array : replicate; import std.range.primitives : walkLength; import gtk.Widget; import gtk.Grid; import gtk.Box; import gtk.Label; import gtk.EventBox; import gtk.Button; import glib.ListG; import gdk....
D
/home/ukasha/Desktop/Quarter-1_3.30-6.30/week_10_29th-September,2019/part4/part6/target/rls/debug/deps/part6-b6d9f475ddd534a0.rmeta: src/main.rs /home/ukasha/Desktop/Quarter-1_3.30-6.30/week_10_29th-September,2019/part4/part6/target/rls/debug/deps/part6-b6d9f475ddd534a0.d: src/main.rs src/main.rs:
D
/** BSON serialization and value handling. Copyright: © 2012-2015 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.data.bson; /// unittest { void manipulateBson(Bson b) { import std.stdio; // retrieving...
D
/home/teng/CLionProjects/linux_design/ex/grpc_ex/target/debug/deps/futures_core-75b90fe32e3a985d.rmeta: /home/teng/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-core-0.3.5/src/lib.rs /home/teng/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/futures-core-0.3.5/src/future.rs /home/teng/.cargo...
D
/** * Parsed tree * * Copyright: © 2017 Andrey Kabylin * License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. */ module rpdl.tree; import std.file; import std.stdio; import std.math; import std.conv; import std.path; import std.traits; import rpdl.lexer; import rpdl.par...
D
/* TEST_OUTPUT: --- fail_compilation/fail11125.d(20): Error: template instance `fail11125.filter!(function (int a) => a + 1)` does not match template declaration `filter(alias predfun) if (is(ReturnType!predfun == bool))` fail_compilation/fail11125.d(21): Error: template instance `fail11125.filter!(function (int a) => ...
D
instance VLK_444_Jack(Npc_Default) { name[0] = "Джек"; guild = GIL_VLK; id = 444; voice = 14; flags = 0; npcType = npctype_main; aivar[AIV_ToughGuy] = TRUE; B_SetAttributesToChapter(self,2); fight_tactic = FAI_HUMAN_COWARD; EquipItem(self,ItMw_1h_Vlk_Sword); B_CreateAmbientInv(self); B_SetNpcVisual(self,MA...
D
//T compiles:yes //T lexer:yes //T parser:yes //T semantic:yes //T retval:1 enum { Bar, Baz } int main() { return Baz; }
D
<!DOCTYPE html> <!--[if IE 7]> <html class="ie ie7" lang="en-US" xmlns:fb="http://ogp.me/ns/fb#" xmlns:addthis="http://www.addthis.com/help/api-spec" prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#"> <![endif]--> <!--[if IE 8]> <html class="ie ie8" lang="en-US" xmlns:fb="http://ogp.me/ns/fb#" xmlns:addthis...
D
/Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Build/Intermediates/DanTangFromQuanzai.build/Debug-iphonesimulator/DanTangFromQuanzai.build/Objects-normal/x86_64/XZQChannel.o : /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/DanTangFromQuanzai/ViewController.swift /Users/atyun-monitor/Desktop/Swift/DanTangF...
D
module hunt.web.router.impl.AbstractRegexMatcher; import hunt.web.router.Matcher; import hunt.web.router.Router; import hunt.collection; import hunt.Exceptions; import hunt.logging; import std.conv; import std.regex; /** * */ abstract class AbstractRegexMatcher : Matcher { protected Map!(RegexRule, Set!Ro...
D
/Users/Vidyadhar/Desktop/Github/iOS_githubRepo/animations/build/animations.build/Debug-iphonesimulator/animations.build/Objects-normal/x86_64/TransitionVC.o : /Users/Vidyadhar/Desktop/Github/iOS_githubRepo/animations/animations/TransitionManager.swift /Users/Vidyadhar/Desktop/Github/iOS_githubRepo/animations/animations...
D
module puzzles.puzzle13; import std.conv, std.string, std.range, std.stdio, std.format, std.ascii; import std.algorithm; import std.math; import core.atomic; import std.parallelism: parallel; import core.stdc.string : strlen; import utilities.inputparser; alias u64 = ulong; /// void solve_13_1() { ulong earlies...
D
// Copyright Brian Schott (Hackerpilot) 2014. // 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 dscanner.analysis.numbers; import std.stdio; import std.regex; import dparse.ast; import...
D
/Volumes/Lexar/backup-imac/source/MyStyleHorizontalScrollView/sampleScorllViewInSwift/build/sampleScorllViewInSwift.build/Debug-iphonesimulator/sampleScorllViewInSwift.build/Objects-normal/x86_64/ASHorizontalScrollView.o : /Volumes/Lexar/backup-imac/source/MyStyleHorizontalScrollView/sampleScorllViewInSwift/sampleScorl...
D
import std.stdio; void main(){ }
D
/******************************************************************************* D language bindings for libsodium's crypto_stream_xsalsa20.h License: ISC (see LICENSE.txt) *******************************************************************************/ module libsodium.crypto_stream_xsalsa20; @nogc nothro...
D
instance STRF_1143_Addon_Sklave(Npc_Default) { name[0] = NAME_Addon_Sklave; guild = GIL_STRF; id = 1143; voice = 3; flags = 0; npcType = NPCTYPE_BL_AMBIENT; aivar[AIV_NoFightParker] = TRUE; aivar[AIV_IgnoresArmor] = TRUE; B_SetAttributesToChapter(self,1); fight_tactic = FAI_HUMAN_COWARD; B_CreateAmbientInv(...
D
import std.stdio, std.algorithm, std.range; T multifactorial(T=long)(in int n, in int m) pure /*nothrow*/ { T one = 1; return reduce!q{a * b}(one, iota(n, 0, -m)); } void main() { foreach (immutable m; 1 .. 11) writefln("%2d: %s", m, iota(1, 11) .map!(n => multifacto...
D
module godot.funcref; import std.meta : AliasSeq, staticIndexOf; import std.traits : Unqual; import godot.d.meta; import godot.core; import godot.c; import godot.object; import godot.classdb; import godot.reference; @GodotBaseClass struct FuncRef { static immutable string _GODOT_internal_name = "FuncRef"; public: uni...
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 Software, a...
D
a small drum with one head of soft calfskin
D
module test.codec.websocket.frame.WebSocketFrameTest; import test.codec.websocket.utils.Hex; import hunt.http.codec.websocket.encode; import hunt.http.codec.websocket.frame; import hunt.http.codec.websocket.model.CloseInfo; import hunt.http.WebSocketStatusCode; import hunt.http.WebSocketPolicy; import hunt.io.Buffer...
D
/* Digital Mars DMDScript source code. * Copyright (c) 2000-2002 by Chromium Communications * D version Copyright (c) 2004-2010 by Digital Mars * 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) * written by Wa...
D
module fx.net.udplistener; import std.socket, core.thread, std.stdio, std.conv, std.string, core.memory, fx.myfx; ///Simple Listener for incoming UDP Packages class UdpListener:FXObject { protected: Socket ms; private: Address LocalEndPoint; Thread rth; bool run=true; void RecTh() { Address a; char[] buf; ...
D
// Copyright Ferdinand Majerech 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) ///YAML tag. module dyaml.tag; import dyaml.zerostring; ///YAML tag (data type) struct. Encapsulates ...
D
import unit_threaded; int main(string[] args) { return args.runTests!"foo"; }
D
/* This file was generated by syncqt. */ #ifndef QT_QTSVG_VERSION_H #define QT_QTSVG_VERSION_H #define QTSVG_VERSION_STR "5.4.2" #define QTSVG_VERSION 0x050402 #endif // QT_QTSVG_VERSION_H
D
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Jay.build/ByteReader.swift.o : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Jay-1.0.1/Sources/Jay/ArrayParser.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Jay-1.0.1/Sources/Jay/BooleanParser.swift /Users/o...
D
put an end to put out, as of fires, flames, or lights extinguish by crushing terminate, end, or take out kill in large numbers
D
/Users/xhbapple/Desktop/EGEasyFramework_IOS/src/easydeveloper_swift/build/easydeveloper_swift.build/Debug-iphonesimulator/easydeveloper_swift.build/Objects-normal/x86_64/AppDelegate.o : /Users/xhbapple/Desktop/EGEasyFramework_IOS/src/easydeveloper_swift/easydeveloper/Base/BaseTableViewController.swift /Users/xhbapple/D...
D
// GDC -- D front-end for GCC // Copyright (C) 2011, 2012, 2014 Free Software Foundation, Inc. // GCC is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free // Software Foundation; either version 3, or (at your option) any later // versi...
D
module android.java.android.view.View_OnTouchListener_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import0 = android.java.android.view.View_d_interface; import import2 = android.java.java.lang.Clas...
D
// Just some D code that has a C API so can be called by other languages import std.conv; import std.stdio; extern (C) double someDCode(const char* question) { class Universe { // the universe may or may not end ~this() {puts("the end of the universe");} } auto oneOfMany = new Univers...
D
import dash.api; import dash.compiler; import std.exception : enforce; import std.range; import std.string : format; import vibecompat.data.json; struct ClientConfig { string serverName; ushort serverPort; string sslCACert; string sslCert; string sslKey; string machineName; Config globalCo...
D
$(H2 First program) $(P Finally, we know D language syntax well enough to be able to write our first program. It will be a program that converts temperature in Fahrenheit to Celsius. We tell to our program a temperature in Fahrenheit as a number, in return the program prints out corresponding number in degrees Celsiu...
D
#!/usr/bin/env dub /+ dub.sdl: name "snippet162" dependency "dwt" path="../../../../../../" libs \ "atk-1.0" \ "cairo" \ "dl" \ "fontconfig" \ "gdk-x11-2.0" \ "gdk_pixbuf-2.0" \ "glib-2.0" \ "gmodule-2.0" \ "gnomeui-2" \ "gnomevfs-2" \ "gobje...
D
/Users/huhuegg/Desktop/Source/VaporServer/XProject/.build/debug/Bits.build/Bytes+Percent.swift.o : /Users/huhuegg/Desktop/Source/VaporServer/XProject/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/huhuegg/Desktop/Source/VaporServer/XProject/.build/checkouts/bits.git-919658759177412...
D
// Written in the D programming language. /** <script type="text/javascript">inhibitQuickIndex = 1</script> $(BOOKTABLE , $(TR $(TH Category) $(TH Functions) ) $(TR $(TDNW High level) $(TD $(MYREF download) $(MYREF upload) $(MYREF get) $(MYREF post) $(MYREF put) $(MYREF del) $(MYREF options) $(MYREF trace) $(MYREF co...
D
module typecons; import std.algorithm; import std.traits; template function_traits(Func...){ bool has_identifier(string identifier)(){ return identifier_number!identifier != -1; } bool has_nth_parameter(size_t index)(){ return arity!Func > index; } string nth_identifier(size_t index)(){ return ParameterIde...
D
module javascriptcore.c.functions; import std.stdio; import javascriptcore.c.types; version (Windows) static immutable LIBRARY_JAVASCRIPTCORE = ["libjavascriptcoregtk-4.0-18.dll;javascriptcoregtk-4.0-18.dll;javascriptcoregtk-4.dll"]; else version (OSX) static immutable LIBRARY_JAVASCRIPTCORE = ["libjavascriptcoregtk...
D
// Generated by gnome-h2d.rb <http://github.com/ddude/gnome.d>. module gio.dbusobjectmanagerserver; /* 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 ...
D
module vksdk.objects.users.UserXtrCounters; import vibe.data.json; import vksdk.objects.users.UserFull; /** * UserXtrCounters object */ class UserXtrCounters : UserFull { @name("counters") private UserCounters counters; public UserCounters getCounters() { return counters; } }
D
import std.stdio; import vibe.d; MongoClient client; MongoDatabase fareborn_db; GamesService gamesService; NotifyService notifyService; UserService userService; import auth_service; import games; import notify; import users; import FAFConnection; import UDPTestServer; void handleError(HTTPServerRequest req, HTT...
D
/Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/WithLatestFrom.o : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bi...
D
/** * Copyright: Copyright (c) 2016 Wojciech Szęszoł. All rights reserved. * Authors: Wojciech Szęszoł * Version: Initial created: May 21, 2016 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module dstep.translator.Options; import clang.Util; import dstep.translator.Conve...
D
/** * Authors: Frank Benoit <keinfarbton@googlemail.com> */ module java.io.InputStream; import java.lang.all; public abstract class InputStream { public this (){ } public abstract int read(); public int read( byte[] b ){ foreach( size_t idx, ref byte val; b ){ int c = read()...
D
/Users/jaylee/Workspace/LiquidFloatingActionButton/.build/x86_64-apple-macosx/debug/LiquidFloatingActionButton.build/Classes/LiquidUtil.swift.o : /Users/jaylee/Workspace/LiquidFloatingActionButton/Sources/LiquidFloatingActionButton/Classes/LiquittableCircle.swift /Users/jaylee/Workspace/LiquidFloatingActionButton/Sourc...
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
//**************************** // EVT_VINOSKELLEREI_FUNC (Funktion, die bei öffnen der Winde zu Vino Weinkellerei ausgef. wird)) //**************************** var int FoundVinosKellerei; func void EVT_VINOSKELLEREI_FUNC_S1 () { if(FoundVinosKellerei == FALSE) { FoundVinosKellerei = TRUE; B_GivePlayerXP (XP_Foun...
D
# FIXED F2837xD_PieVect.obj: C:/TI/controlSUITE/device_support/F2837xD/v210/F2837xD_common/source/F2837xD_PieVect.c F2837xD_PieVect.obj: C:/TI/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_device.h F2837xD_PieVect.obj: C:/TI/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/assert.h F2837x...
D
/home/cyobero/rust/examples/cookies/target/debug/deps/version_check-a01f004181c8b4ba.rmeta: /home/cyobero/.cargo/registry/src/github.com-1ecc6299db9ec823/version_check-0.1.5/src/lib.rs /home/cyobero/rust/examples/cookies/target/debug/deps/libversion_check-a01f004181c8b4ba.rlib: /home/cyobero/.cargo/registry/src/github...
D
void main() { auto ip = readAs!(int[]), N = ip[0], M = ip[1], Q = ip[2]; auto arr = new int[][](N+1, N+1); foreach(i; 0..M) { auto ip2 = readAs!(int[]), L = ip2[0], R = ip2[1]; arr[L][R]++; } arr.each!writeln; foreach(i; 0..Q) { auto ip3 = readAs!(int[]), p = ip3[0], q = ip3[1]; ulong cnt; arr[] } } /...
D
module dllvm.core.values.general; // Source: https://llvm.org/doxygen/group__LLVMCCoreValueGeneral.html import dllvm.ctypes; import dllvm.core.enums; extern(C) { /++ + +/ LLVMTypeRef LLVMTypeOf(LLVMValueRef value); /++ + Obtain the enumerated type of a Value instance +/ LLVMValue...
D
instance Mod_1212_TPL_Templer_MT (Npc_Default) { //-------- primary data -------- name = Name_Templer; Npctype = NpcType_mt_templer; guild = GIL_out; level = 17; voice = 13; id = 1212; //-------- abilities -------- attribute[ATR_STRENGTH] = 130; attribute[ATR_DEXTERITY...
D
/** Whirlpool hashing algorithm implementation. This module conforms to the APIs defined in std.digest. Based on the original Whirlpool implementation by Paulo S.L.M. Barreto and Vincent Rijmen. */ module digestx.whirlpool; public import std.digest; import std.range; /** * Template API Whirlpool implementatio...
D