text
stringlengths
54
60.6k
<commit_before>//Implementation of a Forest Fire Simulation #ifndef FOREST_HPP_DEFINED #define FOREST_HPP_DEFINED #include <string> #include <vector> #include <memory> #include <random> #include "warped.hpp" WARPED_DEFINE_LP_STATE_STRUCT(ForestState) { enum burning_status_{ UNBURNT, GROWTH, DEC...
<commit_before>#include <iostream> #include <thread> #include <sstream> #include <franka/gripper.h> #include <franka/gripper_state.h> int main(int argc, char** argv) { if (argc != 4) { std::cerr << "Usage: ./grasp_object <gripper-hostname> <homing> <object-width>" << std::endl; return -1; } try { f...
<commit_before>/* * Copyright (C) 2012 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 l...
<commit_before>#include "HM3Pointers.h" HM3Pointers::HM3Pointers(HM3Version version) { Setup(version); } HM3Pointers::~HM3Pointers() { } void HM3Pointers::Setup(HM3Version version) { uint8_t** difficultyPtr = nullptr; uint8_t** timePtr = nullptr; switch (version) { case HM3_GOG: m_Stats =...
<commit_before>#include "mbed.h" #include "greentea-client/test_env.h" #include "rtos.h" #if defined(MBED_RTOS_SINGLE_THREAD) #error [NOT_SUPPORTED] test not supported #endif typedef struct { float voltage; /* AD result of measured voltage */ float current; /* AD result of measured current */ ...
<commit_before>// Copyright (c) 2011 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 <map> #include "base/file_util.h" #include "base/path_service.h" #include "base/string_number_conversions.h" #include "base/t...
<commit_before>/** * For conditions of distribution and use, see copyright notice in license.txt * * @file InputMapper.h * @brief Registers an InputContext from the Naali Input subsystem and uses it to translate * given set of keys to Entity Actions on the entity the component is part of. */ #incl...
<commit_before>/** * For conditions of distribution and use, see copyright notice in license.txt * * @file InputMapper.h * @brief Registers an InputContext from the Naali Input subsystem and uses it to translate * given set of keys to Entity Actions on the entity the component is part of. */ #incl...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkInformationExecutivePortVectorKey.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.h...
<commit_before>// IBM_PROLOG_BEGIN_TAG // This is an automatically generated prolog. // // $Source: src/include/usr/ecmddatabuffer/prdfCompressBuffer.H $ // // IBM CONFIDENTIAL // // COPYRIGHT International Business Machines Corp. 2011 // // p1 // // Object Code Only (OCO) source materials // Licensed Internal ...
<commit_before>#include <tools/common/log.h> #include <tools/common/fmt.h> int main (){ tools::log = tools::Logger::setLogger("test-log",0,true); tools::log->info("This is a test log"); fmt::print("Hello world\n"); std::vector<bool> test1 = {true,false,true}; std::vector<double> test2 = {1,2,3}; ...
<commit_before>// Copyright (C) 2010, 2011 and 2012 Marcin Arkadiusz Skrobiranda. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above ...
<commit_before>/* * ESPectro32_Button.cpp * * Created on: Aug 8, 2017 * Author: andri */ #include "ESPectro32_Button.h" #include <GPIO.h> /* the global instance pointer */ //static xQueueHandle button_evt_queue = NULL; ESPectro32_Button::ESPectro32_Button(uint8_t gpio, boolean activeHigh): gpioNumber_(gpi...
<commit_before>/************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * * ...
<commit_before>// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- #ifndef __RD_SDL_SCREEN_MANAGER_HPP__ #define __RD_SDL_SCREEN_MANAGER_HPP__ #include <string> #include <vector> #include <map> #include <SDL.h> #include <yarp/os/Mutex.h> //-- Right now use yarp mutex. In the future is better to...
<commit_before> #include <iostream> #include <thread> #include <mutex> #include <condition_variable> #include <queue> #include <glibmm/random.h> #include <glibmm/timer.h> #include <glibmm/init.h> namespace { class MessageQueue { public: MessageQueue(); ~MessageQueue(); void producer(); void consumer(); priv...
<commit_before>/************************************************************************* * * $RCSfile: TKeyColumns.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: oj $ $Date: 2002-10-25 09:01:21 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: process.cpp // Purpose: Implementation of class wxExProcess // Author: Anton van Wezenbeek // Copyright: (c) 2012 Anton van Wezenbeek ///////////////////////////////////////////////////////////////////////...
<commit_before>/************************************************************************* * * $RCSfile: Yservices.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: oj $ $Date: 2002-11-11 08:54:32 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* Copyright 2022 The TensorFlow Authors. 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 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/* Copyright 2019 The TensorFlow Authors. 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 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/* Copyright 2019 The TensorFlow Authors. 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 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/* * msvQVTKButtons.cpp * VTKButtons * * Created by Roberto Mucci on 13/01/12. * Copyright 2012 B3C. All rights reserved. * * See License at: http://tiny.cc/QXJ4D * */ #include "msvQVTKButtons.h" #include <QImage> #include <QDir> #include "msvQVTKAnimate.h" #include <vtkSmartPointer.h> #...
<commit_before>// Test for direct coverage writing with dlopen. // Test normal exit, coverage level 1. // RUN: %clangxx_asan -fsanitize-coverage=func -DSHARED %s -shared -o %T/libcoverage_android_test_1.so -fPIC // RUN: %clangxx_asan -fsanitize-coverage=func -DSO_DIR=\"%device\" %s -o %t // RUN: adb shell rm -rf %dev...
<commit_before>/* * Copyright (C) 2017-2019 CS Systemes d'Information (CS SI) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.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 c...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>// // Copyright (c) 2008-2016 the Urho3D project. // // 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, ...
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "Copyright (c) 2012-2013 Tokutek Inc. All rights reserved." #ident "$Id$" #include <stdio.h> // rename(), #include <fcntl.h> // open() #include <unistd.h> // close(), write(), read...
<commit_before>#include "Halide.h" #include <stdio.h> #include <memory> int error_occurred = false; void halide_error(void *ctx, const char *msg) { printf("Expected: %s\n", msg); error_occurred = true; } using namespace Halide; int main(int argc, char **argv) { uint8_t c[4096]; memset(c, 42, sizeof(c...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>// // Class AliRsnFunction // // This class defines a base classe to implement a function // which uses the internal RSN package event format (AliRsnEvent). // It contains some default flags which turn out to be useful: // - a flag to select only the "true" pairs (tracks from same resonance) // - a fla...
<commit_before>#include "../window.h" #include "../resources.h" #include <tween/tween.h> #include <coreutils/format.h> #include <EGL/egl.h> #include <GLES2/gl2.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unordered_map> #include <functional> #include <bcm_host.h> ...
<commit_before>AliESDtrackCuts* CreateCuts(Bool_t fieldOn = kTRUE, Bool_t hists = kTRUE); AliAnalysisTask* AddTaskFilteredTree(TString outputFile="") { gSystem->Load("libANALYSIS"); gSystem->Load("libANALYSISalice"); gSystem->Load("libTender"); gSystem->Load("libCORRFW"); gSystem->Load("libPWGUDbase"); gSy...
<commit_before>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp" #include "vector.h" TEST_CASE("Vector default ctor") { Vector v; for (unsigned i = 0; i < v.n; ++i) { REQUIRE(v[i] == 0.0); } }<commit_msg>some unittests added<commi...
<commit_before>/* * Copyright (c) 2013, Hernan Saez * 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, t...
<commit_before>#include <BuildManager.h> #include <BuildingPlacer.h> #include <ConstructionManager.h> #include <ProductionManager.h> #include <MorphManager.h> BuildManager::BuildManager(Arbitrator::Arbitrator<BWAPI::Unit*,double>* arbitrator) { this->arbitrator=arbitrator; this->buildingPlacer=new BuildingP...
<commit_before>#include "pch.h" #include "aiInternal.h" #include "aiContext.h" #include "aiObject.h" #include <limits> std::string ToString(const aiConfig &v) { std::ostringstream oss; oss << "{swapHandedness: " << (v.swapHandedness ? "true" : "false"); oss << ", swapFaceWinding: " << (v.swap...
<commit_before>#include "Commands.h" #include "Settings.h" CommandLine commandLine(Serial, "> "); bool setupMode; /** * Universal method for reading 1, 2 or 4 bytes. */ void parseCommand(void* property, size_t length, uint32_t min, uint32_t max) { char* parameter = strtok(NULL, " "); if (parameter == NULL) ...
<commit_before>// Copyright 2013 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 "content/browser/dom_storage/dom_storage_host.h" #include "content/browser/dom_storage/dom_storage_area.h" #include "content/brow...
<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 "content/common/gpu/client/content_gl_context.h" #include "base/bind.h" #include "base/debug/trace_event.h" #include "base/la...
<commit_before>//===--- ParentVirtualCallCheck.cpp - clang-tidy---------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/**************************************************************************** * * Copyright (c) 2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
<commit_before>/************************************************************************* * * $RCSfile: datasourceconnector.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2003-03-19 17:52:53 $ * * The Contents of this file are made available subject to the terms of * either of the foll...
<commit_before>/** * @file hybrid_height.cpp * * @date Apr 5, 2013 * @author peramaki */ #include "hybrid_height.h" #include "plugin_factory.h" #include "logger_factory.h" #include <boost/lexical_cast.hpp> #include <boost/thread.hpp> #include <math.h> #define HIMAN_AUXILIARY_INCLUDE #include "fetcher.h" #includ...
<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>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Qt Software Information (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Com...
<commit_before>/* * * EthereumLikeWallet * * Created by El Khalil Bellakrid on 14/07/2018. * * The MIT License (MIT) * * Copyright (c) 2018 Ledger * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal ...
<commit_before>// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html #include <bse/processor.hh> #include <bse/signalmath.hh> #include "bse/internal.hh" #define DDEBUG(...) Bse::debug ("debugdsp", __VA_ARGS__) namespace Bse { /// Namespace used for DSP debugging definitiond. namespace DebugDs...
<commit_before>#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include <stack> #include <queue> using namespace std; class MyQueue { public: stack<int> stack_newest_on_top, stack_oldest_on_top; void push(int x) { stack_newest_on_top.push(x...
<commit_before>#include "Player.h" Player::Player(void) { mHitbox.setPosition(200, 200); mHitbox.setSize(sf::Vector2f(50, 80)); mHitbox.setOrigin(25, 40); mHitbox.setFillColor(sf::Color::Magenta); mSpeed = 2; mJump = false; } Player::~Player(void) { } Entity* Player::newPlayer() { return new Player(); } ...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // This source file is part of Hect. // // Copyright (c) 2014 Colin Hill // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software...
<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>/*========================================================================= Program: Visualization Toolkit Module: Generate3DAMRDataSetWithPulse.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for ...
<commit_before>// Filename: stereoDisplayRegion.cxx // Created by: drose (19Feb09) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2019, John Haddon. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkQtChartSeriesModelRange.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>#include "augs/templates/container_templates.h" #include "augs/audio/sound_buffer.h" #include "game/transcendental/cosmos.h" #include "game/transcendental/entity_handle.h" #include "game/transcendental/data_living_one_step.h" #include "game/messages/start_sound_effect.h" #include "game/components/inte...
<commit_before>// Copyright (C) 2019 by Pedro Mendes, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of ...
<commit_before>#include <nds.h> #include "dmafuncs.h" #ifdef USING_SDL void woopsiDmaCopy(const u16* source, u16* dest, u32 count) { memcpy(dest, source, sizeof(u16) * count); } void woopsiDmaFill(u16 fill, u16* dest, u32 count) { for (u32 i = 0; i < count; i++) { *(dest + i) = fill; } } #else ...
<commit_before>/* * drakeUtil.cpp * * Created on: Jun 19, 2013 * Author: russt */ #include "drakeUtil.h" #include <string.h> #include <string> #include <math.h> #include <limits> #include <Eigen/Dense> using namespace std; bool isa(const mxArray* mxa, const char* class_str) // mxIsClass seems to not be ab...
<commit_before>#define S_FUNCTION_NAME lcmLogger #define S_FUNCTION_LEVEL 2 #include "simstruc.h" #include <lcm/lcm.h> #define UNUSED(x) (void)(x) static double simtime = -1.0; static lcm_t* lcm = NULL; #define MDL_INITIAL_SIZES static void mdlInitializeSizes(SimStruct *S) { ssSetNumSFcnParams(S, 2...
<commit_before>// @(#)root/cont:$Id$ // Author: Fons Rademakers 04/08/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/************************************************************************* * * $RCSfile: objectcontactofpageview.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2004-10-12 10:03:42 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc. 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, c...
<commit_before>/* ********************************************************************************* * File : AddTaskNetParticle.C * Authors : Jochen Thaeder <jochen@thaeder.de> * Michael Weber <m.weber@cern.ch> * ********************************************************************************* * Con...
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc. 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, c...
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc. 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, c...
<commit_before>/* Copyright 2018 The TensorFlow Authors. 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 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc. 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, c...
<commit_before>/* NOISE - make noise p0 = output start time p1 = duration p2 = amplitude p3 = percent of signal to left output channel [optional, default is .5] p2 (amplitude) and p3 (pan) can receive dynamic updates from a table or real-time control source. If an old-style gen table 1 is presen...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#include <cassert> #include <iostream> #include <cmath> #include <iostream> #include <fstream> #include <future> #include <signal.h> #include <QVBoxLayout> #include <QMouseEvent> #include <QPushButton> #include <QGridLayout> #include "window.hpp" #include "settings.hpp" #include "paint.hpp" #include "...
<commit_before>/* * Copyright 2014-2020 Real Logic Limited. * * 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 app...
<commit_before>#include "ServerRpcLayer.hpp" #include "Debug_p.hpp" #include "FunctionStreamOperators.hpp" #include "IgnoredMessageNotification.hpp" #include "MTProto/MessageHeader.hpp" #include "MTProto/Stream.hpp" #include "MTProto/StreamExtraOperators.hpp" #include "RemoteClientConnectionHelper.hpp" #include "RpcEr...
<commit_before>/**************************************************************************************/ /* */ /* Visualization Library */ /* http://www.visualizationlibrary...
<commit_before>#include "Runtime/Particle/CFlameWarp.hpp" #include <algorithm> #include "Runtime/CStateManager.hpp" namespace urde { void CFlameWarp::ModifyParticles(std::vector<CParticle>& particles) { if (x9c_stateMgr == nullptr || particles.size() < 9) { return; } std::vector<std::pair<float, u8>> vec...
<commit_before>#include "core/textbox.h" #include <cstdlib> #include "core/assert.h" #include "core/stringutils.h" namespace { bool TerminalSupportUtf8() { const auto clang = std::getenv("LANG"); if(clang) { const auto lang = std::string(clang); const ...
<commit_before>/* Copyright (c) 2009-2013, Jack Poulson All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #pragma once #ifndef ELEM_CORE_RANDOM_DE...
<commit_before>/* * cpp-benches.cpp * * Benchmarks written in C++. * */ #include "cpp-benches.hpp" #include "hedley.h" #include "opt-control.hpp" #include "util.hpp" #include <limits> #include <cinttypes> #include <vector> #include <random> #include <cstddef> #include <sys/time.h> using std::size_t; using std...
<commit_before>#include <iostream> #include <seqan/arg_parse.h> #include <seqan/seq_io.h> using namespace seqan; using namespace std; const char *PROGRAM_NAME = "biotool"; const char *HEADER = "FILENAME\tNUMSEQ\tTOTAL\tMIN\tAVG\tMAX"; const unsigned DEFAULT_MIN_LEN = 0; typedef enum {Success=0, Error_command_line=1,...
<commit_before>/* * Copyright 2010, * François Bleibel, * Olivier Stasse, * * CNRS/AIST * * This file is part of sot-core. * sot-core 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 ver...
<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 "ppapi/cpp/instance.h" #include "ppapi/c/ppb_instance.h" #include "ppapi/c/ppp_printing.h" #include "ppapi/cpp/device_context...
<commit_before>#pragma once #include <gcl/algorithms/ranges.hpp> #include <gcl/algorithms/maths.hpp> #include <functional> #include <iterator> #include <algorithm> #include <concepts> namespace gcl::algorithms { // todo : // for_each that detected if the projection takes an iterator or value as parameter ? ...
<commit_before>/** * @file llfloaterbuycontents.cpp * @author James Cook * @brief LLFloaterBuyContents class implementation * * $LicenseInfo:firstyear=2004&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute ...
<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>#include "World/Scene.h" #include "Core/Intersectable/Intersector.h" #include "Core/Emitter/Sampler/EmitterSampler.h" #include "Core/HitProbe.h" #include "Core/HitDetail.h" #include "Common/assertion.h" #include "Core/Ray.h" #include "Core/Intersectable/Primitive.h" #include "Core/Emitter/Emitter.h" #in...
<commit_before>// Copyright (c) 2014 The Chromium Embedded Framework 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 <algorithm> #include <cstdlib> #include <string> #include "include/cef_stream.h" #include "include/wrapper/...
<commit_before>// Copyright (C) 2011 The Libphonenumber Authors // // 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 a...
<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>// @(#)root/auth:$Id$ // Author: G. Ganis, Nov 2006 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before> set<point> pts; vector<point> up, dn; void convexHull(){ up.assign(pts.size(),point()); dn.assign(pts.size(),point()); int i = 0, j = 0; for(set<point>::iterator it = pts.begin(); it != pts.end(); ++it){ while(i > 1 && orientation(up[i-2], up[i-1], *it) <= 0) i--; while(j > 1 && orientation(dn...
<commit_before>#include <stdio.h> #include <iostream> #include <assert.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv) { char s1[]= "Hello, Mel. Today is sunday. Let's go party!"; fprintf (stdout,"%s -> %d\n",s1,strlen(s1) ); return 0; } =========================================...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ShadowTree.h" #include <react/renderer/components/root/RootComponentDescriptor.h> #include <react/rendere...
<commit_before>/* * libjingle * Copyright 2004--2005, Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list ...
<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 "net/http/http_auth.h" #include <algorithm> #include "base/basictypes.h" #include "base/string_util.h" #include "net/base/ne...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
<commit_before>// Copyright (c) 2013, Matthew Harvey. All rights reserved. #include "b_string.hpp" #include "draft_journal.hpp" #include "draft_journal_impl.hpp" #include "draft_journal_reader.hpp" #include "entry.hpp" #include "phatbooks_database_connection.hpp" #include "phatbooks_persistent_object.hpp" #include "pr...
<commit_before>// Copyright 2013 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/logging.h" #include "gin/arguments.h" #include "gin/handle.h" #include "gin/object_template_builder.h" #include "gin/per_iso...
<commit_before>#include "pcl/console/parse.h" #include "boost/filesystem.hpp" #include "pcl/io/io.h" #include "pcl/io/ply_io.h" #include "pcl/common/common.h" int subsample( int argc, char** argv ) { typedef Eigen::Vector4f Position; bool valid_input = true; std::string cloud_path ...