text
stringlengths
54
60.6k
<commit_before><commit_msg>Add the answer to the fifth question of Chapter 2<commit_after><|endoftext|>
<commit_before>/************************************************************************** * * Copyright 2014 Valve Software. 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 t...
<commit_before>// @(#)root/main:$Name: $:$Id: pmain.cxx,v 1.13 2007/01/23 11:31:33 rdm Exp $ // Author: Fons Rademakers 15/02/97 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>/* * Phusion Passenger - http://www.modrails.com/ * Copyright (c) 2010 Phusion * * "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>/* t-various.cpp This file is part of qgpgme, the Qt API binding for gpgme Copyright (c) 2017 Intevation GmbH QGpgME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either vers...
<commit_before>/** * @file ProcessManagerTest.cpp * @brief ProcessManager class tester. * @author zer0 * @date 2017-07-29 */ #include <gtest/gtest.h> #include <libtbag/log/Log.hpp> #include <libtbag/uvpp/Loop.hpp> #include <libtbag/process/ProcessManager.hpp> #include <libtbag/filesystem/Path.hpp> using nam...
<commit_before>/* opendatacon * * Copyright (c) 2014: * * DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi * yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA== * * 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 ...
<commit_before>// --------------------------------------------------------------------- // $Id$ // // Copyright (C) 2004 - 2013 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the G...
<commit_before>#ifndef JOINT_CPP_STRING_HPP #define JOINT_CPP_STRING_HPP #include <algorithm> #include <joint.cpp/BytesView.hpp> #include <joint.cpp/detail/Iterator.hpp> namespace joint { class Utf32View { typedef char Byte; typedef uint32_t value_type; public: class iterator : public detail::IteratorOp...
<commit_before>//===------- MicrosoftCXXABI.cpp - AST support for the Microsoft C++ ABI --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===- lib/Linker/LinkArchives.cpp - Link LLVM objects and libraries ------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before><commit_msg>loplugin:cstylecast<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distribu...
<commit_before>//======================================================================= // Copyright (c) 2014-2015 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>/*********************************************************************** filename: CEGUIPCRERegexMatcher.cpp created: Mon Jul 27 2009 author: Paul D Turner <paul@cegui.org.uk> *************************************************************************/ /********************************...
<commit_before>/************************************************************************** * * Copyright 2014 VMware, Inc * 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 th...
<commit_before>// Copyright (c) 2020 ASMlover. 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 o...
<commit_before>/* * MIT License * * Copyright (c) 2017 Richard Hartmann * * 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 rig...
<commit_before>#include <stdarg.h> #include <stdint.h> #define WEAK __attribute__((weak)) extern "C" { extern void __android_log_vprint(int, const char *, const char *, va_list); extern uint32_t fwrite(void *, uint32_t, uint32_t, void *); extern void *fopen(const char *, const char *); extern void fclose(void *); ...
<commit_before>#pragma once #include "greens/Greens.hpp" #include "numeric/sparse.hpp" #include "compute/lanczos.hpp" #include "detail/macros.hpp" namespace tbm { namespace kpm { /** Computes and stores the KPM scaling parameters `a` and `b` based on the energy bounds (min and max eigenvalue) of the Hamiltonian. Th...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice 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 ...
<commit_before>/* * Copyright 2017 Facebook, 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 applicable l...
<commit_before>/* * Copyright 2016 Facebook, 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 applicable l...
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" #ident "Copyright (c) 2010 Tokutek Inc. All rights reserved." #ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (info@qt.nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>#include "SampleCode.h" #include "SkView.h" #include "SkCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" #include "SkImageDecoder.h" #include "SkPath.h" #include "SkRegion.h" #include "SkShader.h" #include "SkUtils.h" #include "SkXfermode.h" #include "SkComposeShader.h" #include "SkColorPr...
<commit_before>/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SampleCode.h" #include "SkDumpCanvas.h" #include "SkView.h" #include "SkCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" #include "SkIm...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>// Copyright (c) 2012 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-CHROMIUM file. #include "common/main_delegate.h" #include <memory> #include "browser/browser_client.h" #include "common/content_client.h" ...
<commit_before>/** * \file py_calc_model.cpp * \brief Python wrappers for calc_model, calc_model_data * \author Sergey Miryanov * \date 02.12.2009 * \copyright This source code is released under the terms of * the BSD License. See LICENSE for more details. * */ #include "...
<commit_before>// Logger.cpp // This file is part of the EScript programming language. // See copyright notice in EScript.h // ------------------------------------------------------ #include "Logger.h" #include <stdexcept> #include <iostream> namespace EScript{ // ------------------------------------------------ //...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include "mag3110.h" mag3110::mag3110() { read_position = 0; write_position = 0; fill = 0; } mag3110::~mag3110() {} byte mag3110::fastread(void){ Wire.beginTransmission(MAG_ADDR); // transmit to device 0x0E Wire.write(MAG_X_REG); // x MSB reg Wire.endTransmission(); // s...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include <memory> #include <iostream> #include <QDebug> #include "communication/Crazyflie.h" #include <QMessageBox> #include "opencv2/opencv.hpp" #include "actual_values_model.h" #include "parameter_model.h" #include <QTableView> void SetupTableViewWi...
<commit_before><commit_msg>#include what you use: <Security/Security.h> for SecKeychainAddCallback and friends following r43492.<commit_after><|endoftext|>
<commit_before><commit_msg>Looks like both VideoBearTheora and VideoBearSilentTheora are crashy.<commit_after><|endoftext|>
<commit_before><commit_msg>Restoring the old media UI test before the move from ui_test to interactive_uitest.<commit_after>// Copyright (c) 2009 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/basictypes....
<commit_before><commit_msg>Fix for spell check toggle checkbox not getting selected after reset to default button is clicked. Patch by tfarina (original patch: http://codereview.chromium.org/165524)<commit_after><|endoftext|>
<commit_before><commit_msg>Linux: fix "goats teleported" task manager column. Some glibc library functions behave a little differently than Windows so this column was not working correctly. BUG=none TEST=none<commit_after><|endoftext|>
<commit_before>#include <algorithm> #include <iostream> #include <iterator> #include <string> #include <vector> namespace { class person_t final { public: enum gender_t { male, female, other }; person_t() : name_{ "none" }, gender_{ gender_t::male } { } person_t(std::string const& n...
<commit_before>#include "Base.h" #include "BoundingBox.h" #include "BoundingSphere.h" #include "Plane.h" namespace gameplay { BoundingBox::BoundingBox() { } BoundingBox::BoundingBox(const Vector3& min, const Vector3& max) { set(min, max); } BoundingBox::BoundingBox(const BoundingBox& copy) { ...
<commit_before>/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this fil...
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>// // CartridgePitfall2.h // Clock Signal // // Created by Thomas Harte on 18/03/2017. // Copyright © 2017 Thomas Harte. All rights reserved. // #ifndef Atari2600_CartridgePitfall2_hpp #define Atari2600_CartridgePitfall2_hpp namespace Atari2600 { class CartridgePitfall2: public Cartridge<Cartridge...
<commit_before>//Fitting a TGraph2D //Author: Olivier Couet #include <TMath.h> #include <TGraph2D.h> #include <TRandom.h> #include <TStyle.h> #include <TCanvas.h> #include <TF2.h> #include <TH1.h> TCanvas* graph2dfit() { gStyle->SetOptStat(0); gStyle->SetOptFit(); TCanvas *c = new TCanvas("c","Graph2D examp...
<commit_before>// ConstrainedObject.cpp // Copyright (c) 2009, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "Constraint.h" #include "ConstrainedObject.h" #include "../tinyxml/tinyxml.h" std::string AbsoluteAngle[] = { "AbsoluteAng...
<commit_before>#include <algorithm> #include <iomanip> #include <ios> #include <iostream> #include <stdexcept> #include <string> #include <vector> using std::cin; using std::setprecision; using std::cout; using std::string; using std::endl; using std::streamsize; using ...
<commit_before>#include "GameWindow.h" GameWindow::GameWindow(QMainWindow *parent) : QMainWindow(parent), m_fpga(this), m_game() { /****General setup****/ this->setWindowTitle("Scorch"); this->setStatusBar(new QStatusBar); this->setWindowIcon(QIcon(QPixmap(":/resources/icon_big.png"))); setFocus(); setStyl...
<commit_before>#include "Genes/Gene.h" #include <cmath> #include <iostream> #include <algorithm> #include <utility> #include <map> #include <fstream> #include <numeric> #include <iterator> #include "Game/Board.h" #include "Game/Color.h" #include "Utility/Random.h" #include "Utility/String.h" #include "Utility/Except...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include "IndexWri...
<commit_before> #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "MobSpawner.h" #include "Mobs/IncludeAllMonsters.h" cMobSpawner::cMobSpawner(cMonster::eFamily a_MonsterFamily, const std::set<eMonsterType>& a_AllowedTypes) : m_MonsterFamily(a_MonsterFamily),...
<commit_before>#include "Moves/Move.h" #include <cassert> #include "Game/Board.h" #include "Pieces/Piece.h" #include "Utility.h" #include "Exceptions/Illegal_Move_Exception.h" Move::Move(char file_start, int rank_start, char file_end, int rank_end) : starting_file(file_start), ...
<commit_before>#include <array> #include <string> #include <pcap/pcap.h> #include "PcapSource.h" using namespace regexbench; class Pcap { public: Pcap() = delete; explicit Pcap(const std::string &filename); Pcap(const Pcap &) = delete; Pcap(Pcap &&o) : handle(o.handle) { o.handle = nullptr; } ~Pcap() { if...
<commit_before>#include "PlatformId.h" #include <string.h> extern const char* mameNameToRealName[]; namespace PlatformIds { const char* PlatformNames[PLATFORM_COUNT + 1] = { "unknown", // nothing set "3do", "amiga", "amstradcpc", "apple2", "arcade", "atari800", "atari2600", "atari5200", "atari78...
<commit_before>#include "PlatformId.h" namespace PlatformIds { const char* PlatformNames[PLATFORM_COUNT + 1] = { "unknown", // = 0, "3do", // = 1, "amiga", // = 2, "arcade", // = 3, "atari2600", // = 4, "atari5200", // = 5, "atari7800", // = 6, "atariJaguar", // = 7, "atariJaguarCD", // = 8, "ata...
<commit_before>//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include <algorithm> #include <limits> #include "Application.h" //To get settings. #include "ExtruderTrain.h" #include "gcodeExport.h" #include "infill.h" #include "LayerPlan.h" #include "PrimeTower.h"...
<commit_before>#include "Rasterizer.h" Rasterizer::Rasterizer() : Renderer() { } Rasterizer::Rasterizer(World* world) : Renderer(world) { } Rasterizer::~Rasterizer() { } const Fragment Rasterizer::calculateFragmentAttributes(const Triangle3D& triangle_world, const Point3D& point_world, const Material& materi...
<commit_before>#include "SkipStages.h" #include "IRMutator.h" #include "IRPrinter.h" #include "IROperator.h" #include "Scope.h" #include "Simplify.h" #include "Substitute.h" #include "ExprUsesVar.h" namespace Halide { namespace Internal { using std::string; using std::vector; using std::map; class PredicateFinder : ...
<commit_before>#include "SystemData.h" #include "GameData.h" #include "XMLReader.h" #include <boost/filesystem.hpp> #include <fstream> #include <stdlib.h> #include <SDL_joystick.h> #include "Renderer.h" #include "AudioManager.h" #include "VolumeControl.h" #include "Log.h" #include "InputManager.h" #include <iostream> #...
<commit_before>#include <vector> #include "TH1D.h" #include "TList.h" #include "RooAddPdf.h" #include "RooArgSet.h" #include "RooRealVar.h" #include "RooCategory.h" #include "RooDataSet.h" #include "RooKeysPdf.h" #include "FitTools.h" using namespace RooFit; ClassImp(FitTools) //---------------------------------...
<commit_before>#ifdef _WINDOWS /* * NOTE: Some macros must be defined in project options of Visual Studio. * - _CRT_SECURE_NO_WARNINGS * To use strncpy(). * - NOMINMAX * To use std::min(), std::max(). */ #include <windows.h> BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for...
<commit_before>#include <iostream> #include <vector> using namespace std; class MyData { public: const int foo; int bar; MyData(const int& _initBar ) : foo(_initBar) { bar = _initBar; //some cool operation to set up bar } void update(const int& _newbar) { bar = _newbar;}; string ...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2010-2015 Belledonne Communications SARL, All rights reserved. This program 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 S...
<commit_before>#include <napi.h> #include <string> #include <cstring> #include <vector> #include <stdlib.h> // atoi #include "node_blf.h" #define NODE_LESS_THAN (!(NODE_VERSION_AT_LEAST(0, 5, 4))) namespace { bool ValidateSalt(const char* salt) { if (!salt || *salt != '$') { return false; } /...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/* * This file is part of the PySide project. * * Copyright (C) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). * * Contact: PySide team <contact@pyside.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License a...
<commit_before>#include <iostream> #include <fstream> #include "vecrand.hpp" #include "interaction.hpp" #include "collection.hpp" // Some constants // Note that "flt" is a "floating point number", defaults to "double" // but can be compiled as "long double" if needed const flt sigma = 1.0; const flt sigmal = 1.4; con...
<commit_before>/* * Jamoma 2-Dimensional Matrix Data Class * Copyright © 2011-2012, Timothy Place & Nathan Wolek * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "TTMatrix.h" #include "TTEnvironment.h" #include "TTBase.h" #define ...
<commit_before>// bitmessage cracker, build with g++ or MSVS to a shared library, use included python code for usage under bitmessage #ifdef _WIN32 #include "Winsock.h" #include "Windows.h" #define uint64_t unsigned __int64 #else #include <arpa/inet.h> #include <pthread.h> #include <stdint.h> #endif #include <string.h>...
<commit_before><commit_msg>Make setSinkId try to set the sink even if the given new sinkId equals the current sinkId.<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: styledlg.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-08 21:53:29 $ * * The Contents of this file are made ...
<commit_before><commit_msg>fixed coherent scattering unit test: but scattering angle accuracy is still less than ideal<commit_after><|endoftext|>
<commit_before>/* * * Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker 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, ...
<commit_before>#include <../tst_qmimedatabase.h> #include <QDir> #include <QFile> #include <QtTest> #include <qstandardpaths.h> #include "../tst_qmimedatabase.cpp" tst_qmimedatabase::tst_qmimedatabase() { qputenv("XDG_DATA_HOME", QByteArray("doesnotexist")); // Copy SRCDIR "../../../src/mimetypes/mime to a te...
<commit_before>/*! @file @copyright Edouard Alligand and Joel Falcou 2015-2017 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_BRIGAND_FUNCTIONS_COMPARISON_NOT_EQUAL_TO_HPP #define BOOST_BRIGAND_FUNCTIONS_COMPARISON_NOT_EQUAL_TO_HPP #include <brigand/types/bool.hpp> nam...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestDiagram.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Thi...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice 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 ...
<commit_before>/// @file /// @copyright The code is licensed under the BSD License /// <http://opensource.org/licenses/BSD-2-Clause>, /// Copyright (c) 2012-2015 Alexandre Hamez. /// @author Alexandre Hamez #pragma once #include <functional> // reference_wrapper #include <limits> #include <numeri...
<commit_before>/* * Copyright 2015 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. Al...
<commit_before>#pragma once #include <memory> #include <type_traits> namespace cu { template <typename T> std::unique_ptr<std::decay_t<T>> to_unique_ptr( T && x ) { return std::make_unique<std::decay_t<T>>( std::forward<T>(x) ); } template <typename T> std::shared_ptr<std::decay_t<T>> to_shared_ptr( T && x ) { ...
<commit_before>// @(#)root/cont:$Name: $:$Id: TProcessID.cxx,v 1.8 2001/12/02 15:11:32 brun Exp $ // Author: Rene Brun 28/09/2001 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before><commit_msg>improved comments<commit_after><|endoftext|>
<commit_before>/*$Id$ * * This source file is a part of the Berlin Project. * Copyright (C) 1999 Stefan Seefeld <stefan@berlin-consortium.org> * http://www.berlin-consortium.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * Lic...
<commit_before>#include "drake/examples/Cars/car_simulation.h" #include <cstdlib> #include "drake/examples/Cars/curve2.h" #include "drake/examples/Cars/gen/euler_floating_joint_state.h" #include "drake/examples/Cars/gen/simple_car_state.h" #include "drake/examples/Cars/trajectory_car.h" using drake::AffineSystem; us...
<commit_before>// Copyright 2012 Cloudera 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 applicable law or ...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBenchmark.h" #include "SkBitmap.h" #include "SkCanvas.h" #include "SkColorPriv.h" #include "SkGradientShader.h" #include "SkPaint.h" #include "SkSha...
<commit_before>#ifdef VM_HAS_CSS #include "mozart.hh" #include <gtest/gtest.h> #include "testutils.hh" using namespace mozart; class CstTest : public MozartTest {}; TEST_F(CstTest, IntVarLike) { nativeint x = -5; UnstableNode xNode = SmallInt::build(vm,x); EXPECT_TRUE(IntVarLike(xNode).isIntVarLike(vm)); } ...
<commit_before>// Time: O(n) // Space: O(n) class Solution { public: /** * @param expression: a vector of strings; * @return: an integer */ int evaluateExpression(vector<string> &expression) { if (expression.empty()) { return 0; } vector<string> postfix; ...
<commit_before>/* * Copyright (c) 2016, Graphics Lab, Georgia Tech Research Corporation * Copyright (c) 2016, Humanoid Lab, Georgia Tech Research Corporation * Copyright (c) 2016, Personal Robotics Lab, Carnegie Mellon University * All rights reserved. * * This file is provided under the following "BSD-style" Lic...
<commit_before>//============================================================================= // ■ map.cpp //----------------------------------------------------------------------------- // 地图类 //============================================================================= #include "tiled_map.hpp" #include "glm/gtc...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkPipelineGraphSource.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details...
<commit_before>#include <iostream> #include <vector> #include <Eigen/Dense> #include "roadnet.hpp" int main() { Eigen::Vector3d transform( 1.0, 0.0, 1.6 ); RoadNetwork rd( 2.0, transform, 2, 3 ); std::cout << rd << std::endl; double x, y; rd.map_point( 0, 0, x, y ); std::cout << "(0, 0) -> (...
<commit_before>#ifndef AB_ASSERT_HPP_ #define AB_ASSERT_HPP_ #include <Ab/Config.hpp> #include <Ab/CppUtilities.hpp> #include <cstdio> #include <cstdlib> #include <fmt/core.h> #include <iostream> #include <sstream> namespace Ab { /// Crash the process. This call should be catchable by a native debugger. /// [[noretu...
<commit_before>//@author A0097630B #include "stdafx.h" #include <boost/date_time/gregorian/gregorian.hpp> #include <boost/format.hpp> #include <boost/lexical_cast.hpp> #include "add_query.h" namespace { /// The format for displaying an ADD_QUERY const boost::wformat STRING_FORMAT(L"%1% (deadline %2%, %3% priority, %...
<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>/* * _____ ___ ___ | * | _ |___ ___ _ _|_ |_ | | C/C++ framework for 32-bit AVRs * | | -_| _| | |_ | _| | * |__|__|___|_| |_ |___|___| | https://github.com/aery32 * |___| | * * Copyright (c) 2012-2013, Muiku Oy * All rights reserved. * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: aqua_clipboard.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-08 18:08:25 $ * * The Contents of this file are...
<commit_before>// This file is part of the dune-pymor project: // https://github.com/pyMor/dune-pymor // Copyright Holders: Felix Albrecht, Stephan Rave // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_PYMOR_LA_CONTAINER_INTERFACES_HH #define DUNE_PYMOR_LA_CONTAINER_INTERFA...
<commit_before>// the general scene file loading handler #include <OpenSG/OSGSceneFileHandler.h> #include <OpenSG/OSGVerifyGraphOp.h> #include <OpenSG/OSGModelRequest.h> #include <iostream> OSG_USING_NAMESPACE OSG_BEGIN_NAMESPACE ModelRequest::ModelRequest() : mParent(NullFC) , mModel (NullFC) {;} ModelReques...
<commit_before>#include "bufferAgent.h" using boost::shared_ptr; using boost::thread; using boost::bind; using std::string; namespace veil { namespace helpers { BufferAgent::BufferAgent(write_fun w, read_fun r) : m_agentActive(false), doWrite(w), doRead(r) { agentStart(); } BufferAgent::~BufferAgent()...