The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 2 new columns ({'status', 'current_contents'}) and 6 missing columns ({'repos', 'license', 'incomplete_new_contents', 'lang', 'diff', 'subject'}).

This happened while the json dataset builder was generating data using

hf://datasets/lurf21/NextEditPrediction/data/test.jsonl (at revision 3769eeb29fed82088166f80358b2a5b8445f9a9e)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 644, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              commit: string
              message: string
              old_file: string
              new_file: string
              status: string
              old_contents: string
              new_contents: string
              text: string
              current_contents: string
              to
              {'commit': Value('string'), 'old_file': Value('string'), 'new_file': Value('string'), 'old_contents': Value('string'), 'new_contents': Value('string'), 'subject': Value('string'), 'message': Value('string'), 'lang': Value('string'), 'license': Value('string'), 'repos': Value('string'), 'diff': Value('string'), 'incomplete_new_contents': Value('string'), 'text': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1456, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1055, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 2 new columns ({'status', 'current_contents'}) and 6 missing columns ({'repos', 'license', 'incomplete_new_contents', 'lang', 'diff', 'subject'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/lurf21/NextEditPrediction/data/test.jsonl (at revision 3769eeb29fed82088166f80358b2a5b8445f9a9e)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

commit
string
old_file
string
new_file
string
old_contents
string
new_contents
string
subject
string
message
string
lang
string
license
string
repos
string
diff
string
incomplete_new_contents
string
text
string
c91029f2fd832db64d88ce996a42ac52616ec07d
src/utils/mapped_file.cpp
src/utils/mapped_file.cpp
#include "mapped_file.h" #include <exception/os.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> namespace sasm { namespace utils { mapped_file::~mapped_file() { if (_is_mapped) unmap(); } void mapped_file::map() { int fd; struct stat buf; char* begin; if ((fd = open(get_path(), O...
#include "mapped_file.h" #include <exception/elf.h> #include <exception/os.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> namespace sasm { namespace utils { mapped_file::~mapped_file() { if (_is_mapped) unmap(); } void mapped_file::map() { int fd; struct stat buf; char* begin; i...
Handle a little bug with empty files.
Handle a little bug with empty files. When giving a length of 0 to mmap(2) we get an EINVAL so the exception thrown was not accurate.
C++
bsd-2-clause
sas/sasm,sas/sasm
--- src/utils/mapped_file.cpp +++ src/utils/mapped_file.cpp @@ -1,5 +1,6 @@ #include "mapped_file.h" +#include <exception/elf.h> #include <exception/os.h> #include <fcntl.h> @@ -26,6 +27,9 @@ if (fstat(fd, &buf) == -1) throw sasm::exception::os("fstat"); + if (buf.st_size == 0) + throw sasm::except...
#include "mapped_file.h" #include <exception/elf.h> #include <exception/os.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> namespace sasm { namespace utils { mapped_file::~mapped_file() { if (_is_mapped) unmap(); } void mapped_file::map() { int fd; struct stat buf; char* begin; i...
<|original_code|> #include "mapped_file.h" #include <exception/os.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> namespace sasm { namespace utils { mapped_file::~mapped_file() { if (_is_mapped) unmap(); } void mapped_file::map() { int fd; struct stat buf; char* begin; if ((fd = ...
a625de351c3b129f11faf26330dafdb16f10b855
test/iterator_concepts_ordering.cpp
test/iterator_concepts_ordering.cpp
/** * Test suite for the iterator_concepts_ordering.hpp header. */ #include <duck/detail/iterator_concepts_ordering.hpp> #include <boost/mpl/assert.hpp> BOOST_MPL_ASSERT((duck::is_more_specific_than< duck::BidirectionalIterator, duck::RandomAccessIterator>)); BOOST_MPL_ASS...
/** * Test suite for the iterator_concepts_ordering.hpp header. */ #include <duck/detail/iterator_concepts_ordering.hpp> #include <boost/mpl/assert.hpp> BOOST_MPL_ASSERT((duck::is_more_specific_than< duck::BidirectionalIterator, duck::RandomAccessIterator>)); BOOST_MPL_ASS...
Add more iterator concept ordering tests.
Add more iterator concept ordering tests.
C++
mit
ldionne/duck
--- test/iterator_concepts_ordering.cpp +++ test/iterator_concepts_ordering.cpp @@ -15,6 +15,10 @@ duck::IncrementableIterator, duck::RandomAccessIterator>)); +BOOST_MPL_ASSERT((duck::is_more_specific_than< + duck::ForwardIterator, + duck...
/** * Test suite for the iterator_concepts_ordering.hpp header. */ #include <duck/detail/iterator_concepts_ordering.hpp> #include <boost/mpl/assert.hpp> BOOST_MPL_ASSERT((duck::is_more_specific_than< duck::BidirectionalIterator, duck::RandomAccessIterator>)); BOOST_MPL_ASS...
<|original_code|> /** * Test suite for the iterator_concepts_ordering.hpp header. */ #include <duck/detail/iterator_concepts_ordering.hpp> #include <boost/mpl/assert.hpp> BOOST_MPL_ASSERT((duck::is_more_specific_than< duck::BidirectionalIterator, duck::RandomAccessIterator>...
dbf2bac7fed179f25956d8783ab619de31131288
main.cpp
main.cpp
#include <QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
#include <QApplication> #include "mainwindow.h" const QString APP_ORGNAME = "PepperNote"; const QString APP_APPNAME = "PepperNote"; int main(int argc, char *argv[]) { QCoreApplication::setOrganizationName(APP_ORGNAME); QCoreApplication::setApplicationName(APP_APPNAME); QApplication a(argc, argv); Mai...
Set org name and app name
Set org name and app name
C++
mit
jslick/PepperNote,jslick/PepperNote
--- main.cpp +++ main.cpp @@ -1,8 +1,14 @@ #include <QApplication> #include "mainwindow.h" +const QString APP_ORGNAME = "PepperNote"; +const QString APP_APPNAME = "PepperNote"; + int main(int argc, char *argv[]) { + QCoreApplication::setOrganizationName(APP_ORGNAME); + QCoreApplication::setApplicationName(A...
#include <QApplication> #include "mainwindow.h" const QString APP_ORGNAME = "PepperNote"; const QString APP_APPNAME = "PepperNote"; int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); }
<|original_code|> #include <QApplication> #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); } <|edits_diff|> --- main.cpp +++ main.cpp @@ -1,5 +1,8 @@ #include <QApplication> #include "mainwindow.h" + +const QString A...
7dc394773390abe56a0024f1f113a6f644c8e083
engine/src/level.cpp
engine/src/level.cpp
#include "level.hpp" using namespace engine; void Level::load(){ for(auto game_object : objects){ std::cout << "Loading " << game_object->name << std::endl; game_object->load(); for(auto hit : game_object->get_hitboxes()){ hit->initialize(); } } } void Level::free(){ for(auto game_object ...
#include "level.hpp" #include <iostream> using namespace engine; void Level::load(){ for(auto game_object : objects){ std::cout << "Loading " << game_object->name << std::endl; game_object->load(); for(auto hit : game_object->get_hitboxes()){ hit->initialize(); } } } void Level::free(){ f...
Fix wrong animation of boss arm
Fix wrong animation of boss arm Signed-off-by: Matheus Miranda <[email protected]>
C++
mit
mind-scape/mindscape,mind-scape/mindscape
--- engine/src/level.cpp +++ engine/src/level.cpp @@ -1,4 +1,5 @@ #include "level.hpp" +#include <iostream> using namespace engine; @@ -23,6 +24,10 @@ void Level::draw(){ for(auto game_object : objects){ if(game_object->is_active()){ + if(game_object->name == "arm_left"){ + game_object->set_a...
#include "level.hpp" #include <iostream> using namespace engine; void Level::load(){ for(auto game_object : objects){ std::cout << "Loading " << game_object->name << std::endl; game_object->load(); for(auto hit : game_object->get_hitboxes()){ hit->initialize(); } } } void Level::free(){ f...
<|original_code|> #include "level.hpp" using namespace engine; void Level::load(){ for(auto game_object : objects){ std::cout << "Loading " << game_object->name << std::endl; game_object->load(); for(auto hit : game_object->get_hitboxes()){ hit->initialize(); } } } void Level::free(){ for...
2b5eb8f79e75bd7fab3221acf806e70d468ce48a
stub/src/qtfirebase.cpp
stub/src/qtfirebase.cpp
#include "qtfirebaseanalytics.h" #include "qtfirebaseremoteconfig.h" #include "qtfirebaseadmob.h" #include "qtfirebaseauth.h" #include "qtfirebasedatabase.h" #ifdef QTFIREBASE_BUILD_ANALYTICS QtFirebaseAnalytics* QtFirebaseAnalytics::self = nullptr; #endif #ifdef QTFIREBASE_BUILD_REMOTE_CONFIG QtFirebaseRemoteConfig*...
#include "qtfirebaseanalytics.h" #include "qtfirebaseremoteconfig.h" #include "qtfirebaseadmob.h" #include "qtfirebaseauth.h" #include "qtfirebasedatabase.h" #include "qtfirebasemessaging.h" #ifdef QTFIREBASE_BUILD_ANALYTICS QtFirebaseAnalytics* QtFirebaseAnalytics::self = nullptr; #endif #ifdef QTFIREBASE_BUILD_REMO...
Fix build with stub implementation
Fix build with stub implementation
C++
mit
Larpon/QtFirebase,Larpon/QtFirebase,Larpon/QtFirebase
--- stub/src/qtfirebase.cpp +++ stub/src/qtfirebase.cpp @@ -3,6 +3,7 @@ #include "qtfirebaseadmob.h" #include "qtfirebaseauth.h" #include "qtfirebasedatabase.h" +#include "qtfirebasemessaging.h" #ifdef QTFIREBASE_BUILD_ANALYTICS QtFirebaseAnalytics* QtFirebaseAnalytics::self = nullptr; @@ -23,3 +24,7 @@ #ifdef ...
#include "qtfirebaseanalytics.h" #include "qtfirebaseremoteconfig.h" #include "qtfirebaseadmob.h" #include "qtfirebaseauth.h" #include "qtfirebasedatabase.h" #include "qtfirebasemessaging.h" #ifdef QTFIREBASE_BUILD_ANALYTICS QtFirebaseAnalytics* QtFirebaseAnalytics::self = nullptr; #endif #ifdef QTFIREBASE_BUILD_REMO...
<|original_code|> #include "qtfirebaseanalytics.h" #include "qtfirebaseremoteconfig.h" #include "qtfirebaseadmob.h" #include "qtfirebaseauth.h" #include "qtfirebasedatabase.h" #ifdef QTFIREBASE_BUILD_ANALYTICS QtFirebaseAnalytics* QtFirebaseAnalytics::self = nullptr; #endif #ifdef QTFIREBASE_BUILD_REMOTE_CONFIG QtFir...
5b362013706f78b84bf205c6cf04e31065f7b732
src/main.cpp
src/main.cpp
/* Copyright (c), Helios All rights reserved. Distributed under a permissive license. See COPYING.txt for details. */ #include "ImageViewerApplication.h" int main(int argc, char **argv){ try{ initialize_supported_extensions(); ImageViewerApplication app(argc, argv, "BorderlessViewer" + get_per_user_...
/* Copyright (c), Helios All rights reserved. Distributed under a permissive license. See COPYING.txt for details. */ #include "ImageViewerApplication.h" #include <QImageReader> int main(int argc, char **argv){ try{ //Set the limit to 1 GiB. QImageReader::setAllocationLimit(1024); initialize_sup...
Increase the QImageReader allocation limit.
Increase the QImageReader allocation limit.
C++
bsd-2-clause
Helios-vmg/Borderless,Helios-vmg/Borderless,Helios-vmg/Borderless,Helios-vmg/Borderless
--- src/main.cpp +++ src/main.cpp @@ -6,9 +6,12 @@ */ #include "ImageViewerApplication.h" +#include <QImageReader> int main(int argc, char **argv){ try{ + //Set the limit to 1 GiB. + QImageReader::setAllocationLimit(1024); initialize_supported_extensions(); ImageViewerApplication app(argc, argv, "Borde...
/* Copyright (c), Helios All rights reserved. Distributed under a permissive license. See COPYING.txt for details. */ #include "ImageViewerApplication.h" #include <QImageReader> int main(int argc, char **argv){ try{ initialize_supported_extensions(); ImageViewerApplication app(argc, argv, "Borderle...
<|original_code|> /* Copyright (c), Helios All rights reserved. Distributed under a permissive license. See COPYING.txt for details. */ #include "ImageViewerApplication.h" int main(int argc, char **argv){ try{ initialize_supported_extensions(); ImageViewerApplication app(argc, argv, "BorderlessViewe...
905cba4c0107520616c2b95515042b283aab28c4
JasonType.cpp
JasonType.cpp
#include "JasonType.h" using JasonType = triagens::basics::JasonType; //////////////////////////////////////////////////////////////////////////////// /// @brief get the name for a Jason type //////////////////////////////////////////////////////////////////////////////// char const* triagens::basics::JasonType...
#include "JasonType.h" using JasonType = triagens::basics::JasonType; //////////////////////////////////////////////////////////////////////////////// /// @brief get the name for a Jason type //////////////////////////////////////////////////////////////////////////////// char const* triagens::basics::JasonType...
Add long types to names.
Add long types to names.
C++
apache-2.0
arangodb/velocypack,arangodb/Jason,arangodb/Jason,arangodb/velocypack,arangodb/Jason,arangodb/Jason,arangodb/velocypack,arangodb/velocypack
--- JasonType.cpp +++ JasonType.cpp @@ -15,7 +15,9 @@ case JasonType::Double: return "double"; case JasonType::String: return "string"; case JasonType::Array: return "array"; + case JasonType::ArrayLong: return "array_long"; case JasonType::Object: return "object"; + cas...
#include "JasonType.h" using JasonType = triagens::basics::JasonType; //////////////////////////////////////////////////////////////////////////////// /// @brief get the name for a Jason type //////////////////////////////////////////////////////////////////////////////// char const* triagens::basics::JasonType...
<|original_code|> #include "JasonType.h" using JasonType = triagens::basics::JasonType; //////////////////////////////////////////////////////////////////////////////// /// @brief get the name for a Jason type //////////////////////////////////////////////////////////////////////////////// char const* triagens:...
961d8ba3e631d3fbbbb6de91e98f63d5a9a7bbb5
opencog/atoms/core/Checkers.cc
opencog/atoms/core/Checkers.cc
/* * opencog/atoms/core/Checkers.cc * * Copyright (C) 2017 Linas Vepstas * 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 v3 as * published by the Free Software Foundation and including the exceptions * ...
/* * opencog/atoms/core/Checkers.cc * * Copyright (C) 2017 Linas Vepstas * 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 v3 as * published by the Free Software Foundation and including the exceptions * ...
Add type checking for boolean link types.
Add type checking for boolean link types.
C++
agpl-3.0
misgeatgit/atomspace,AmeBel/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,AmeBel/atomspace,misgeatgit/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,misgeatgit/atomspace,AmeBel/atomspace,rTreutlein/atomspace,rTreutlein/atomspace,AmeBel/atomspace,AmeBel/atomspace,rTreutlein/atomspace
--- opencog/atoms/core/Checkers.cc +++ opencog/atoms/core/Checkers.cc @@ -25,8 +25,13 @@ using namespace opencog; +/// Check to see if every input atom is of Evaluatable type. bool check_evaluatable(const Handle& bool_atom) { + for (const Handle& h: bool_atom->getOutgoingSet()) + { + if (not h->is_type(EVALUATA...
/* * opencog/atoms/core/Checkers.cc * * Copyright (C) 2017 Linas Vepstas * 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 v3 as * published by the Free Software Foundation and including the exceptions * ...
<|original_code|> /* * opencog/atoms/core/Checkers.cc * * Copyright (C) 2017 Linas Vepstas * 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 v3 as * published by the Free Software Foundation and including ...
100bc306dd15532dbbb2b353170aea47e8173a13
testbed/windows/runner/main.cpp
testbed/windows/runner/main.cpp
#include <flutter/dart_project.h> #include <flutter/flutter_view_controller.h> #include <windows.h> #include <vector> #include "flutter_window.h" #include "run_loop.h" #include "window_configuration.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, ...
#include <flutter/dart_project.h> #include <flutter/flutter_view_controller.h> #include <windows.h> #include <vector> #include "flutter_window.h" #include "run_loop.h" #include "window_configuration.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, ...
Update Windows runner from template
Update Windows runner from template Picks up the recently add CoInitialize fix.
C++
apache-2.0
google/flutter-desktop-embedding,google/flutter-desktop-embedding,google/flutter-desktop-embedding,google/flutter-desktop-embedding,google/flutter-desktop-embedding
--- testbed/windows/runner/main.cpp +++ testbed/windows/runner/main.cpp @@ -18,6 +18,9 @@ ::AllocConsole(); } + // Initialize COM, so that it is available for use in the library and/or plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + RunLoop run_loop; flutter::DartProject project(L"...
#include <flutter/dart_project.h> #include <flutter/flutter_view_controller.h> #include <windows.h> #include <vector> #include "flutter_window.h" #include "run_loop.h" #include "window_configuration.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, ...
<|original_code|> #include <flutter/dart_project.h> #include <flutter/flutter_view_controller.h> #include <windows.h> #include <vector> #include "flutter_window.h" #include "run_loop.h" #include "window_configuration.h" int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANC...
e8fb48684147d54f5088194d644a1966c5421b86
src/insert_mode.cc
src/insert_mode.cc
#include <ncurses.h> #include "../../../src/contents.hh" #include "../../../src/key_aliases.hh" #include "../../vick-move/src/move.hh" void enter_insert_mode(contents& contents, boost::optional<int>) { char ch; while((ch = getch()) != _escape) { contents.cont[contents.y].insert(contents.x, 1, ch); ...
#include <ncurses.h> #include "../../../src/contents.hh" #include "../../../src/key_aliases.hh" #include "../../vick-move/src/move.hh" void enter_insert_mode(contents& contents, boost::optional<int>) { char ch; contents.is_inserting = true; while((ch = getch()) != _escape) { contents.cont[contents...
Edit ``contents.is_inserting`` in insert modes
Edit ``contents.is_inserting`` in insert modes
C++
mpl-2.0
czipperz/vick-insert-mode
--- src/insert_mode.cc +++ src/insert_mode.cc @@ -6,6 +6,7 @@ void enter_insert_mode(contents& contents, boost::optional<int>) { char ch; + contents.is_inserting = true; while((ch = getch()) != _escape) { contents.cont[contents.y].insert(contents.x, 1, ch); mvf(contents); @@ -13,10 +14...
#include <ncurses.h> #include "../../../src/contents.hh" #include "../../../src/key_aliases.hh" #include "../../vick-move/src/move.hh" void enter_insert_mode(contents& contents, boost::optional<int>) { char ch; contents.is_inserting = true; while((ch = getch()) != _escape) { contents.cont[contents...
<|original_code|> #include <ncurses.h> #include "../../../src/contents.hh" #include "../../../src/key_aliases.hh" #include "../../vick-move/src/move.hh" void enter_insert_mode(contents& contents, boost::optional<int>) { char ch; while((ch = getch()) != _escape) { contents.cont[contents.y].insert(conte...
af7ba3b71fcbda1ee1bef496c712da65712574d3
logicTest.cpp
logicTest.cpp
#include "logic.cpp" #include <iostream> #include <cstdlib> int main( void ); void printCoords( block* b ); int rotationTest( void ); int main( void ) { std::cout << "Rotation Test : " << (rotationTest())? "PASSED\n" : "FAILED\n"; exit( EXIT_SUCCESS ); } void printCoords( block *b ) { for( int i = 0; i < 4; ++...
#include "logic.cpp" #include <iostream> #include <cstdlib> int main( void ); void printCoords( block* b ); int rotationTest( void ); int main( void ) { std::cout << "Rotation Test : " << (rotationTest())? "PASSED\n" : "FAILED\n"; exit( EXIT_SUCCESS ); } void printCoords( block *b ) { for( int i = 0; i < 4; ++...
Add identifying block number in rotation test
Add identifying block number in rotation test
C++
apache-2.0
MarkMcCaskey/tetrinos
--- logicTest.cpp +++ logicTest.cpp @@ -27,6 +27,8 @@ { auto b1 = new block( i ); + std::cout << i << " {" << std::endl; + printCoords( b1 ); b1->rotate(); printCoords( b1 ); @@ -37,6 +39,8 @@ b1->rotate(); printCoords( b1 ); + std::cout << "}" << std::...
#include "logic.cpp" #include <iostream> #include <cstdlib> int main( void ); void printCoords( block* b ); int rotationTest( void ); int main( void ) { std::cout << "Rotation Test : " << (rotationTest())? "PASSED\n" : "FAILED\n"; exit( EXIT_SUCCESS ); } void printCoords( block *b ) { for( int i = 0; i < 4; ++...
<|original_code|> #include "logic.cpp" #include <iostream> #include <cstdlib> int main( void ); void printCoords( block* b ); int rotationTest( void ); int main( void ) { std::cout << "Rotation Test : " << (rotationTest())? "PASSED\n" : "FAILED\n"; exit( EXIT_SUCCESS ); } void printCoords( block *b ) { for( in...
250a86dc4041f75488d78653d9566b348e1b70c9
src/searchclient/dlgfilters.cpp
src/searchclient/dlgfilters.cpp
#include "dlgfilters.h" #include "filterwidget.h" #include <QHBoxLayout> #include <QVBoxLayout> #include <QPushButton> DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters, QWidget *parent) : QDialog(parent, Qt::Dialog) { setWindowTitle(tr("strigiclient - Edit filters")); fi...
#include "dlgfilters.h" #include "filterwidget.h" #include <QHBoxLayout> #include <QVBoxLayout> #include <QPushButton> #include <QLabel> DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters, QWidget *parent) : QDialog(parent, Qt::Dialog) { setWindowTitle(tr("strigiclient - Edit ...
Add small explanation to the filter dialog.
Add small explanation to the filter dialog. svn path=/trunk/playground/base/strigi/; revision=609264
C++
lgpl-2.1
KDE/strigi
--- src/searchclient/dlgfilters.cpp +++ src/searchclient/dlgfilters.cpp @@ -4,11 +4,14 @@ #include <QHBoxLayout> #include <QVBoxLayout> #include <QPushButton> +#include <QLabel> DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters, QWidget *parent) : QDialog(parent, Qt::Dialog)...
#include "dlgfilters.h" #include "filterwidget.h" #include <QHBoxLayout> #include <QVBoxLayout> #include <QPushButton> #include <QLabel> DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters, QWidget *parent) : QDialog(parent, Qt::Dialog) { setWindowTitle(tr("strigiclient - Edit ...
<|original_code|> #include "dlgfilters.h" #include "filterwidget.h" #include <QHBoxLayout> #include <QVBoxLayout> #include <QPushButton> DlgFilters::DlgFilters(const QList<QPair<bool,QString> >& filters, QWidget *parent) : QDialog(parent, Qt::Dialog) { setWindowTitle(tr("strigiclient - Edit ...
9709d7c0d15f61f6df20c6614476ed725da9b5bc
src/floaxietest.cpp
src/floaxietest.cpp
#include "test.h" #include "floaxie/ftoa.h" void dtoa_floaxie(double v, char* buffer) { floaxie::ftoa(v, buffer); } REGISTER_TEST(floaxie);
#if __cplusplus >= 201402L #include "test.h" #include "floaxie/ftoa.h" void dtoa_floaxie(double v, char* buffer) { floaxie::ftoa(v, buffer); } REGISTER_TEST(floaxie); #endif
Fix building for pre-C++14 standards
Fix building for pre-C++14 standards Skip `floaxie` test in this case, as it requires at least C++14.
C++
mit
miloyip/dtoa-benchmark,miloyip/dtoa-benchmark,miloyip/dtoa-benchmark,miloyip/dtoa-benchmark,miloyip/dtoa-benchmark
--- src/floaxietest.cpp +++ src/floaxietest.cpp @@ -1,3 +1,5 @@ +#if __cplusplus >= 201402L + #include "test.h" #include "floaxie/ftoa.h" @@ -7,3 +9,5 @@ } REGISTER_TEST(floaxie); + +#endif
#if __cplusplus >= 201402L #include "test.h" #include "floaxie/ftoa.h" void dtoa_floaxie(double v, char* buffer) { floaxie::ftoa(v, buffer); } REGISTER_TEST(floaxie);
<|original_code|> #include "test.h" #include "floaxie/ftoa.h" void dtoa_floaxie(double v, char* buffer) { floaxie::ftoa(v, buffer); } REGISTER_TEST(floaxie); <|edits_diff|> --- src/floaxietest.cpp +++ src/floaxietest.cpp @@ -1,3 +1,5 @@ +#if __cplusplus >= 201402L + #include "test.h" #include "floaxie/ftoa.h" <...
739b903d8e5444d8dc19361fb1057f6821382c37
notebooktree.cpp
notebooktree.cpp
#include "notebooktree.h" #include "treenotebookitem.h" #include "treenotebookpageitem.h" #include "notebookexception.h" NotebookTree::NotebookTree(QWidget* parent) : QTreeWidget(parent) { this->setColumnCount(1); } void NotebookTree::addNotebook(Notebook& notebook) { TreeNotebookItem* treeItem = new Tree...
#include "notebooktree.h" #include "treenotebookitem.h" #include "treenotebookpageitem.h" #include "notebookexception.h" #include <QHeaderView> NotebookTree::NotebookTree(QWidget* parent) : QTreeWidget(parent) { this->setColumnCount(1); this->header()->hide(); } void NotebookTree::addNotebook(Notebook& n...
Remove header from notebook tree
Remove header from notebook tree
C++
mit
jslick/PepperNote,jslick/PepperNote
--- notebooktree.cpp +++ notebooktree.cpp @@ -3,10 +3,13 @@ #include "treenotebookpageitem.h" #include "notebookexception.h" +#include <QHeaderView> + NotebookTree::NotebookTree(QWidget* parent) : QTreeWidget(parent) { this->setColumnCount(1); + this->header()->hide(); } void NotebookTree::addNot...
#include "notebooktree.h" #include "treenotebookitem.h" #include "treenotebookpageitem.h" #include "notebookexception.h" #include <QHeaderView> NotebookTree::NotebookTree(QWidget* parent) : QTreeWidget(parent) { this->setColumnCount(1); } void NotebookTree::addNotebook(Notebook& notebook) { TreeNotebookI...
<|original_code|> #include "notebooktree.h" #include "treenotebookitem.h" #include "treenotebookpageitem.h" #include "notebookexception.h" NotebookTree::NotebookTree(QWidget* parent) : QTreeWidget(parent) { this->setColumnCount(1); } void NotebookTree::addNotebook(Notebook& notebook) { TreeNotebookItem* t...
d40a92f3ad086b71d0df4bca5a2d615c8b8cb380
Podrios.cpp
Podrios.cpp
/* * Podrios.cpp * * Created on: 2014年10月23日 * Author: nemo */ #include <iostream> using namespace std; int main() { cout << "Show Message." << endl; return 0; }
/* * Podrios.cpp * * Created on: 2014年10月23日 * Author: nemo */ #include <iostream> #include <stdlib.h> using namespace std; int main() { cout << "Show Message." << endl; system("pause"); return 0; }
Add system command for holding command console
Add system command for holding command console
C++
apache-2.0
NemoChenTW/PodriosCPP,NemoChenTW/PodriosCPP,NemoChenTW/PodriosCPP,NemoChenTW/PodriosCPP
--- Podrios.cpp +++ Podrios.cpp @@ -6,6 +6,8 @@ */ #include <iostream> +#include <stdlib.h> + using namespace std; @@ -14,5 +16,6 @@ { cout << "Show Message." << endl; + system("pause"); return 0; }
/* * Podrios.cpp * * Created on: 2014年10月23日 * Author: nemo */ #include <iostream> #include <stdlib.h> using namespace std; int main() { cout << "Show Message." << endl; return 0; }
<|original_code|> /* * Podrios.cpp * * Created on: 2014年10月23日 * Author: nemo */ #include <iostream> using namespace std; int main() { cout << "Show Message." << endl; return 0; } <|edits_diff|> --- Podrios.cpp +++ Podrios.cpp @@ -6,6 +6,8 @@ */ #include <iostream> +#include <stdlib.h> + usin...
86b112bfa96f8e2b1771f708c3f4aabc4a0b1e94
libeve-api-proxy/source/Error.cpp
libeve-api-proxy/source/Error.cpp
#include "Precompiled.hpp" #include "Error.hpp" #include "SmartPtr.hpp" #include "String.hpp" std::string errno_string(int err) { char buffer[1024]; if (!strerror_s(buffer, sizeof(buffer), err)) throw std::runtime_error("strerror_s failed"); return buffer; } #ifdef _WIN32 std::string win_error_string(int...
#include "Precompiled.hpp" #include "Error.hpp" #include "SmartPtr.hpp" #include "String.hpp" std::string errno_string(int err) { char buffer[1024]; #ifdef _WIN32 if (!strerror_s(buffer, sizeof(buffer), err)) throw std::runtime_error("strerror_s failed"); return buffer; #else return strerror_r(err, buf...
Use strerror_r instead of strerror_s for GCC/Linux
Use strerror_r instead of strerror_s for GCC/Linux
C++
mit
SyncViews/eve-api-proxy
--- libeve-api-proxy/source/Error.cpp +++ libeve-api-proxy/source/Error.cpp @@ -6,8 +6,12 @@ std::string errno_string(int err) { char buffer[1024]; +#ifdef _WIN32 if (!strerror_s(buffer, sizeof(buffer), err)) throw std::runtime_error("strerror_s failed"); return buffer; +#else + return strerror_r(er...
#include "Precompiled.hpp" #include "Error.hpp" #include "SmartPtr.hpp" #include "String.hpp" std::string errno_string(int err) { char buffer[1024]; #ifdef _WIN32 if (!strerror_s(buffer, sizeof(buffer), err)) throw std::runtime_error("strerror_s failed"); return buffer; } #ifdef _WIN32 std::string win_er...
<|original_code|> #include "Precompiled.hpp" #include "Error.hpp" #include "SmartPtr.hpp" #include "String.hpp" std::string errno_string(int err) { char buffer[1024]; if (!strerror_s(buffer, sizeof(buffer), err)) throw std::runtime_error("strerror_s failed"); return buffer; } #ifdef _WIN32 std::string wi...
b6c95361843cea1a16e6a1287ce247987b668b2b
main.cpp
main.cpp
#include "task_simple.h" #include "factory_simple.h" #include "on_tick_simple.h" #include <fstream> using namespace std; int main(int argc, char *argv[]) { const string task_fname = "task_list.txt"; const size_t concurrency = 2; ifstream task_stream{task_fname}; TaskListSimple task_list{task_stream,...
#include "task_simple.h" #include "factory_simple.h" #include "on_tick_simple.h" #include <fstream> #include <iostream> using namespace std; int main(int argc, char *argv[]) { const string task_fname = "task_list.txt"; const size_t concurrency = 2; ifstream task_stream{task_fname}; if ( !task_stream...
Break if task file don`t exists
Break if task file don`t exists
C++
mit
dvetutnev/Ecwid-Console-downloader
--- main.cpp +++ main.cpp @@ -3,6 +3,7 @@ #include "on_tick_simple.h" #include <fstream> +#include <iostream> using namespace std; @@ -12,6 +13,11 @@ const size_t concurrency = 2; ifstream task_stream{task_fname}; + if ( !task_stream.is_open() ) + { + cout << "Can`t open <" << task_fna...
#include "task_simple.h" #include "factory_simple.h" #include "on_tick_simple.h" #include <fstream> #include <iostream> using namespace std; int main(int argc, char *argv[]) { const string task_fname = "task_list.txt"; const size_t concurrency = 2; ifstream task_stream{task_fname}; TaskListSimple ta...
<|original_code|> #include "task_simple.h" #include "factory_simple.h" #include "on_tick_simple.h" #include <fstream> using namespace std; int main(int argc, char *argv[]) { const string task_fname = "task_list.txt"; const size_t concurrency = 2; ifstream task_stream{task_fname}; TaskListSimple task...
40d965d75defd95662f70a3ed24d99ed7fa343aa
ouzel/android/WindowAndroid.cpp
ouzel/android/WindowAndroid.cpp
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "WindowAndroid.h" namespace ouzel { WindowAndroid::WindowAndroid(const Size2& pSize, bool pResizable, bool pFullscreen, uint32_t pSampleCount, const std::string& pTitle): Window(pSize, pResizable, pFullscreen, pSampl...
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "WindowAndroid.h" #include "Engine.h" #include "opengl/RendererOGL.h" namespace ouzel { WindowAndroid::WindowAndroid(const Size2& pSize, bool pResizable, bool pFullscreen, uint32_t pSampleCount, const std::string& pTitle): ...
Set OpenGL ES version to 2 on Android
Set OpenGL ES version to 2 on Android
C++
unlicense
elvman/ouzel,Hotspotmar/ouzel,Hotspotmar/ouzel,elvman/ouzel,elnormous/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elnormous/ouzel
--- ouzel/android/WindowAndroid.cpp +++ ouzel/android/WindowAndroid.cpp @@ -2,6 +2,8 @@ // This file is part of the Ouzel engine. #include "WindowAndroid.h" +#include "Engine.h" +#include "opengl/RendererOGL.h" namespace ouzel { @@ -18,6 +20,10 @@ bool WindowAndroid::init() { + std::shared_pt...
// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "WindowAndroid.h" #include "Engine.h" #include "opengl/RendererOGL.h" namespace ouzel { WindowAndroid::WindowAndroid(const Size2& pSize, bool pResizable, bool pFullscreen, uint32_t pSampleCount, const std::string& pTitle): ...
<|original_code|> // Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "WindowAndroid.h" namespace ouzel { WindowAndroid::WindowAndroid(const Size2& pSize, bool pResizable, bool pFullscreen, uint32_t pSampleCount, const std::string& pTitle): Window(pSize, pResizable, p...
a7b06e5ad2147752b7e0a82c0c37778c72def66e
PlasMOUL/Messages/SimulationMsg.cpp
PlasMOUL/Messages/SimulationMsg.cpp
/****************************************************************************** * This file is part of dirtsand. * * * * dirtsand is free software: you can redistribute it and/or modify * ...
/****************************************************************************** * This file is part of dirtsand. * * * * dirtsand is free software: you can redistribute it and/or modify * ...
Fix missing write call in SubWorldMsg
Fix missing write call in SubWorldMsg
C++
agpl-3.0
H-uru/dirtsand,H-uru/dirtsand,GehnShard/dirtsand,GehnShard/dirtsand
--- PlasMOUL/Messages/SimulationMsg.cpp +++ PlasMOUL/Messages/SimulationMsg.cpp @@ -19,10 +19,12 @@ void MOUL::SubWorldMsg::read(DS::Stream* stream) { + MOUL::Message::read(stream); m_world.read(stream); } void MOUL::SubWorldMsg::write(DS::Stream* stream) const { + MOUL::Message::write(stream); ...
/****************************************************************************** * This file is part of dirtsand. * * * * dirtsand is free software: you can redistribute it and/or modify * ...
<|original_code|> /****************************************************************************** * This file is part of dirtsand. * * * * dirtsand is free software: you can redistribute it and/or m...
cbb0fd9cff4a5b73f3b2498e4ca21831892c723e
server/analyzer.cpp
server/analyzer.cpp
#include "analyzer.h" #include "dal.h" #include "glog.h" #include <iostream> namespace holmes { kj::Promise<bool> Analyzer::run(DAL *dal) { std::vector<Holmes::Fact::Reader> searchedFacts; auto ctxs = dal->getFacts(premises); kj::Array<kj::Promise<bool>> analResults = KJ_MAP(ctx, ctxs) { if (cache.m...
#include "analyzer.h" #include "dal.h" #include "glog.h" #include <iostream> namespace holmes { kj::Promise<bool> Analyzer::run(DAL *dal) { std::vector<Holmes::Fact::Reader> searchedFacts; DLOG(INFO) << "Starting analysis " << name; DLOG(INFO) << "Getting facts for " << name; auto ctxs = dal->getFacts(premi...
Add logging to analysis for profiling
Add logging to analysis for profiling
C++
mit
maurer/holmes,maurer/holmes,tempbottle/holmes,chubbymaggie/holmes,BinaryAnalysisPlatform/holmes
--- server/analyzer.cpp +++ server/analyzer.cpp @@ -9,7 +9,10 @@ kj::Promise<bool> Analyzer::run(DAL *dal) { std::vector<Holmes::Fact::Reader> searchedFacts; + DLOG(INFO) << "Starting analysis " << name; + DLOG(INFO) << "Getting facts for " << name; auto ctxs = dal->getFacts(premises); + DLOG(INFO) << "Got ...
#include "analyzer.h" #include "dal.h" #include "glog.h" #include <iostream> namespace holmes { kj::Promise<bool> Analyzer::run(DAL *dal) { std::vector<Holmes::Fact::Reader> searchedFacts; DLOG(INFO) << "Starting analysis " << name; DLOG(INFO) << "Getting facts for " << name; auto ctxs = dal->getFacts(premi...
<|original_code|> #include "analyzer.h" #include "dal.h" #include "glog.h" #include <iostream> namespace holmes { kj::Promise<bool> Analyzer::run(DAL *dal) { std::vector<Holmes::Fact::Reader> searchedFacts; auto ctxs = dal->getFacts(premises); kj::Array<kj::Promise<bool>> analResults = KJ_MAP(ctx, ctxs) {...
c75d6bd0fad60e1ab6421b481d5eb575f4a5ce3e
src/gtest/main.cpp
src/gtest/main.cpp
#include "gtest/gtest.h" int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
#include "gtest/gtest.h" #include "sodium.h" int main(int argc, char **argv) { assert(sodium_init() != -1); testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
Initialize libsodium in the gtest suite.
Initialize libsodium in the gtest suite.
C++
mit
aniemerg/zcash,loxal/zcash,bitcoinsSG/zcash,aniemerg/zcash,loxal/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,bitcoinsSG/zcash,aniemerg/zcash,bitcoinsSG/zcash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,loxal/zcash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable...
--- src/gtest/main.cpp +++ src/gtest/main.cpp @@ -1,6 +1,8 @@ #include "gtest/gtest.h" +#include "sodium.h" int main(int argc, char **argv) { + assert(sodium_init() != -1); testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
#include "gtest/gtest.h" #include "sodium.h" int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }
<|original_code|> #include "gtest/gtest.h" int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } <|edits_diff|> --- src/gtest/main.cpp +++ src/gtest/main.cpp @@ -1,4 +1,5 @@ #include "gtest/gtest.h" +#include "sodium.h" int main(int argc, char **argv) { testing::...
7b91b2c561c2cfbd28e465a29837db272a6b5137
windows/src/InitialExperience/SdkModel/WindowsInitialExperienceModule.cpp
windows/src/InitialExperience/SdkModel/WindowsInitialExperienceModule.cpp
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WindowsInitialExperienceModule.h" #include "WindowsInitialExperiencePreLoadModel.h" #include "InitialExperienceIntroStep.h" //#include "InitialExperienceSearchResultAttractModeModel.h" namespace ExampleApp { namespace InitialExperience { ...
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WindowsInitialExperienceModule.h" #include "WindowsInitialExperiencePreLoadModel.h" #include "InitialExperienceIntroStep.h" //#include "InitialExperienceSearchResultAttractModeModel.h" #include "WorldPinVisibility.h" namespace ExampleApp { namespac...
Fix for missing Hovercards in Windows. Buddy: Mark
Fix for missing Hovercards in Windows. Buddy: Mark
C++
bsd-2-clause
eegeo/eegeo-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,wrld3d/wrld-example-app,eegeo/eegeo-example-app,wrld3d/wrld-example-app,eegeo/ee...
--- windows/src/InitialExperience/SdkModel/WindowsInitialExperienceModule.cpp +++ windows/src/InitialExperience/SdkModel/WindowsInitialExperienceModule.cpp @@ -4,6 +4,7 @@ #include "WindowsInitialExperiencePreLoadModel.h" #include "InitialExperienceIntroStep.h" //#include "InitialExperienceSearchResultAttractModeMod...
// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WindowsInitialExperienceModule.h" #include "WindowsInitialExperiencePreLoadModel.h" #include "InitialExperienceIntroStep.h" //#include "InitialExperienceSearchResultAttractModeModel.h" #include "WorldPinVisibility.h" namespace ExampleApp { namespac...
<|original_code|> // Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "WindowsInitialExperienceModule.h" #include "WindowsInitialExperiencePreLoadModel.h" #include "InitialExperienceIntroStep.h" //#include "InitialExperienceSearchResultAttractModeModel.h" namespace ExampleApp { namespace InitialExper...
88281950eed0e9fadba9d13fc68707068b5b5628
media/base/run_all_unittests.cc
media/base/run_all_unittests.cc
// 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 "base/test/test_suite.h" #include "media/base/media.h" class TestSuiteNoAtExit : public base::TestSuite { public: TestSuiteNoAtExit(int a...
// 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 "base/test/main_hook.h" #include "base/test/test_suite.h" #include "media/base/media.h" class TestSuiteNoAtExit : public base::TestSuite { ...
Add MainHook to media unittests.
Add MainHook to media unittests. MainHooks are in particular used on iOS to prevent the system from killing the test application at startup. See https://chromiumcodereview.appspot.com/10690161/ for more context. BUG=b/6754065 Review URL: https://chromiumcodereview.appspot.com/10915061 git-svn-id: de016e52bd170d2d...
C++
bsd-3-clause
M4sse/chromium.src,hgl888/chromium-crosswalk,dednal/chromium.src,axinging/chromium-crosswalk,jaruba/chromium.src,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,Jonekee/chromium.src,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,...
--- media/base/run_all_unittests.cc +++ media/base/run_all_unittests.cc @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/test/main_hook.h" #include "base/test/test_suite.h" #include "media/base/media.h" @@ -22,5 +23,6 @@ } ...
// 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 "base/test/main_hook.h" #include "base/test/test_suite.h" #include "media/base/media.h" class TestSuiteNoAtExit : public base::TestSuite { ...
<|original_code|> // 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 "base/test/test_suite.h" #include "media/base/media.h" class TestSuiteNoAtExit : public base::TestSuite { public: TestS...
16e678cc1869afdcffa0adffadfa4d6ce7b78d20
Day2/Day2.cpp
Day2/Day2.cpp
// Day2.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main() { std::ifstream Input("Input.txt"); if (!Input.is_open()) { std::cout << "Error opening File!" << std::endl; return 0; } std::string Line; uint64_t WrappingPaper = 0; while (std::getline(Input, Line)) {...
// Day2.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main() { std::ifstream Input("Input.txt"); if (!Input.is_open()) { std::cout << "Error opening File!" << std::endl; return 0; } std::string Line; uint64_t WrappingPaper = 0; uint64_t Ribbon = 0; while (std::ge...
Add solution for Day 2 part two
Add solution for Day 2 part two
C++
mit
jloehr/AdventOfCode,jloehr/AdventOfCode,jloehr/AdventOfCode
--- Day2/Day2.cpp +++ Day2/Day2.cpp @@ -15,6 +15,7 @@ std::string Line; uint64_t WrappingPaper = 0; + uint64_t Ribbon = 0; while (std::getline(Input, Line)) { @@ -35,13 +36,16 @@ uint32_t Side3 = l * h; uint32_t SmallestSide = std::min({ Side1, Side2, Side3 }); + uint32_t LargestDimension = std::ma...
// Day2.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main() { std::ifstream Input("Input.txt"); if (!Input.is_open()) { std::cout << "Error opening File!" << std::endl; return 0; } std::string Line; uint64_t WrappingPaper = 0; uint64_t Ribbon = 0; while (std::ge...
<|original_code|> // Day2.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main() { std::ifstream Input("Input.txt"); if (!Input.is_open()) { std::cout << "Error opening File!" << std::endl; return 0; } std::string Line; uint64_t WrappingPaper = 0; while (std::getlin...
0fa689e5f7c4164088f9a3d474da286f0250a81c
testing/test_single_agent_async_execute.cpp
testing/test_single_agent_async_execute.cpp
#include <agency/new_executor_traits.hpp> #include <cassert> #include <iostream> #include "test_executors.hpp" template<class Executor> void test() { using executor_type = Executor; { // returning void executor_type exec; int set_me_to_thirteen = 0; auto f = agency::new_executor_traits<exe...
#include <agency/new_executor_traits.hpp> #include <cassert> #include <iostream> #include "test_executors.hpp" template<class Executor> void test() { using executor_type = Executor; { // returning void executor_type exec; int set_me_to_thirteen = 0; auto f = agency::new_executor_traits<exe...
Validate the executor as part of the test
Validate the executor as part of the test
C++
bsd-3-clause
egaburov/agency,egaburov/agency
--- testing/test_single_agent_async_execute.cpp +++ testing/test_single_agent_async_execute.cpp @@ -24,6 +24,7 @@ f.wait(); assert(set_me_to_thirteen == 13); + assert(exec.valid()); } { @@ -37,6 +38,7 @@ }); assert(f.get() == 13); + assert(exec.valid()); } }
#include <agency/new_executor_traits.hpp> #include <cassert> #include <iostream> #include "test_executors.hpp" template<class Executor> void test() { using executor_type = Executor; { // returning void executor_type exec; int set_me_to_thirteen = 0; auto f = agency::new_executor_traits<exe...
<|original_code|> #include <agency/new_executor_traits.hpp> #include <cassert> #include <iostream> #include "test_executors.hpp" template<class Executor> void test() { using executor_type = Executor; { // returning void executor_type exec; int set_me_to_thirteen = 0; auto f = agency::new_e...
a2a02703e2f3b3bb26081b605af62ac7309562a2
config.tests/sensord/main.cpp
config.tests/sensord/main.cpp
#include <sensormanagerinterface.h> #include <datatypes/magneticfield.h> int main() { SensorManagerInterface* m_remoteSensorManager; m_remoteSensorManager = &SensorManagerInterface::instance(); return 0; }
#include <sensormanagerinterface.h> #include <datatypes/magneticfield.h> #include <abstractsensor.h> #include <abstractsensor_i.h> int main() { SensorManagerInterface* m_remoteSensorManager; m_remoteSensorManager = &SensorManagerInterface::instance(); QList<DataRange> (AbstractSensorChannelInterface::*func...
Update the sensord config test
Update the sensord config test Pulse seems to have an old version so it's breaking. Update the test to use the same code the plugin uses so that this isn't allowed.
C++
lgpl-2.1
KDE/android-qt-mobility,enthought/qt-mobility,KDE/android-qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,kaltsi/qt-mobility,enthought/qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,qtproject/qt-mobility,enthought/qt-mobility,tmcguire/qt-mobili...
--- config.tests/sensord/main.cpp +++ config.tests/sensord/main.cpp @@ -1,10 +1,13 @@ #include <sensormanagerinterface.h> #include <datatypes/magneticfield.h> +#include <abstractsensor.h> +#include <abstractsensor_i.h> int main() { SensorManagerInterface* m_remoteSensorManager; m_remoteSensorManager = &...
#include <sensormanagerinterface.h> #include <datatypes/magneticfield.h> #include <abstractsensor.h> #include <abstractsensor_i.h> int main() { SensorManagerInterface* m_remoteSensorManager; m_remoteSensorManager = &SensorManagerInterface::instance(); return 0; }
<|original_code|> #include <sensormanagerinterface.h> #include <datatypes/magneticfield.h> int main() { SensorManagerInterface* m_remoteSensorManager; m_remoteSensorManager = &SensorManagerInterface::instance(); return 0; } <|edits_diff|> --- config.tests/sensord/main.cpp +++ config.tests/sensord/main.cp...
End of preview.