text stringlengths 54 60.6k |
|---|
<commit_before>/*!
* \file c_array.hpp
* \brief file c_array.hpp
*
* Adapted from: c_array.hpp of WRATH:
*
* Copyright 2013 by Nomovok Ltd.
* Contact: info@nomovok.com
* 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
* th... |
<commit_before>#ifndef ROCFFT_HPP_
#define ROCFFT_HPP_
#include "core/application.hpp"
#include "core/timer_cuda.hpp"
#include "core/fft.hpp"
#include "core/types.hpp"
#include "core/traits.hpp"
#include "core/context.hpp"
//#include "rocfft_helper.hpp"
#include "hip/hip_runtime_api.h"
#include "hip/hip_vector_type... |
<commit_before>// Copyright (c) 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.
#include <vector>
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h... |
<commit_before>#ifndef KEYBOARD_HPP
#define KEYBOARD_HPP
///
/// \brief The Keyboard class provides support to read the keyboard.
///
class Keyboard {
public:
///
/// \brief Contains all supported keys.
///
enum Key {
Num0,
Num1,
Num2,
Num3,
Num4,
Num5,
Num6,
Num7,
Num8,
Num9,
... |
<commit_before>#ifndef ELEKTRA_KDBTHREAD_HPP
#define ELEKTRA_KDBTHREAD_HPP
#include <kdbcontext.hpp>
#include <kdb.hpp>
#include <mutex>
#include <thread>
#include <vector>
#include <cassert>
#include <algorithm>
#include <functional>
#include <unordered_map>
namespace kdb
{
/// Subject from Observer pattern for T... |
<commit_before>#ifndef ALEPH_GEOMETRY_FLANN_HH__
#define ALEPH_GEOMETRY_FLANN_HH__
#include <aleph/config/FLANN.hh>
#include <aleph/geometry/NearestNeighbours.hh>
#include <aleph/geometry/distances/Traits.hh>
#ifdef ALEPH_WITH_FLANN
#include <flann/flann.hpp>
#endif
#include <algorithm>
#include <vector>
namespa... |
<commit_before>/**
* @file postings_data.tcc
* @author Sean Massung
*/
#include <algorithm>
#include "index/postings_data.h"
namespace meta {
namespace index {
template <class PrimaryKey, class SecondaryKey>
postings_data<PrimaryKey, SecondaryKey>::postings_data(PrimaryKey p_id):
_p_id{p_id}
{ /* nothing */ }... |
<commit_before>/***********************************************************************
FONCTION :
----------
file OpenGl_togl_redraw.c :
REMARQUES:
----------
HISTORIQUE DES MODIFICATIONS :
--------------------------------
xx-xx-xx : CAL ; Creation.
23-01-97 : CAL : Ajout pour mettre des traces facilement
apres... |
<commit_before>/*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2012 by Computer Graphics Group, RWTH Aa... |
<commit_before>/**
* @file
*/
#pragma once
#include "bi/lib/Heap.hpp"
#include "bi/lib/FiberState.hpp"
namespace bi {
/**
* Fiber.
*
* @ingroup library
*
* @tparam Type Yield type.
*/
template<class Type>
class Fiber {
public:
/**
* Constructor.
*/
Fiber(const bool closed = false) :
heap(close... |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
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, this list of condi... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 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 <Windows.h>
#include <malloc.h>
#include <vector>
#include <string>
#include <iterator>
#include <algorithm>
#include <cstdint>
#include <quote/tmp/on_exit.hpp>
namespace quote{ namespace win32{
template <class Window>
// return: tuple<files, index of filter>
... |
<commit_before>// Copyright 2018 Google LLC. All Rights Reserved.
/*
Copyright (C) 2005 Steven L. Scott
This library 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 Lice... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before><commit_msg>Adding code to turn off anti-aliasing for certain older ATI drivers<commit_after><|endoftext|> |
<commit_before>#ifndef ORG_EEROS_CONTROL_GAIN_HPP_
#define ORG_EEROS_CONTROL_GAIN_HPP_
#include <eeros/control/Block1i1o.hpp>
#include <type_traits>
namespace eeros {
namespace control {
/**
* A gain block is used to amplify an input signal. This is basically done by
* multiplying the gain with the input s... |
<commit_before>#include "mapDisplay.hpp"
mapDisplay::mapDisplay(GPSState reference, cvImage startImage)
{
lastImage=(IplImage)startImage;
referencePoint=reference;
cvNamedWindow("Field Map",CV_WINDOW_AUTOSIZE);
cvMoveWindow("Field Map",X_COORD_ON_SCREEN ,Y_COORD_ON_SCREEN);
cvResizeWindow("Field Map",WIDTH,HEIGHT... |
<commit_before>/**
* File : C.cpp
* Author : Kazune Takahashi
* Created : 9/22/2018, 9:12:06 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string>... |
<commit_before>/*
Simple DirectMedia Layer
Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyo... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: propertymap.hxx,v $
* $Revision:... |
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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
//
//... |
<commit_before>#define DEBUG 1
/**
* File : A.cpp
* Author : Kazune Takahashi
* Created : 2020/6/28 20:51:38
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint... |
<commit_before>//----------------------------------------------------------------------
// $Id$
//
// Copyright (C) 2000, 2001, 2003, 2004, 2007, 2008, 2009, 2010, 2012, 2013 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Pl... |
<commit_before>//
// ArrayBuilder.cpp
// Clock Signal
//
// Created by Thomas Harte on 17/11/2016.
// Copyright © 2016 Thomas Harte. All rights reserved.
//
#include "ArrayBuilder.hpp"
using namespace Outputs::CRT;
ArrayBuilder::ArrayBuilder(size_t input_size, size_t output_size) :
output_(output_size, nullptr)... |
<commit_before>#ifndef __CINT__
#include "AliAnalysisManager.h"
#include "AliAnalysisDataContainer.h"
#include "AliAnalysisTaskHMTFMCMultEst.h"
#endif
AliAnalysisTaskHMTFMCMultEst *AddTaskHMTFMCMultEst(Int_t globalTrigger) {
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
::Erro... |
<commit_before>#include "tidyup_actions/actionExecutorDetectObjects.h"
#include <pluginlib/class_list_macros.h>
#include <tidyup_msgs/RequestObjectsGraspability.h>
#include "tidyup_utils/planning_scene_interface.h"
PLUGINLIB_DECLARE_CLASS(tidyup_actions, action_executor_detect_objects,
tidyup_actions::ActionEx... |
<commit_before>#include "pch.h"
#include "taskqueue_service.h"
#include "service_manager.h"
#include <atomic>
class TaskQueue : Noncopyable
{
public:
TaskQueue(const char * name, TaskQueueService * taskService);
virtual ~TaskQueue();
void start();
void stop();
int addWorkItem(const std::funct... |
<commit_before>
#include <windows.h>
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include "../Network/network.h"
#pragma comment( lib, "winmm.lib" )
using namespace std;
const int WINSIZE_X = 300; //ʱ ũ
const int WINSIZE_Y = 300; //ʱ ũ
const int WINPOS_X = 0; //ʱ ġ X
const int WINPOS_... |
<commit_before>#include <malloc.h>
#include <stdlib.h>
#include <dos.h>
#include <conio.h>
#include <memory.h>
typedef unsigned long int UInt32;
typedef signed long int SInt32;
typedef unsigned short int UInt16;
typedef signed short int SInt16;
typedef unsigned char UInt8;
typedef signed char SInt8;
... |
<commit_before>/*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* 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... |
<commit_before>// Copyright (c) 2009-2017 The OTS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "os2.h"
#include "head.h"
// OS/2 - OS/2 and Windows Metrics
// http://www.microsoft.com/typography/otspec... |
<commit_before>// @(#)root/io:$Id$
// Author: Markus Frank 28/10/04
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before><commit_msg>Delete CPP_STRING.H<commit_after><|endoftext|> |
<commit_before>#include "BasicCircular.h"
#include "../../Utils.h"
#include <cmath>
using namespace DNest4;
BasicCircular::BasicCircular(double x_min, double x_max,
double y_min, double y_max,
double mu_min, double mu_max)
:x_min(x_min)
,x_max(x_max)
,y_min(y_min)
,y_max(y_max)
,size(sqrt((x_max - x_min)*(y... |
<commit_before>// -*- Mode: c++-mode; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 2; -*-
//
// Copyright (C) 2003-2004 Grzegorz Jaskiewicz <gj at pointblue.com.pl>
//
// gadueditaccount.cpp
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public... |
<commit_before>/*
incomingtransfer.cpp - msn p2p protocol
Copyright (c) 2003-2005 by Olivier Goffart <ogoffart@ kde.org>
Copyright (c) 2005 by Gregg Edghill <gregg.edghill@gmail.com>
*************************************************************************
* ... |
<commit_before>AliProtonAnalysisBase *GetProtonAnalysisBaseObject(const char* analysisLevel = "ESD",
const char* esdAnalysisType = "Hybrid",
const char* pidMode = "Bayesian") {
//Function to setup the AliProtonAnalysisBase object and return it
AliProtonAnalysisBase *baseAnalysis = n... |
<commit_before>#include <Riostream.h>
#include <TFile.h>
#include <AliRDHFCutsDplustoKpipi.h>
#include <TClonesArray.h>
#include <TParameter.h>
//macro to make a .root file which contains an AliRDHFCutsDplustoKpipi with loose set of cuts (for significance maximization) and TParameter with the tighest value of these cu... |
<commit_before>#include "catch.hpp"
#include "test/base_test_fixture.h"
#include <cstdio>
namespace
{
// According to the sqliteodbc documentation,
// driver name is different on Windows and Unix.
#ifdef _WIN32
const nanodbc::string_type driver_name(NANODBC_TEXT("SQLite3 ODBC Driver"));
#else
... |
<commit_before>//__________________________________________________//
AliBalancePsi *GetBalanceFunctionObject(const char* analysisLevel = "ESD",
const char* centralityName = 0x0,
Double_t centrMin = 0.,
Double_t centrMax = 100.,
Bool_t bShuffle = kFALSE,
Bool_t bHBTcut = kFALSE,
Bo... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*************************************************************************
* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Con... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "StubViewTree.h"
#include <glog/logging.h>
#include <react/debug/react_native_assert.h>
#ifdef STUB_VIEW_... |
<commit_before>#ifndef MPACK_DEBUG_HPP
#define MPACK_DEBUG_HPP
#define DEBUG
#include "Types.hpp"
#include "Helper.hpp"
#include "Log.hpp"
#ifndef DEBUG
#define PRINT(x)
#define D if(0)
#else
#define PRINT(x) \
LOGD("%s\t%s\n",#x,x)
#define D if(1)
#endif
#ifndef DEBUG
#define ... |
<commit_before>// $Id: metis_partitioner.C,v 1.21 2005-09-09 12:26:51 jwpeterson Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
... |
<commit_before>#include <stdexcept>
#include <unordered_map>
#include "Windowsx.h"
#include "windowswindow.hh"
#include "system/mousebutton.hh"
#include "system/keycode.hh"
static char appName[] = "Test Application";
using System::KeyCode;
class KeyMap : public std::unordered_map<WPARAM, System::KeyCode>
{
public:... |
<commit_before>#include <sys/time.h>
#include <sys/resource.h>
#include <fcntl.h>
#include "GrContextFactory.h"
#include "SkBase64.h"
#include "SkCanvas.h"
#include "SkCommandLineFlags.h"
#include "SkData.h"
#include "SkDocument.h"
#include "SkFontMgr.h"
#include "SkForceLinking.h"
#include "SkGraphics.h"
#include "S... |
<commit_before>#include "Math.h"
#include <glm/gtc/matrix_transform.hpp>
#include "OpenGL.h"
#include "Vertex.h"
#include "Window.h"
#include "Reference.h"
#include "PhysicsManager.h"
#include "ModelManager.h"
#include "RenderManager.h"
static float CameraFieldOfView = 90;
static Solid* CameraAttachmentTarget = NULL;... |
<commit_before>//===- llvm/unittest/ADT/ArrayRefTest.cpp - ArrayRef unit tests -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- unittests/Analysis/CFGTest.cpp - CFG tests -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===--- TextDiagnosticPrinter.cpp - Diagnostic Printer -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; tab-width: 8; -*-
* vi: set shiftwidth=4 tabstop=8:
* :indentSize=4:tabSize=8:
*/
#include "../console.h"
#include "../types.h"
#include "../errno.h"
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <io.h>
bool open_tty_as... |
<commit_before>#include "Settings.h"
#include "Log.h"
#include "pugixml/pugixml.hpp"
#include "platform.h"
#include <boost/filesystem.hpp>
#include <boost/assign.hpp>
Settings *Settings::sInstance = NULL;
// these values are NOT saved to es_settings.xml
// since they're set through command-line arguments, and not the... |
<commit_before>/*
* Copyright (C) 2011 Tommi Maekitalo
*
* This library 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.... |
<commit_before>/**
* \file
* \brief Unit Test for GPIO config class
*
* \author Uilian Ries <uilianries@gmail.com>
*/
/** Should not link with unit test lib */
#define BOOST_TEST_NO_LIB
#include <string>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/test/unit_test.hpp>
... |
<commit_before>/*
* JSP: https://github.com/arielm/jsp
* COPYRIGHT (C) 2014-2015, ARIEL MALKA ALL RIGHTS RESERVED.
*
* THE FOLLOWING SOURCE-CODE IS DISTRIBUTED UNDER THE SIMPLIFIED BSD LICENSE:
* https://github.com/arielm/jsp/blob/master/LICENSE
*/
#include "jsp/BaseProto.h"
using namespace std;
using namespace... |
<commit_before>#include "utest.h"
#include "function.h"
#include "math/epsilon.h"
#include "layers/conv3d_naive.h"
#include "layers/conv3d_toeplitz.h"
using namespace nano;
template <typename top>
struct wrt_params_function_t final : public function_t
{
explicit wrt_params_function_t(const top& op) : function... |
<commit_before>/*
* File: test_helper.hpp
* Author: kjell
*
* Created on April 14, 2014, 12:47 AM
*/
#pragma once
#include <string>
#include <cassert>
#include <chrono>
#include <memory>
#include <atomic>
#include <future>
#include <thread>
#include <iostream>
#include <stdexcept>
#include "concurrent.hpp"
... |
<commit_before>#include "RequestHandler.hh"
#include <Poco/Logger.h>
#include <Poco/URI.h>
#include <vector>
//
// /<topic> POST -> create topic
// /<topic> DELETE -> delete topic
// /<topic>/messages POST -> push message
// /<topic>/messages GET -> get message
// /<topic>/messages HEAD -> header
//
// HTTP/1.1 200 O... |
<commit_before>/*
This file is part of the Nepomuk KDE project.
Copyright (C) 2011 Sebastian Trueg <trueg@kde.org>
This library 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
vers... |
<commit_before><commit_msg>add missing ostringstream line<commit_after><|endoftext|> |
<commit_before>//Modulo principal que simula e gernecia as partes do pseudo-so
#include "../include/arquivos.hpp"
#include "../include/Processos/processo.hpp"
#include "../include/modulo_filas.hpp"
#include "../include/escalonamento.hpp"
#include "../include/Memoria.hpp"
#include "../include/Recursos.hpp"
#include <std... |
<commit_before>/*
* Copyright 2008-2010 NVIDIA Corporation
*
* 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 require... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: autoreferencemap.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 14:15:08 $
*
* The Contents of this file ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: providerwrapper.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 04:11:52 $
*
* The Contents of this file ar... |
<commit_before>/*
* Copyright (C) 2003-2005 Tommi Maekitalo
*
* This library 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 ver... |
<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>#include <iostream>
#include <iomanip>
#include <Windows.h>
#include <conio.h> // _getch()
#include "Thoth.hpp"
//#include "Modules/ThothModules.hpp"
#include <Utils/Process.hpp>
Thoth::Thoth()
{
Console::SetTextColor(Console::Color::Info);
std::cout << "Thoth" << "\xC4\xC4\xC4\xC2 ";
s... |
<commit_before>// Copyright (c) 2010 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.
#include "base/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_switches.h"
#if... |
<commit_before>// Copyright (c) 2010 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.
#include "base/path_service.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_paths.h"
#includ... |
<commit_before><commit_msg>Coverity: Assert that GetMutableDictionary returns a non-NULL dictionary.<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix shared linux build Split out of reverted change http://src.chromium.org/viewvc/chrome?view=rev&revision=37989<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2011 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.
#include "chrome/common/extensions/extension_file_util.h"
#include "base/file_util.h"
#include "base/json/json_value_serializer.h"
#in... |
<commit_before>// Copyright 2013 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.
#include "chrome/browser/extensions/extension_util.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/metrics/fiel... |
<commit_before>/*
* Copyright (c) 2012 by Matthias Noack, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#include <gtest/gtest.h>
#include "common/test_environment.h"
#include "common/test_rpc_server_dir.h"
#include "common/test_rpc_server_mrc.h"
#include "common/tes... |
<commit_before>/*
Copyright (C) 2000 by W.C.A. Wijngaards
Copyright (C) 2000 by Andrew Zabolotny
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; either
version 2 of th... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>#include "ffi.h"
///////////////
void FFI::InitializeStaticFunctions(Handle<Object> target) {
Local<Object> o = Object::New();
// atoi and abs here for testing purposes
o->Set(String::New("atoi"), Pointer::WrapPointer((unsigned char *)atoi));
// Windows has multiple `abs` signatures, so we nee... |
<commit_before>/*
* Copyright 2017-2018 Baidu Inc.
*
* 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 applicabl... |
<commit_before>#include "descartes_planner/ladder_graph_dag_search.h"
namespace descartes_planner
{
DAGSearch::DAGSearch(const LadderGraph &graph)
: graph_(graph)
{
// On creating an object, let's allocate everything we need
solution_.resize(graph.size());
for (size_t i = 0; i < graph.size(); ++i)
{
co... |
<commit_before>#include <QString>
#include "kernel.h"
#include "ilwis.h"
#include "geometries.h"
#include "ilwisdata.h"
#include "coordinatesystem.h"
#include "georeference.h"
#include "georefimplementation.h"
#include "factory.h"
#include "abstractfactory.h"
#include "georefimplementationfactory.h"
using namespace I... |
<commit_before>/*
* SelectionVariable.cpp
* MWorksCore
*
* Created by David Cox on 3/1/06.
* Copyright 2006 MIT. All rights reserved.
*
*/
#include "SelectionVariable.h"
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include "VariableReference.h"
#include "VariablePrope... |
<commit_before>/**
* @file ReactorFactory.cpp
*/
// Copyright 2006 California Institute of Technology
#include "cantera/zeroD/ReactorFactory.h"
#include "cantera/zeroD/Reservoir.h"
#include "cantera/zeroD/Reactor.h"
#include "cantera/zeroD/FlowReactor.h"
#include "cantera/zeroD/ConstPressureReactor.h"
using name... |
<commit_before>
/**
* @file /home/ryan/programming/atl/test/test_parser.cpp
* @author Ryan Domigan <ryan_domigan@sutdents@uml.edu>
* Created on Dec 16, 2014
*/
#include <gtest/gtest.h>
#include "../atl.hpp"
#include "../helpers.hpp"
#include "../debug.hpp"
#include <iostream>
#include <vector>
using namespace... |
<commit_before><commit_msg>prefer OUStringBuffer to concatenating OUString in a loop<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/renderer/atom_sandboxed_renderer_client.h"
#include <string>
#include "atom/common/api/api_messages.h"
#include "atom/common/api/atom_bindings.h"
#inclu... |
<commit_before>#include <functional>
#include "test_helpers.hxx"
using namespace std;
using namespace pqxx;
// Test program for libpqxx. Verify abort behaviour of RobustTransaction.
//
// The program will attempt to add an entry to a table called "pqxxevents",
// with a key column called "year"--and then abort the... |
<commit_before>// Copyright 2020 The TensorFlow Runtime Authors
//
// 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... |
<commit_before>#include "Bitmap.hpp"
#include <zlib.h>
Bitmap::Bitmap(AVFrame *frame) {
pix_fmt = static_cast<PixelFormat>(frame->format);
width = frame->width;
height = frame->height;
avpicture_alloc(&picture, pix_fmt, frame->width, frame->height);
av_image_copy(picture.data, picture.linesize, const_cast<const... |
<commit_before>#include <cstdint>
#include <utility>
#include "Buddha.h"
Buddha::Buddha(const Params & p, const std::size_t thread_vector_size)
: thread_vector_size_(thread_vector_size) {
x_size_ = p.width;
y_size_ = p.width;
radius_ = p.radius;
num_threads_ = p.num_threads;
max_iterations_ = p.... |
<commit_before>// Copyright (c) 2011 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.
#include "content/browser/file_system/file_system_dispatcher_host.h"
#include <string>
#include <vector>
#include "base/file_path.h"
... |
<commit_before>#include <cmath>
#include <vector>
#include "drake/systems/plants/collision/DrakeCollision.h"
#include "drake/systems/plants/collision/Model.h"
#include "gtest/gtest.h"
using Eigen::Isometry3d;
using Eigen::Vector3d;
using Eigen::AngleAxisd;
namespace DrakeCollision {
namespace {
/*
* Three bodies (... |
<commit_before>#include <include/base/cef_bind.h>
#include <brick/window/edit_account_window.h>
#include <error.h>
#include "brick/helper.h"
#include "brick/notification.h"
#include "brick/platform_util.h"
#include "app_message_delegate.h"
#include "brick/v8_handler.h"
#include "include/wrapper/cef_closure_task.h"
na... |
<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>
#include <binder/ProcessState.h>
#include <cutils/properties.h>
#include <utils/SystemClock.h>
#include <fcntl.h>
#include <time.h>
#include "libpreview.h"
#include "SimpleH264Encoder.h"
using android::Mutex;
libpreview::Client *libpreviewClient;
SimpleH264Encoder *simpleH264Encoder;
Mutex simpleH264... |
<commit_before>//---------------------------------------------------------------------------
/// \file es/storage.hpp
/// \brief The entity/component data store
//
// Copyright 2013-2014, nocte@hippie.nu Released under the MIT License.
//-------------------------------------------------------------------------... |
<commit_before>#include "utils.hpp"
struct tpool : densitas::core::thread_pool {
tpool(int max_threads)
: densitas::core::thread_pool(max_threads)
{}
std::size_t get_max_threads()
{
return max_threads_;
}
std::list<std::pair<std::shared_ptr<std::atomic_bool>, std::thread>>& get_... |
<commit_before>///
/// \author John Farrier
///
/// \copyright Copyright 2014 John Farrier
///
/// 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/LIC... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.