conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[LSan] Rewrite the test from r223419 to not use C++11.\n\nThis was causing build failures on llvm-clang-lld-x86_64-centos-6.5 for some\nreason. Anyway, the new way is better because we no longer rely on std::thread\nimplementation details.\n\ngit-svn-id: c199f293c43da69278bea8e...
c++
chosen
[ { "from": "system", "value": "Bring doctest code to better doctest 1.1 usage\n" }, { "from": "human", "value": "/// \\file main.cpp\n\n#include \"HelloTriangleApplication.hpp\"\n#include \"VDeleter.hpp\"\n\n// waf-generated header\n#include \"config.hpp\"\n\n#define DOCTEST_CONFIG_IMPLEMENT\n...
c++
chosen
[ { "from": "system", "value": "Add number c constructor tests.\n" }, { "from": "human", "value": "#include \"ReQL-test.hpp\"\n\n#include \"catch.h\"\n\nusing namespace ReQL;\n\nTEST_CASE(\"Connection\", \"[c++][connect]\") {\n Connection conn = connect();\n\n REQUIRE(conn.isOpen());\n}\n\nTEST_...
c++
chosen
[ { "from": "system", "value": "Write test results to a file for easier examination\n" }, { "from": "human", "value": "#include <cppunit/BriefTestProgressListener.h>\n#include <cppunit/CompilerOutputter.h>\n#include <cppunit/extensions/TestFactoryRegistry.h>\n#include <cppunit/TestResult.h>\n#incl...
c++
chosen
[ { "from": "system", "value": "Update example to use private key password\n" }, { "from": "human", "value": "//\n// main.cpp\n// MacGPusher\n//\n// Created by Nyxouf on 6/23/13.\n// Copyright (c) 2013 MacGeneration. All rights reserved.\n//\n\n#include \"global.hpp\"\n#include \"MMGAPNSConnec...
c++
chosen
[ { "from": "system", "value": "Initialize Winsock only on Windows" }, { "from": "human", "value": "// Copyright (C) 2017 Elviss Strazdins\n// This file is part of the Ouzel engine.\n\n#ifdef _WIN32\n#define NOMINMAX\n#include <winsock2.h>\n#else\n#include <sys/socket.h>\n#include <netinet/in.h>\n...
c++
chosen
[ { "from": "system", "value": "Add error messages for sqlite\n" }, { "from": "human", "value": "#include \"Database.h\"\n\n#include <iostream>\n#include <sqlite3.h>\n#include <string>\n#include <vector>\n\nusing namespace std;\n\nDatabase::Database(string filename) {\n char filenameCharArray[100...
c++
chosen
[ { "from": "system", "value": "qt: Change of wallpaper works on vnc" }, { "from": "human", "value": "#include <QtGui>\n#include \"mdi_background.h\"\n\nvoid QMdiAreaWBackground::resizeEvent(QResizeEvent *reEvent)\n{\n size = reEvent->size();\n resize(size);\n QMdiArea::resize...
c++
chosen
[ { "from": "system", "value": "[Core/Clipboard] Throw Win32Error in case of failure instead of just writing the log\n" }, { "from": "human", "value": "#include <cstring>\n\n#include <Bull/Core/Log/Log.hpp>\n#include <Bull/Core/Support/Win32/Windows.hpp>\n\n#include <Bull/Core/System/Win32/Clipboa...
c++
chosen
[ { "from": "system", "value": "Modify one to use system call\n" }, { "from": "human", "value": "//=======================================================================\n// Copyright Baptiste Wicht 2013-2014.\n// Distributed under the Boost Software License, Version 1.0.\n// (See accompanying fi...
c++
chosen
[ { "from": "system", "value": "Use fast block indices for faster test runner loading.\n" }, { "from": "human", "value": "#define BOOST_TEST_MODULE Gridcoin Test Suite\n#include <boost/test/unit_test.hpp>\n\n#include \"db.h\"\n#include \"main.h\"\n#include \"wallet.h\"\n\nCWallet* pwalletMain;\nCC...
c++
chosen
[ { "from": "system", "value": "Change function to weak declaration\n" }, { "from": "human", "value": "#include <Arduino.h>\n\n//TODO(edcoyne): remove this when it is present upstream.\n// Currently this is needed to use std::string on Arduino.\nnamespace std{\nvoid __throw_out_of_range(const char...
c++
chosen
[ { "from": "system", "value": "Use sleep instead of a busy-wait while loop to retain the output.\n\ngit-svn-id: 5398946ba177a3e438c2dae55e2cdfc2fb96c905@3867 a9d63959-f2ad-4865-b262-bf0e56cfafb6\n" }, { "from": "human", "value": "#include <omp.h>\n\n#include \"proctor/detector.h\"\n#include \"pro...
c++
chosen
[ { "from": "system", "value": "Add missing API from Javascript bindings Logger class.\n" }, { "from": "human", "value": "\n#include <emscripten/bind.h>\n\n#include \"libcellml/logger.h\"\n\nusing namespace emscripten;\n\n\nEMSCRIPTEN_BINDINGS(libcellml_logger) {\n\n class_<libcellml::Logger>(\...
c++
chosen
[ { "from": "system", "value": "Disable ExtensionApiTest.Infobars on Mac, as it is flaky.\n\nBUG=60990\nTEST=ExtensionApiTest.Infobars\nReview URL: http://codereview.chromium.org/6798005\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@80553 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n" }, { "from": ...
c++
chosen
[ { "from": "system", "value": "Add another guard against multiple definition" }, { "from": "human", "value": "#include <gtest/gtest.h>\n\n#ifndef NDEBUG\n#define NDEBUG\n#endif\n#define SM_ALWAYS_ASSERT\n#include <sm/assert_macros.hpp>\n\nTEST(SmCommonTestSuite,testAssertMacrosAlwaysAssert)\n{\n ...
c++
chosen
[ { "from": "system", "value": "[TIMOB-14131] Set multiline on labels default\n" }, { "from": "human", "value": "/**\n * Appcelerator Titanium Mobile\n * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.\n * Licensed under the terms of the Apache Public License\n * Please see the ...
c++
chosen
[ { "from": "system", "value": "Reorder BrowserProcess constructor to avoid invalid memory\n" }, { "from": "human", "value": "// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n...
c++
chosen
[ { "from": "system", "value": "Revert \"Move each `file` into the `Consumer::consume` method.\"\n\nThis reverts commit 5a9c22010bef1772dfd0efd379822582c3d3b9b0.\n\nUndo so previous edit works correctly\n" }, { "from": "human", "value": "#include <algorithm>\n\n#include \"env.hh\"\n#include \"pars...
c++
chosen
[ { "from": "system", "value": "Set sanity threshold for TVL1 optical flow to 0.5\n" }, { "from": "human", "value": "#include \"perf_precomp.hpp\"\n\nusing namespace std;\nusing namespace cv;\nusing namespace perf;\n\ntypedef TestBaseWithParam< pair<string, string> > ImagePair;\n\npair<string, str...
c++
chosen
[ { "from": "system", "value": "Fix byte order when writing CAN messages on LPC17xx.\n\nFixed #87.\n" }, { "from": "human", "value": "#include \"bitfield.h\"\n#include \"canutil_lpc17xx.h\"\n#include \"canutil.h\"\n#include \"canwrite.h\"\n#include \"log.h\"\n#include <stdbool.h>\n\nvoid copyToMes...
c++
chosen
[ { "from": "system", "value": "Fix test to test the right thing.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@127803 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -Wconditional-uninitialized -fsyntax-only %s -verify\n\nclass Fo...
c++
chosen
[ { "from": "system", "value": "Enable HiDPI for the demo app.\n" }, { "from": "human", "value": "#include <QApplication>\n\n#include \"mainwindow.h\"\n\nint main(int argc, char *argv[])\n{\n QApplication a(argc, argv);\n\n MainWindow w;\n w.show();\n\n return a.exec();\n}\n" }, { ...
c++
chosen
[ { "from": "system", "value": "[x86] Fix a tiny bug in my test case in r335309 by marking that we don't\nexpect any diagnostics.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@335310 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -triple=x86_64...
c++
chosen
[ { "from": "system", "value": "Add test case from PR5763\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@93190 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -verify %s\n\nclass Base { };\nclass Derived1 : public Base { };\nclass D...
c++
chosen
[ { "from": "system", "value": "Remove roundf from test because windows\n" }, { "from": "human", "value": "#include <Halide.h>\n#include <stdio.h>\n\nusing namespace Halide;\n\nint main(int argc, char **argv) {\n Func f;\n Var x;\n\n ImageParam input(Float(32), 1);\n\n f(x) = input(cas...
c++
chosen
[ { "from": "system", "value": "Put back the extensions display.\n" }, { "from": "human", "value": "#define CATCH_CONFIG_RUNNER\n#include <catch.hpp>\n#include <iostream>\n#include <mipp.h>\n\nint main(int argc, char* argv[])\n{\n\tstd::cout << \"MIPP tests\" << std::endl;\n\tstd::cout << \"------...
c++
chosen
[ { "from": "system", "value": "Fix members of StatisticsWriter not being initialized\n" }, { "from": "human", "value": "// Copyright (c) 2013, Zeex\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the...
c++
chosen
[ { "from": "system", "value": "Stop trying to compare arrays (deprecated in C++20)\n" }, { "from": "human", "value": "// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n#include <vespa/vespalib/testkit/test_kit.h>\n\nusing namespace vespalib;...
c++
chosen
[ { "from": "system", "value": "Use the correct VariationsRequestScheduler on iOS.\n\nWe were missing an ifdef iOS and for some reason\nthe iOS build wasn't failing due to multiple\nCreate() functions existing.\n\nThis change ensures that VariationsRequestSchedulerMobile\n(already being compiled on iOS) gets ...
c++
chosen
[ { "from": "system", "value": "Fix incorrect column numbers in test from r350282.\n\nAfter the test was reformatted using clang-format the numbers became invalid.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@350283 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value"...
c++
chosen
[ { "from": "system", "value": "Configure entityx systems after init\n" }, { "from": "human", "value": "#include \"main_state.hpp\"\n#include \"system_movement.hpp\"\n#include \"system_draw.hpp\"\n#include \"entityx/entityx.h\"\n#include <SDL2/SDL.h>\n\nMainState::MainState(Game *game) : m_game(ga...
c++
chosen
[ { "from": "system", "value": "Enable pragma for SIMD also when _OPENMP is defined\n\nSigned-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>\n" }, { "from": "human", "value": "///////////////////////////////////////////////////////////////////////\n// File: dotpr...
c++
chosen
[ { "from": "system", "value": "Add funtionality to match in files\n" }, { "from": "human", "value": "// This is the starting point\n//\n#include <iostream>\n\nint main() {\n std::string greeting(\"Welcome to RGrep-CPP\");\n std::cout << greeting << std::endl;\n std::string firstInputStri...
c++
chosen
[ { "from": "system", "value": "Correct the dynamic lib suffix on Darwin.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@16293 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "//===- llvm/System/Darwin/Path.cpp - Linux Path Implementation --*- C++ -*-===//\n// \n/...
c++
chosen
[ { "from": "system", "value": "Enforce focus for the line edit.\n" }, { "from": "human", "value": "/*\n * DialogPassword.cpp\n *\n * Created on: 01.01.2017\n * Author: felix\n */\n\n#include <QtWidgets/QHBoxLayout>\n#include <QtWidgets/QLabel>\n#include <QtWidgets/QVBoxLayout>\n#include <fr...
c++
chosen
[ { "from": "system", "value": "Remove a test FIXME for a case which is already fixed.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@152349 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -std=c++11 -verify %s\n\nusing size_t = decltype(sizeof...
c++
chosen
[ { "from": "system", "value": "Include GrGLInterface.h instead of forward declaring, since we have to get NULL defined anyway.\n\n\n" }, { "from": "human", "value": "\n/*\n * Copyright 2011 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the...
c++
chosen