text
stringlengths
54
60.6k
<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>#include <cmath> #include <functional> #include <set> #include <vector> #define NANOSVG_IMPLEMENTATION #include "nanosvg.h" #include "png.h" void IterateCubicBeziers(NSVGshape* shape, const std::function<void(const float*)>& f) { for (auto path = shape->paths; path; path = path->next) { fo...
<commit_before>// Implement a basic calculator to evaluate a simple expression string. // The expression string may contain open ( and closing parentheses ), the plus // + or minus sign -, non-negative integers and empty spaces . // The expression string contains only non-negative integers, +, -, *, / // operators , ...
<commit_before>/* * Copyright (C) 2008 The Android Open Source 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 ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: localebackend.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2005-09-28 12:21:23 $ * * The Contents of this file are ...
<commit_before>// Licensed under the Apache License, Version 2.0. // Author: Jin Qing (http://blog.csdn.net/jq0123) #include "client_async_writer_helper.h" #include <cassert> // for assert() #include "client_send_msg_cqtag.h" // for ClientSendMsgCqTag #include <grpc_cb_core/common/status.h> ...
<commit_before><commit_msg>Added the C++ code for Normal K-Means, using standard deviation to normalize the data.<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: rtl_Process.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 15:49:28 $ * * The Contents of this file are ma...
<commit_before>/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
<commit_before>// Copyright 2010-2021 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>/* * Copyright 2013 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. Al...
<commit_before>/* * Copyright 2013 Research In Motion 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: frmbase.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-08 18:57:54 $ * * The Contents of this file are made a...
<commit_before>/*========================================================================= Program: Visomics Copyright (c) Kitware, 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 ...
<commit_before>/************************************************************************* * * $RCSfile: drtxtob2.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: rt $ $Date: 2004-07-12 15:28:02 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before><commit_msg>Quick update<commit_after><|endoftext|>
<commit_before>////////////////////////////////////////////////////////////////////////// // // SneezyMUD - All rights reserved, SneezyMUD Coding Team // ////////////////////////////////////////////////////////////////////////// // commodity.cc #include "stdsneezy.h" #include "shop.h" #include "obj_commodity.h" TCo...
<commit_before>/************************************************************************* * * $RCSfile: cclass_unicode.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: er $ $Date: 2002-09-20 16:12:25 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before>/* * vaapiencoder_base.cpp - basic va encoder for video * * Copyright (C) 2013-2014 Intel Corporation * Author: Wind Yuan <feng.yuan@intel.com> * Author: Xu Guangxin <guangxin.xu@intel.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of ...
<commit_before>/* Copyright (c) 2013 Daniele Bartolini, Michele Rossi Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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, i...
<commit_before>// Copyright (c) Microsoft. All rights reserved. // // GpioTestTool // // Utility to manipulate GPIO pins from the command line. // Demonstrates how to use the GPIO WinRT APIs from standard // C++ with WRL. // #include <windows.h> #include <strsafe.h> #include <wrl.h> #include <string> #include ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: managedframe.cpp // Purpose: Implementation of wxExManagedFrame class. // Author: Anton van Wezenbeek // Copyright: (c) 2012 Anton van Wezenbeek ////////////////////////////////////////////////////////////...
<commit_before>/* DAcase2.c This program connects to the DAQ data source passed as argument and populates local "./result.txt" file with the ids of events received during the run. The program exits when being asked to shut down (daqDA_checkshutdown) or End of Run event. Messages on stdout are exported to DAQ log sy...
<commit_before>/// \file PasskeySetup.cpp //----------------------------------------------------------------------------- #include "stdafx.h" #include "PasswordSafe.h" #include "PasskeySetup.h" #include "util.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif //------...
<commit_before>#include "Geometry3D.h" #include "PlaneGeometry.h" #include <vecmath.h> #ifdef MITK_DICOM_ENABLED extern "C" { #include "ipDicom.h" } #endif //##ModelId=3DCBF3AD0110 const unsigned int *mitk::Geometry3D::GetDimensions() const { return m_Dimensions; } //##ModelId=3DDE649E00A3 unsigned int mitk::Geomet...
<commit_before>#include "MultiUnifiedObstacleLocator.h" MultiUnifiedObstacleLocator::MultiUnifiedObstacleLocator() { DEBUG_REQUEST_REGISTER("MulitUnifiedObstacleLocator:debug:create_virtual_obstacle", "Adds a virtual obstacle. Initial place and dimensions can be modified using DEBUGMODIF...
<commit_before>/*========================================================================= * * Copyright UMC Utrecht and 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...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
<commit_before>/************************************************************************* * * $RCSfile: swfuno.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: cl $ $Date: 2002-11-21 14:58:03 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include "stdafx.h" #include "UIAutoCompleteCombo.h" /* ڲʹõ ֵƴĸ bug: ֺ ޷ȡƴ. */ class CHzToPyIner { public: CHzToPyIner(void) { notFondMap[0xDBDA] = 'z';/* */ notFondMap[53671] = 'x'; /* ѧ*/ notFondMap[55792] = 'y'; /* */ } ~CHzToPyIner(void) {} char convert(wchar_t n) { ...
<commit_before>/**************************************************************************** ** ncs is the backend's server of nodecast ** Copyright (C) 2010-2013 Frédéric Logier <frederic@logier.org> ** ** https://github.com/nodecast/ncs ** ** This program is free software: you can redistribute it and/or modi...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before><commit_msg>Remove completed TODOs<commit_after><|endoftext|>
<commit_before>#include <cmath> #include <Eigen/Dense> #include <gtest/gtest.h> class ReferenceFilter { public: ReferenceFilter( unsigned inputCount, unsigned outputCount ) : mW( Eigen::MatrixXf::Random( outputCount, inputCount ) ) {} Eigen::VectorXf operator()( Eigen::VectorXf inputs ) { ...
<commit_before>/** @file System/Context.hpp @brief Context class. @author Timothy Howard @copyright 2013-2014 Timothy Howard under the MIT license; see @ref index or the accompanying LICENSE file for full text. */ #ifndef HORD_SYSTEM_CONTEXT_HPP_ #define HORD_SYSTEM_CONTEXT_HPP_ #include <Hord/config.hpp> #include <...
<commit_before>#ifndef INCLUDE_AL_FILE_HPP #define INCLUDE_AL_FILE_HPP #include <unistd.h> #include <stdio.h> #include <string> #include <sys/stat.h> #include <list> #include "allocore/system/al_Config.h" #ifdef AL_WIN32 #define AL_FILE_DELIMITER '\\' #else #define AL_FILE_DELIMITER '/' #endif #define AL_PATH_M...
<commit_before>#ifndef ECL_SPLAY_TREE #define ECL_SPLAY_TREE #include <ecl/tree/binary_tree_base.hpp> namespace ecl { namespace tree { template < typename K , typename V , template <typename> class Compare = std::less > struct splay_node : public node_base<K, V, Compare, ecl::tree::splay_node> { /...
<commit_before>#ifndef GRL_KUKA_DRIVER #define GRL_KUKA_DRIVER #include <tuple> #include <memory> #include <thread> #include <boost/asio.hpp> #include <boost/circular_buffer.hpp> #include <boost/exception/all.hpp> #include <boost/config.hpp> #include <boost/make_shared.hpp> #include <boost/range/algorithm/copy.hpp> ...
<commit_before>#ifndef LILYPAD_CHOLESKY_QR_HPP #define LILYPAD_CHOLESKY_QR_HPP #include <mpi.h> #include <complex> #include <iostream> #include "lilypad/multivector.hpp" #include "lilypad/localmatrix.hpp" #include "lilypad/mkl_wrapper.hpp" using cmplx_z = std::complex<double>; namespace lilypad { // TODO: curren...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>#ifndef __MEMORY_WRAPPER_HPP__ #define __MEMORY_WRAPPER_HPP__ #ifdef _MSC_VER //#include <ot_msvc.h> #else #include <ot_config.h> #endif // C++ Defines. #ifdef OT_USE_TR1 #undef OT_USE_TR1 #endif #if !defined(_MSC_VER) && defined(OPENTXS_CXX03_TR1) #define OT_USE_TR1 #endif #ifndef OT_USE_TR1 #includ...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sqlite3.h> #include <string> #include <zlib.h> #include <math.h> #include "vector_tile.pb.h" extern "C" { #include "projection.h" } // https://github.com/mapbox/mapnik-vector-tile/blob/master/src/vector_tile_compression.hpp inline boo...
<commit_before>/* Helper similar to Python's @c str.join(). * * DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/separated_list instead. * * Copyright (c) 2000-2021, Jeroen T. Vermeulen. * * See COPYING for copyright license. If you did not receive a file called * COPYING with this source code, please notify the...
<commit_before>/// /// @file primecount-internal.hpp /// @brief primecount internal function definitions. /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PRIMECOUNT_INTERNAL_HPP #...
<commit_before>/// /// @file iterator.hpp /// @brief The iterator class allows to easily iterate (forward and /// backward) over prime numbers. /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level dir...
<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/chromeos/status/language_menu_button.h" #include "base/string_util.h" #include "chrome/browser/browser.h" #in...
<commit_before> #include <Render/Pipelining/Pipelines/CustomRenderPass/DeferredBasicBuffering.hh> #include <memory> #include <Render/Textures/Texture2D.hh> #include <Render/OpenGLTask/OpenGLState.hh> #include <Render/GeometryManagement/Painting/Painter.hh> #include <SpacePartitioning/Ouptut/RenderLight.hh> #include <...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sdclient.cxx,v $ * * $Revision: 1.21 $ * * last change: $Author: ihi $ $Date: 2008-01-14 13:44:18 $ * * The Contents of this file are mad...
<commit_before>// // color.cpp // displaySimTest // // Created by Kristoffer Andersen on 10/07/15. // // #include <color.h> using namespace mono::display; /// MARK: Public contructors Color::Color() { value = 0x0821; // black color } Color::Color(const int col) { value = (uint16_t) col; } Color::Color(...
<commit_before>#include "Arith256.h" #include "Runtime.h" #include "Type.h" #include <llvm/IR/Function.h> namespace dev { namespace eth { namespace jit { Arith256::Arith256(llvm::IRBuilder<>& _builder) : CompilerHelper(_builder) { using namespace llvm; m_result = m_builder.CreateAlloca(Type::Word, nullptr, "arit...
<commit_before>#include <iostream> #include "brainfuck.h" void usage() { std::cout << "./interpreter" << std::endl; std::cout << "./interpreter <program.txt> <input.txt>" << std::endl; } int main(int argc, char* argv){ if(argc == 1) { Brainfuck bf; bf.run(); } else { usage(); ...
<commit_before>#ifndef EITHER_HH #define EITHER_HH #include <functional> #include <new> #include <type_traits> #include <utility> template<typename Left, typename Right, typename = typename std::enable_if<std::is_nothrow_move_constructible<Left>::value && std::is_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 "Lice...
<commit_before>/* dtkComposerNodeControlFor.cpp --- * * Author: tkloczko * Copyright (C) 2011 - Thibaud Kloczko, Inria. * Created: Wed Feb 15 09:14:22 2012 (+0100) * Version: $Id$ * Last-Updated: mer. sept. 26 13:53:43 2012 (+0200) * By: Nicolas Niclausse * Update #: 140 */ /* Commentary: * ...
<commit_before>// This file is part of libAthena. // // libAthena 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. // // libAthena is...
<commit_before>/* ** Author(s): ** - Pierre Roullon <proullon@aldebaran-robotics.com> ** ** Copyright (C) 2010, 2011, 2012 Aldebararan Robotics */ #include <qic/object.h> #include <qic/future.h> #include <qic/value.h> #include "future_p.h" #include "object_p.h" #include "value_p.h" #include <qitype/genericobject.hpp>...
<commit_before>// // calcPWP.cpp // // // Created by Evan McCartney-Melstad on 1/10/15. // // #include "calcPWP.h" #include <iostream> #include <vector> #include <fstream> #include <thread> int main (void) { return 0; } int calcPWPfromBinaryFile (std::string binaryFile, unsigned long long int numLoci, const ...
<commit_before>// Macro MUONrecoNtuple.C (TO BE COMPILED) // for testing the C++ reconstruction code // and producing an Ntuple with reconstructed tracks // in output file "MUONtrackReco.root". // An example for using the Ntuple is in the macro MUONmassPlot.C // Arguments: // FirstEvent (default 0) // LastEvent (d...
<commit_before>#define WINVER 0x0501 #define BUFSIZE 4096 #pragma comment(lib, "Shlwapi.lib") #include <string> #include <iostream> #include <fstream> #include "Shlwapi.h" #include "encoder_format.h" using namespace std; extern EncoderFormat encoderFormat; extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, si...
<commit_before>/*************************************************************************** * This file is part of Kate search plugin * * Copyright 2014 Kåre Särs <kare.sars@iki.fi> * * ...
<commit_before>// C++ General Utility Library (mailto:cgul@zethes.com) // Copyright (C) 2012-2014, Joshua Brookover and Amber Thrall // All rights reserved. /** @file String.hpp */ #pragma once #include <CGUL/Config.hpp> #include "../Containers/FixedList.hpp" #include "../External/Defines.hpp" #ifndef CGUL_NO_U8 # ...
<commit_before>// Time: O(logn) // Space: O(1) class Solution { public: /** * @param n: An integers. * @return: An integer which is the first bad version. */ int findFirstBadVersion(int n) { int left = 1 - 1, right = n; VersionControl vc; // At the last...
<commit_before>/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
<commit_before>#include "SceneMainMenu.hpp" #include <iostream> //-------------------------------------------------------------------- using namespace cocos2d; //-------------------------------------------------------------------- Scene * SceneMainMenu::createScene(){ auto scene = Scene::create(); auto root ...
<commit_before>#include "Graph.hpp" /* template <typename Weight> void add_edge(Graph<Weight> &g, int src, int to) { g[src].push_back(Edge<Weight>(src, to)); g[to].push_back(Edge<Weight>(to, src)); } */ class LCA { int V, LOG_V; vector<vector<int>> parent; vector<int> depth; template<typename T> void df...
<commit_before>#include <algorithm> #include <cmath> #include <ctime> #include <cstdlib> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <utility> #include <vector> #include <openssl/sha.h> using namespace std; const bool DEBUG = false; // Precision of floating point operations...
<commit_before>/** \file zts_client.cc \brief Downloads bibliographic metadata using a Zotero Translation server. \author Dr. Johannes Ruscheinski \copyright 2017, Library of the University of Tübingen This program is free software: you can redistribute it and/or modify it under the terms of...
<commit_before>/* * Copyright (C) 2017 The Android Open Source 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 ...
<commit_before>#pragma once #include <boost/preprocessor.hpp> #include <boost/format.hpp> #include <iostream> #include <sstream> #include "argholder.hpp" #include "type.hpp" #ifdef ANDROID #include <android/log.h> #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, "threaded_app", __VA_ARGS__)) #define L...
<commit_before>#include "shifter.h" #include "update.h" #include <Servo.h> const float klowgear = 0.2; const float kneutral = 0.5; const float khighgear = 0.8; shifter::shifter(Servo& a, Servo& b) { shift1 = &a; shift2 = &b; cur_gear = LOW; registry().register_func(update_helper, (void*)this); } shi...
<commit_before>/*********************************************************************** * filename: Element.cpp * created: 28/10/2011 * author: Martin Preisler *************************************************************************/ /**************************************************************...
<commit_before>#include "stdafx.h" #include "ElfRelocator.h" #include "Core/Common.h" #include "Core/Misc.h" #include "Util/CRC.h" #include "Util/Util.h" #include "Commands/CAssemblerLabel.h" struct ArFileHeader { char fileName[16]; char modifactionTime[12]; char ownerId[6]; char groupId[6]; char fileMode[8]; ch...
<commit_before>#include <string.h> #include <string> #include <stdio.h> #include "bsd_string.h" #include "genesis.h" #include "g59cmd.h" static G59 m_g59; static G11 m_g11; static Genesis *mp_genesis = NULL; static char m_name_str[256]; static char m_model_str[256]; static char m_mode = '\0'; static long m_tune_fre...
<commit_before> // The files containing the tree of child classes of |Body| must be included in // the order of inheritance to avoid circular dependencies. This class will end // up being reincluded as part of the implementation of its parent. #ifndef PRINCIPIA_PHYSICS_MASSIVE_BODY_HPP_ #include "physics/massive_body...
<commit_before>#include "platform.hpp" #include "../coding/file_writer.hpp" #include "../std/windows.hpp" #include <shlobj.h> #include <sys/stat.h> static bool GetUserWritableDir(string & outDir) { char pathBuf[MAX_PATH] = {0}; if (SUCCEEDED(::SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 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>#include <cstdio> #include <fstream> #include "kms++.h" #include "test.h" using namespace std; using namespace kms; int main(int argc, char** argv) { if (argc != 5) { printf("Usage: %s <file> <width> <height> <fourcc>\n", argv[0]); return -1; } string filename = argv[1]; uint32_t w = stoi(ar...
<commit_before>// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <unistd.h> #include...
<commit_before>/*************************************************************************** * Copyright (c) 2015 Stefan Tröger <stefantroeger@gmx.net> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before><commit_msg>some initial refactoring in xmlcelli.cxx<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2012, Cornell University // 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, // ...
<commit_before>// // @Yue Wang // // Exercise 11.18: // Write the type of map_it from the loop on page 430 without using auto or decltype. // std::map<std::string, size_t>::const_iterator // int main() { return 0; } <commit_msg>Delete ex11_18.cpp<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pipe_decl.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 14:30:29 $ * * The Contents of this file are made...
<commit_before><commit_msg>Configuration: unbreak behavior of setArray: comma only between elements, no enclosing double quotes<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2007 The Hewlett-Packard Development Company * 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 ...
<commit_before><commit_msg>Fix compilation error without C++11<commit_after><|endoftext|>
<commit_before>#include "archivator.h" #include <vector> #include <algorithm> #include <fstream> void archivator::compress(const std::string &dir, const std::string &destination) { archive *a; archive_entry *entry; ssize_t r; std::vector<fs::path> files; fs::path dir_path; try { dir_path = fs::canonical(fs::...
<commit_before>#include <exceptxx/NtstatusException.h> #include <Windows.h> #include <winternl.h> #include <iostream> using namespace std; int main() { try { auto myRtlConvertSidToUnicodeString = reinterpret_cast<decltype(::RtlConvertSidToUnicodeString)*>(::GetProcAddress(::GetModuleHandleW(L"ntdll")...
<commit_before>// $Id$ /* Copyright (c) 2007-2011, Trustees of The Leland Stanford Junior University 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...
<commit_before>#include <sys/types.h> #include <sys/sysctl.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <CoreFoundation/CoreFoundation.h> #include <SystemConfiguration/SystemConfiguration.h> namespace { bool verifyUser(void) { uid_t consoleUID; CFStringRef result = SCDynamicSto...
<commit_before>/* * Copyright 2009-2018 Jose Fonseca * * 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. * * This library is distributed in the ...
<commit_before><commit_msg>Pass platform in start event<commit_after><|endoftext|>
<commit_before><commit_msg>forgot square root in RMS force<commit_after><|endoftext|>
<commit_before><commit_msg>ImGui::Text exported to lua<commit_after><|endoftext|>
<commit_before>/** * This file is part of the "libfnord" project * Copyright (c) 2015 Paul Asmuth * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public License along with th...
<commit_before>/** * This file is part of the "libfnord" project * Copyright (c) 2015 Paul Asmuth * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public License along with th...
<commit_before>/*------------------------------------------------------------------------- * * expr_transformer.cpp * file description * * Copyright(c) 2015, CMU * *------------------------------------------------------------------------- */ #include <unordered_map> #include "nodes/pprint.h" #include "utils/r...
<commit_before>#ifndef SHL_ARRAY_EXPANDABLE__H #define SHL_ARRAY_EXPANDABLE__H #include "shl.h" #include "shl_timer.hpp" #include <map> #include <vector> #include <cstring> extern "C" { #include <pthread.h> } #define SANITY_CHECK #define WS_BUFFER_SIZE (1024*1024*100) /** * \brief Array that is initally single-co...
<commit_before>/* -*-c++-*- * * Copyright (C) 2006-2007 Mathias Froehlich, Tim Moore * * 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 2 of the * License, or (at your optio...
<commit_before>/************************************************************************** * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full copyright notice. * ...