text
stringlengths
54
60.6k
<commit_before>#include "board.hpp" #include "enemy.hpp" #include "level.hpp" #include "random.hpp" namespace roadagain { Enemy::Enemy(Level level) : level_(level) { } Enemy::~Enemy() { } Point Enemy::select(const Board* board, const CellColor& stone) const { switch (level_){ case EASY: retu...
<commit_before>#include <iostream> #include <string> #include "LookAndSay.hpp" void run_part_one() { std::string value = "1113222113"; for (unsigned int i = 0; i< 40; i++) { value = look_and_say(value); } std::cout << value.length() << std::endl; } void run_part_two() { } int main(int argc, ...
<commit_before>// ----------------------------------------------------------------------------------------- // <copyright file="cloud_client.cpp" company="Microsoft"> // Copyright 2013 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file excep...
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #define __STDC_LIMIT_MACROS #include "db/db_iter.h" #include "db/filename.h" #include ...
<commit_before>/** * @file */ #include "bi/io/cpp/CppResumeGenerator.hpp" #include "bi/visitor/Gatherer.hpp" #include "bi/primitive/encode.hpp" bi::CppResumeGenerator::CppResumeGenerator(const Class* currentClass, const Fiber* currentFiber, std::ostream& base, const int level, const bool header) : CppBa...
<commit_before><commit_msg><commit_after><|endoftext|>
<commit_before>/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.cpp * Author: phytress * * Created on July 18, 2017, 1:24 PM */ #include <cstdlib> using name...
<commit_before>// // @file http_protocol_module_base.cpp // @brief shared object http protocol module absctract class // // Distributed under the Boost Software License, Version 1.0.(See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt // #include <boost/xpressive/xpressive.hpp> #in...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision: 1.12 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. ...
<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>#include <microscopes/lda/model.hpp> #include <microscopes/lda/data.hpp> #include <microscopes/lda/random_docs.hpp> #include <microscopes/common/macros.hpp> #include <microscopes/common/recarray/dataview.hpp> #include <microscopes/models/distributions.hpp> #include <microscopes/common/random_fwd.hpp> #i...
<commit_before>//Author: wysaid //blog: http://blog.wysaid.org #include "cgeMat.h" #include "cgeVec.h" #include "graphics.h" #include <vector> #include "teapot.h" using namespace CGE; #define USE_DEPTH_TEST 0 //Must be 0 //Change them as you like #define USE_PERSPECTIVE_PROJ 1 #define RENDER_TRIANGLE_HALF_1 1 #def...
<commit_before>#include "stdafx.h" #include "datastore.h" namespace You { namespace DataStore { const std::wstring DataStore::FILE_PATH = std::wstring(L"data.xml"); bool DataStore::post(TaskId rawId, const STask& sTask) { // Consider changing parameter to std::wstring altogether std::wstring taskId = boost::lexica...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>#include "stdafx.h" #include "Problem2.h" /* https://projecteuler.net/problem=2 Even Fibonacci numbers Problem 2 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By consid...
<commit_before>// This file may be redistributed and modified only under the terms of // the GNU Lesser General Public License (See COPYING for details). // Copyright (C) 2005 - 2008 Simon Goodall #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <errno.h> #include <stdio.h> #include "libwfut/...
<commit_before>#include <Dusk/Dusk.hpp> #include <Dusk/Log.hpp> #include <Dusk/Module.hpp> #include <Python/PyDusk.hpp> #include <Python.h> #include <frameobject.h> #if defined(_WIN32) #include <Windows.h> #include <conio.h> #else #include <termios.h> #include <unistd.h> #endif // defined(_WIN32) #include <str...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * gluePyBind11.cpp * * Created on: Mar 16, 2017 * Author: William F Godoy godoywf@ornl.gov */ #include <stdexcept> #include <adios2.h> #include <pybind11/pybind11.h> ...
<commit_before>#pragma once #include <agency/execution_categories.hpp> #include <agency/detail/tuple.hpp> #include <utility> namespace agency { namespace detail { // execution is nested, just return x template<class ExecutionCategory1, class ExecutionCategory2, class T> __AGENCY_ANNOTATION auto make_tuple_if_not_n...
<commit_before>#include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <iostream> using namespace std; using namespace cv; void drawQuad(Mat image, Mat points, Scalar color) { cout << points.at<Point2f>(0,0) << ...
<commit_before>/* Copyright 2013 SINTEF ICT, Applied Mathematics. */ #include "PrintCPUBackendASTVisitor.hpp" #include "ASTNodes.hpp" #include "SymbolTable.hpp" #include <iostream> #include <cctype> #include <sstream> namespace { const char* cppStartString(); const char* cppEndString(); } PrintCPUBacken...
<commit_before>/* <Cidr.cpp> * * This file is part of the x0 web server project and is released under AGPL-3. * http://www.xzero.io/ * * (c) 2009-2014 Christian Parpart <trapni@gmail.com> */ #include <x0/Cidr.h> #include <x0/IPAddress.h> namespace x0 { std::string Cidr::str() const { char result[INET6_ADDRSTR...
<commit_before>/* * Copyright (c) 2021, Jan de Visser <jan@finiandarcy.com> * * SPDX-License-Identifier: GPL-3.0-or-later */ #include <algorithm> #include <cstring> #include <memory> #include <jv80/cpu/memory.h> namespace Obelix::JV80::CPU { class Block { public: explicit Block(size_t size) : m_size...
<commit_before>// SimtkAnimationCallback.cpp //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /* * Copyright (c) 2005, Stanford University. All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
<commit_before>#include "confignode.hpp" #include "treeviewmodel.hpp" using namespace kdb; ConfigNode::ConfigNode(const QString& name, const QString& path, const Key &key, TreeViewModel *parentModel) : m_name(name) , m_path(path) , m_key(key) , m_children(new TreeViewModel) , m_metaData(NULL) , m_parentModel(pa...
<commit_before>/* Based on Allocore Example: Audio To Graphics by Lance Putnam */ #include <iostream> #include "allocore/io/al_App.hpp" #include "alloaudio/al_OutputMaster.hpp" using namespace std; using namespace al; class MyApp : public App{ public: double phase; OutputMaster outMaster; MyApp(int nu...
<commit_before>// RhoLaunch.cpp : Defines the entry point for the application. // #include "windows.h" #include "RhoLaunch.h" #define MAX_LOADSTRING 100 // Global Variables: //HINSTANCE g_hInst; // current instance //#ifdef SHELL_AYGSHELL //HWND g_hWndMenuBar; // menu bar handle //#else // SHELL_AYGSHELL //...
<commit_before>#include "WorldTeleporter.hpp" namespace DataSpec::DNAMP1 { template <class Op> void WorldTeleporter::Enumerate(typename Op::StreamT& s) { IScriptObject::Enumerate<Op>(s); Do<Op>({"name"}, name, s); Do<Op>({"active"}, active, s); Do<Op>({"mlvl"}, mlvl, s); Do<Op>({"mrea"}, mrea, s); Do<Op>(...
<commit_before>#include "linearizer.hpp" #include <vector> #include "tgmath.h" #include "utils.hpp" void linearizeCurrent(elementaryFunctionLib elementaryFunctionType, double lb, double ub, int meshPts, std::vector<double> &aCurrent, std::vector<double> &bCurrent) { doub...
<commit_before>/** Copyright(c) 2015 - 2017 Denis Blank <denis.blank at outlook dot com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation th...
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (C) 2010 Shantanu Tushar <jhahoneyk@gmail.com> * Copyright (C) 2010 Laszlo Papp <djszapi@archlinux.us> * * This library is free software; you can redistri...
<commit_before>void AliAnalysisTaskSEVertexingHFTest() { // // Test macro for the AliAnalysisTaskSE for heavy-flavour vertexing // A.Dainese, andrea.dainese@lnl.infn.it // Bool_t inputAOD=kFALSE; // otherwise, ESD Bool_t createAOD=kTRUE; // kTRUE: create AOD and use it as input to vertexing ...
<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 "base/command_line.h" #include "chrome/browser/browser.h" #include "chrome/browser/debugger/devtools_client_host.h" #include "...
<commit_before>/*************************************************************************** Anders Knospe - last modified on 26 March 2016 //Lauches phi analysis with rsn mini package //Allows basic configuration of pile-up check and event cuts ************************************************************...
<commit_before>/** @file Plugin to perform background fetches of certain content that would otherwise not be cached. For example, Range: requests / responses. @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTIC...
<commit_before>#include "stdafx.h" #include "ed.h" #include "mainframe.h" #include <algorithm> ApplicationFrame::ApplicationFrame () : mouse (kbdq), frame_index (1) { auto_save_count = 0; ime_composition = 0; ime_open_mode = kbd_queue::IME_MODE_OFF; sleep_timer_exhausted = 0; last_vkeycode = -1; kbd_...
<commit_before>// Copyright 2015 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>#include <iostream> #include <QtGui> #include<QMessageBox> #include "zjsonobject.h" #include "zjsonparser.h" #include "zstring.h" #include "flyembodyinfodialog.h" #include "ui_flyembodyinfodialog.h" #include "zdialogfactory.h" /* * this dialog displays a list of bodies and their properties; data is ...
<commit_before>/* * Copyright (C) 2008-2014 The QXmpp developers * * Author: * Jeremy Lainé * * Source: * https://github.com/qxmpp-project/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General...
<commit_before>#include "realm.h" #include <cstdio> #include <cstdlib> #include <cassert> #include <cstring> #include <csignal> #include <cmath> #include <time.h> #include "osdep.h" using namespace Realm; Logger log_app("app"); // Task IDs, some IDs are reserved so start at first available number enum { TOP_LEV...
<commit_before>/** * @file * @copyright defined in eos/LICENSE.txt */ #include <eosio/wallet_plugin/se_wallet.hpp> #include <eosio/wallet_plugin/macos_user_auth.h> #include <eosio/chain/exceptions.hpp> #include <fc/crypto/openssl.hpp> #include <boost/range/adaptor/map.hpp> #include <boost/range/algorithm/copy.hp...
<commit_before>/**************************************************************************** ** ** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commer...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: DeformableRegistration4.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: MeanSquaresImageMetric1.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. ...
<commit_before>// // Copyright (c) 2008-2014 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...
<commit_before>/*============================================================================= NiftyLink: A software library to facilitate communication over OpenIGTLink. Copyright (c) University College London (UCL). All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the im...
<commit_before>#ifndef RECOMBINATION_DEF_HPP_ #define RECOMBINATION_DEF_HPP_ #include <cassert> #include "clotho/powerset/variable_subset.hpp" namespace clotho { namespace recombine { template < class Sequence > class recombination { public: typedef Sequence sequence_type; typedef Method method_type; v...
<commit_before>/** * \file * \brief ThreadControlBlock class header * * \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 * di...
<commit_before>/* mockturtle: C++ logic network library * Copyright (C) 2018-2019 EPFL * * 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 limita...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>#ifndef SIMHASH_HASH_H #define SIMHASH_HASH_H /* Simply holds references to all of our hash functions */ #include "hashes/jenkins.h" #include "hashes/murmur.h" #include "hashes/fnv.h" /* Include a reference to the tokenizer to use */ #include "tokenizers/strspn.h" /* For hash_t */ #include "common.h" ...
<commit_before>#include "TCoroutine.h" #include "Interface.h" #include "helper/TConst.h" #include "helper/TLogger.h" void TestCoroutine::SetUp() { m_cv_counter = 0; m_wait_counter = 0; coro::Init(std::make_shared<CLogFake>()); } void TestCoroutine::TearDown() { coro::Stop(); } void...
<commit_before>/************************************************************************* * Copyright (C) 2011-2012 by Paul-Louis Ageneau * * paul-louis (at) ageneau (dot) org * * * * ...
<commit_before>/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, thi...
<commit_before>/************************************************************************* * * $RCSfile: doclinkdialog.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2004-08-02 16:38:40 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: charhiddenitem.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 23:32:57 $ * * The Contents of this file are...
<commit_before>/* * Copyright 2017-2018 Baidu 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 * * Unless required by applicabl...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include <QProcess> #include <QClipboard> #include "qqrencode.h" #include <dmtx.h> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); this->setWindowFlags(Qt::WindowStaysOnTopHint/...
<commit_before>/* * File: mandelbrot.hpp * Author: manu343726 * * Created on 29 de septiembre de 2013, 23:59 */ #ifndef MANDELBROT_HPP #define MANDELBROT_HPP #include "iterator.hpp" #include "for_loops.hpp" #include "complex.hpp" #include "color.hpp" #include <iostream> #include <fstream> #include <iterator>...
<commit_before>#include <algorithm> #include "grammar_loader.h" #include "grammar.h" #include "json_object.h" #include "json_loader.h" #include "shl_exception.h" namespace shl { Grammar GrammarLoader::load(const string& buffer) { JsonLoader loader; JsonObject object = loader.load(buffer); Grammar grammar...
<commit_before>/* Copyright 2017 Istio 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 requi...
<commit_before>// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list...
<commit_before>/*========================================================================= 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>/* * Copyright (C) 2006, 2007 Apple Computer, Inc. * Copyright (c) 2006, 2007, 2008, 2009, 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: * * * Redistr...
<commit_before> #include <v8.h> #include <node.h> #include <cstdio> //#ifdef __POSIX__ #include <unistd.h> /*#else #include <process.h> #endif*/ using namespace node; using namespace v8; static int clear_cloexec (int desc) { int flags = fcntl (desc, F_GETFD, 0); if (flags < 0) return flags; //retu...
<commit_before>/* This file is part of Akregator. Copyright (C) 2004 Sashmit Bhaduri <smt@vfemail.net> 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 Lic...
<commit_before>#include <sys/types.h> #include <dirent.h> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <regex> #include <vector> #include <string> #include "list.h" #include "bpftrace.h" namespace bpftrace { const std::string kprobe_path = "/sys/kernel/debug/tracing/available...
<commit_before><commit_msg>modified feature_2<commit_after>#include <stdio.h><|endoftext|>
<commit_before> #include <togo/assert.hpp> #include <togo/log.hpp> #include <togo/fixed_array.hpp> #include <togo/string.hpp> #include <togo/system.hpp> using namespace togo; signed main() { TOGO_LOGF("num_cores = %u\n", system::num_cores()); StringRef exec_dir = system::exec_dir(); TOGO_LOGF("exec_dir: '%.*s'\n",...
<commit_before>// Copyright (c) 2013, Zeex // 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 copyright notice, // this list of co...
<commit_before>#include <test/unit/math/test_ad.hpp> TEST(mathMixMatFun, Phi) { auto f = [](const auto& x1) { return stan::math::Phi(x1); }; stan::test::expect_common_unary_vectorized(f); stan::test::expect_unary_vectorized(f, -27.5, 27.5); for (double x = -37.5; x <= 10; x += 0.5) stan::test::expect_unary...
<commit_before>// // leaf-node-collada.cpp // gepetto-viewer // // Created by Anthony Couret, Mathieu Geisert in November 2014. // Copyright (c) 2014 LAAS-CNRS. All rights reserved. // #include <sys/stat.h> #include <fstream> #include <ios> #include <gepetto/viewer/leaf-node-collada.h> namespace graphics { inli...
<commit_before> /* kopetechatwindowstylemanager.cpp - Manager all chat window styles Copyright (c) 2005 by Michaël Larouche <michael.larouche@kdemail.net> Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org> *****************************************************************...
<commit_before>#include <iostream> #include <gtest/gtest.h> #include <thread> #include <chrono> #include <msgrpc/thrift_struct/thrift_codec.h> #include <type_traits> using namespace std; using namespace std::chrono; #include "demo/demo_api_declare.h" ////////////////////////////////////////////////////////////////////...
<commit_before>//===-- ARMELFObjectWriter.cpp - ARM ELF Writer ---------------------------===// // // 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) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <Utils/CardSetUtils.hpp> #include <Rosetta/Ac...
<commit_before>// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include "gtest/gtest.h" #include <Rosetta/Cards/Cards...
<commit_before>#ifndef CUFFT_HPP_ #define CUFFT_HPP_ #include "application.hpp" #include "timer.hpp" #include "fft.hpp" #include "benchmark_suite.hpp" #include "cufft_helper.hpp" #include "traits.hpp" #include <array> #include <cufft.h> #include <vector_types.h> namespace gearshifft { namespace CuFFT { namespace t...
<commit_before>#if defined(LINUX) #include <sys/syscall.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include <stddef.h> #include <errno.h> typedef uint64_t u64; #include "include/wq.hh" #include "user/dirit.hh" #define...
<commit_before>/* * Label.cpp * iPhoneEmptyExample * * Created by hansi on 29.01.11. * Copyright 2011 __MyCompanyName__. All rights reserved. * * ------------------------------ * PLEASE READ BEFORE YOU CODE: * * This is a simple container thingie. * You can use it exactly like an OF main app, there...
<commit_before>#include <stan/math/prim/core/init_threadpool_tbb.hpp> #include <stan/math.hpp> #include <gtest/gtest.h> #include <algorithm> #include <sstream> #include <tuple> #include <vector> // reduce functor which is the BinaryFunction // here we use iterators which represent integer indices template <typename T>...
<commit_before> // ================================================================================================= // This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. This // project loosely follows the Google C++ styleguide and uses a tab-size of two spaces and a max- // wi...
<commit_before>#ifndef TYPES_H #define TYPES_H #include<stack> #include<set> #include"heaps.hpp" #include"hashes.hpp" class Semispace; void* operator new(size_t, Semispace&); void operator delete(void*, Semispace&); class ToPointerLock; class Generic { private: Generic* to_pointer; protected: Generic(void) : to_po...
<commit_before>#include <string> #include "dg/analysis/PointsTo/PointsToSet.h" #include "dg/analysis/PointsTo/PointerSubgraphValidator.h" namespace dg { namespace analysis { namespace pta { namespace debug { static void dumpNode(const PSNode *nd, std::string& errors) { errors += std::string(PSNodeTypeToCString(nd...
<commit_before>#include <iostream> #include <gtest/gtest.h> using namespace std; #include <zookeeper/zookeeper.h> static int connected = 0; static int expired = 0; void main_watcher(zhandle_t *zkh, int type, int state, const char *path, void *context) { if (type == ZOO_SESSION_EVENT) { if (state == ZOO_CO...
<commit_before>#include <dlfcn.h> #include "loader.h" using BVS::Loader; using BVS::ModuleDataMap; using BVS::ModuleVector; using BVS::LibHandle; ModuleDataMap Loader::modules; ModuleVector* Loader::hotSwapGraveYard = nullptr; Loader::Loader(const Info& info, std::function<void()> errorHandler) : logger{"Lo...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2016-2017 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...
<commit_before>#include <archie/utils/number.h> namespace archie { namespace utils { template <typename... Ts> struct type_list { using size = Number<sizeof...(Ts)>; template <template <typename...> class Func> using apply = typename Func<Ts...>::type; template <template <typename> class Func> ...
<commit_before>#include <sstream> #include <iostream> #include <iomanip> #include <map> #include <cstdlib> #include <time.h> #include <sys/time.h> #include "zlog/db.h" #include "zlog/backend/lmdb.h" #include "kvstore/kvstore.pb.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" using namespace rapidj...
<commit_before>#ifndef DATA_ADAPTER_ARRAY_HPP_INCLUDED #define DATA_ADAPTER_ARRAY_HPP_INCLUDED #include "data_adapter.hpp" #ifndef NDEBUG #include <iostream> using std::cout; using std::endl; #endif // NDEBUG template <typename T, size_t N> class DataAdapter<T[N]> : public DataAdapterBase<T[N], T, DataAdapter<T[N]>...
<commit_before>/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2015 LiteIDE Team. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public **...
<commit_before>/* Copyright (c) 2003-2012, 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 ...
<commit_before>#include "NWUnitTest.h" #ifdef __linux #include "NanoWinMFCAfxStr.h" #else #include <windows.h> #endif NW_BEGIN_TEST_GROUP_SIMPLE(NanoWinMFCAfxStrTestGroup) NW_TEST(NanoWinMFCAfxStrTestGroup, CStringReplaceSimpleTCHARTest) { CString cString("abc abc abc"); int n = cString.Replace('a', 'q'); NW_...
<commit_before>#include "latexImprover.h" #include <iostream> #include "stringFinder.h" latexImprover::latexImprover(std::stringstream& file, std::stringstream& output){ std::vector<std::string> stringsToFind; stringsToFind.push_back("\\begin{align}"); stringsToFind.push_back("\\end{align}"); strings...
<commit_before>/* Copyright (C) 2019 Alexandr Akulich <akulichalexander@gmail.com> This file is a part of TelegramQt library. 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; ei...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before><commit_msg>QtWidgets: Trims color string to avoid crash when trailing spaces is present<commit_after><|endoftext|>
<commit_before>/* * A Remote Debugger Client for SpiderMonkey Java Script Engine. * Copyright (C) 2014-2015 Slawomir Wojtasiak * * 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 vers...
<commit_before>#include "phase_analyze.hpp" using std::string; using std::pair; using std::shared_ptr; using std::make_shared; using std::move; using std::vector; using std::static_pointer_cast; using std::make_pair; using backend::utility::make_vector; using backend::utility::make_set; using std::set; namespace back...