text
stringlengths
54
60.6k
<commit_before>#include <stdio.h> #include <stdlib.h> #include <string.h> #include <iostream> #include <fstream> #include <string> #include <time.h> #include <sys/time.h> using namespace std; // Quicksort void quickSort(int a[], int p, int r); int partition(int a[], int p, int r); // BubbleSort void bubbleSort(int ar...
<commit_before>/* $Id$ */ # ifndef CPPAD_REVERSE_INCLUDED # define CPPAD_REVERSE_INCLUDED /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under...
<commit_before>#pragma once #include <algorithm> #include <initializer_list> #include <stdexcept> #include <utility> #include <vector> #include "base/helpers.hpp" #include "is_equal_to_zero.hpp" #include "maths.hpp" #include "random.hpp" struct maximal_element_search_tag {}; struct prime_modulo_calculati...
<commit_before>/* * Copyright (c) 2001-2006 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above c...
<commit_before>#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_COUNTER #include "Catch.hpp" #include <vector> #include <functional> #include <boost/asio.hpp> #include "ModbusConsts.hpp" #include "ModbusTypes.hpp" #include "ModbusDecoder.hpp" #include "ModbusEncoder.hpp" #include "ModbusServerDevice.hpp" #include "Modb...
<commit_before><commit_msg>[김형준] 클라이언트 퀘스트 노출내용 버그 수정<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2007-2010 Digital Bazaar, Inc. All rights reserved. */ #define __STDC_CONSTANT_MACROS #include "monarch/net/SocketTools.h" #include "monarch/net/WindowsSupport.h" #include "monarch/rt/Thread.h" #include "monarch/rt/System.h" #include <limits.h> #ifndef WIN32 #include <poll.h> #end...
<commit_before>/* Copyright (c) 2013, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>// ****************************************************************************************** // * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com * // ****************************************************************************************** #include "player_sys.sq...
<commit_before> /* * var_len_pool_test.cpp - Test suite for varrable lengthed allocation pool */ #include "test_suite.h" #include "../src/VarLenPool.h" /* * VarLenPoolBasicTest() - This function allocates a series of memory * using an increasing sequence and then check * ...
<commit_before>/* Copyright 2015 Rachael Harding Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
<commit_before>/* * Copyright 2013 KanMemo Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
<commit_before>/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retai...
<commit_before> /*! \file \author Igor Mironchik (igor.mironchik at gmail dot com). Copyright (c) 2013-2020 Igor Mironchik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrict...
<commit_before>/* Copyright libCellML Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
<commit_before>#include <stdlib.h> #include <log4cxx/logger.h> #include <log4cxx/fileappender.h> #include <log4cxx/simplelayout.h> #include <log4cxx/helpers/exception.h> using namespace log4cxx; using namespace log4cxx::helpers; int main() { int ret = EXIT_SUCCESS; try { LayoutPtr layout = new SimpleLayout(); ...
<commit_before>/** * \file cvmfs_sync.cc * * This tool makes the changes to a repository based on the cvmfsflt * kernel module log. * We call the user's working directoy "shadow directory". This shadow * directory is synchronized with a CVMFS2 repository. The .cvmfscatalog * magic file is translated into nest...
<commit_before>/* Copyright 2012 Frederik Gladhorn <gladhorn@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)...
<commit_before>#pragma once #include <iostream> #include <unordered_map> #include <map> #include <tuple> #include <type_traits> #include "base/header.hpp" #include "base/function_traits.hpp" #include "base/thread_pool.hpp" #include "base/logger.hpp" #include "base/singleton.hpp" #include "base/serialize_util.hpp" #inc...
<commit_before>#include "stdio.h" #include "BVS.h" int main(int argc, char** argv) { // start BVS BVS bvs(argc, argv); bvs.setLogSystemVerbosity(3); bvs.enableLogFile("BVSLog.txt"); //bvs.setup(); // load and apply options from config BVSLogger logger("BVSDaemon"); LOG(2, "starting!"); ...
<commit_before>#include <stdlib.h> #include "gtest/gtest.h" #include "braincloud/BrainCloudClient.h" #include "braincloud/BrainCloudEntity.h" #include "TestResult.h" #include "json/json.h" #include "TestBCEntity.h" using namespace BrainCloud; TEST_F(TestBCEntity, Create) { TestResult tr; Json::Value entityD...
<commit_before>/* ** Author(s): ** - Laurent Lec <llec@aldebaran-robotics.com> ** ** Copyright (C) 2010, 2012 Aldebaran Robotics */ #include <gtest/gtest.h> #include <qi/application.hpp> #include <qitype/genericobject.hpp> #include <qitype/genericobjectbuilder.hpp> #include <qimessaging/session.hpp> #include <qi...
<commit_before>#include <combinations.hpp> #include <vector> #include <string> #include <iostream> #include <array> using iter::combinations; int main() { std::vector<int> v = {1,2,3,4,5}; //doesn't work with 0 for (auto i : combinations(v,0)) { for (auto j : i ) std::cout << j << " "; std...
<commit_before>#include <combinations.hpp> #include <vector> #include <string> #include <iostream> #include <array> using iter::combinations; int main() { std::vector<int> v = {1,2,3,4,5}; //doesn't work with 0 for (auto i : combinations(v,0)) { for (auto j : i ) std::cout << j << " "; std...
<commit_before>/* This file is part of the Grantlee template system. Copyright (c) 2010 Michael Jansen <kde@michael-jansen.biz> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; eithe...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBenchLogger.h" #include "BenchTimer.h" #include "PictureBenchmark.h" #include "SkCanvas.h" #include "SkPicture.h" #include "SkString.h" #include "pi...
<commit_before>#include "any.hpp" #include <gtest/gtest.h> struct A { explicit A(int i) : m_i(i) {} int m_i; }; TEST(basic, size) { any<16> a; ASSERT_EQ(16, sizeof(a)); } TEST(pod, assign_rvalue_int) { any<16> a; a = 5; ASSERT_EQ(5, a.get<int>()); } TEST(pod, assign_lvalue_int) ...
<commit_before>#include "data-general.hpp" #include "data-course.hpp" #include "data-student.hpp" using namespace std; vector<Course> all_courses; Student user; void loadCourses() { ifstream infile("data/2012-13-s2-csv.csv"); string str; // read in the header line getline(infile, str); while (infile.peek() != -1)...
<commit_before>// source changed by mrn@paus.ch/ max rheiner // original source: henryj@paradise.net.nz #include <iostream> #include <stdlib.h> // exit() #ifdef __APPLE_CC__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include "FTGLOutlineFont.h" #include "FTGLPolygonFont.h" #include "FTGLBitmap...
<commit_before>#include "demonstrationwindow.h" #include "particlewidget.h" #include "ui_DemonstrationWindow.h" #include <QTimer> #include "qcustomplot/qcustomplot.h" #include <limits> DemonstrationWindow::DemonstrationWindow(QString simulationFile, QWidget *parent) : QMainWindow(parent), ui(new Ui::Demonstrat...
<commit_before>#include <cassert> #include "barrier_sync_client.h" #include "simulator.h" #include "config.h" #include "message_types.h" #include "packet_type.h" #include "packetize.h" #include "network.h" #include "core.h" #include "performance_model.h" #include "clock_converter.h" #include "fxsupport.h" BarrierSync...
<commit_before>#include <sx/ResFileHelper.h> #include <ns/NodeFactory.h> #include <node0/SceneNode.h> #include <node0/CompComplex.h> #include <unirender/Factory.h> #include <ns/RegistCallback.h> #include <facade/Facade.h> #include <shadergraph/Evaluator.h> #include <shadergraph/Block.h> #include <shadergraph/ShaderGrap...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
<commit_before>/** * @file * @brief Dynamic memory management * @date 04.07.12 * @author Ilia Vaprol */ #include <new> #if defined(__EXCEPTIONS) && __EXCEPTIONS==1 #error Exceptions must be disabled #endif const std::nothrow_t std::nothrow = { }; static std::new_handler __new_handler = 0; std::new_handler std...
<commit_before>/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, thi...
<commit_before>/* OpenSceneGraph example, osgvertexattributes. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, cop...
<commit_before>#include <algorithm> #include <iterator> #include "gtest/gtest.h" #include "sdd/conf/default_configurations.hh" #include "sdd/dd/context.hh" #include "sdd/dd/path_generator.hh" #include "sdd/dd/definition.hh" #include "sdd/manager.hh" #include "tests/configuration.hh" /*------------------------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: propeventtranslation.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2006-03-14 11:31:19 $ * * The Contents of this fi...
<commit_before>#ifndef __NBA_MEMPOOL_HH__ #define __NBA_MEMPOOL_HH__ #include <stdint.h> #include <assert.h> #define __ALIGN(x,a) (((x)+(a)-1)&~((a)-1)) namespace nba { class MemoryPool { public: MemoryPool() : max_size_(0), curpos_(0) {} virtual ~MemoryPool() {} virtual bool init(size_t max_size)...
<commit_before>#include <catch/catch.hpp> #include <world/core.h> using namespace world; TEST_CASE("Perlin - General test case", "[perlin]") { Perlin perlin; arma::mat reference(100, 100, arma::fill::zeros); arma::mat subject(100, 100, arma::fill::zeros); REQUIRE(arma::accu(arma::abs(subject - refer...
<commit_before>/* Copyright 2014-2015 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<commit_before>//===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#ifndef __elxMovingImagePyramidBase_hxx #define __elxMovingImagePyramidBase_hxx #include "elxMovingImagePyramidBase.h" namespace elastix { using namespace itk; /** * ******************* BeforeRegistrationBase ******************* */ template <class TElastix> void MovingImagePyramidBase<TElas...
<commit_before><commit_msg>ENH: add documentation<commit_after><|endoftext|>
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
<commit_before>/* * StoreTarget.cpp * * Created on: 19 Jan 2016 * Author: hieu */ #include <boost/foreach.hpp> #include "StoreTarget.h" #include "line_splitter.hh" #include "probing_hash_utils.hh" #include "../OutputFileStream.h" #include "../Util2.h" using namespace std; namespace Moses2 { StoreTarget::S...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2009 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docume...
<commit_before>/** * @file Simulation.cpp * @author <a href="mailto:schlottb@informatik.hu-berlin.de">Benjamin Schlotter</a> * Implementation of class Simulation */ #include "Simulation.h" using namespace naoth; using namespace std; Simulation::Simulation() { DEBUG_REQUEST_REGISTER("Simulation:draw_one_action_...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "Application.h" #include "Framework.h" #include "ConfigurationManager.h" #include "CoreStringUtils.h" #include <QDir> #include <QGraphicsView> #include <QTra...
<commit_before>#ifndef LIST_HPP #define LIST_HPP #include <sys/types.h> #include <string.h> namespace org_pqrs_KeyRemap4MacBook { class List { public: class Item { friend class List; public: Item(void) : prev_(NULL), next_(NULL) {} virtual ~Item(void) {} Item* getprev(void) { ret...
<commit_before>/* * Copyright 2018 NXP. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. ...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2012 Francois Beaune, Jupiter Jazz // // Permission is hereby granted, free of charge, to any person obt...
<commit_before>// // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "IgnoreUnused.hpp" #include "Optimization.hpp" #include <armnn/utility/PolymorphicDowncast.hpp> namespace armnn { namespace optimizations { class RedirectMembersToConstantIn...
<commit_before>// doosabin_regression.cpp // Includes #include <algorithm> #include <fstream> #include <iostream> #include <memory> #include <string> #include <utility> #include "ceres/ceres.h" #include "gflags/gflags.h" #include "glog/logging.h" #include <Eigen/Dense> #include "Math/linalg.h" #inc...
<commit_before>/* * libMaia - maiaObject.cpp * Copyright (c) 2003 Frerich Raabe <raabe@kde.org> and * Ian Reinhart Geiser <geiseri@kde.org> * Copyright (c) 2007 Sebastian Wiedenroth <wiedi@frubar.net> * * Redistribution and use in source and binary forms, with or without * modification, are pe...
<commit_before>// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // #include <assert.h> #include <string.h> #include "locale.hpp" #include "unicode/decimfmt.h" #include "unicode/numfmt.h" #include "unicode/ulocdat...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/phy/ddr_phy.H $ ...
<commit_before>/************************************************************************* * libjson-rpc-cpp ************************************************************************* * @file unixdomainsocketserver.cpp * @date 07.05.2015 * @author Alexandre Poirot <alexandre.poirot@legrand.fr> * @license See...
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <stdio.h> //#include "leveldb/expiry.h" #include "db/dbformat.h" #include "db/v...
<commit_before>#include "helper-funcs.hpp" #include "mbed.h" #include "rtos.h" /** * Initializes the peripheral nested vector interrupt controller (PNVIC) with * appropriate values. Low values have the higest priority (with system * interrupts having negative priority). All maskable interrupts are * diabled; do n...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>// Copyright 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list ...
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/external_cookie_handler.h" #include <set> #include <vector> #include "base/basictypes.h" #include "...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" #include <gtk/gtk.h> #include <gdk/gdk.h> #include <cairo/c...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" #include <gtk/gtk.h> #include <gdk/gdk.h> #include <cairo/c...
<commit_before>#include <cstdio> #include <cstdlib> #include <cstring> #include <vector> #include <iostream> #include "genome.h" using namespace std; int main(int argc, const char **argv) { if(argc != 3 && argc != 4) { cout<<"usage: "<<argv[0]<< " <in-gtf-file> <out-gtf-file> [min-coverage]"<<endl; return 0; ...
<commit_before>/** * Madhav Datt - 14CS30015 * * Software Engineering Lab - Assignment 3 * Contains Main function * Tests Date, DateFormat Classes and functionalities * */ #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include "date.h" int main (void) { cout<<Date(D01,Jan,1950)<...
<commit_before>// --------------------------------------------------------------------- // // Copyright (C) 2015 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesser Gener...
<commit_before>#include "llist.h" #include "rule.h" #include "ruleset.h" #include "state.h" #include "colour.h" #include "direction.h" #include "apply.h" #include <iostream> using namespace Turing; typedef state<5> InitialState; typedef ruleset< rule<state<4>, EMPTY, state<3>, colour<'1'>, go_left>, ruleset< ...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync_file_system/sync_file_system_service.h" #include "base/bind.h" #include "base/logging.h" #include "base/...
<commit_before><commit_msg>[Password Manger] Fix bug in link to passwords.google.com<commit_after><|endoftext|>
<commit_before>#include <algorithm> #include <string> #include <stdio.h> #include <assert.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> using namespace std; string readFile(const char* file) { string result; int fd = open(file, O_RDONLY); if (fd >= 0...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one ...
<commit_before>/************************************************************************* * * $RCSfile: app.cxx,v $ * * $Revision: 1.19 $ * * last change: $Author: mav $ $Date: 2001-06-26 13:33:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>/****************************************************************************** * Copyright (c) 2011, Howard Butler, hobu.inc@gmail.com * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions ar...
<commit_before>/* OpenHoW * Copyright (C) 2017-2019 Mark Sowden <markelswo@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your optio...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include "graphSettingsPopup.h" #include <QDateTime> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); #ifdef PMD_HAMP ui->pbtn_StartStop->setChecked(true); #endif ...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include "graphSettingsPopup.h" #include <QDateTime> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); #ifdef PMD_HAMP ui->pbtn_StartStop->setChecked(true); #endif ...
<commit_before>// ========================================================================== // // This file is part of Sara, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2019 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // Licen...
<commit_before>/*************************************************************************** * Copyright (C) 2003 by * * Cyril Bosselut (bosselut@b1project.com) * * Jason Kivlighn (mizunoami44@users.sourceforge.net) * ...
<commit_before>/* Nazara Engine - Assimp Plugin Copyright (C) 2015 Jérôme "Lynix" Leclercq (lynix680@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including with...
<commit_before>// (C) 2014 Arek Olek #pragma once #include <algorithm> #include <functional> #include <utility> #include <vector> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/connected_components.hpp> #include <boost/graph/kruskal_min_spanning_tree.hpp> #include <boost/iterator/counting_iterator.h...
<commit_before>/* * File: tests/metrics/reservoir/edr.cpp * Part of commonpp. * * Distributed under the 2-clause BSD licence (See LICENCE.TXT file at the * project root). * * Copyright (c) 2015 Thomas Sanchez. All rights reserved. * */ #include <boost/test/unit_test.hpp> #include <iostream> #include <common...
<commit_before>#include "compiler.h" #include "dosio.h" static OEMCHAR curpath[MAX_PATH]; static OEMCHAR *curfilep = curpath; #define ISKANJI(c) (((((c) ^ 0x20) - 0xa1) & 0xff) < 0x3c) // ---- static FATFS Fatfs; static FILINFO _fi; static char lfn[_MAX_LFN + 1]; void dosio_init(void) { f_mount(0, &Fatfs); _...
<commit_before>#include "catch.hpp" #include <utility> #include <type_traits> #include <iterator> #include <member_iterator.hpp> #include <forward_list> TEST_CASE("member_iterator based on ForwardIterator", "[member_iterator]") { struct mock { char c; int i; }; std::forward_list<mo...
<commit_before>#ifndef VEXCL_UTIL_HPP #define VEXCL_UTIL_HPP /* The MIT License Copyright (c) 2012 Denis Demidov <ddemidov@ksu.ru> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restric...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: uicategorydescription.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 00:40:51 $ * * The Contents of this f...
<commit_before> // Copyright (c) 2012, 2013 Lionel MOISAN. // Copyright (c) 2012, 2013 Pascal MONASSE. // Copyright (c) 2012, 2013 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>/* * Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: http://github.com/azerothcore/azerothcore-wotlk/LICENSE-AGPL */ #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "ahnkahet.h" enum Spells { SPELL_BASH ...
<commit_before>// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <memory> #include <string> #include "base/callback.h" #include "base/files/file_util.h" #include "base/strings/string_util.h" #include "base/threading/thread_r...
<commit_before>/************************************************************************* * * $RCSfile: cmdmailmsg.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2003-06-27 09:41:10 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/******************************************************************************* * thrill/common/string.hpp * * Some string helper functions * * Part of Project Thrill. * * Copyright (C) 2015 Timo Bingmann <tb@panthema.net> * * This file has no license. Only Chuck Norris can compile it. *******...
<commit_before>// DnaMatchingAndVariationDetection.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include "Sequence.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { // Define the sample sequences. char sequence1[33] = "ACAAGATGCCATTGTCCCCCGGCCTC...
<commit_before>/************************************************************************** * Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include "ofMath.h" #include "ofAppRunner.h" #ifndef TARGET_WIN32 #include <sys/time.h> #endif //-------------------------------------------------- int ofNextPow2(int a){ // from nehe.gamedev.net lesson 43 int rval=1; while(rval<a) rval<<=1; return rval; } //------------------------------------...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>#include "TiLDA_MKe.h" #include "Arduino.h" TiLDA_MKe::TiLDA_MKe() : glcd(LCD_CS, LCD_A0, LCD_RESET) { // GLCD setup pinMode(LCD_POWER, OUTPUT); digitalWrite(LCD_POWER, LOW); /* * I think the EMF board def. puts this on a PWM pin * but keeping it on digital makes it easier to toggle ...
<commit_before>#include <iostream> #include <string> #include <limits> #include "consoleui.h" using namespace std; const char TAB = '\t'; ConsoleUI::ConsoleUI() { } void ConsoleUI::WelcomeMenu() { cout << endl; cout << endl; cout << TAB << "--------------------------------------------" << endl; cou...
<commit_before>#include "sample.h" #include <gtest/gtest.h> TEST(FactorialTest, Zero) { EXPECT_EQ(1, Factorial(0)); } <commit_msg>Broke down our unit tests into gtest functions<commit_after>#include "sample.h" #include <gtest/gtest.h> /* First sample Test */ TEST(FactorialTest, Zero) { EXPECT_EQ(1, Factorial...