text
stringlengths
54
60.6k
<commit_before>/* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> * * Ingen 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 2 of the License, or (at y...
<commit_before>// Ignore unused parameter warnings coming from cppuint headers #include <libmesh/ignore_warnings.h> #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestCase.h> #include <libmesh/restore_warnings.h> #include <libmesh/equation_systems.h> #include <libmesh/mesh.h> #include <libmesh/mesh_gen...
<commit_before>#include <iostream> #include <algorithm> #include <random> #include <simulated_annealing.hpp> struct City{ float x; float y; }; float distance(const City& c1, const City& c2) { return std::hypot(c2.x - c1.x, c2.y - c1.y); } using Trajectory = std::vector<City>; std::ostream& operator<<(s...
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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 // // ...
<commit_before>/** * **************************************************************************** * Copyright (c) 2017, Robert Lukierski. * 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> // // This file is part of Easylogging++ samples // el::Loggable sample // // Revision 1.0 // @author mkhan3189 // #include "easylogging++.h" _INITIALIZE_EASYLOGGINGPP class MyClass : public el::Loggable { public: MyClass(const char* name) : m_name(name) {} friend std::ostream& operato...
<commit_before>/*************************************************************************** * Copyright (C) 1998-2010 by authors (see AUTHORS.txt ) * * * * This file is part of LuxRays. ...
<commit_before>#pragma once #include <eosio/chain/webassembly/common.hpp> #include <eosio/chain/webassembly/runtime_interface.hpp> #include <eosio/chain/exceptions.hpp> #include <eosio/chain/apply_context.hpp> #include <softfloat_types.h> //eos-vm includes #include <eosio/wasm_backend/backend.hpp> // eosio specific ...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Willow Garage, Inc. * Copyright (c) 2012, hiDOF, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: graphicnameaccess.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:49:39 $ * * The Contents of this file ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlExport.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-07-13 15:22:19 $ * * The Contents of this file are mad...
<commit_before>/************************************************************************* * * $RCSfile: AppDetailView.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2005-01-21 17:07:10 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>#ifndef __ACTION_INTERSECT_HLS_H__ #define __ACTION_INTERSECT_HLS_H__ /* * Copyright 2016, 2017 International Business Machines * * 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 Licen...
<commit_before>/* * Copyright (c) 2008-2017, Hazelcast, Inc. 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 * * U...
<commit_before>//@author A0114171W #include "stdafx.h" #include <CppUnitTest.h> #include <cstdio> #include <fstream> #include "../mocks.h" #include "internal/operations/erase_operation.h" #include "internal/operations/post_operation.h" #include "internal/operations/put_operation.h" #include "internal/internal_datastor...
<commit_before>/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * ...
<commit_before>// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include "TextureResourceD3D11.h" #include "RendererD3D11.h" #include "core/Engine.h" #include "utils/Log.h" namespace ouzel { namespace graphics { static DXGI_FORMAT getD3D11PixelFormat(PixelFormat pixelFo...
<commit_before>#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Input.h" #include "j1Textures.h" #include "j1Audio.h" #include "j1Render.h" #include "j1Window.h" #include "j1Map.h" #include "j1Colliders.h" #include "j1Scene.h" #include "j1Scene2.h" #include "j1Player.h" j1Scene::j1Scene() : j1Modu...
<commit_before>// Copyright (c) 2009 - Decho Corp. #include "mordor/common/pch.h" #include "oauth.h" #include "mordor/common/streams/memory.h" #include "mordor/common/streams/transfer.h" void HTTP::OAuth::authorize(Request &nextRequest) { if (m_params.find("oauth_token_secret") == m_params.end() || ...
<commit_before>//////////////////////////////// -*- C++ -*- ///////////////////////////// // // FILE NAME // ParticleAttributesFactory.cc // // AUTHOR // A. Shishlo // // CREATED // 07/16/2005 // // DESCRIPTION // A factory class for particle attributes classes. // Usually it will be used from a Bunch cla...
<commit_before>// // Configurable.h // Clock Signal // // Created by Thomas Harte on 17/11/2017. // Copyright Β© 2017 Thomas Harte. All rights reserved. // #ifndef Configurable_h #define Configurable_h #include <map> #include <string> #include <vector> namespace Configurable { /*! The Option class hierarchy pro...
<commit_before>/* * Global PRNG * (C) 2008-2010 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <botan/libstate.h> #include <botan/mutex.h> #if defined(BOTAN_HAS_RANDPOOL) #include <botan/randpool.h> #endif #if defined(BOTAN_HAS_HMAC_RNG) #include <botan/hmac_rng.h> #endif #if define...
<commit_before>/* * Copyright 2009-2018 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 * * http://www.apache.org/licenses/LICENS...
<commit_before>#include <iostream> using namespace std; int main() { cout << "Hola mundo" << endl; }<commit_msg>Ahora pregunta el nombre.<commit_after>#include <iostream> #include <string> using namespace std; int main() { string nombre; cout << "ΒΏComo te llamas? " << endl; cin >> nombre; cout << "Hola " << n...
<commit_before><commit_msg>Missing include<commit_after><|endoftext|>
<commit_before>#include "flDisplayObjectContainer.h" namespace fl2d { //============================================================== // Constructor / Destructor //============================================================== //-------------------------------------------------------------- ...
<commit_before>//(c) 2016 by Authors //This file is a part of ABruijn program. //Released under the BSD license (see LICENSE file) #include <chrono> #include <thread> #include "bubble_processor.h" namespace { size_t fileSize(const std::string& filename) { std::ifstream in(filename); in.ignore(std::numeric_limi...
<commit_before>#include <string> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmat...
<commit_before>/****************************************************************************** This source file is part of the Avogadro project. This source code is released under the 3-Clause BSD License, (see "LICENSE"). ******************************************************************************/ #include "la...
<commit_before>/* * Copyright Copyright 2012, System Insights, Inc. * * 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 * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ImplHelper.cxx,v $ * * $Revision: 1.15 $ * * last change: $Author: hr $ $Date: 2006-06-20 06:07:29 $ * * The Contents of this file are ma...
<commit_before>#include <config.h> #include "grid_creation.hh" #include <dune/stuff/common/ranges.hh> #include <dune/stuff/grid/structuredgridfactory.hh> #include <dune/stuff/grid/information.hh> std::pair<std::shared_ptr<Dune::Multiscale::CommonTraits::GridType>, std::shared_ptr<Dune::Multiscale::CommonTra...
<commit_before>// Ouzel by Elviss Strazdins #ifndef OUZEL_CORE_NATIVEWINDOWMACOS_HPP #define OUZEL_CORE_NATIVEWINDOWMACOS_HPP #include <CoreGraphics/CGGeometry.h> #include <CoreGraphics/CoreGraphics.h> #ifdef __OBJC__ # import <Cocoa/Cocoa.h> typedef NSWindow* NSWindowPtr; typedef NSView* NSViewPtr; typedef id<NSWi...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkScatterPlotMatrix.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#pragma once #include "generator/feature_merger.hpp" #include "generator/generate_info.hpp" #include "generator/popular_places_section_builder.hpp" #include "search/utils.hpp" #include "indexer/classificator.hpp" #include "indexer/scales.hpp" #include "coding/pointd_to_pointu.hpp" #include "geometry...
<commit_before>/* Copyright (c) 2014, 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>#include <cmath> #include <network.h> namespace ESN { NetworkImpl::NetworkImpl( unsigned neuronCount ) : mPotential( neuronCount ) , mThreshold( neuronCount ) , mResistance( neuronCount ) , mTimeConstant( neuronCount ) , mOutputCurrent( neuronCount ) ...
<commit_before>//===- lli.cpp - LLVM Interpreter / Dynamic compiler ----------------------===// // // 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) 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 "mutex.h" #include "sandbox_impl.h" // This is a C++ implementation of trusted_thread.cc. Since it trusts // the contents of...
<commit_before>/* ----------------------------------------------------------------------------- Copyright (c) 2010 Tippett Studio 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 so...
<commit_before>/* * tt.xfade~ * External object for Max/MSP * * Example project for TTBlue * Copyright Β© 2005 by Timothy Place * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html */ #include "ext.h" // Max Header #include "z_dsp.h" // MSP Head...
<commit_before>/* * RGraphicsPlotManipulator.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * M...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "qlinear_global_average_pool.h" #include "core/util/math_cpuonly.h" #include "core/providers/common.h" #include "core/platform/threadpool.h" #include "core/util/math.h" #include "core/mlas/inc/mlas.h...
<commit_before>/* * BackwardChainerPMCB.cc * * Copyright (C) 2014 Misgana Bayetta * Copyright (C) 2015 OpenCog Foundation * * Author: Misgana Bayetta <misgana.bayetta@gmail.com> October 2014 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2012, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
<commit_before>//======================================================== // Hazi feladat keret. // A //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // sorokon beluli reszben celszeru garazdalkodni, mert // a tobbit ugyis toroljuk. // A Hazi feladat csak ebben a fajlban lehet // Tilos: // - mast "beincl...
<commit_before>/* * 17 - Check armstrong number / #include <iostream> using namespace std; int main() { int n,temp,r,result = 0; cin>>n; temp = n; while(temp) { r = temp%10; result += r*r*r; temp /= 10; } if(result == n) cout<<"Armstrong number"<<endl;...
<commit_before>#ifndef RAZORTASK_CPP #define RAZORTASK_CPP /** * @file razortask.cpp * @brief implements the class Razortask * @author Christopher "VdoP" Regali */ #include "razortask.h" #include "razorbartask.h" #include "razor.h" RazorPlugin* init(RazorBar* panel, QWidget* parent, const QString & name) { Ra...
<commit_before>/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directo...
<commit_before>#include <iostream> #include <cstring> #include <cmath> using namespace std; int main() { int n; cin>>n; bool (*a) = new bool[n+1]; memset(a,true,sizeof(bool)*(n+1)); for (int i = 2; i <= sqrt(n); i++) if (a[i]) for (int j = i; j*i <= n; j++) a[j*i] = false; ...
<commit_before>#include <iostream> #include <limits> #include <string> using namespace std; int main() { string answer,temp;int n,countn; cin>>answer>>n; cin.clear(); cin.ignore(numeric_limits<streamsize>::max(), '\n'); countn = 0; for(;(getline(cin,temp)) && (temp != "#");) { countn++; if(coun...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: GradientRecursiveGaussianImageFilter.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights...
<commit_before>#include "behaviour_xsensfollowing.h" #include <QtGui> #include <Behaviour_XsensFollowing/xsensfollowingform.h> #include <Framework/Angles.h> Behaviour_XsensFollowing::Behaviour_XsensFollowing(QString id, Module_ThrusterControlLoop *tcl, Module_XsensMTi *xsens) : RobotBehaviour(id) { this->xsens...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestRandomPContingencyStatisticsMPI.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.ht...
<commit_before>#pragma once #include <cmath> #include <iostream> const uint8_t POSIT_ROUND_DOWN = 0; const uint8_t POSIT_ROUND_TO_NEAREST = 1; /* class posit represents arbitrary configuration posits and their arithmetic */ template<size_t nbits> class quire : std::bitset<nbits> { public: quire<nbits>() {} quir...
<commit_before>#include "stdafx.h" #include "UIProgress.h" namespace DuiLib { CProgressUI::CProgressUI() : m_bHorizontal(true), m_nMin(0), m_nMax(100), m_nValue(0) { m_uTextStyle = DT_SINGLELINE | DT_CENTER; SetFixedHeight(12); } LPCTSTR CProgressUI::GetClass() const { return DUI_CTR_PROGRESS;...
<commit_before>// $Id$ // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 /************************************************************************** * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full ...
<commit_before>/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: python/pybind11_variant.hpp * * Copyright 2018 Patrik Huber * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
<commit_before>//===----------------------------------------------------------------------===// // LLVM 'OPT' UTILITY // // Optimizations may be specified an arbitrary number of times on the command // line, they are run in the order specified. // //===------------------------------------------------------------------...
<commit_before>/************************************************************************* * Copyright (C) 2011-2013 by Paul-Louis Ageneau * * paul-louis (at) ageneau (dot) org * * * * ...
<commit_before>// Time: O(n * (C(2n, n) - C(2n, n - 1))) // Space: O(n^2 * (C(2n, n) - C(2n, n - 1))) class Solution { public: vector<int> diffWaysToCompute(string input) { vector<vector<vector<int>>> lookup(input.length() + 1, vector<vector<int>>(input.length(...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2015. All rights reserved */ #include "../../StroikaPreComp.h" #include <cstdio> #include <random> #if qPlatform_POSIX //@todo see how many of these includes are needed #include <unistd.h> #include <arpa/inet.h> #include <net/if.h>...
<commit_before>/* * LuaSceneObject.cpp * * Created on: 27/05/2011 * Author: victor */ #include "LuaSceneObject.h" #include "SceneObject.h" #include "server/zone/objects/creature/CreatureObject.h" #include "server/zone/objects/cell/CellObject.h" #include "server/zone/packets/cell/UpdateCellPermissionsMessage...
<commit_before>/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * 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 ob...
<commit_before>// CommonFunc.cpp -- source file /* * Author: Ivan Chapkailo (septimomend) * Date: 02.07.2017 * * Β© 2017 Ivan Chapkailo. All rights reserved * e-mail: chapkailo.ivan@gmail.com */ #include "stdafx.h" #include "CommonFunc.h" Common::Common() { m_All = tml.getAllControllerObj(); m_pCnfg = m_Al...
<commit_before>/************************************************************************* * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Con...
<commit_before>/* Joey Button * * */ #include <stdio.h> #include "opencv2/opencv.hpp" using namespace cv; using namespace std; const char *win = "video"; void drawCircle( Mat img, Point center ) { int thickness = -1; int lineType = 8; circle( img, center, 32.0, Scalar( 0, 0, 255 )...
<commit_before>#include <iostream> #include <stack> #include <cstring> bool analise_parentesis(char* entrada, int tamanho_entrada){ int i; std::stack<char> pilha; for(i = 0; i < tamanho_entrada; i++){ if(entrada[i] == '(' or entrada[i] == '['){ pilha.push(entrada[i]); } else i...
<commit_before>#include <kvs/Stat> #include <kvs/ValueArray> #include <kvs/MersenneTwister> #include <iostream> #include <fstream> #include <iterator> #include <algorithm> template <typename T> std::ostream& operator << ( std::ostream& os, const kvs::ValueArray<T>& values ) { std::copy( values.begin(), values.end...
<commit_before>// Copyright 2010-2013 The CefSharp Project. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "Stdafx.h" #include "Internals/CefRequestWrapper.h" #include "Internals/JavascriptBinding/BindingHandler.h" #include "Inter...
<commit_before>#pragma once #if defined(__arm__) # define __NR_inotify_init1 360 #elif defined(__x86_64__) # define __NR_inotify_init1 294 #else # error #endif #error <commit_msg>inotify_init1: not needed (yet)<commit_after><|endoftext|>
<commit_before><commit_msg>Fix inverted logic from review.<commit_after><|endoftext|>
<commit_before>#include <iostream> #include "CaffeBatchPrediction.hpp" #include "scalefactor.hpp" #include "fast_nms.hpp" #include "detect.hpp" #include <opencv2/highgui/highgui.hpp> #include <opencv2/gpu/gpu.hpp> static double gtod_wrapper(void) { struct timeval tv; gettimeofday(&tv, NULL); return (double)tv...
<commit_before>// $Id$ // The libMesh Finite Element Library. // Copyright (C) 2002-2008 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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 Foun...
<commit_before>/* * Use potentiometer to set servo arm angle through Servo API. * This example uses an 8-bit timer. * * Wiring: * - on ATmega328P based boards (including Arduino UNO): * - A0: connected to the wiper of a 10K pot or trimmer, which terminals are connected between Vcc and Gnd * - D6: LED connec...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision: 7837 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. Se...
<commit_before>/* Copyright (C) 2011 by Ivan Safrin 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, merge, ...
<commit_before>#include "virtualbicycle.h" #include "angle.h" #include "packet/serialize.h" #include "packet/frame.h" #include "parameters.h" #include <array> namespace { std::array<uint8_t, BicyclePoseMessage_size> serialize_buffer; std::array<uint8_t, BicyclePoseMessage_size + packet::frame::PACKET_OVERHEA...
<commit_before>#include "mangaupdates_parser.hpp" #include "http_utility.hpp" #include <algorithm> #include <cstdint> #include <functional> #include <numeric> #include <utf8/utf8.h> namespace { static std::string const name_entry_search_str = "alt='Series Info'>"; static std::string const id_sea...
<commit_before>void emcal_digits() { AliRunLoader* rl = Alieve::Event::AssertRunLoader(); rl->LoadgAlice(); AliEMCAL * emcal = (AliEMCAL*) rl->GetAliRun()->GetDetector("EMCAL"); AliEMCALGeometry * geom = emcal->GetGeometry(); rl->LoadDigits("EMCAL"); TTree* dt = rl->GetTreeD("EMCAL", kFALSE); ...
<commit_before>/* Copyright(c) 2016-2017 Panos Karabelas 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, merge, p...
<commit_before>// Copyright (c) 2021 by Apex.AI Inc. 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...
<commit_before>#pragma once #include <vector> #include <tudocomp/compressors/lz78/LZ78Trie.hpp> #include <tudocomp/Algorithm.hpp> namespace tdc { namespace lz78 { class BinarySortedTrie : public Algorithm, public LZ78Trie<factorid_t> { /* * The trie is not stored in standard form. Each node stores the pointer to ...
<commit_before><commit_msg>Fix crash on startup<commit_after><|endoftext|>
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Manasij Mukherjee <manasij7479@gmail.com> // author: Vassil Vassilev <vvasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the Uni...
<commit_before>#define GUILITE_ON //Do not define this macro once more!!! #include "GuiLite.h" #include <stdlib.h> #include <string.h> #include <math.h> // 3D engine void multiply(int m, int n, int p, float* a, float* b, float* c)// a[m][n] * b[n][p] = c[m][p] { for (int i = 0; i < m; i++) { for (int j = 0; j < p; ...
<commit_before>/* Copyright (C) 2009, Eric Sabouraud <eric.sabouraud@gmail.com> Copyright (C) 2008-2009, Pier Castonguay <dunge2@yahoo.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: - Redistribut...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestMetaIO.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distribu...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: FourierDescriptors1.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ...
<commit_before>#include "helpers.hpp" #include <compress.hpp> #include <vector> #include <list> #include <string> #include <vector> #include <iterator> #include <utility> #include "catch.hpp" using iter::compress; using itertest::SolidInt; using itertest::BasicIterable; using Vec = const std::vector<int>; TEST_CASE...
<commit_before>#ifneq(,) // in var: sParam: rstStruct.param1 // in var: sParamName: param1 // in var: sdoParam: rdoParam || rdoParam.CreateChild("$($sParam)") #ifeqend \ \ \ #var elementForm $(Interface.Options.*elementFormDefault) #var attributeForm $(Interface.Options.*attributeFormDefault) \ #ifeq($(.Name),Nillable|...
<commit_before>/* Copyright 2017 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>/////////////////////////////////////////////////////////////////////////////// // // File: ConstantExpression.hpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aerona...
<commit_before>/** * 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 writing, software * d...
<commit_before>// Copyright 2012 Google Inc. 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 require...
<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>// Point.hpp #ifndef _RATIONAL_GEOMETRY_POINT_HPP_INCLUDED_ #define _RATIONAL_GEOMETRY_POINT_HPP_INCLUDED_ //β”‚ β–Ό1 β”‚ Preprocesser Flag Stuff //└────┴───────────────────────── #if !defined RATIONAL_GEOMETRY_THIS_IS_THE_TEST_BINARY \ && !defined DOCTEST_CONFIG_DISABLE #define...
<commit_before>/// \file util.cpp /// Contains generic functions for managing processes and configuration. #include "util.h" #include <string.h> #include <sys/types.h> #include <signal.h> #ifdef __FreeBSD__ #include <sys/wait.h> #else #include <wait.h> #endif #include <errno.h> #include <iostream> #include <sys/types...