text
stringlengths
54
60.6k
<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 "chrome/browser/debugger/devtools_http_protocol_handler.h" #include "base/compiler_specific.h" #include "base/logging.h" #inc...
<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 file. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/extensions/browser_action_test_util.h" #include "chro...
<commit_before>// 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 "chrome/browser/renderer_host/render_message_filter.h" #include <fcntl.h> #include <map> #include "app/x11_util.h" #include ...
<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 <vector> #include "base/command_line.h" #include "base/lock.h" #include "base/path_service.h" #include "base/string_util.h" #...
<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: dx_textlayout.hxx,v $ * $Revisio...
<commit_before> /************************************************************************* * * $RCSfile: impdialog.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: pjunck $ $Date: 2004-10-28 09:39:52 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before> /************************************************************************* * * $RCSfile: svgimport.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: ka $ $Date: 2003-12-15 13:57:22 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2014 Paul Asmuth, Google Inc. * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public Licen...
<commit_before>// // File: edu_csdms_models_stm_DredgeSlotBW_Impl.hxx // Symbol: edu.csdms.models.stm.DredgeSlotBW-v0.0 // Symbol Type: class // Babel Version: 1.4.0 (Revision: 6607 release-1-4-0-branch) // Description: Server-side implementation for edu.csdms.models.stm.DredgeSlotBW // // WARNING...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: ImagePlaneWidget.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: Date.cxx,v $ * * $Revision: 1.22 $ * * last change: $Author: obo $ $Date: 2006-07-13 15:18:17 $ * * The Contents of this file are made av...
<commit_before>#include "thin-stack.h" using namespace std; namespace k = kernels; ThinStack::ThinStack(ModelSpec spec, ThinStackParameters params, cublasHandle_t handle) : spec(spec), params(params), stack_size(spec.seq_length), handle(handle) { stack_total_size = (stack_size * spec.batch_size) * spec.model...
<commit_before>/** @file Calculate some derivative metrics (for convenience). @section license License 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 ownershi...
<commit_before><commit_msg>[Smart Lock] Fix wrong condition for the branding in password generation.<commit_after><|endoftext|>
<commit_before>#include <sys/types.h> #include <sys/xattr.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include <sstream> #include <algorithm> #include "../fs/rm.hh" #include "../json/encoder.hh" #include "../stream/buffered-stream.hh" #include "../stream/copy.hh" #include "../stream/direct-fd-str...
<commit_before>/************************************************************************* * * $RCSfile: galexpl.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2004-10-12 14:13:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * $RCSfile: pordrop.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: fme $ $Date: 2001-10-19 08:38:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: xmlexp.hxx,v $ * * $Revision: 1.27 $ * * last change: $Author: rt $ $Date: 2004-05-03 13:14:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: swuiexp.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 07:15:56 $ * * The Contents of this file are made a...
<commit_before>#include "catch.hpp" #include "board.h" TEST_CASE("Pawn move generation is correct") { Board board; SECTION("White pawn moves are generated correctly from start position") { board.setToStartPos(); REQUIRE(board.getWhitePawnMoves().size() == 16); } SECTION("Black pawn moves...
<commit_before>/* idle_interface.hpp - This file is part of LVTK Copyright (C) 2013 Michael Fisher <mfisher31@gmail.com> This program 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 ve...
<commit_before>#include <iostream> #include <cstring> #include <cstdlib> #include "dacloud.h" using namespace std; int main(int argc, char *argv[]) { if (argc < 3) return (-1); string configpath = argv[1]; string useragent = argv[2]; da_cloud_config config; ::memset(&config, 0, sizeof(conf...
<commit_before>/** * For conditions of distribution and use, see copyright notice in license.txt * * @file InWorldChatModule.cpp * @brief Simple OpenSim world chat module. Listens for ChatFromSimulator packets and shows the chat on the UI. * Outgoing chat sent using ChatFromViewer packets. Mana...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MAIN for_each tests #include <boost/test/unit_test.hpp> #include <algorithm> #include <functional> #include <vector> #include <point.h> BOOST_AUTO_TEST_SUITE( for_each_test_suite ) BOOST_AUTO_TEST_CASE( sum_each_number ) { std::vector<int> numbers{1...
<commit_before>#include "ribbonanalysis.h" #include "ui_ribbonanalysis.h" #include <QMenu> #include <QDebug> RibbonAnalysis::RibbonAnalysis(QWidget *parent) : RibbonWidget(parent), ui(new Ui::RibbonAnalysis) { ui->setupUi(this); ui->bayesianPanel->hide(); //ui->bayesianSeparator->hide(); connect(ui->Descripti...
<commit_before>/* * Accounts and contacts model * This file is based on TelepathyQt4Yell Models * * Copyright (C) 2010 Collabora Ltd. <info@collabora.co.uk> * Copyright (C) 2011 Martin Klapetek <martin dot klapetek at gmail dot com> * * This library is free software; you can redistribute it and/or * modify it u...
<commit_before>/* License: Apache 2.0. See LICENSE file in root directory. Copyright(c) 2017 Intel Corporation. All Rights Reserved. */ #include "python.hpp" #include "../include/librealsense2/hpp/rs_sensor.hpp" #include "calibrated-sensor.h" void init_sensor(py::module &m) { /** rs_sensor.hpp **/ py::class_<...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: formsimp.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 14:11:01 $ * * The Contents of this file are made ...
<commit_before>/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
<commit_before>// ========================================================================== // // This file is part of DO++, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2013 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // Lic...
<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. #include "webkit/glue/webcursor.h" #include "webkit/glue/webkit_resources.h" #if defined(OS_WIN) #include "base/gfx/gdi_util.h" #...
<commit_before>/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2014-2015 Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
<commit_before>// // (c) Copyright 2017 DESY,ESS // // This file is part of h5pp. // // 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 o...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_LOCALOPERATOR_INTERFACES_HH #define DUNE_GDT_LOCALOPERATOR_INTERFACES_H...
<commit_before>/* Copyright (c) 2013 Daniele Bartolini, Michele Rossi Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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, i...
<commit_before>#include "gtest/gtest.h" #include "reply_message.h" #include "replies.pb.h" // Test that basic message serializing work TEST(MessagesReply, basic_serialize_reply) { std::string bytes; traffic::ReplyMessage msg; msg.serialize(bytes); ASSERT_TRUE(bytes.size() != 0U); replies::Reply rep; rep.Pars...
<commit_before><commit_msg>Reconstruct the code and add parameter for customize color.<commit_after><|endoftext|>
<commit_before><commit_msg>Bug fix: internals.textSurroundingNode crashes when the node is NULL<commit_after><|endoftext|>
<commit_before><commit_msg>Fix unsigned to signed comparison warning<commit_after><|endoftext|>
<commit_before> #include <KAI/Language/Pi/PiParser.h> #include <KAI/Language/Common/Structure.h> using namespace std; using namespace boost; KAI_BEGIN bool PiParser::Process(std::shared_ptr<Lexer> lex, Structure st) { current = 0; indent = 0; lexer = lex; if (lexer->Failed) { return Fail(lexer->Error); } ...
<commit_before> #include "gtest/gtest.h" #include "ColorDebug.hpp" #include "DtwCgdaRecognition.hpp" namespace teo { /** * @brief Tests ... */ class TestCgdaRecognitionLib : public testing::Test // -- inherit the Test class (gtest.h) { public: virtual void SetUp() { // -- code here will execute just ...
<commit_before>#include "test/test_common/environment.h" #include <sys/un.h> #include <unistd.h> #ifdef __has_include #if __has_include(<experimental/filesystem>) #include <experimental/filesystem> #endif #endif #include <fstream> #include <iostream> #include <regex> #include <sstream> #include <string> #include <uno...
<commit_before>#include <iostream> #include <string> #include <memory> #include "kangaru.hpp" /** * This example explains advanced use of kangaru and it's components. * It covers overriding services */ using namespace std; using namespace kgr; struct Wand { virtual void doTrick() = 0; }; struct MagicWand : Wan...
<commit_before>#include <iostream> #include <string> #include <memory> #include "kangaru.hpp" /** * This example explains advanced use of kangaru and it's components. * It covers invoke and autocall (injection by setters) through service map. */ // This is a utility macro to workaround the lack of type inference ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: attrlist.cxx,v $ * * $Revision: 1.15 $ * * last change: $Author: rt $ $Date: 2008-03-12 10:28:45 $ * * The Contents of this file are made...
<commit_before>// // parameters.hpp // yamcmc++ // // Created by Brandon Kelly on 4/15/13. // Copyright (c) 2013 Brandon Kelly. All rights reserved. // #ifndef yamcmc___parameters_hpp #define yamcmc___parameters_hpp // Standard includes #include <iostream> #include <string> // Boost includes #include <boost/ptr_c...
<commit_before>//=====================================================================// /*! @file @brief player クラス @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include <iostream> #include <algorithm> #include <boost/lexical_cast.hpp> #inclu...
<commit_before>#include <opencv2/highgui/highgui.hpp> #include "GoalDetector.hpp" using namespace std; using namespace cv; GoalDetector::GoalDetector(cv::Point2f fov_size, cv::Size frame_size, bool gui) : _goal_shape(3) { _goal_found = false; _fov_size = fov_size; _frame_size = frame_size; _draw = false; _min_v...
<commit_before>#include "BaseAuRegClass.h" /* All right reseved, Ethan Riley. :) */ std::vector<std::string> Regex_Search_Iterate(std::string input, boost::regex Regex) { std::string::const_iterator start = input.begin(); std::string::const_iterator end = input.end(); boost::smatch matches; std::vector<std::s...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Compositor. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of ...
<commit_before>/* * Copyright © 2019 Intel Corporation * * 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, copy, mod...
<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>// FindDlg.cpp : implementation file // #include "stdafx.h" #include "passwordsafe.h" #if defined(POCKET_PC) #include "pocketpc/resource.h" #else #include "resource.h" #endif #include "FindDlg.h" #include "DboxMain.h" #include "ThisMfcApp.h" // for disable/enable accel. #ifdef _DEBUG #define new D...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCDataNoSqlModule.h // @Author : LvSheng.Huang // @Date : 2012-12-15 // @Module : NFCDataNoSqlModule // Row,Col; ; ; ; ; ; ; // --------------------...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSim: StatesTrajectory.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>/* * Skaffari - a mail account administration web interface based on Cutelyst * Copyright (C) 2017 Matthias Fehring <kontakt@buschmann23.de> * * 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 F...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2013, Unbounded Robotics Inc. * Copyright (c) 2012, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or with...
<commit_before>/* This file is part of the clazy static checker. Copyright (C) 2015 Sergio Martins <smartins@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 the Free Software Foundation; either vers...
<commit_before>/*! \file * * \brief Storage of generic data via (key, value) pair (source) * \author Benjamin Pritchard (ben@bennyp.org) */ #include <boost/python.hpp> #include "bpmodule/options/OptionHolder.hpp" #include "bpmodule/options/OptionTypes.hpp" #include "bpmodule/output/Output.hpp" #include "bpmodul...
<commit_before>#include "acmacs-base/rjson-v3-helper.hh" #include "acmacs-chart-2/serum-circle.hh" #include "acmacs-map-draw/mapi-settings.hh" #include "acmacs-map-draw/select-filter.hh" #include "acmacs-map-draw/draw.hh" // ---------------------------------------------------------------------- static void report_cir...
<commit_before><commit_msg>Replaced `#include` line with a forward declaration.<commit_after><|endoftext|>
<commit_before>// OS-specific networking includes // ------------------------------- #ifdef __WIN32 #include <winsock2.h> typedef int socklen_t; #else extern "C" { #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #includ...
<commit_before>/// (c) Koheron #include "base.hpp" Base::Base(Klib::DevMem& dev_mem_) : dev_mem(dev_mem_), xadc(dev_mem_), gpio(dev_mem_) { dac_wfm_size = 0; status = CLOSED; } Base::~Base() { Close(); } # define MAP_SIZE 4096 int Base::Open(uint32_t dac_wfm_size_) { // Reopening if(statu...
<commit_before>// // Copyright (c) 2008-2014 the Urho3D project. // // 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...
<commit_before>/* * GameKeeper Framework * * Copyright (C) 2013 Karol Herbst <gamekeeper@karolherbst.de> * * 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 ...
<commit_before>//------------------------------------------------------------------------------ // Copyright (c) 2016 John D. Haughton // // 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 wi...
<commit_before>#include "catch.hpp" #include <utility> #include <type_traits> #include <iterator> #include <algorithm> #include <member_iterator.hpp> #include <forward_list> TEST_CASE("member_iterator based on ForwardIterator", "[member_iterator]") { struct mock { char c; int i; }; ...
<commit_before>#include "SpriteBatch.h" #include "../Objects/Object.h" #include "../StarComponents.h" #include "../Scenes/SceneManager.h" #include "GraphicsManager.h" #include "../Components/CameraComponent.h" #include "../Objects/FreeCamera.h" #include "../Scenes/BaseScene.h" #include <algorithm> #include ".....
<commit_before>/** * Touhou Community Reliant Automatic Patcher * Tasogare Frontier support plugin * * ---- * * On-the-fly th175 pl patcher */ #include <thcrap.h> #include "thcrap_tasofro.h" static void copy_line(const char*& file_in, const char *file_in_end, char*& file_out) { const char *search_end =...
<commit_before>/* job.cpp * Copyright (C) 2003-2005 Tommi Maekitalo * * This program 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 la...
<commit_before>#include "editor.h" using namespace fei; void EditorScene::init() { _editState = EditState::NONE; _mouseDown = false; _needInitUILayout = false; _editCircle.setRadius(64.0f); _editPolygon.setSolid(false); _editShapeObj.setColorAlpha(0.5f); Physics::getInstance()->setDoDebugDraw(true); Physics...
<commit_before>// ImGui - standalone example application for SDL2 + OpenGL #include <imgui.h> #include "imgui_impl_sdl.h" #include <stdio.h> #include <SDL.h> #include <SDL_opengl.h> int main(int, char**) { // Setup SDL if (SDL_Init(SDL_INIT_EVERYTHING) != 0) return -1; // Setup window SDL_GL_SetAtt...
<commit_before>// Copyright 2014 Duncan Smith // https://github.com/dusmith1974/osoa // // 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>/** * \file table_obj_seg.cpp * \author Zhen Zeng (zengzhen@umich.edu) */ #include <iostream> #include <pcl/io/pcd_io.h> #include "ros_sec/TableObjectSegmentation/table_obj_seg.h" #include <pcl/surface/convex_hull.h> #include <pcl/segmentation/extract_polygonal_prism_data.h> // #includ...
<commit_before>// @(#)root/cintex:$Id$ // Author: Pere Mato 2005 // Copyright CERN, CH-1211 Geneva 23, 2004-2005, All rights reserved. // // Permission to use, copy, modify, and distribute this software for any // purpose is hereby granted without fee, provided that this copyright and // permissions notice appear in a...
<commit_before>/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directo...
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html // rapicorn-zintern - small C source compression utility #include <cxxaux.hh> #include <glib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <zlib.h> #include <string> typedef Rapicorn::uint8 uint8; typedef std...
<commit_before>// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "SoundData.h" #include "core/Engine.h" #include "utils/Utils.h" namespace ouzel { namespace audio { SoundData::SoundData() { } SoundData::~SoundData() { } ...
<commit_before>/* Copyright (c) 2015-2021 Alternative Games Ltd / Turo Lamminen 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 "ompl/extension/samplingbased/kinematic/extension/rrt/RRT.h" bool ompl::RRT::solve(double solveTime) { SpaceInformationKinematic_t si = dynamic_cast<SpaceInformationKinematic_t>(m_si); SpaceInformationKinematic::GoalRegionKinematic_t goal_r = dynamic_cast<Space...
<commit_before>#include <vector> #include <sstream> #include <iostream> #include <cstdlib> #include "test_util.hh" #include "reader.hh" #include "printer.hh" #include "eval.hh" #include "builtin_util.hh" #include "vm.hh" using namespace std; Lisp_ptr read_from_string(const char* s){ stringstream ss(s); return rea...
<commit_before>#include <boost/algorithm/string/predicate.hpp> #include <boost/foreach.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <cfloat> #include <time.h> #include "CurlHelpers.h" #include "DriverDomoticz.h" typedef std::pair<const std::string, boost::prope...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2016 Esteban Tovagliari, The appleseedhq Organization // // Permission is hereby granted, free of charge, to ...
<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> #ifndef WIN32 # include <iostream> # include <string> # include <cstring> # include <algorithm> # include <stdexcept> # include <unistd.h> # include <sys/select.h> # include <sys/types.h> # include <sys/wait.h> # include <sys/time.h> # include <cstdio> # include <errno.h> # include <fcntl.h> # include...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do ...
<commit_before>// // GameEngine.cpp // yamiHikariGame // // Created by slightair on 2013/07/28. // // #include "GameEngine.h" #include "SimpleAudioEngine.h" #include "sha1.h" #include "Constants.h" #include "GameCenter.h" #include "TitleScene.h" #include "TutorialScene.h" #include "GameScene.h" #include "ResultScen...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/fnet/fnet.h> #include "dummy.h" TEST("lock speed") { FastOS_Time start; FastOS_Time stop; DummyLock ...
<commit_before>#include "FrameMetaData.h" namespace FrameProcessor { FrameMetaData::FrameMetaData(const long long& frame_number, const std::string &dataset_name, const DataType &data_type, const std::string &a...
<commit_before>// MathLib.cpp // This file is part of the EScript programming language. // See copyright notice in EScript.h // ------------------------------------------------------ #include "MathLib.h" #define _USE_MATH_DEFINES #include <cmath> #ifndef M_PI #define M_PI 3.14159265358979323846 #define M_PI_2 1.5707...
<commit_before><commit_msg>Resolve TODO. Fix memory leak.<commit_after><|endoftext|>
<commit_before><commit_msg>Don't crash on startup.<commit_after><|endoftext|>
<commit_before><commit_msg>added documentation to boundSegmentNonLinear function<commit_after><|endoftext|>
<commit_before>#include <memory> #include <vector> #include <SDL2/SDL.h> #include <SDL2/SDL_opengles2.h> #include "engine/shader.hpp" #include "engine/shader_program.hpp" #include "engine/vertex_buffer.hpp" #include "engine/window.hpp" #include "modules/static_triangle.hpp" namespace static_triangle { const std:...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Module: FGAerodynamics.cpp Author: Jon S. Berndt Date started: 09/13/00 Purpose: Encapsulates the aerodynamic forces (gear and collision) ------------- Copyright (C) 2000 Jon S. Berndt (jsb@hal-pc.or...
<commit_before>#include <iostream> #include <chirp/chirp.hpp> #include <thread> #include <iostream> /// /// Main entry point /// int main() { try { chirp::audio_platform platform; auto device = platform.default_output_device(); auto audio = device.create_audio( {44100, chirp::sixteen_bits_little_endian_stereo}...
<commit_before>// // KinematicsSimulator.cpp // GPcode01_01_xcode // // Created by young-min kang on 3/27/15. // Copyright (c) 2015 young-min kang. All rights reserved. // #include "KinematicsSimulator.h" CKinematicSimulator::CKinematicSimulator() : CSimulator() {} void CKinematicSimulator::init() { initialLoc...
<commit_before>#include <iostream> #include <typeinfo> #include <map> using std::cout; using std::endl; #include "viennagrid/forwards.hpp" #include "viennagrid/storage/view.hpp" #include "viennagrid/storage/container_collection.hpp" #include "viennagrid/storage/inserter.hpp" #include "viennagrid/storage/id_generat...
<commit_before>#ifndef DUNE_GDT_ASSEMBLER_WRAPPER_HH #define DUNE_GDT_ASSEMBLER_WRAPPER_HH #include <type_traits> #include <dune/stuff/common/tmp-storage.hh> #include <dune/stuff/la/container/interfaces.hh> #include <dune/stuff/grid/walker.hh> #include <dune/stuff/grid/walker/apply-on.hh> #include <dune/stuff/grid/wa...