text stringlengths 54 60.6k |
|---|
<commit_before>#include <cstdlib>
#include <vector>
#include <fstream>
#include <sstream>
#include <experimental/optional>
#include "windows.h"
#include "Objbase.h"
#include "Shlobj.h"
using namespace std;
using namespace std::experimental;
TCHAR select_directory_path[MAX_PATH];
// TODO: A lot of error detection a... |
<commit_before>#include "compiler.h"
#include "mswin.h"
#include "glinit.h"
#include "model.h"
#include "cmdline.h"
#include <windowsx.h>
// #include "tinyscheme-config.h"
// #include <scheme-private.h>
// #include <scheme.h>
#include <cstdint>
namespace usr {
// Program name.
static const TCHAR * const program_na... |
<commit_before>#include "S3StreamDefaults.h"
#include <ossim/base/ossimPreferences.h>
#include <ossim/base/ossimEnvironmentUtility.h>
// defaults to a 1 megabyte block size
//
ossim_int64 ossim::S3StreamDefaults::m_readBlocksize = 32768;
ossim_int64 ossim::S3StreamDefaults::m_nReadCacheHeaders = 10000;
void ossim::S3... |
<commit_before>#define DEBUG
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/epoll.h>
//for connection to server
bool ready4data = false;//set to true when streaming starts
bool inited = false;
... |
<commit_before>#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include <string>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <vector>
#include <regex.h>
#include <sys/time.h>
#include <termios.h>
// http://stackoverflow.... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>//===-- Hexagon.cpp -------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>#include "ResourceManager.h"
#include <string>
#include <vector>
#ifdef __MACH__
#include <CoreFoundation/CoreFoundation.h>
#endif
namespace ResourceManager
{
namespace Internal
{
std::vector<std::string> searchPaths;
std::string userDirectoryPath;
bool FileExists ( const std::string& path )
{
retur... |
<commit_before>#include "../tjh_draw.h"
const int WIDTH = 640;
const int HEIGHT = 480;
float clamp( float v, float min, float max )
{
float vmin = min < max ? min : max;
float vmax = max > min ? max : min;
if( v < vmin ) return vmin;
if( v > vmax ) return vmax;
return v;
}
int main()
{
draw::init( __FILE__, 64... |
<commit_before>#include <fstream>
#include "get-cluster.h"
using namespace cv;
using namespace std;
int main(int argc, char* argv[]){
if (argc < 3){
cout << "Usage: " << endl
<< "IntrinsicImage.exe [-i input_image_path] [-o output_path]" << endl;
exit(-1);
}
string image_path;
string reg... |
<commit_before>/*
* Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by ... |
<commit_before>/*
* classes_io.cpp
*
* Created on: May 11, 2016
* Author: zmij
*/
#include <gtest/gtest.h>
#include <test/classes_for_io.hpp>
#include <wire/encoding/buffers.hpp>
namespace wire {
namespace encoding {
namespace test {
TEST(IO, Polymorphic)
{
::test::derived_ptr inst1 = ::std::make_sha... |
<commit_before>#include <thread>
#include <utility>
#include <istream>
#include "database.hpp"
#include "ui.hpp"
#include "searching.hpp"
using namespace magicSearchEngine;
using namespace std;
int
main(int argc, char *argv[]) {
JSONDatabase database;
search_engine oraculum(database);
// We expect enough... |
<commit_before>
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2014 Max-Planck-Institute for Intelligent Systems,
* University of Southern California
* Jan Issac (jan.issac@gmail.com)
* Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
*
*
* Redistribution and use in ... |
<commit_before>//
// main.cpp
// thermaleraser
//
// Created by Mark Larus on 9/8/12.
// Copyright (c) 2012 Kenyon College. All rights reserved.
//
#include <omp.h>
#include <iostream>
#include <gsl/gsl_randist.h>
#include <gsl/gsl_sf.h>
#include <time.h>
#include <semaphore.h>
#include <algorithm>
#include <mat... |
<commit_before>/*
vc_crt_fix_ulink.cpp
Workaround for Visual C++ CRT incompatibility with old Windows versions (ulink version)
*/
/*
Copyright © 2010 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
ar... |
<commit_before>#ifndef UNIT_TEST
#include <Arduino.h>
#include <avr/wdt.h>
#include <DHT.h>
#include <TimerOne.h>
#include "lib/SDCard.h"
#include "PinMap.h"
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP085_U.h>
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
// #include "test/bmp.test.h"
So... |
<commit_before>#include <iostream>
#include <cassert>
#include <cmath>
#include <tclap/CmdLine.h>
#include <fitsio.h>
#define fits_check(x) (x); if (status) { fits_report_error(stderr, status); exit(status); }
#define fits_checkp(x) (x); if (*status) { fits_report_error(stderr, *status); exit(*status); }
using names... |
<commit_before>#include <iostream>
#include <cv.h>
#include <highgui.h>
#include <unistd.h>
using namespace std;
using namespace cv;
typedef Vec3b Color;
typedef vector<Mat> World;
typedef Color (*Rule)(Color, const vector<Color> &);
typedef struct {
unsigned int thread_id;
unsigned int thread_count;
Worl... |
<commit_before>#include <iostream>
#include <fstream>
#include <multihash/multihash.h>
#include <boost/program_options.hpp>
#define BOOST_FILESYSTEM_NO_DEPRECATED
#include <boost/filesystem.hpp>
namespace po = boost::program_options;
int main(int argc, char* argv[])
{
// Declare the supported options.
std::o... |
<commit_before>#include "mainwindow.h"
#include <QApplication>
#include <QMessageBox>
#include "visuserver.h"
#include "visuapplication.h"
#include "exceptions/configloadexception.h"
#define DEFAULT_CONFIG "configs/default.xml"
void showMessageBox(QString message)
{
QMessageBox::warning(
NULL,
... |
<commit_before>// Copyright © 2014-2016 Ryan Leckey, All Rights Reserved.
// Distributed under the MIT License
// See accompanying file LICENSE
#include <cstdio>
#include <deque>
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
#include "cppformat/format.h"
#include "arrow/tokenizer.hpp"
#i... |
<commit_before>/*
Copyright (C) 2016-2017 Genome Research Ltd.
Author: Marcus D. R. Klarqvist <mk21@sanger.ac.uk>
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 wit... |
<commit_before>#include <algorithm>
#include <thread>
#include <iostream>
#include <cassert> /* assert */
#include <glm/ext.hpp>
#include <vtkIndent.h>
#include <vtkTable.h>
#include <vtkVariant.h>
#include <vtkUnstructuredGrid.h>
#include "persistence_curve_widget.h"
PersistenceCurveWidget::PersistenceCurveWidget... |
<commit_before>#include "SDL.h"
#include "SDL_opengl.h"
#include <cmath>
const float kPi = 4.0f * std::atan(1.0f);
const Uint32 kLagThreshold = 1000;
const Uint32 kFrameTime = 10;
const float kPlayerForwardSpeed = 10.0f * (kFrameTime * 0.001f);
const float kPlayerTurnSpeed = 100.0f * (kFrameTime * 0.001f);
const flo... |
<commit_before>/* nobleNote, a note taking application
* Copyright (C) 2012 Christian Metscher <hakaishi@web.de>,
Fabian Deuchler <Taiko000@gmail.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <unistd.h>
#include <vector>
#include <string>
#include <iostream>
#include "functions.h"
int main(int argc, char** argv)
{
// hold a raw line of input
std::string line;
// print welcome message and prompt
prin... |
<commit_before>
#include "Client.hpp"
#include <onions-common/Log.hpp>
#include <onions-common/Utils.hpp>
#include <botan/botan.h>
#include <popt.h>
// Botan::LibraryInitializer init("thread_safe");
int main(int argc, char** argv)
{
char* logPath = NULL;
bool license = false;
ushort port = 9150;
struct poptO... |
<commit_before>/*
Dwarf Therapist
Copyright (c) 2009 Trey Stout (chmod)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... |
<commit_before>#include <iostream>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <cstring>
#include <string>
using namespace std;
void lsCom() {
}
bool isDependant = 0;
int main() {
string str;
pid_t pid;
... |
<commit_before>#include <iostream>
#include <boost/tokenizer.hpp>
#include <string>
#include <unistd.h>
#include <stdio.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <stdlib.h>
#include <vector>
#include <stack>
using namespace std;
using namespace boost;
//function used to seperate commands
void parsecon... |
<commit_before>/*
main.c
The Knights from Porto
Created by Daniel Monteiro on 11/26/14.
Copyright (c) 2014 Daniel Monteiro. All rights reserved.
*/
#include <utility>
#include <string>
#include <iostream>
#include <memory>
#include <fstream>
#include <vector>
#include "Vec2i.h"
#include "IMapElement.h"
#incl... |
<commit_before>#include <iostream>
//linux system libraries
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
//system libraries end
#include <csignal>
#include <queue>
#define MEMORY 66666
using namespac... |
<commit_before>#include <vraptor.hpp>
#include <iostream>
#include <fstream>
#include <sstream>
#include "vrtimer.hpp"
#include<codegen.hpp>
#include<iostream>
#include<sstream>
#include<string>
#include<fstream>
#include<cstdlib>
#include<prettyPrinter.hpp>
#include<vector>
#include<string.h>
#include <node-collector.... |
<commit_before>#include <irrlicht.h>
#include "events.h"
#include "gui_game.h"
using namespace irr;
namespace ic = irr::core;
namespace is = irr::scene;
namespace iv = irr::video;
namespace ig = irr::gui;
is::ITriangleSelector* createTree(is::IAnimatedMesh *mesh, is::ISceneManager *smgr, EventReceiver receiver, iv:... |
<commit_before>//Author: Julian Yi
//Date Started: 14 July 2017, Friday.
//Purpose: This is a project to create a working chess engine and gui using C++.
//File: This is the main file.
#include <iostream>
#include <memory>
#include "board.h"
#include "pawn.h"
#include "knight.h"
#include "bishop.h"
#include "... |
<commit_before>#include <ROOT/RDataFrame.hxx>
#include <ROOT/RArrowDS.hxx>
#include <ROOT/TSeq.hxx>
#include <TROOT.h>
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#include <arrow/builder.h>
#include <arrow/memory_pool.h>
#include <arrow/record_batch.h>
#include <a... |
<commit_before>// @(#)root/treeplayer:$Id$
// Author: Axel Naumann, 2011-09-28
/*************************************************************************
* Copyright (C) 1995-2011, Rene Brun and Fons Rademakers and al. *
* All rights reserved. *
* ... |
<commit_before>/*
* Copyright (c) 2012 The Backplane Incorporated,
* Vinay Hiremath,
* Zach Tratar
*
* 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,
* inc... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#include "image.h"
#include "r200.h"
using namespace rsimpl;
using namespace rsimpl::ds;
namespace rsimpl
{
r200_camera::r200_camera(std::shared_ptr<uvc::device> device, const s... |
<commit_before>/** Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License */
#include "skin.h"
#include "utils/polygonUtils.h"
#define MIN_AREA_SIZE (0.4 * 0.4)
namespace cura
{
void generateSkins(int layerNr, SliceMeshStorage& storage, int extrusionWidth, int downSkinCount, int upSki... |
<commit_before>#include <stdlib.h>
#ifdef _WIN32
#define _UNICODE 1
#define UNICODE 1
#endif
#include "../include/sliprock.h"
#include "sliprock_internals.h"
#include "stringbuf.h"
#include <csignal>
#include <exception>
#include <mutex>
#define BOOST_TEST_MODULE SlipRock module
#define BOOST_TEST_DYN_LINK
#include <... |
<commit_before>// Lesson 13.cpp : Defines the entry point for the console application.
#include <render_framework\render_framework.h>
#include <chrono>
#pragma comment (lib , "Render Framework" )
using namespace std;
using namespace glm;
using namespace render_framework;
using namespace chrono;
// Global scop box
sh... |
<commit_before>// Test.cpp
// Sean Jones
#define GLFW_INCLUDE_GLU
#include <GLFW/glfw3.h>
#include <chrono>
#include <glm/glm.hpp>
#include <glm/gtx/constants.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/core/type_vec3.hpp>
using namespace... |
<commit_before>///
/// @file test.cpp
/// @brief primecount integration tests.
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primecount.hpp>
#include <primecount-internal.hpp>... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "core.h"
#include "pow.h"
#include "uin... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>#ifndef KGR_KANGARU_INCLUDE_KANGARU_DETAIL_AUTOWIRE_TRAITS_HPP
#define KGR_KANGARU_INCLUDE_KANGARU_DETAIL_AUTOWIRE_TRAITS_HPP
#include "traits.hpp"
#include "container_service.hpp"
#include "service_map.hpp"
#include "injected.hpp"
#include "../container.hpp"
namespace kgr {
template<typename, typena... |
<commit_before>#ifndef KGR_KANGARU_INCLUDE_KANGARU_DETAIL_OVERRIDE_TRAITS_HPP
#define KGR_KANGARU_INCLUDE_KANGARU_DETAIL_OVERRIDE_TRAITS_HPP
#include "traits.hpp"
#include "meta_list.hpp"
#include "detection.hpp"
namespace kgr {
namespace detail {
/*
* Trait that check if all types specified in overrides are servic... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
namespace options {
struct parse_error_t : public std::runtime_error {
parse_error_t(const std::string &msg) : std::runtime_error(msg) { }
};
struct validation_error_t : ... |
<commit_before>/*
* Copyright (C) 2020 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2017 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>#pragma once
#include <optional>
#include <string>
#include <string_view>
#include <variant>
namespace sdbusplus
{
namespace message
{
namespace details
{
/** Simple wrapper class for std::string to allow conversion to and from an
* alternative typename. */
struct string_wrapper
{
std::string ... |
<commit_before>#include "UniformNegativeSampleGenerator.h"
vector<int>* UniformNegativeSampleGenerator::generate(RecDat* rec_dat){
if(!filter_repeats_){
int learnt = 0;
samples.clear();
int user_activity = train_matrix_->row_size(rec_dat->user);
while(learnt < negative_rate_ && learnt<(int)items_->si... |
<commit_before>#include <QString>
#include <QtTest>
#include <Arangodbdriver.h>
#include <QueryBuilder.h>
#include <QBSelect.h>
class QueriesTest : public QObject
{
Q_OBJECT
public:
QueriesTest();
~QueriesTest();
private Q_SLOTS:
void initTestCase();
vo... |
<commit_before>/* **********************************************************
* Copyright (c) 2012 Google, Inc. All rights reserved.
* **********************************************************/
/* Dr. Memory: the memory debugger
*
* This library is free software; you can redistribute it and/or
* modify it... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#define DUNE_STUFF_FUNCTIONS_DISABLE_CHECKS
// This one has to come first (includes the ... |
<commit_before>//
// PROJECT CHRONO - http://projectchrono.org
//
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectchrono.org/license-chrono.txt.
//
////////////////////////////... |
<commit_before>#ifndef DUNE_STUFF_WALK_HH_INCLUDED
#define DUNE_STUFF_WALK_HH_INCLUDED
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#include <dune/common/static_assert.hh>
#include <dune/common/fvector.hh>
#include <dune/common/deprecated.hh>
#includ... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include <BALL/DOCKING/COMMON/poseClustering.h>
#include <BALL/FORMAT/DCDFile.h>
#include <BALL/FORMAT/PDBFile.h>
#include <BALL/DOCKING/COMMON/conformationSet.h>
#include <BALL/FORMAT/commandlineParser.h>
#include <iostream>
#include "version.h"
... |
<commit_before>#include <iterator>
#include "kernel.h"
#include "coverage.h"
#include "numericrange.h"
#include "numericdomain.h"
#include "columndefinition.h"
#include "table.h"
#include "attributerecord.h"
#include "geometry.h"
#include "feature.h"
#include "featurecoverage.h"
#include "featureiterator.h"
using nam... |
<commit_before>#include <robocup2Dsim/common/action.hpp>
#include <robocup2Dsim/common/action.capnp.h>
#include <capnp/message.h>
#include <gtest/gtest.h>
#include <turbo/memory/slab_allocator.hpp>
#include <turbo/memory/slab_allocator.hxx>
#include <robocup2Dsim/runtime/db_access.hpp>
#include <robocup2Dsim/engine/phy... |
<commit_before>/*
*
* Copyright 2015, Google Inc.
* 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
* notice, thi... |
<commit_before>// This is core/vnl/tests/test_cholesky.cxx
#include <testlib/testlib_test.h>
#include <vcl_iostream.h>
#include <vnl/vnl_matrix.h>
#include <vnl/algo/vnl_cholesky.h>
#include <vnl/algo/vnl_svd.h>
#include <vcl_ctime.h>
#include <vnl/vnl_sample.h>
#include "test_util.h"
void test_cholesky()
{
vnl_ma... |
<commit_before>#include "GHIElectronics_TinyCLR_Devices.h"
#include "GHIElectronics_TinyCLR_InteropUtil.h"
TinyCLR_Result Interop_GHIElectronics_TinyCLR_Devices_GHIElectronics_TinyCLR_Devices_Storage_Provider_StorageControllerApiWrapper::get_IsPresent___BOOLEAN(const TinyCLR_Interop_MethodData md) {
return TinyC... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#include "VisualBench.h"
#include "ProcStats.h"
#include "SkApplication.h"
#include "SkCanvas.h"
#include "SkCommandLineFlags.h"
#include "SkForceLinking.h"... |
<commit_before>/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 3.7.3
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 201... |
<commit_before>#include <gtest/gtest.h>
#include <ros/ros.h>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/client/terminal_state.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <move_basic/queued_action_server.h>
#include <queue>
#include <memory>
#include <mutex>
#include <condition_var... |
<commit_before>//===- CoverageReport.cpp - Code coverage report -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------... |
<commit_before>// Copyright © 2011, Université catholique de Louvain
// 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 not... |
<commit_before>#include "voxel_buffer.h"
#include <string.h>
//#define VOXEL_AT(_data, x, y, z) data[z][x][y]
#define VOXEL_AT(_data, _x, _y, _z) _data[index(_x,_y,_z)]
VoxelBuffer::VoxelBuffer() {
}
VoxelBuffer::~VoxelBuffer() {
clear();
}
void VoxelBuffer::create(int sx, int sy, int sz) {
if (sx <= 0 ||... |
<commit_before>#include "audio_filter_resample.h"
#include "halley/support/debug.h"
using namespace Halley;
AudioFilterResample::AudioFilterResample(std::shared_ptr<AudioSource> source, int fromHz, int toHz, AudioBufferPool& pool)
: pool(pool)
, source(std::move(source))
, fromHz(fromHz)
, toHz(toHz)
{
}
uint8_t... |
<commit_before>/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gl/GrGLInterface.h"
#include "gl/GrGLAssembleInterface.h"
#include "gl/GrGLUtil.h"
#include <EGL/egl.h>
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_P... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>// $Id: reissCavFreeEnergyProcessor.C,v 1.8 2001/06/05 15:53:29 anker Exp $
#include <BALL/SOLVATION/reissCavFreeEnergyProcessor.h>
#include <BALL/STRUCTURE/numericalSAS.h>
using namespace std;
namespace BALL
{
const char* ReissCavFreeEnergyProcessor::Option::VERBOSITY = "verbosity";
const char* Re... |
<commit_before>#include "core/global.h"
#include "DBStateServer.h"
#include "LoadingObject.h"
// RoleConfig
static ConfigVariable<channel_t> database_channel("database", INVALID_CHANNEL);
// RangesConfig
static ConfigVariable<uint32_t> range_min("min", INVALID_DO_ID);
static ConfigVariable<uint32_t> range_max("max",... |
<commit_before>#include "GUI_TFT.h"
Guitft::~Guitft(){
}
void Guitft::fillRectangle(uint16_t poX, uint16_t poY, uint16_t length, uint16_t width, uint16_t color)
{
this->fillRect(poX,poY,length,width,color);
}
/*
* Implement a drawRectangle function
*/
void Guitft::drawRectangle(uint16_t poX, uint16_t poY, uint1... |
<commit_before>/*
* This file is part of Clockwork.
*
* Copyright (c) 2013-2016 Jeremy Othieno.
*
* The MIT License (MIT)
* 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 restr... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libkeynote project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one a... |
<commit_before>// Copyright 2014 The Bazel Authors. All rights reserved.
//
// 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 r... |
<commit_before>/*"name": "sensorflare",
Author: "LPFraile <lidiapf0@gmail.com>",
License: "BSD",
Version: "0.0.1",
Description: "Include your Particle Core on Sensorflare"
File: source file
*/
#include "sensorflare.h"
//Structure to keep in EEPROM memory the value of uotput pins
struct dataStruct
{
int digitalPin[8... |
<commit_before>
#include <GameData.h>
#include <File.h>
#include <DatCat.h>
#include <ExdData.h>
#include <ExdCat.h>
#include <Exd.h>
#include <Exh.h>
#include <iostream>
#include <cctype>
#include <set>
#include <src/servers/Server_Common/Exd/ExdData.h>
#include <src/servers/Server_Common/Logging/Logger.h>
#include <b... |
<commit_before>//Copyright (c) 2017 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "MinimumSpanningTree.h"
namespace cura
{
MinimumSpanningTree::MinimumSpanningTree(std::unordered_set<Point> vertices) : adjacency_graph(prim(vertices))
{
//Just copy over the fields.
}
M... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002-2003 The Apache Software Foundation. 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. Red... |
<commit_before>#ifndef DOMCasts_HEADER_GUARD_
#define DOMCasts_HEADER_GUARD_
/*
* Copyright 2001-2002,2004 The Apache Software Foundation.
*
* 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 ... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; eithe... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "BBE/BrotBoxEngine.h"
#include <iostream>
#define PERFORMANCETEST 0
#if PERFORMANCETEST
#define AMOUNTOFFRAMES (1000 * 10)
#define AMOUNTOFBATCHES (1000)
#endif
class MyGame : public bbe::Game
{
public:
#if PERFORMANCETEST
float renderTimes[AMOUNTOFFRAMES * AMOUNTOFBATCHES];
float cpuTimes[... |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Run all of our test shell tests. This is just an entry point
// to kick off gTest's RUN_ALL_TESTS().
#include "base/basictype... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLTextColumnsExport.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2004-07-13 08:36:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>// Copyright 2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "elang/lir/transforms/parallel_copy_expander.h"
#include "base/logging.h"
#include "elang/lir/editor.h"
#include "ela... |
<commit_before>/*************************************************************************
*
* $RCSfile: ViewShellImplementation.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: pjunck $ $Date: 2004-10-28 13:27:31 $
*
* The Contents of this file are made available subject to the terms of
* either of ... |
<commit_before>// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include "gtest/gtest.h"
#include <Rosetta/Cards/Cards... |
<commit_before>#include <iostream>
#include <stdexcept>
#include <string>
#include <boost/tr1/memory.hpp>
#include <boost/iterator/filter_iterator.hpp>
#include <boost/scoped_ptr.hpp>
extern "C" {
#include <libxslt/xslt.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libexslt/exslt.h>
}
#include <... |
<commit_before>//Copyright (c) 2020 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <cassert>
#include "LimitedBeadingStrategy.h"
namespace cura
{
LimitedBeadingStrategy::Beading LimitedBeadingStrategy::compute(coord_t thickness, coord_t bead_count) const
{
if (bead_cou... |
<commit_before>
#include "coring.hpp"
#include "logger.hpp"
#include "tools.hpp"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>
#include <boost/program_options.hpp>
#include <omp.h>
WTDMap
compute_wtd(std::list<std::size_t> streaks) {
WTDMap wtd;
if (streaks.size() > 0) {
stre... |
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.