conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Write quaternion components instead of Euler angles\n"
},
{
"from": "human",
"value": "// Based on Euler.ino example\n\n#include \"NAxisMotion.h\"\n\nNAxisMotion imu;\nunsigned long prevTime = 0;\nconst int streamPeriod = 20; // ms\n\nvoid setup()\n{\n Serial.begin... | c++ | chosen |
[
{
"from": "system",
"value": "Check the output of this test.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@105434 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "// RUN: %clang_cc1 %s -emit-llvm-only -verify\n// PR7291\n\nstruct Foo {\n unsigned file_id;\n\... | c++ | chosen |
[
{
"from": "system",
"value": "Fix bug in test; found by AddressSanitizer\n\ngit-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@177464 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "//===----------------------------------------------------------------------===//\n//\n//... | c++ | chosen |
[
{
"from": "system",
"value": "Replace malloc / free by new / delete for MICROFEATURE\n\nSigned-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>\n"
},
{
"from": "human",
"value": "/******************************************************************************\n ** Filena... | c++ | chosen |
[
{
"from": "system",
"value": "aura: Write initial browser window file from IO thread.\n\nI was carelessly doing this from the UI thread before. :-(\n\nBUG=107938\nTEST=none\n\nReview URL: http://codereview.chromium.org/8993012\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@115429 0039d316-1c4b-4281... | c++ | chosen |
[
{
"from": "system",
"value": "Fix build with stub implementation\n\n"
},
{
"from": "human",
"value": "#include \"qtfirebaseanalytics.h\"\n#include \"qtfirebaseremoteconfig.h\"\n#include \"qtfirebaseadmob.h\"\n#include \"qtfirebaseauth.h\"\n#include \"qtfirebasedatabase.h\"\n\n#ifdef QTFIREBASE_B... | c++ | chosen |
[
{
"from": "system",
"value": "Update : make the updates.enabled switch usefull\n\nSigned-off-by: Nicolas Adenis-Lamarre <dc6fdc1a9744a7ef1c7adc041d3cf105890663bc@gmail.com>\n"
},
{
"from": "human",
"value": "/* \n * File: NetworkThread.cpp\n * Author: matthieu\n * \n * Created on 6 février 201... | c++ | chosen |
[
{
"from": "system",
"value": "Adjust tap throttle max persistence queue size up to 500k\n\nChange-Id: I0e38be6bc984a47f3c8157a39ad2c10a886b6e33\nReviewed-on: http://review.membase.org/3867\nTested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>\nReviewed-by: Trond Norbye <60edd2ef23891... | c++ | chosen |
[
{
"from": "system",
"value": "Add sleep in WebSocket poll\n"
},
{
"from": "human",
"value": "#include \"WebSocketWrapper.hpp\"\n\n#include <iostream>\n\nusing namespace rtcdcpp;\n\nWebSocketWrapper::WebSocketWrapper(std::string url) : url(url), send_queue() { ; }\n\nWebSocketWrapper::~WebSocketW... | c++ | chosen |
[
{
"from": "system",
"value": "[SofaKernel] Add a TODO to not forget some tasks\n"
},
{
"from": "human",
"value": "#define SOFA_COMPONENT_COLLISION_CYLINDERMODEL_CPP\n#include \"CylinderModel.inl\"\n\nnamespace sofa\n{\n\nnamespace component\n{\n\nnamespace collision\n{\n\nusing namespace sofa::d... | c++ | chosen |
[
{
"from": "system",
"value": "Improve edge detector (fix overflow)\n\nFormer-commit-id: 34d9d1e630c8195888530530f806efd1f9132137"
},
{
"from": "human",
"value": "#include \"Halide.h\"\n\nnamespace {\n\nclass EdgeDetect : public Halide::Generator<EdgeDetect> {\npublic:\n ImageParam input{ UInt... | c++ | chosen |
[
{
"from": "system",
"value": "Use the Fusion Qt Style on OS X\n\nThis fixes issues with checkboxes and radio buttons not being rendered\nat the appropriate location on newer version of OS X.\n"
},
{
"from": "human",
"value": "#include \"Server.h\"\n#include \"IgnoreDebugOutput.h\"\n#include \"St... | c++ | chosen |
[
{
"from": "system",
"value": "Use QScopedPointer instead of std::auto_ptr, per Daniel's request\n"
},
{
"from": "human",
"value": "#include <QtCore/QSettings>\n#include <QtCore/QVariant>\n#include <QtGui/QApplication>\n#include <QtGui/QFont>\n\n#include <memory>\n\nextern \"C\" {\n#include <libx... | c++ | chosen |
[
{
"from": "system",
"value": "Correct syntax error in line 25\n"
},
{
"from": "human",
"value": "#include<cmath>\n#include<iostream>\n\nusing namespace std;\n\nbool isPrimeBruteForce(int x)\n{\n\tif (x < 2)\n\t\treturn false;\n\tfloat sqroot_x = sqrt(x);\n\tfor(int i=0; i <= sqroot_x; i++) { /* ... | c++ | chosen |
[
{
"from": "system",
"value": "Reduce WebSocket poll delay to 50ms\n"
},
{
"from": "human",
"value": "#include \"WebSocketWrapper.hpp\"\n#include <thread>\n#include <iostream>\n\nusing namespace rtcdcpp;\n\nWebSocketWrapper::WebSocketWrapper(std::string url) : url(url), send_queue() { ; }\n\nWebS... | c++ | chosen |
[
{
"from": "system",
"value": "Add simple C++ stub for testing protobuf definitions\n"
},
{
"from": "human",
"value": "#include <iostream>\n\n#include \"absl/strings/str_cat.h\"\n#include \"absl/strings/string_view.h\"\n#include \"google/protobuf/util/json_util.h\"\n\n#include \"src/protobuf/test... | c++ | chosen |
[
{
"from": "system",
"value": "Use the engine to create a game window\n\nModifies the main unit, so that it will use the Advanced Graphics\nEngine. The engine creates an 800x600 window and renders\nthe minesweeper tiles' texture in the top-left corner.\n"
},
{
"from": "human",
"value": "#include ... | c++ | chosen |
[
{
"from": "system",
"value": "Add missing header file for Ubuntu Jaunty and beyond\n"
},
{
"from": "human",
"value": "/*\n * BasicLayout.cpp\n *\n * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.\n * Copyright 2000, Bastiaan Bakker. All rights reserved.\n *\n * See ... | c++ | chosen |
[
{
"from": "system",
"value": "Use Parser module to parse a file\n"
},
{
"from": "human",
"value": "#include \"Interpreter.hpp\"\n\n#include \"modules/error-handler/ErrorHandler.hpp\"\n#include \"modules/lexer/Lexer.hpp\"\n\n#include <iostream>\n\nusing Interpreter = tkom::Interpreter;\nusing Err... | c++ | chosen |
[
{
"from": "system",
"value": "Mark ExtensionApiTest.Popup as FLAKY, it is still flaky.\n\nTBR=twiz\n\nBUG=46601\nTEST=browser_tests\n\nReview URL: http://codereview.chromium.org/3356001\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@58208 0039d316-1c4b-4281-b951-d872f2087c98\n"
},
{
"from":... | c++ | chosen |
[
{
"from": "system",
"value": "[chromedriver] Set mobile=true when calling setDeviceMetricsOverride\n\nBUG=chromedriver:944\nTBR=stgao@chromium.org\n\nReview URL: https://codereview.chromium.org/668783002\n\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#300390}\n"
},
{
"from": "human... | c++ | chosen |
[
{
"from": "system",
"value": "Fix recursive add of octreelevels in SceneGroup\n"
},
{
"from": "human",
"value": "#include \"scene/scenegroup.hpp\"\n\n#include <algorithm>\n\nusing namespace scene;\n\nSceneGroup::SceneGroup(unsigned int octreeLevels) {\n\taddOctreeLayers(octreeLevels);\n}\n\nvoid... | c++ | chosen |
[
{
"from": "system",
"value": "[asan] Add flushes to try to fix test\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@335089 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "// RUN: %clang_cl_asan -O0 %s -Fe%t\n// RUN: env ASAN_OPTIONS=handle_segv=0 %run %t 2>&1 | Fi... | c++ | chosen |
[
{
"from": "system",
"value": "Load twitch emotes on initialize as well\n\nFix #581\n"
},
{
"from": "human",
"value": "#include \"singletons/Emotes.hpp\"\n\n#include \"Application.hpp\"\n#include \"controllers/accounts/AccountController.hpp\"\n\nnamespace chatterino {\n\nvoid Emotes::initialize(A... | c++ | chosen |
[
{
"from": "system",
"value": "Add test for Example 1.\n"
},
{
"from": "human",
"value": "#define BOOST_TEST_MAIN\n#define BOOST_TEST_DYN_LINK\n#define BOOST_TEST_MODULE flatten_tests\n#include <boost/test/unit_test.hpp>\n\n#include \"flatten/flatten.hpp\"\n\nBOOST_AUTO_TEST_CASE(flatten_tests)\n... | c++ | chosen |
[
{
"from": "system",
"value": "Fix autodetection of sparc64/mips64 [ci skip]\n"
},
{
"from": "human",
"value": "\n#if defined(__x86_64__) || defined(_M_X64)\n X86_64\n\n#elif defined(__i386__) || defined(__i386) || defined(_M_IX86)\n X86_32\n\n#elif defined(__aarch64__) || defined(__ARM_ARCH_IS... | c++ | chosen |
[
{
"from": "system",
"value": "Remove inclusion of unversioned header.\n"
},
{
"from": "human",
"value": "// ========================================================================== //\n// This file is part of DO++, a basic set of libraries in C++ for computer \n// vision.\n//\n// Copyright (C)... | c++ | chosen |
[
{
"from": "system",
"value": "Test shared pointers assignment to self.\n\n * tests/libport/test-shared-ptr-intrusive.cc: Here.\n"
},
{
"from": "human",
"value": "/**\n ** Test code for libport/shared-ptr.hh features.\n */\n\n#include <libport/ref-counted.hh>\n#include <libport/shared-ptr.hh>\... | c++ | chosen |
[
{
"from": "system",
"value": "Add basic config file support\n"
},
{
"from": "human",
"value": "#include <iostream>\n#include <cstdlib>\n#include \"NTClient.h\"\nusing namespace std;\n\nvoid initBot() {\n\tNTClient nclient = NTClient(20, 0.89);\n\tnclient.login(\"sascf3\", \"123asd123\"); // Thro... | c++ | chosen |
[
{
"from": "system",
"value": "Implement first basic black window setup without any content\n"
},
{
"from": "human",
"value": "#include <iostream>\n\nint main(int argc, char** argv) {\n\n std::cout << \"Hello Lamure Virtual Texture!\\n\";\n return 0;\n}\n"
},
{
"from": "gpt",
"value... | c++ | chosen |
[
{
"from": "system",
"value": "Change tests in JPetAnalysisTools to use double instead of int\n"
},
{
"from": "human",
"value": "#define BOOST_TEST_DYN_LINK\n#define BOOST_TEST_MODULE JPetEventTest\n#include <boost/test/unit_test.hpp>\n\n#include \"../JPetAnalysisTools/JPetAnalysisTools.h\"\n\nBO... | c++ | chosen |
[
{
"from": "system",
"value": "Rename dir data to scripts\n"
},
{
"from": "human",
"value": "#include \"AppInfo.h\"\n#include \"Builder.h\"\n#include \"LibInfoDySySim.h\"\n\n#include <fstream>\n#include <iomanip>\n#include <iostream>\n#include <string>\n\nnamespace dss = dysysim;\n\nint main(int ... | c++ | chosen |
[
{
"from": "system",
"value": "Fix TSan symbol lookup on Windows\n"
},
{
"from": "human",
"value": "//===--- ThreadSanitizer.cpp - Thread Sanitizer support -------------------===//\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2014 - 2021 Apple Inc. a... | c++ | chosen |
[
{
"from": "system",
"value": "Fix vexing parse in test.\n\ngit-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@225633 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "//===----------------------------------------------------------------------===//\n//\n// ... | c++ | chosen |
[
{
"from": "system",
"value": "Remove the return value check in the SystemParametersInfo test since it is failing on Windows XP for some reason\n\ngit-svn-id: fe3cd4388a6e5a968b09397a3d721fe124e8117a@400 5b54908e-ead4-fc18-b48a-0285e6dbc711\n"
},
{
"from": "human",
"value": "/* ******************... | c++ | chosen |
[
{
"from": "system",
"value": "Extend slider use case test\n"
},
{
"from": "human",
"value": "// Copyright (C) 2012-2015 Leap Motion, Inc. All rights reserved.\n#include \"stdafx.h\"\n#include <autowiring/config_descriptor.h>\n#include <autowiring/config.h>\n#include <autowiring/ConfigRegistry.h>... | c++ | chosen |
[
{
"from": "system",
"value": "Improve main declaration to include runtime start\n"
},
{
"from": "human",
"value": "//=======================================================================\n// Copyright Baptiste Wicht 2011.\n// Distributed under the Boost Software License, Version 1.0.\n// (See ... | c++ | chosen |
[
{
"from": "system",
"value": "[llvm-exegesis] Fix build when libpfm is not available.\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@329172 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "//===-- PerfHelperTest.cpp --------------------------------------*- C++ -*-... | c++ | chosen |
[
{
"from": "system",
"value": "Enable GPU support for Zeta and Polygamma ops.\n\nPiperOrigin-RevId: 211082683\n"
},
{
"from": "human",
"value": "/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use thi... | c++ | chosen |
[
{
"from": "system",
"value": "Make corrections to key existence sample\n"
},
{
"from": "human",
"value": "// Check existence of a key\n// C++11\n\n#include <map>\n#include <string>\n\nint main()\n{\n std::map<string, int> m = {{\"a\", 1}, {\"b\", 2}, {\"c\", 3}};\n \n if (m.count(\"b\"))\n {... | c++ | chosen |
[
{
"from": "system",
"value": "Support to specify single QML file by argument\n"
},
{
"from": "human",
"value": "#include <QApplication>\n#include <QQmlApplicationEngine>\n#include <QDir>\n#include <QFile>\n#include <QFileInfo>\n\nint main(int argc, char *argv[])\n{\n\tQApplication app(argc, argv... | c++ | chosen |
[
{
"from": "system",
"value": "Remove comment and redundant include\n"
},
{
"from": "human",
"value": "#include \"cameras/itf/pinhole_camera.h\"\n\n#include \"core/itf/film.h\"\n#include \"core/itf/ray.h\"\n#include \"core/itf/sampling.h\"\n\n#include <iostream>\n\nusing namespace lb;\n\n/// Cons... | c++ | chosen |
[
{
"from": "system",
"value": "Use __SIZE_TYPE__ as suggested by dgregor.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@101857 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "// RUN: %clang_cc1 -fsyntax-only -verify %s\n\n// Various tests for -fno-exceptions\... | c++ | chosen |
[
{
"from": "system",
"value": "Increase the QImageReader allocation limit.\n"
},
{
"from": "human",
"value": "/*\r\nCopyright (c), Helios\r\nAll rights reserved.\r\n\r\nDistributed under a permissive license. See COPYING.txt for details.\r\n*/\r\n\r\n#include \"ImageViewerApplication.h\"\r\n\r\ni... | c++ | chosen |
[
{
"from": "system",
"value": "Revert SAL_N_ELEMENTS change for one file\n\nThis source file does not seem to include any of the usual LibreOffice\nheaders, so we should not use SAL_N_ELEMENTS in it.\n"
},
{
"from": "human",
"value": "/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic... | c++ | chosen |
[
{
"from": "system",
"value": "Fix a build error when OS_CHROMEOS is not defined.\n\n\nBUG=None\nTEST=Manually\n\n\nReview URL: http://codereview.chromium.org/9430055\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@123311 0039d316-1c4b-4281-b951-d872f2087c98\n"
},
{
"from": "human",
"valu... | c++ | chosen |
[
{
"from": "system",
"value": "Use new overload when reading the image.\n"
},
{
"from": "human",
"value": "#include <cstdint>\n\n#include <Magick++/Blob.h>\n#include <Magick++/Image.h>\n\n#define FUZZ_ENCODER_STRING_LITERAL(name) #name\n#define FUZZ_ENCODER FUZZ_ENCODER_STRING_LITERAL(FUZZ_IMAGEM... | c++ | chosen |
[
{
"from": "system",
"value": "Remove unused finder on traceroute parse command\n"
},
{
"from": "human",
"value": "#include <iostream>\n#include <string>\n#include <maproute/ip.hpp>\n#include <maproute/ip_convertor.hpp>\n#include <maproute/stringhelp.hpp>\n#include <maproute/tr_parser.hpp>\n#incl... | c++ | chosen |
[
{
"from": "system",
"value": "Change print to match actual content of ka, kd, ks.\n"
},
{
"from": "human",
"value": "#include \"material.hpp\"\n\nMaterial::Material():\n name{},\n ka{0,0,0},\n kd{0,0,0},\n ks{0,0,0},\n m{0}\n {}\n\nMaterial::Material(std... | c++ | chosen |
[
{
"from": "system",
"value": " Change sanity check for perfomance test of dft\n"
},
{
"from": "human",
"value": "#include \"perf_precomp.hpp\"\n\nusing namespace std;\nusing namespace cv;\nusing namespace perf;\nusing std::tr1::make_tuple;\nusing std::tr1::get;\n\n#define MAT_TYPES_DFT CV_32FC1... | c++ | chosen |
[
{
"from": "system",
"value": "Add test to cover unable to open file\n"
},
{
"from": "human",
"value": "#include \"test/catch.hpp\"\n\n#include <string>\n#include <vector>\n\n#include \"main/exception/FileOpenException.hpp\"\n#include \"main/exception/InvalidArgumentException.hpp\"\n#include \"ma... | c++ | chosen |
[
{
"from": "system",
"value": "Fix sigaction to be more portable.\n"
},
{
"from": "human",
"value": "/* -*- mode:linux -*- */\n/**\n * \\file timeout.cc\n *\n *\n *\n * \\author Ethan Burns\n * \\date 2008-12-16\n */\n\n#include <iostream>\n\n#include <signal.h>\n#include <stdlib.h>\n#include <un... | c++ | chosen |
[
{
"from": "system",
"value": "Fix SkNWayCanvas cons call when creating null canvas.\n\n\n\ngit-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4223 2bbb7eff-a529-9590-31e7-b0007b416f81\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2012 Google Inc.\n *\n * Use of this source code is govern... | c++ | chosen |
[
{
"from": "system",
"value": "[perf] Add simple memory model to consume latency of memory operations. Still needs them to be pushed.\n"
},
{
"from": "human",
"value": "#include \"performance_model.h\"\n#include \"log.h\"\n\nusing std::endl;\n\nSimplePerformanceModel::SimplePerformanceModel()\n ... | c++ | chosen |
[
{
"from": "system",
"value": "Fix compilation with GCC 4.1.1.\n\n"
},
{
"from": "human",
"value": "/*\n Copyright 2007 Albert Strasheim <fullung@gmail.com>\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\... | c++ | chosen |
[
{
"from": "system",
"value": "Fix occlusion tester segment ray creation to behave like before\n"
},
{
"from": "human",
"value": "#include \"scene.h\"\n#include \"geometry/differential_geometry.h\"\n#include \"lights/occlusion_tester.h\"\n\nvoid OcclusionTester::set_points(const Point &a, const P... | c++ | chosen |
[
{
"from": "system",
"value": "Fix use-after-free on database object\n\nCaused urchin to SIGSEGV.\n\n"
},
{
"from": "human",
"value": "/*\n * Copyright 2014 Cloudius Systems\n */\n\n\n#include \"database.hh\"\n#include \"core/app-template.hh\"\n#include \"core/smp.hh\"\n#include \"thrift/server.h... | c++ | chosen |
[
{
"from": "system",
"value": "Fix test from r346439 to also work on Windows due to path separator differences.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@346468 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "// RUN: rm -rf %t\n// RUN: mkdir -p %t/prebuilt_... | c++ | chosen |
[
{
"from": "system",
"value": "Fix a regex error breaking tests.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@282004 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "// RUN: %clang -### -Wlarge-by-value-copy %s 2>&1 | FileCheck -check-prefix=LARGE_VALUE_COPY_DEFA... | c++ | chosen |
[
{
"from": "system",
"value": "Fix SecRandomCopyBytes call with older OS X SDKs\n\nIn 10.8 (and presumably older) versions, the header for SecRandomCopyBytes\nis SecRandom.h, and Security.h does not include SecRandom.h\n\nWith this change, the include of Security.h may be redundant for all versions,\nbut I h... | c++ | chosen |
[
{
"from": "system",
"value": "Update clock delay for new 8-cycle instruction\n\nChange delay loop to four cycles per tick. Currently we use a 40MHz clock, so\nthis is 12500000 ticks per second, which is a nice round number.\n"
},
{
"from": "human",
"value": "#include \"common.th\"\n\n_start:\n ... | c++ | chosen |
[
{
"from": "system",
"value": "Use windows native look and feel"
},
{
"from": "human",
"value": "#include \"MainWindow.h\"\n#include \"SpritePackerProjectFile.h\"\n#include <QApplication>\n\nint commandLine(QCoreApplication& app);\n\nint main(int argc, char *argv[])\n{\n QApplication app(argc,... | c++ | chosen |
[
{
"from": "system",
"value": "Fix capacity check in BufAccessor test\n\nSummary:\nIOBuf creates a buffer that has the capacity GE the input capacity.\n\n(Note: this ignores all push blocking failures!)\n\nReviewed By: mjoras\n\nDifferential Revision: D21302978\n\nfbshipit-source-id: 1c815389f514fe902a7d6452... | c++ | chosen |
[
{
"from": "system",
"value": "Include config.h instead of windows.h in shared library test project.\n\n"
},
{
"from": "human",
"value": "#include <QtGui>\r\n#include <sequanto/automation.h>\r\n#include <sequanto/tree.h>\r\n#include <sequanto/QtWrapper.h>\r\n#include \"../cxx/src/cxx_root.h\"\r\n... | c++ | chosen |
[
{
"from": "system",
"value": "Mark ExtensionApiTest.Popup as FLAKY, it is still flaky.\n\nTBR=twiz\n\nBUG=46601\nTEST=browser_tests\n\nReview URL: http://codereview.chromium.org/3356001\n\ngit-svn-id: http://src.chromium.org/svn/trunk/src@58208 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n\nFormer-commit-id: 560f4... | c++ | chosen |
[
{
"from": "system",
"value": "Rewrite c-string copy helper function cleanly\n"
},
{
"from": "human",
"value": "#include \"insect/records.h\"\n\nstatic void\n__record(Record *);\n\n#include <assert.h>\n\n#include <stdlib.h>\n#include <string.h>\n\nstatic void\n__path_copy(RecordPath path, RecordP... | c++ | chosen |
[
{
"from": "system",
"value": "Use a little type deduction\n"
},
{
"from": "human",
"value": "#include <functional>\n#include <boost/optional.hpp>\n\n#include \"key_aliases.hh\"\n#include \"file_contents.hh\"\n#include \"contents.hh\"\n#include \"mode.hh\"\n#include \"show_message.hh\"\n\nstd::ma... | c++ | chosen |
[
{
"from": "system",
"value": "Add statement to show kernel\n"
},
{
"from": "human",
"value": "\n#include <mlopen/hipoc_kernel.hpp>\n#include <mlopen/errors.hpp>\n\nnamespace mlopen {\n\nvoid HIPOCKernelInvoke::run(void* args, std::size_t size) const\n{\n hipEvent_t start = nullptr;\n hipEv... | c++ | chosen |
[
{
"from": "system",
"value": "Include \"scale\" parameter in calculations\n"
},
{
"from": "human",
"value": "//\n// Created by dar on 2/11/16.\n//\n\n#include <gui/GuiText.h>\n#include \"TextManager.h\"\n\nTextManager::TextManager() : GuiElementRender() {\n this->charRender = new CharRender()... | c++ | chosen |
[
{
"from": "system",
"value": "Send more bytes per batch over serial.\n"
},
{
"from": "human",
"value": "#ifdef CHIPKIT\n\n#include \"serialutil.h\"\n#include \"buffers.h\"\n#include \"log.h\"\n\nvoid readFromSerial(SerialDevice* serial, bool (*callback)(uint8_t*)) {\n int bytesAvailable = ser... | c++ | chosen |
[
{
"from": "system",
"value": "[SemaCXX] Remove comment from coroutines test, NFC\n\nSummary:\nThe file name was accidentally included when the test file was added.\n\nTest Plan: check-clang\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@336750 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
... | c++ | chosen |
[
{
"from": "system",
"value": "tests: Add 'std' prefix for printf() in blackbox::configure test\n\nWe need to use the 'std' namespace prefix for all functions\nfrom the <cstdio> header. Otherwise the compilation may fails\non some toolchains (e.g. on Open Watcom).\n\nChange-Id: I7824d96a9d0432c65e73f957653c8... | c++ | chosen |
[
{
"from": "system",
"value": "Update LinkList test2 (locate and traverse)\n"
},
{
"from": "human",
"value": "///////////////////////////////////////\n/// file: linklist_test.cpp\n///////////////////////////////////////\n\n#include <iostream>\n#include \"linklist.h\"\nusing namespace std;\n\n///\... | c++ | chosen |
[
{
"from": "system",
"value": "Fix layout issue in details window\n"
},
{
"from": "human",
"value": "#include \"viewer/details-window.h\"\n#include <QLabel>\n#include <ui_details-window.h>\n#include \"helpers.h\"\n#include \"models/image.h\"\n\n\nDetailsWindow::DetailsWindow(Profile *profile, QWi... | c++ | chosen |
[
{
"from": "system",
"value": "Add code for function test.\n"
},
{
"from": "human",
"value": "#include <vector>\n#include <string>\n\nstd::string createString(){\n\tstd::string hi(\"Hello world!\");\n\treturn hi;\n}\n\nstd::vector<std::string> createVector(){\n\tstd::vector<std::string> my_vector... | c++ | chosen |
[
{
"from": "system",
"value": "Put the symbol requester func into the proper namespace!\n\n\ngit-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@46987 27541ba8-7e3a-0410-8455-c3a389f83636\n"
},
{
"from": "human",
"value": "// request symbols\n#include \"cling/Interpreter/Interpreter.h\"\n#includ... | c++ | chosen |
[
{
"from": "system",
"value": "Handle CAN interrupts on LPC.\n"
},
{
"from": "human",
"value": "#ifdef __LPC17XX__\n\n#include \"canread.h\"\n\nCanMessage receiveCanMessage(CanBus* bus) {\n CAN_MSG_Type message;\n CAN_ReceiveMsg(bus->controller, &message);\n\n CanMessage result = {messag... | c++ | chosen |
[
{
"from": "system",
"value": "Remove usage of broken move constructor\n"
},
{
"from": "human",
"value": "#include <iostream>\n#include <array>\n#include <asio/steady_timer.hpp>\n#include <asio.hpp>\n#include <thread>\n#include \"node/raft_node.h\"\n\nusing namespace std;\n\nstd::vector<raft_node... | c++ | chosen |
[
{
"from": "system",
"value": "Make planning respect world frame velocity\n"
},
{
"from": "human",
"value": "#include \"planning/jet/filter_sim.hh\"\n\n#include \"eigen_helpers.hh\"\n\nnamespace planning {\nnamespace jet {\n\nestimation::jet_filter::State kf_state_from_xlqr_state(const State& x,\... | c++ | chosen |
[
{
"from": "system",
"value": "Fix changes where the default value was always being returned for many of the robot state status functions.\n\nChange-Id: I50f11ce6d8ba4cbaa9ab7f44cd2f353e8bba72dd\n"
},
{
"from": "human",
"value": "#include \"RobotState.h\"\n\nRobotStateInterface* RobotState::impl ... | c++ | chosen |
[
{
"from": "system",
"value": "Make sure the pointer in PageData::html remains valid while PageData is called.\n\nBUG=46835\n\nReview URL: http://codereview.chromium.org/2852014\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@50173 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n"
},
{
"from": "human",... | c++ | chosen |
[
{
"from": "system",
"value": "Edit the validate multiple reads sample\n"
},
{
"from": "human",
"value": "// Validate multiple reads\n\n#include <sstream>\n#include <string>\n\nint main()\n{\n\tstd::istringstream stream{\"John Smith 32\"};\n\n\tstd::string first_name;\n\tstd::string family_name;\... | c++ | chosen |
[
{
"from": "system",
"value": "Add oriented tests for facingNorth\n"
},
{
"from": "human",
"value": "\n\n#include <gtest/gtest.h>\n\n#include \"../c_oriented.h\"\n#include \"../c_moveable.h\"\n\nusing aronnax::Vector2d;\nusing spacegun::Moveable;\nusing spacegun::Oriented;\n\nclass OrientedTest :... | c++ | chosen |
[
{
"from": "system",
"value": "Update init writing to universal init\n"
},
{
"from": "human",
"value": "/******************************************************\n * This is CIR-KIT 3rd robot control driver.\n * Author : Arita Yuta(Kyutech)\n ******************************************************/\... | c++ | chosen |
[
{
"from": "system",
"value": "ADD print the saved data to the save file\n"
},
{
"from": "human",
"value": "#include \"Progression.h\"\n\nProgression* Progression::m_instance = nullptr;\n\nProgression::Progression()\n{\n\tthis->m_currentLevel = 0;\n\tthis->m_currentCheckpoint = 0;\n\tthis->m_unlo... | c++ | chosen |
[
{
"from": "system",
"value": "Change 4 spaces to tab\n"
},
{
"from": "human",
"value": "#include <iostream>\n#include \"list.h\"\n\nint List::numberOfNodes = 0;\n\nvoid List::addToHead(int value) {\n\tnode *temp=new node;\n temp->data=value;\n temp->next=head;\n head=temp;\n\tnumberOfNo... | c++ | chosen |
[
{
"from": "system",
"value": "Add constexpr keyword to inline inited variable\n\nSigned-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>\n"
},
{
"from": "human",
"value": "#include <Ab/Config.hpp>\n#include <Ab/Memory.hpp>\n\nnamespace Ab {\n\nconst MemoryConfig Memory::... | c++ | chosen |
[
{
"from": "system",
"value": "Add a trivial write only GLSL test.\n\n\nFormer-commit-id: 7c0144cf1e95caa1d49b76543638e7e55fed6f6a"
},
{
"from": "human",
"value": "#include <Halide.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nusing namespace Halide;\n\nint main() {\n // This test must be run... | c++ | chosen |
[
{
"from": "system",
"value": "Return code of driver program now non-zero on error."
},
{
"from": "human",
"value": "/**\n * @file\n *\n * The driver program.\n */\n#include \"bi/build/Driver.hpp\"\n#include \"bi/exception/DriverException.hpp\"\n#include \"bi/build/misc.hpp\"\n\n#include <iostrea... | c++ | chosen |
[
{
"from": "system",
"value": "Fix the windows allocator to behave properly on realloc.\n\nThe spec says that calling realloc(ptr, 0) should free ptr\nand return NULL.\n\n\nBUG=none\nTEST=none\n\nReview URL: http://codereview.chromium.org/196041\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@25612 0... | c++ | chosen |
[
{
"from": "system",
"value": "Put fast legality checks first\n"
},
{
"from": "human",
"value": "#include \"Moves/Queenside_Castle.h\"\n\n#include \"Moves/Move.h\"\n#include \"Game/Board.h\"\n#include \"Pieces/Piece.h\"\n\nQueenside_Castle::Queenside_Castle() : Move(-2, 0)\n{\n}\n\nbool Queenside... | c++ | chosen |
[
{
"from": "system",
"value": "Add quick test for logging worker.\n"
},
{
"from": "human",
"value": "/*\n @ 0xCCCCCCCC\n*/\n\nint main()\n{\n return 0;\n}"
},
{
"from": "gpt",
"value": "/*\n @ 0xCCCCCCCC\n*/\n\n#include <conio.h>\n\n#include <random>\n#include <sstream>\n\n#include... | c++ | chosen |
[
{
"from": "system",
"value": "Fix normal calculation for scaled spheres.\n"
},
{
"from": "human",
"value": "#include \"./ShapeSphere.hpp\"\n#include \"math/misc.hpp\"\n#include \"math/Sphere.hpp\"\n#include <cmath>\n\nusing namespace yks;\n\nOptional<float> ShapeSphere::hasIntersection(const Ray... | c++ | chosen |
[
{
"from": "system",
"value": "Modify Level tests to focus on boundaries.\n"
},
{
"from": "human",
"value": "#include <stdexcept>\n\n#include \"gtest/gtest.h\"\n#include \"map/Level.h\"\n#include \"map/Tile.h\"\n\nTEST(LevelTest, DefaultLevelIsWalls)\n{\n\tLevel l1(10, 10);\n\n\tEXPECT_EQ(WallTil... | c++ | chosen |
[
{
"from": "system",
"value": "[ASan] Disable test that uses profile runtime on Windows.\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@260561 91177308-0d34-0410-b5e6-96231b3b80d8\n"
},
{
"from": "human",
"value": "// RUN: %clangxx_asan -coverage -O0 %s -o %t\n// RUN: %env_asan_opts=chec... | c++ | chosen |
[
{
"from": "system",
"value": "Fix an incorrect iteration over EGL attributes.\n\nBUG=angle:490\n\nChange-Id: If7a86ee0a5226f2b45e26bbadf4a84f8f605d1c2\nReviewed-on: https://chromium-review.googlesource.com/227231\nReviewed-by: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>\nTested-by: ... | c++ | chosen |
[
{
"from": "system",
"value": "Remove DCHECK on the compositor in OnEnableHidingTopControls.\n\nIt is crashing our tests. Removing while I investigate whether these\nIPCs are getting sent before the compositor was initialized or after it\ndied.\n\nBUG=224511\nNOTRY=true\n\nReview URL: https://chromiumcodere... | c++ | chosen |
[
{
"from": "system",
"value": "Add version command line option\n"
},
{
"from": "human",
"value": "#include \"main.h\"\n\n#include <boost/program_options.hpp>\n#include <iostream>\n\nnamespace po = boost::program_options;\nusing namespace std;\n\nint main(int argc, char **argv)\n{\n\tpo::options_d... | c++ | chosen |
[
{
"from": "system",
"value": "Add the barebones logic needed to import a scene into Assimp and start exporting it\n"
},
{
"from": "human",
"value": "/**\n* Assimp2XML3D\n*\n* Copyright (c)2015, Christian Schlinkmann\n*\n*\n**/\n\n#include <assimp/version.h>\n#include <assimp/postprocess.h>\n#inc... | c++ | chosen |
[
{
"from": "system",
"value": "Add error handling to sdl init.\n"
},
{
"from": "human",
"value": "\n#include <iostream>\n#include <stdexcept>\n#include <string>\n#include \"application.hpp\"\n#include <GL/glew.h>\n\nvoid init_glew()\n{\n GLenum err = glewInit();\n if (GLEW_OK != err)\n {... | c++ | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.