code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
module lighttp.client;
public import lighttp.client.client : ClientOptions, Client;
| D |
bool[string] basicTypes;
bool[string] structTypes;
bool[string] classTypes;
bool lookup(bool[string] aa, string n)
{
auto p = n in aa;
if (p) *p = true;
return p !is null;
} | D |
/Users/Avinash/Documents/Code/NeighborCater/NeighborCater/DerivedData/NeighborCater/Build/Intermediates/NeighborCater.build/Debug-iphonesimulator/NeighborCater.build/Objects-normal/x86_64/KitchenClass.o : /Users/Avinash/Documents/Code/NeighborCater/NeighborCater/NeighborCater/GooglePlacesAutocomplete.swift /Users/Avina... | D |
/*******************************************************************************
* Copyright (c) 2004, 2007 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 |
module mysql.protocol.commands;
import std.algorithm;
import std.conv;
import std.datetime;
import std.digest.sha;
import std.exception;
import std.range;
import std.socket;
import std.stdio;
import std.string;
import std.traits;
import std.variant;
import mysql.common;
import mysql.connection;
import mysql.protocol... | D |
# FIXED
DSP2802x_GlobalVariableDefs.obj: C:/ti/controlSUITE/development_kits/~SupportFiles/source/DSP2802x_GlobalVariableDefs.c
DSP2802x_GlobalVariableDefs.obj: C:/ti/controlSUITE/development_kits/~SupportFiles/F2802x_headers/PeripheralHeaderIncludes.h
DSP2802x_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support... | D |
module UnrealScript.TribesGame.TrInventoryStation_Spawnable;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.Controller;
import UnrealScript.TribesGame.TrInventoryStation;
import UnrealScript.Engine.Actor;
extern(C++) interface TrInventoryStation_Spawnable : TrInventoryStation
{... | D |
module tests.pass.normal;
import unit_threaded;
class IntEqualTest: TestCase {
override void test() {
1.shouldNotEqual(5);
5.shouldNotEqual(1);
3.shouldEqual(3);
2.shouldEqual(2);
}
}
class DoubleEqualTest: TestCase {
override void test() {
shouldNotEqual(1.0, 2.0... | D |
import reggae;
import std.typecons;
enum debugFlags = "-w -g -debug";
static if (__VERSION__ >= 2077)
enum allTogether = No.allTogether;
else
enum allTogether = Yes.allTogether;
alias lib = dubDefaultTarget!(CompilerFlags(debugFlags));
alias ut = dubTestTarget!(CompilerFlags(debugFlags ~ " -cov"),
... | D |
func void zs_followpc()
{
printdebugnpc(PD_TA_FRAME,"ZS_FollowPC");
Npc_PercEnable(self,PERC_ASSESSENEMY,b_assessenemy);
Npc_PercEnable(self,PERC_ASSESSPLAYER,b_followpc_assesssc);
Npc_SetPercTime(self,1);
self.senses = SENSE_SEE | SENSE_HEAR | SENSE_SMELL;
Npc_PercEnable(self,PERC_ASSESSDAMAGE,zs_reacttodamage)... | 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 |
/cvmfs/data.galaxyproject.org/byhand/sorAra1/quality_scores/scaffold_87464.qa.bqv
/cvmfs/data.galaxyproject.org/byhand/sorAra1/quality_scores/scaffold_67408.qa.bqv
/cvmfs/data.galaxyproject.org/byhand/sorAra1/quality_scores/scaffold_16928.qa.bqv
/cvmfs/data.galaxyproject.org/byhand/sorAra1/quality_scores/scaffold_25158... | D |
module profitAndOccurances;
import std.algorithm;
import std.array;
import std.conv;
import std.format;
import std.range;
import std.regex;
import std.stdio;
import std.string;
import std.typecons;
import rule;
import game;
import conf;
///////////////////////////
// PROFIT AND OCCURANCES //
////////////////////////... | D |
////////////////////////////////////////////////////////////////////////////////
//
// Example of how to set custom hardware id callback routine with
// HARDWARE_ID_CALLBACK macro
//
// Version : PELock v2.0
// Language : D
// Author : Bartosz Wójcik (support@pelock.com)
// Web page : https:/... | 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 |
/mnt/c/Users/Max Kelly/Documents/Github/rust/crawler/target/debug/deps/libtokio_service-a2523b48503a38a2.rlib: /home/trinitok/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-service-0.1.0/src/lib.rs
/mnt/c/Users/Max Kelly/Documents/Github/rust/crawler/target/debug/deps/tokio_service-a2523b48503a38a2.d: /home/tri... | D |
module gtkD.gstreamer.TypeFindFactory;
public import gtkD.gstreamerc.gstreamertypes;
private import gtkD.gstreamerc.gstreamer;
private import gtkD.glib.ConstructionException;
private import gtkD.glib.Str;
private import gtkD.glib.ListG;
private import gtkD.gstreamer.TypeFind;
private import gtkD.gstreamer.Caps;
... | D |
import std.file;
import std.c.stdio;
import std.c.stdlib;
import std.regexp;
private import Scene, Triangle, Vector3;
//void get_indices(char[] word, out int vindex, out int tindex, out int nindex);
struct TupleI3 {
int x, y, z;
}
class TriangleMesh : ComplexSceneObject {
this()
{
scale.Set(1,1,1);
}
void Set... | D |
/*
* $Id: bullet.d,v 1.2 2004/05/14 14:35:38 kenta Exp $
*
* Copyright 2003 Kenta Cho. All rights reserved.
*/
module abagames.util.bulletml.bullet;
private import std.math;
private import bulletml;
private import abagames.util.vector;
private import abagames.util.rand;
private import abagames.util.bulletml.bullet... | D |
/Users/hemrosh/Documents/Projects/SceneDetector_Starter/DerivedData/SceneDetector/Build/Intermediates.noindex/SceneDetector.build/Debug-iphonesimulator/SceneDetector.build/Objects-normal/x86_64/ViewController.o : /Users/hemrosh/Documents/Projects/SceneDetector_Starter/SceneDetector/AppDelegate.swift /Users/hemrosh/Docu... | D |
module android.java.java.beans.PropertyChangeListener;
public import android.java.java.beans.PropertyChangeListener_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!PropertyChangeListener;
import import1 = android.java.java.lang.Class;
| D |
/**
* Contains implementations of functions called when the
* -profile=gc
* switch is thrown.
*
* Tests for this functionality can be found in test/profile/src/profilegc.d
*
* Copyright: Copyright Digital Mars 2015 - 2015.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, ... | D |
module database.mysql.appender;
import std.datetime;
import std.traits;
import std.typecons;
import database.mysql.type;
void appendValues(R, T)(ref R appender, T values)
if (isArray!T && !isSomeString!(OriginalType!T)) {
foreach (i, value; values) {
appendValue(appender, value);
if (i != values.length - 1)
a... | D |
# FIXED
pie.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pie/src/32b/f28x/f2806x/pie.c
pie.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pie/src/32b/f28x/f2806x/pie.h
pie.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/types/src/types.h
pie.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.3.LTS/in... | D |
/Users/hannh/Documents/MyGitHub/ChartsTest2/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartDataProvider.o : /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/hannh/Documents/MyGitHub/ChartsTest2/Charts/So... | D |
module mem.main;
public import mem.gc, mem.mol, mem.mem, mem.atom, mem.expect;
/** Caching */
@nogc unittest
{
struct Random
{
mixin(mol!Random);
ulong number(Mem _) @nogc
{
return this.number_atom.value + 1;
}
}
Random random;
random.number... | D |
module game.level;
import game.components;
import game.entities.bullet;
import game.systems;
import game.world;
import gl3n.linalg;
import crunch;
import resources;
import std.algorithm;
import std.conv;
import std.json;
import std.math;
import std.stdio;
import std.string;
/// A Section is a list of reversible eve... | D |
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM ROCKTYPE
303.5 77.1999969 2.79999995 89.6999969 10 14 -38.7000008 143.100006 139 4.19999981 4.19999981 sediments, limestone
289.600006 75.1999969 1.79999995 73.1999969 11 19 -31.6000004 145.600006 9338 2.5 2.5 sediments, saprolite
244.5 81.6999969 9.8000001... | D |
import bcd.ruby;
import rudy.rudy;
import math = std.math;
extern (C) VALUE square_the_integer();
extern (C) VALUE square_the_integer(VALUE self, VALUE obj)
{
int n = d_type!(int)(obj);
return to_ruby_value(n*n);
}
extern (C) VALUE sqrt_the_float();
extern (C) VALUE sqrt_the_float(VALUE self, VALUE obj)
{
doub... | D |
E: c433, c695, c821, c667, c558, c722, c57, c345, c746, c605, c714, c207, c403, c680, c763, c110, c129, c610, c38, c758, c400, c503, c330, c683, c484, c816, c258, c324, c501, c378, c741, c217, c586, c633, c60, c44, c548, c406, c676, c715, c56, c549, c175, c322, c528, c578, c640, c456, c412, c663, c230, c422, c655, c566... | D |
/* Header code adapted from SDL_video.h */
module sdl.error;
import core.stdc.stdint;
extern (C) {
/*
* SDL - Simple DirectMedia Layer
* Copyright (C) 1997-2012 Sam Lantinga
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License a... | D |
// Written in the D programming language.
/**
* $(RED Warning: This module is considered out-dated and not up to Phobos'
* current standards. It will remain until we have a suitable replacement,
* but be aware that it will not remain long term.)
*
* The std.cstream module bridges core.stdc.stdio (or s... | D |
// REQUIRED_ARGS: -m32
/*
TEST_OUTPUT:
---
fail_compilation/fail80_m32.d(28): Error: cannot implicitly convert expression ("progress_rem") of type string to uint
fail_compilation/fail80_m32.d(29): Error: cannot implicitly convert expression ("redo") of type string to uint
---
*/
module paintshop;
class Image{}
class... | D |
/Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/build/Pods.build/Debug-iphonesimulator/RxCocoa.build/Objects-normal/x86_64/RxTabBarDelegateProxy.o : /Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/Pods/RxCocoa/RxCocoa/RxCocoa.swift /Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/Pods/RxCoc... | D |
module gits.file;
import std.typecons : Flag, Yes, No;
// Reads the file into a string
char[] readFile(const(char)[] filename, Flag!"addNull" addNull)
{
import std.format : format;
import std.stdio : File;
auto file = File(filename, "rb");
scope(exit) file.close();
auto fileSize = file.size();
... | D |
/***********************************************************************\
* richedit.d *
* *
* Windows API header module *
* ... | D |
#as: -64
#objdump: -dr --prefix-addresses
#name: DLA with relocation operators
.*file format.*
Disassembly of section \.text:
[0-9a-f]+ <[^>]*> daddiu a0,zero,0
[ ]*[0-9a-f]+: R_(MICRO|)MIPS_LO16 foo
[ ]*[0-9a-f]+: R_MIPS_NONE .*
[ ]*[0-9a-f]+: R_MIPS_NONE .*
[0-9a-f]+ <[^>]*> daddiu a0,zero,0
[ ]*[0-9a-f]+: R_(M... | D |
/**
* OAEP
*
* Copyright:
* (C) 1999-2007 Jack Lloyd
* (C) 2014-2015 Etienne Cimon
*
* License:
* Botan is released under the Simplified BSD License (see LICENSE.md)
*/
module botan.pk_pad.oaep;
import botan.constants;
static if (BOTAN_HAS_EME_OAEP):
import botan.pk_pad.eme;
import botan.kdf.kdf;
import botan.hash.h... | D |
/Users/haruna/Documents/iOSdev/Tumblr_1/Build/Intermediates/Pods.build/Debug-iphonesimulator/AlamofireImage.build/Objects-normal/x86_64/UIImageView+AlamofireImage.o : /Users/haruna/Documents/iOSdev/Tumblr_1/Pods/AlamofireImage/Source/Image.swift /Users/haruna/Documents/iOSdev/Tumblr_1/Pods/AlamofireImage/Source/UIImage... | D |
/*******************************************************************************
copyright: Copyright (c) 2009 Tango. All rights reserved
license: BSD style: see doc/license.txt for details
version: Initial release: Sep 2009
author: Kai Nacke
... | D |
INSTANCE Info_Mod_Paladin_PAT_Heiltrank (C_INFO)
{
npc = Mod_1856_PAL_Paladin_PAT;
nr = 1;
condition = Info_Mod_Paladin_PAT_Heiltrank_Condition;
information = Info_Mod_Paladin_PAT_Heiltrank_Info;
permanent = 1;
important = 0;
description = "(Heiltrank geben)";
};
FUNC INT Info_Mod_Paladin_PAT_Heilt... | D |
/*
* Copyright (C) 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett.
* All Rights Reserved.
*
* 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 withou... | D |
module mahjong.graphics.opts.defaultopts;
import dsfml.graphics;
import mahjong.domain.wall;
import mahjong.graphics.conv;
import mahjong.graphics.drawing.wall;
import mahjong.graphics.enums.geometry;
import mahjong.graphics.manipulation;
import mahjong.graphics.opts;
class DefaultDrawingOpts : Opts
{
float rotation... | D |
/Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/PieChartDataSet.o : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/... | D |
/*******************************************************************************
* Copyright (c) 2000, 2007 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 |
// 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 c... | D |
import std.file;
import std.process;
void run(in char[][] args)
{
import std.process;
import std.stdio;
import std.array;
writeln();
writeln(join(args, " "));
auto result = execute(args);
writeln(result.status);
writeln(result.output);
}
void ensureDirectoryExists(string path)
{
i... | D |
// https://bugzilla.gdcproject.org/show_bug.cgi?id=77
// { dg-do compile }
void fun(size_t n)(ubyte[n] val)
{
}
void test77(ubyte[3] buf)
{
fun(buf[0..2]);
}
| D |
module mathed;
public import
mathed.types;
version (unittest)
{
void main () {}
} | 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 distribut... | D |
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Core.build/Equatable.swift.o : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Core-1.0.0/Sources/Core/Array.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Core-1.0.0/Sources/Core/Bool+String.swift /Users/tipaul/Site... | D |
// Written in the D programming language.
import std.array, std.algorithm, std.range, std.conv, std.string;
import lexer, parser, scope_, declaration, util;
enum SemState{
initial,
started,
completed,
error,
}
abstract class Node{
// debug auto cccc=0;
Location loc;
abstract @property string kind();
// sem... | D |
module duck.compiler.util;
mixin template ArrayWrapper(T, alias elements) {
int opApply(int delegate(ref T) dg)
{
int result = 0;
for (int i = 0; i < elements.length; i++)
{
result = dg(elements[i]);
if (result)
break;
}
return result;
}
int opApply(int delegate(size_t ... | D |
/******************************************************************************
Interface defining public / external methods on a dht client's node
registry. Instances of this interface can be safely exposed externally to
the dht client.
Copyright:
Copyright (c) 2010-2017 sociomantic labs GmbH... | D |
func int b_teachplayertalentenchanting(var C_Npc slf,var C_Npc oth,var int enchantmastery)
{
var int kosten;
kosten = B_GetLearnCostTalent(oth,NPC_TALENT_ENCHANTING,enchantmastery);
if(oth.lp < kosten)
{
PrintScreen(PRINT_NotEnoughLearnPoints,-1,-1,FONT_ScreenSmall,2);
B_Say(slf,oth,"$NOLEARNNOPOINTS");
retu... | D |
/** Authors: Lars Tandle Kyllingstad
Copyright: Copyright (c) 2010, Lars T. Kyllingstad. All rights reserved.
License: Boost License 1.0
*/
module scid.internal.calculus.integrate_qk;
import std.algorithm: max, min;
import std.math;
import std.numeric;
import std.traits;
import scid.types;
version(un... | D |
/**
MongoDB cursor abstraction
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.db.mongo.cursor;
public import vibe.data.bson;
import vibe.db.mongo.connection;
import vibe.db.mongo.client;
... | D |
void main() { runSolver(); }
void problem() {
auto N = scan!long;
auto X = scan!long;
auto A = scan!long(N);
auto solve() {
long[long] memo;
long dfs(long amount, long i) {
if (amount in memo) return memo[amount];
const a = A[i];
if (i == N - 1) return amount / a;
const na = ... | D |
/home/a186r/dev/rust/rust/arcade/arcade-rs/target/debug/deps/libsdl2-c578b23ce13b39cd.rlib: /home/a186r/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/sdl2-0.31.0/src/sdl2/lib.rs /home/a186r/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/sdl2-0.31.0/src/sdl2/clipboard.rs /home/a186r/.cargo/registry/... | D |
module UnrealScript.GameFramework.GameCrowdAgentSkeletal;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.GameFramework.GameCrowdAgent;
import UnrealScript.Engine.AnimNodeSequence;
import UnrealScript.Engine.AnimNodeSlot;
import UnrealScript.GameFramework.SeqAct_PlayAgentAnimation;
impor... | D |
program qsort;
const SIZE = 5;
var s : array[SIZE] of integer;
#include "stdio.d"
procedure readsequence;
var i : integer;
begin
i := 0;
while (i < SIZE) do
s[i] := read_int();
i := i + 1;
end;
end;
procedure writesequence;
const SPACE = 32;
var i : integer;
begin
i := 0;
while (i < SIZE) do
... | D |
import std.stdio, std.algorithm;
void printAll(TyArgs...)(TyArgs args) {
foreach (el; args)
writeln(el);
}
// Typesafe variadic function for dynamic array
void showSum1(int[] items...) {
writeln(reduce!q{a + b}(0, items));
}
// Typesafe variadic function for fixed size array
void showSum2(int[4] item... | D |
/******************************************************************************
This module contains a struct that implements a simple interactive commandline
for running MiniD code.
License:
Copyright (c) 2008 Jarrett Billingsley
This software is provided 'as-is', without any express or implied warranty.
In... | D |
/+
module interpreter;
import std.string;
struct ParseResult
{
string originalText;
int begin = -1, end = -1;
@property success() const { return begin >= 0; }
}
ParseResult parseSuccess(string originalText, int begin, int end)
{
ParseResult result;
result.originalText = originalText;
result.... | D |
/**
* Copyright: © 2014 Anton Gushcha
* License: Subject to the terms of the MIT license, as written in the included LICENSE file.
* Authors: NCrashed <ncrashed@gmail.com>
*/
module evol.operators.mult;
import std.stdio;
import devol.typemng;
public
{
import devol.individ;
import devol.world;
impo... | D |
// Sets Unions Structure {{{
struct SU
{
int[] p;
int[] s;
this(int n)
{
p = new int[](n);
s = new int[](n);
foreach(i, ref pi; p)
{
pi = i;
s[i] = 1;
}
}
void unite(int v, int w)
{
v = rep(v);
w = rep(w);
if (s[v] > s[w]) swap(v, w);
p[v] = w;
s[w] += s[v];
}
int rep(int v)
{
ret... | D |
module webtank.db.per_thread_pool;
import webtank.db.iface.factory: IDatabaseFactory;
// Тривиальный пул соединений с базами данных
// На каждый поток, который обратился к пулу создается соединение с БД с указанным идентификатором и удерживается в пуле
class DBPerThreadPool: IDatabaseFactory
{
import webtank.db.ifac... | D |
/home/thodges/Workspace/Rust/learn-rust-in-7-days/day02/transaction/target/debug/deps/transaction-830b5588018b8cdd.rmeta: src/lib.rs
/home/thodges/Workspace/Rust/learn-rust-in-7-days/day02/transaction/target/debug/deps/transaction-830b5588018b8cdd.d: src/lib.rs
src/lib.rs:
| 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 |
/**
Central logging facility for vibe.
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
*/
module vibe.core.log;
import vibe.core.args;
import vibe.core.concurrency;
import vibe.core.sync;
import std.... | D |
/**
* Stuff for working with narrow strings.
* This module shouldn't be imported directly.
* Use SafeUtf/UnsafeUtf modules instead.
*
* Authors: Denis Shelomovskij <verylonglogin.reg@gmail.com>
*/
module java.nonstandard.UtfBase;
package const UtfBaseText = `
# line 11 "java\nonstandard\UtfBase.d"
import java.la... | D |
module android.java.android.webkit.WebIconDatabase_IconListener_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.android.graphics.Bitmap_d_interface;
import import1 = android.jav... | D |
/**
* Written in the D programming language.
* This module provides Win32-specific support for sections.
*
* Copyright: Copyright Digital Mars 2008 - 2012.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Au... | D |
module crunch.ReferenceCounter;
import core.sync.mutex;
// per thread reference counter
class ReferenceCounter(T)
{
//version(autoprofile)
//{
/*
static Mutex mutex;
static this()
{
mutex = new Mutex();
}
this()
{
synchronized(mutex)
{
m_alive += 1;
}
}
~this()
{
synchronized(... | D |
/home/abdul/Desktop/6th Oct/dependencies/target/debug/build/libc-05a72ea3b478627d/build_script_build-05a72ea3b478627d: /home/abdul/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.62/build.rs
/home/abdul/Desktop/6th Oct/dependencies/target/debug/build/libc-05a72ea3b478627d/build_script_build-05a72ea3b478627d.d... | D |
/++
Bit-level manipulation facilities.
$(SCRIPT inhibitQuickIndex = 1;)
$(BOOKTABLE,
$(TR $(TH Category) $(TH Functions))
$(TR $(TD Bit constructs) $(TD
$(LREF bitfields)
))
$(TR $(TD Tagging) $(TD
$(LREF taggedClassRef)
$(LREF taggedPointer)
))
)
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost Lic... | D |
module deepmagic.dom.elements.text_level.rb_element;
import deepmagic.dom;
class RbElement : Html5Element!("rb"){
mixin(ElementConstructorTemplate!());
}
| D |
// URL: http://codeforces.com/contest/965/problem/C
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 |
module indcms.system.controller;
import vibe.d;
import temple;
import std.stdio;
import indcms.system.addon;
import indcms.system.postgresql;
import indcms.system.system;
import indcms.system.models.index;
const string ADDON_NAME = "system";
//constructor of module
static this()
{
new SystemController();
}
cl... | 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 |
instance DIA_Addon_Riordian_ADW_EXIT(C_Info)
{
npc = KDW_14040_Addon_Riordian_ADW;
nr = 999;
condition = DIA_Addon_Riordian_ADW_EXIT_Condition;
information = DIA_Addon_Riordian_ADW_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_Riordian_ADW_EXIT_Condition()
{
return TRUE;
};
fu... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.build/Bar/Progress/Console+ProgressBar.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Swift3.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleC... | D |
/Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/.build/debug/Fluent.build/Relations/Siblings.swift.o : /Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/Packages/Fluent-1.0.7/Sources/Fluent/Database/Database.swift /Users/mohammadazam/Documents/Projects/StoryTellersAPI... | D |
// Written in the D programming language.
/**
This is a submodule of $(MREF std, algorithm).
It contains generic algorithms that implement set operations.
The functions $(LREF multiwayMerge), $(LREF multiwayUnion), $(LREF setDifference),
$(LREF setIntersection), $(LREF setSymmetricDifference) expect a range of sorted
... | D |
import std.stdio, std.functional, std.traits;
FP calc(FP, F)(in F fun, in int n) pure nothrow if (isCallable!F) {
FP temp = 0;
foreach_reverse (immutable ni; 1 .. n + 1) {
immutable p = fun(ni);
temp = p[1] / (FP(p[0]) + temp);
}
return fun(0)[0] + temp;
}
int[2] fSqrt2(in int n) pure... | D |
/media/maher/extra/rust/rust_book/projects/saico/target/release/deps/unic_char_range-123415cba22be41b.rmeta: /home/maher/.cargo/registry/src/github.com-1ecc6299db9ec823/unic-char-range-0.7.0/src/lib.rs /home/maher/.cargo/registry/src/github.com-1ecc6299db9ec823/unic-char-range-0.7.0/src/pkg_info.rs /home/maher/.cargo/r... | D |
import core.time;
import core.sync.mutex;
import std.stdio;
import std.container;
import std.concurrency;
import derelict.sdl2.sdl;
import derelict.sdl2.types;
import derelict.sdl2.image;
import derelict.opengl3.gl;
import tut6;
int main() {
// Load the SDL 2 library.
DerelictSDL2.load();
DerelictGL3.l... | D |
module deimos.cef3.app;
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright... | D |
/**
Dependency specification functionality.
Copyright: © 2012-2013 Matthias Dondorff, © 2012-2016 Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Matthias Dondorff, Sönke Ludwig
*/
module dub.dependency;
import dub.internal.utils;
import dub.int... | D |
/*
* Copyright 2017 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 applica... | D |
module yu.asyncsocket.server.tcpserver;
import std.socket;
import yu.memory.allocator;
import yu.eventloop;
import yu.asyncsocket.acceptor;
import yu.asyncsocket.tcpsocket;
import yu.asyncsocket.server.connection;
import yu.asyncsocket.server.exception;
import yu.timer.timingwheeltimer;
import yu.timer.eventlooptimer... | D |
module gamelib.graphics.renderer2d.texture;
import std.string;
import gamelib.types;
import gamelib.graphics.renderer2d.renderer;
import gamelib.graphics.surface;
import derelict.sdl2.sdl;
import derelict.sdl2.image;
struct TextureProps
{
Uint32 format = SDL_PIXELFORMAT_UNKNOWN;
bool isStreami... | D |
/Users/Vidyadhar/Desktop/Github/NYUMatchmakingApp/Project/build/Project.build/Debug-iphonesimulator/Project.build/Objects-normal/x86_64/SettingsViewController.o : /Users/Vidyadhar/Desktop/Github/NYUMatchmakingApp/Project/Project/FeedVC.swift /Users/Vidyadhar/Desktop/Github/NYUMatchmakingApp/Project/Project/MyFeedVC.swi... | D |
/Users/ruru/Desktop/CloudsAPP-2017-07-24/DerivedData/CloudsAPP/Build/Intermediates/Alamofire.build/Debug-iphonesimulator/Alamofire\ iOS.build/Objects-normal/x86_64/MultipartFormData.o : /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/Source/MultipartFormData.swift /Users/ruru/Desktop/CloudsAPP-2017-07-24/Alamofire/S... | D |
/**
* This module implements tests for D functions
*/
module testing.funcs;
import std.stdio;
import core.simd;
/++
+ A compile time executed function for calculating the ficonacci sequence
+/
template fib(int x){
static if(x > 1)
enum fib = fib!(x-1) + fib!(x-2);
else
enum fib = 1;
}
/++
+ Swizzles ele... | D |
const string WORLDNAME_NEWWORLD = "Хоринис";
const string WORLDNAME_ADDONWORLD = "Яркендар";
const string WORLDNAME_OLDWORLD = "Долина Рудников";
const string WORLDNAME_DRAGONISLAND = "Ирдорат";
const string WORLDNAME_FREEMINE = "Свободная шахта";
const string WORLDNAME_ORCGRAVEYARD = "Кладбище орков";
const str... | D |
// COMPILED_IMPORTS: imports/test63a.d
// PERMUTE_ARGS:
private import imports.test63a;
const int SIZE = 7;
| D |
#line 1529 "sf.nw"
import std.string : toStringz;
import std.stdio : writeln, write, stderr, stdin;
import std.format : format;
import std.file : DirEntry, dirEntries,
SpanMode, FileException;
import std.path : baseName, extension, globMatch;
import std.traits : isAssignabl... | D |
const int Value_Sc_Water = 1*Sc_DS_Kosten;
const int Value_Sc_IceLance = 100*Sc_DS_Kosten;
const int Value_Sc_Whirlwind = 200*Sc_DS_Kosten;
const int Value_Sc_Geyser = 100*Sc_DS_Kosten;
const int Value_Sc_Thunderstorm = 200*Sc_DS_Kosten;
const int Value_Sc_Waterfist = 100*Sc_DS_Kosten;
instance ItSc_Geyser(C_Item)
{
... | D |
void main() {
auto ip = readAs!(int[]), N = ip[0], M = ip[1];
ulong k = 0;
long d = 1;
ulong x;
while(k != M) {
k++;
x.writeln;
stdout.flush;
readln;
x += d;
if(x == 0 || x == N-1) d *= -1;
}
writeln(-1);
}
// ===================================
import std.stdio;
import std.string;
import std.funct... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.