text
stringlengths
54
60.6k
<commit_before>/******************************************************************************* * This file is part of "Patrick's Programming Library", Version 7 (PPL7). * Web: http://www.pfp.de/ppl/ * * $Author$ * $Revision$ * $Date$ * $Id$ * *******************************************************************...
<commit_before>/* * Copyright 2011 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkAdvancedTypefaceMetrics.h" #include "SkFontDescriptor.h" #include "SkFontHost.h" #include "SkFontStream.h" #include "SkStream.h"...
<commit_before> /* * Copyright 2011 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkAdvancedTypefaceMetrics.h" #include "SkTypeface.h" #include "SkFontHost.h" SK_DEFINE_INST_COUNT(SkTypeface) //#define TRACE_...
<commit_before>/* * Copyright (c) 2021, Jan de Visser <jan@finiandarcy.com> * * SPDX-License-Identifier: GPL-3.0-or-later */ // // Created by Jan de Visser on 2021-09-20. // #include <cassert> #include <cctype> #include <core/StringUtil.h> namespace Obelix { int stricmp(const char* a, const char* b) { unsi...
<commit_before>/* * This file is part of `et engine` * Copyright 2009-2014 by Sergey Reznik * Please, do not modify content without approval. * */ #include <et/core/et.h> #include <et/core/dictionary.h> using namespace et; void printDictionary(const Dictionary& dict, const std::string& tabs); void ...
<commit_before>#pragma once #ifndef CUDA_API_WRAPPERS_MEMORY_HPP_ #define CUDA_API_WRAPPERS_MEMORY_HPP_ #include "cuda/api/error.hpp" #include "cuda_runtime.h" // needed, rather than cuda_runtime_api.h, e.g. for cudaMalloc #include <memory> #include <cstring> // for std::memset namespace cuda { namespace memory { ...
<commit_before>#include "string.h" namespace allpix { /** * @throws std::overflow_error If the converted unit overflows the requested type * * The unit type is internally converted to the type \ref Units::UnitType. After multiplying the unit, the output is * checked for overflow problems before...
<commit_before>/* * Fork a process and delegate open() to it. The subprocess returns * the file descriptor over a unix socket. * * author: Max Kellermann <mk@cm4all.com> */ #include "Client.hxx" #include "Handler.hxx" #include "Protocol.hxx" #include "please.hxx" #include "system/fd_util.h" #include "gerrno.h" #...
<commit_before>/* * Copyright 2007-2020 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * 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...
<commit_before>/* * Copyright 2002-2005 The Apache Software Foundation. * * 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 ...
<commit_before>/** * @author Cyrille Collette - ccollette@aldebaran-robotics.com * Aldebaran Robotics (c) 2009 All Rights Reserved * */ //#include <almath/types/alquaternion.h> #include <almath/tools/altransformhelpers.h> #include <almath/tools/altrigonometry.h> #include <almath/tools/almathio.h> #include <cmath> ...
<commit_before>#ifndef EE_X_WHEN_ALL_HPP #define EE_X_WHEN_ALL_HPP #ifdef __cplusplus #include <vector> #include "ee/core/LambdaAwaiter.hpp" #include "ee/core/NoAwait.hpp" #include "ee/core/Task.hpp" namespace ee { namespace core { namespace detail { template <class T> Task<> toVoidTask(T&& task) { co_await tas...
<commit_before>#ifdef DE #include"global.h" #include"grid3D.h" #include<stdio.h> #include<stdlib.h> #include"math.h" #include <iostream> #ifdef PARALLEL_OMP #include"parallel_omp.h" #endif #ifdef MPI_CHOLLA #include"mpi_routines.h" #endif int Grid3D::Select_Internal_Energy_From_DE( Real E, Real U_total, Real U_adv...
<commit_before>#include "metadata.h" #include "engine/fs/os_file.h" #include <cstdio> namespace Lumix { static const char* METADATA_FILENAME = "metadata.bin"; static const u32 METADATA_MAGIC = 0x4D455441; // 'META' enum class MetadataVersion : i32 { FIRST, LATEST }; Metadata::Metadata(IAllocator& allocator) ...
<commit_before>#include "featuresmanager.h" #include <functional> #include <fstream> #include "exchangemanager.h" #include "features.h" static const unsigned int MIN_SEQUENCE_SIZE = 5; // Otherwise, the sequence is ignored bool replace(std::string &str, const std::string &from, const std::string &to) { size_t st...
<commit_before>#include "NavarroSeq.h" #include <string> #include <fstream> #include <sstream> using namespace std; char HOMOZYGOUS = 0x31; char HETEROZYGOUS = 0x32; string get_high_frequency_variants(string filename, unsigned int population_size, unsigned int numrows, double freq_cutoff) { // Bounds check if (N...
<commit_before>#include "../allocwrapper.h" #include "../mallocator.h" #include <gtest/gtest.h> using AllocToTest = AllocWrapper<Mallocator>; TEST(AllocWrapper, allocate) { AllocToTest myAlloc; const size_t size = sizeof(char) * 100; ASSERT_NE(myAlloc.allocate(size), nullptr); } TEST(AllocWrapper, deallocate) { ...
<commit_before>/** * Copyright (c) 2016 DeepCortex GmbH <legal@eventql.io> * Authors: * - Laura Schlimmer <laura@eventql.io> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license") as * published by the Free Software...
<commit_before>#include <cstdio> #include <iostream> #include <libHierGA/HierGA.hpp> #include "SphereFitness.hpp" using namespace std; int main(void) { HierarchicalEA ea(100); vector<Locus*> baseLoci(32, new NumericSetLocus<double>(-50, 50)); ea.addNode<EANode>( 6, baseLoci, {new SphereFitness()}, new Sphe...
<commit_before>#include "gemini.h" #include "parameters.h" #include "curl_fun.h" #include "utils/restapi.h" #include "utils/base64.h" #include "openssl/sha.h" #include "openssl/hmac.h" #include "jansson.h" #include <unistd.h> #include <math.h> #include <sstream> #include <iomanip> #include <sys/time.h> namespace Gemi...
<commit_before>// Copyright 2010-2013 Google // 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 a...
<commit_before>/* Copyright (c) 2007, 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>/* Copyright (c) 2003, 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>/* Copyright (c) 2014-2015, ArrayFire Copyright (c) 2015 Gábor Mező aka unbornchikken (gabor.mezo@outlook.com) 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...
<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 "GrGLPath.h" #include "GrGLPathRendering.h" #include "GrGLGpu.h" namespace { inline GrGLubyte verb_to_gl_path_cmd(SkPath::Verb verb) { static con...
<commit_before>/*! * Copyright (c) 2019 by Contributors * \file src/lang/data_layout.cc * \brief Data Layout expression. */ #include <tvm/data_layout.h> #include <tvm/ir_pass.h> namespace tvm { TVM_REGISTER_NODE_TYPE(LayoutNode); TVM_REGISTER_NODE_TYPE(BijectiveLayoutNode); const LayoutAxis LayoutAxis::UPPER_CA...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* libwpd * Copyright (C) 2002 William Lachance (wrlach@gmail.com) * Copyright (C) 2002 Marc Maurer (uwog@uwog.net) * Copyright (C) 2006-2007 Fridrich Strba (fridrich.strba@bluewin.ch) * * This library is free software; yo...
<commit_before>/* libwpd * Copyright (C) 2002 William Lachance (wrlach@gmail.com) * Copyright (C) 2002 Marc Maurer (uwog@uwog.net) * Copyright (C) 2006-2007 Fridrich Strba (fridrich.strba@bluewin.ch) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library...
<commit_before>//----------------------------------- // Copyright Pierric Gimmig 2013-2017 //----------------------------------- #include <iostream> #include <fstream> #include "LinuxUtils.h" #include "Utils.h" #include "PrintVar.h" #include "Capture.h" #include "Callstack.h" #include "CoreApp.h" #include "SamplingPr...
<commit_before>/* * Copyright 2009-2019 The VOTCA Development Team * (http://www.votca.org) * * 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>//------------------------------------------------------------------------------ // Copyright (c) 2016 by contributors. All Rights Reserved. // // 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 o...
<commit_before>#include <class_loader/class_loader.h> #include <utexas_guidance/mdp/guidance_model.h> #include <utexas_guidance/mdp/pdpt_solver.h> #include <utexas_planning/common/exceptions.h> namespace utexas_guidance { class ActionEquals { public: explicit ActionEquals(const Action& a) : a_(a) {} ...
<commit_before>/* * Copyright (c) 2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementati...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: collectchanges.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: ihi $ $Date: 2007-11-23 14:39:16 $ * * The Contents of this file a...
<commit_before>/************************************************************************* * * $RCSfile: collectchanges.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: jb $ $Date: 2001-02-13 17:22:35 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before><commit_msg>removed debugging code<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: intercept.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2006-06-20 02:45:36 $ * * The Contents of this file are made...
<commit_before><commit_msg>Cleans up commenting.<commit_after><|endoftext|>
<commit_before>// matrixMultiplication.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> #include <stdlib.h> int main() { printf("Pierwszy program w tym roku xD\n"); system("pause"); return 0; } <commit_msg>First part of reading from files.<commit_after>// ma...
<commit_before>/* * SegmentInformation.cpp ***************************************************************************** * Copyright (C) 2014 - VideoLAN Authors * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by...
<commit_before>#include <iostream> #include <stdio.h> #include <stdlib.h> #include <mpi.h> #include "doTheMath.cpp" #include <fstream> using namespace std; int main(int argc, char *argv[]) { int numprocessors, rank, namelen, i,limit,slaves; char processor_name[MPI_MAX_PROCESSOR_NAME]; MPI_Init(&argc,...
<commit_before>#include "delta.h" #include "../utils.h" #include "../exception.h" #include "binarybuffer.h" #include <sstream> #include <cassert> #include <limits> using namespace dariadb::compression; const uint16_t delta_64_mask = 512; //10 0000 0000 const uint16_t delta_64_mask_inv = 127; //00 1111 11...
<commit_before>/* kopetestdaction.cpp - Kopete Standard Actionds Copyright (c) 2001-2002 by Ryan Cumming. <bodnar42@phalynx.dhs.org> Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before>/* The MIT License (MIT) * * Copyright (c) 2014-2018 David Medina and Tim Warburton * * 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 witho...
<commit_before>#ifndef NETWORK_MANAGER_HPP #define NETWORK_MANAGER_HPP #include <stdexcept> #include <string> #include <map> #include <functional> #include <SFML/Network.hpp> #include <SFML/System.hpp> class NetworkManager { private: unsigned short mPort; sf::UdpSocket mSocket; public: // Use similar st...
<commit_before>#include <boost/filesystem.hpp> #include <boost/format.hpp> #include <libport/detect-win32.h> #include <object/directory.hh> #include <object/path.hh> #include <runner/raise.hh> namespace object { using boost::format; /*------------. | C++ methods | `------------*/ Directory::value_type Di...
<commit_before>//Ejercicio Productor - Consumirdor //Autor: Javier Aranda Izquierdo #include <iostream> #include <cassert> #include <pthread.h> #include <semaphore.h> using namespace std ; // --------------------------------------------------------------------- // constantes const unsigned num_items = 40 , // Nume...
<commit_before>//******************************************************************* // // Program: Rogue Game // // Author: Gus Ob...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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 option) any later version. cpp-ethereum is dis...
<commit_before>#include "ovasCAcquisitionServerGUI.h" #include <openvibe/ov_all.h> #include <openvibe-toolkit/ovtk_all.h> #include <gtk/gtk.h> #include <iostream> using namespace OpenViBE; using namespace OpenViBE::Kernel; using namespace std; int main(int argc, char ** argv) { //__________________________________...
<commit_before>#include "StdAfx.h" #include "SrwDecoder.h" #include "TiffParserOlympus.h" #include "ByteStreamSwap.h" #if defined(__unix__) || defined(__APPLE__) #include <stdlib.h> #endif /* RawSpeed - RAW file decoder. Copyright (C) 2009-2010 Klaus Post This library is free software; you ...
<commit_before>#include <QDebug> #include "httpparser.h" HTTPParser::HTTPParser(QObject *parent) : QObject(parent), isParsedHeader(false) { requestData.contentLength = -1; } void HTTPParser::parsePostData() { if(data.isEmpty()){ return; } QString postBody = data; QStringList pairs = post...
<commit_before>#include <QtNetwork/QTcpSocket> #include "httpthread.h" HTTPThread::HTTPThread(int socketDescriptor, QString docRoot, QObject *parent) : QThread(parent), socketDescriptor(socketDescriptor), docRoot(docRoot) { } void HTTPThread::run() { QTcpSocket socket; if(!socket.setSocketDescriptor(soc...
<commit_before> #include "TeamMessage.h" #include <cstring> #include <cstdio> namespace rctc { // functions /** * */ bool binaryToMessage(const uint8_t* data, Message &msg) { // check header uint32_t header; memcpy(&header, &data[RCTC_HEADER], 4); header = ntohl(header); ...
<commit_before>#include <iostream> #include <algorithm> #include <iterator> #include <memory> #include <vector> class IObject { public: double m_value = 0; }; class IListOfObjects { public: class proxy { public: explicit proxy(IObject* pObject) : m_pObject(pObject) {} void operator = (const proxy&) = ...
<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>/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. ==...
<commit_before>/*! * Copyright (c) 2016 by Contributors * \file plan_memory.cc * \brief Assign memory tag to each of the data entries. */ #include <nnvm/graph.h> #include <nnvm/pass.h> #include <nnvm/graph_attr_types.h> #include <nnvm/op_attr_types.h> #include <memory> #include "./graph_algorithm.h" namespace nnv...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/hwpf/fapi2/include/return_code_defs.H $ ...
<commit_before><commit_msg>Mean pT Analysis: Minor change in the class<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2014 Robert Kooima // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, ...
<commit_before>#pragma once #include <stdint.h> #include <algorithm> #include <cstring> #include <iterator> struct can_Message_t { uint32_t id = 0x000; // 11-bit max is 0x7ff, 29-bit max is 0x1FFFFFFF bool isExt = false; bool rtr = false; uint8_t len = 8; uint8_t buf[8] = {0, 0, 0, 0, 0, 0, 0, 0}...
<commit_before>//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 Ryo Suzuki // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <sys/stat.h> # include...
<commit_before>#ifndef MEMBERDELEGATE_HPP # define MEMBERDELEGATE_HPP # pragma once #include <type_traits> namespace generic { #ifndef DELEGATE # define DELEGATE(f) decltype(&f),&f #endif // DELEGATE namespace detail { template <typename T> constexpr auto address(T&& t) -> typename ::std::remove_reference<T>::ty...
<commit_before>/******************************************************************************* * c7a/api/reduce_node.hpp * * DIANode for a reduce operation. Performs the actual reduce operation * * Part of Project c7a. * * * This file has no license. Only Chuck Norris can compile it. *************************...
<commit_before>/******************************************************************************* Copyright (c) 2015-2019 Alexandra Cherdantseva <neluhus.vagus@gmail.com> 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...
<commit_before>/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/function/CEvaluationNodeFunction.cpp,v $ $Revision: 1.20 $ $Name: $ $Author: gauges $ $Date: 2005/06/30 10:29:00 $ End CVS Header */ #include "copasi.h" #include "mathematics.h" #include "CEvaluationNode.h...
<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 "ash/system/logout_button/tray_logout_button.h" #include <cstddef> #include "ash/shell.h" #include "ash/system/tray/system_t...
<commit_before><commit_msg>Fix for MPISession<commit_after><|endoftext|>
<commit_before>/* Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusiv...
<commit_before>#include "ptk/assert.h" #include "stm32f4xx.h" #if defined(PTK_USE_CC_STUBS) void *operator new[](unsigned size) { ptk_halt("unimplemented: operator new[]()"); // not reached return (void *) 0xffffffff; } void operator delete(void *ptr) { ptk_halt("unimplemented: operator delete()"); } extern...
<commit_before>//****************************************************************************************************** // TransportTypes.cpp - Gbtc // // Copyright 2018, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreem...
<commit_before>/* * This file contains source code for a program that generates binary * species trees from a birth-death process. Given the two paramters, * birth- and death-rate, the program creates a binary tree with times * on the edges. The output is in newick format. */ #include "common.hh" #include <sys/t...
<commit_before>/* -*- mode: C++; c-file-style: "gnu"; c-basic-offset: 2 -*- test_cryptoconfig.cpp This file is part of libkleopatra's test suite. Copyright (c) 2004 Klarlvdalens Datakonsult AB Libkleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU Gener...
<commit_before>#include "service.h" #include "evpp/libevent.h" #include "evpp/event_watcher.h" #include "evpp/event_loop.h" #if defined(EVPP_HTTP_SERVER_SUPPORTS_SSL) #include <openssl/err.h> #endif /* static struct bufferevent* bevcb (struct event_base *base, void *arg) { struct bufferevent* r; SSL_CTX *ct...
<commit_before>/* * Top Level window for KArm. * Distributed under the GPL. */ #include <numeric> #include <qkeycode.h> #include <qpopupmenu.h> #include <qptrlist.h> #include <qstring.h> #include <kaccel.h> #include <kaction.h> #include <kapplication.h> // kapp #include <kconfig.h> #include <kdebug.h> #inclu...
<commit_before>// $Id: AliHLTCaloClusterAnalyser.cxx 35107 2009-09-30 01:45:06Z phille $ /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * ...
<commit_before>#ifndef ITER_CHAIN_HPP_ #define ITER_CHAIN_HPP_ #include "iterbase.hpp" #include <utility> #include <iterator> #include <memory> #include <initializer_list> #include <type_traits> namespace iter { namespace impl { template <typename Container, typename... RestContainers> class Chained; ...
<commit_before>#include <QDebug> #include <QElapsedTimer> // For performance measurement #include <QTime> #include "engine.h" #include "rotator.h" #include "resizer.h" Engine::Engine(QObject *parent) : QObject(parent), m_rotation(0), m_smoothPixmapTransformHint(false), m_privateOpeningState(false), m_privat...
<commit_before>/* -------------------------------------------------------------------------- * * Simbody(tm): SimTKcommon * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating fr...
<commit_before>#include <iostream> #include <fstream> //#include <codecvt> //#include <cstddef> #include <locale> #include <string> #include <iomanip> #include "cp-neural.h" using std::wcout; using std::wstring; using std::cerr; using std::vector; class Text { private: bool isinit=false; bool readDataFile(st...
<commit_before>#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ drawSpeed = 200; // number of drawn shapes per draw() call drawMode = 0; // move through the drawing modes by clicking the mouse bg_color = ofColor(255); fbo_color = ofColor(0); bUpd...
<commit_before>#ifndef DUNE_DETAILED_SOLVERS_LINEARELLIPTIC_MODEL_HH #define DUNE_DETAILED_SOLVERS_LINEARELLIPTIC_MODEL_HH #include <dune/common/exceptions.hh> #include <dune/common/parametertree.hh> #include <dune/stuff/common/color.hh> #include "model/interface.hh" #include "model/default.hh" #include "model/therm...
<commit_before>/*! \file exampleEarthOrbitingSatellite.cpp * Source file that contains an example application of an Earth-orbiting * satellite mission scenario using Tudat. * * Path : /Applications/ * Version : 3 * Check status : Checked * * Author : K. K...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "KristalliProtocolModule.h" #include "KristalliProtocolModuleEvents.h" #include "Profiler.h" #include "EventManager.h" #include "CoreStringUtils.h" #include ...
<commit_before>// // main.cpp // Unit Tests // // Created by Evan McCartney-Melstad on 12/31/14. // Copyright (c) 2014 Evan McCartney-Melstad. All rights reserved. // #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "../cPWP/generateSimulatedData.h" #includ...
<commit_before>/* $Id$ */ // Simple task to test the collision normalization. Can be called for // both MC and data and shows how to fill the collision normalization // class // // Author: Michele Floris // CERN #include "AliCollisionNormalizationTask.h" #include <TFile.h> #include <TH1F.h> #include <TH2F....
<commit_before>/*************************************************************************** * Copyright (C) 2005-2007 by the FIFE Team * * fife-public@lists.sourceforge.net * * This file is part of FIFE. ...
<commit_before>/************************************************************************* * * $RCSfile: AccessibleViewForwarder.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: af $ $Date: 2002-04-11 17:03:58 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>#include <stdio.h> #include <string.h> #include <stdint.h> #include <malloc.h> #include "sensorhandler.h" extern uint8_t find_type_for_sensor_number(uint8_t); struct sensorRES_t { uint8_t sensor_number; uint8_t operation; uint8_t sensor_reading; uint8_t assert_state7_0; uint8_t assert_state14_8; ...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/autofill/autofill_manager.h" #include <string> #include "base/command_line.h" #include "chrome/browser/autof...
<commit_before>#include "gtest/gtest.h" #include <libcellml> /** * @todo Need a way to have resources which can be used in tests, such as the * source models used in these tests. But I guess not until we start validating * models... * * While this is needed eventually, for now we are not instantiating the import...
<commit_before> #include <stdint.h> #include <stdio.h> #include <memory.h> namespace mm { #pragma pack(push, 1) struct smap_entry_t { uint64_t base; uint64_t length; uint32_t type; uint32_t acpi; } __attribute__((packed)); #pragma pack(pop) static int entries_count; static smap_entry_t *entries; void detect(vo...
<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/debugger/devtools_manager.h" #include <vector> #include "base/auto_reset.h" #include "base/message_loop.h" #...
<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/printing/print_dialog_gtk.h" #include <gtk/gtkprintjob.h> #include <gtk/gtkprintunixdialog.h> #include <gtk/g...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkArcParallelEdgeStrategy.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for det...
<commit_before>// Time: O(n) // Space: O(1) /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode *reverseBetween(ListNode *head, int m, int n) { ListNode ...
<commit_before>// Copyright 2015 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...