text
stringlengths
54
60.6k
<commit_before>/* * Copyright (c) 2014 Zubax, zubax.com * Distributed under the MIT License, available in the file LICENSE. * Author: Pavel Kirienko <pavel.kirienko@zubax.com> */ #pragma once #if !DEBUG_BUILD && !RELEASE_BUILD # error Either DEBUG_BUILD or RELEASE_BUILD must be defined #endif #include <ch.hpp> ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2009 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>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.C $ ...
<commit_before>// Config file test for MUON spectormeter // Remember to define the directory and option // gAlice->SetConfigFunction("Config('$HOME','box');"); void Config(char directory[100]="", char option[6]="box") { // // Config file for MUON test // Gines MARTINEZ, Subatech, mai 2003, august 2003 // /...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: imagebuttontoolbarcontroller.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2007-01-29 14:51:39 $ * * The Contents of...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2001 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. Redistr...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/perv/p9_start_cbs.H $ ...
<commit_before>/************************************************************************* * * $RCSfile: logoimagestatusbarcontroller.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2005-03-16 14:43:02 $ * * The Contents of this file are made available subject to the terms of * either o...
<commit_before>/////////////////////////////////////////////////////////////////////// // File: thresholder.cpp // Description: Base API for thresolding images in tesseract. // Author: Ray Smith // Created: Mon May 12 11:28:15 PDT 2008 // // (C) Copyright 2008, Google Inc. // Licensed under the Apache L...
<commit_before>/**************************************************************************** * * Copyright (C) 2015 Mark Charlebois. All rights reserved. * Author: @author Mark Charlebois <charlebm#gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Lic...
<commit_before>// // C++ Implementation: BuiltinFuncs // // Description: // // // Author: Carmelo Piccione <carmelo.piccione@gmail.com>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // /* Loads all builtin functions */ /* Loads a builtin function */ #include "BuiltinFuncs.hpp" #...
<commit_before>#include "NFfunction.hh" using namespace std; using namespace NFcore; using namespace mu; GlobalFunction::GlobalFunction(string name, string funcExpression, vector <string> &varRefNames, vector <string> &varRefTypes, vector <string> &paramNames, System *s) { if(varRefNames.size()!=varRefT...
<commit_before>// Copyright (C) 2015 SRG Technology, LLC // // 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, mo...
<commit_before>// SwiftShader Software Renderer // // Copyright(c) 2005-2012 TransGaming Inc. // // All rights reserved. No part of this software may be copied, distributed, transmitted, // transcribed, stored in a retrieval system, translated into any human or computer // language by any means, or disclosed to t...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Kurt Pattyn <pattyn.kurt@gmail.com>. ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtWebSockets module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License...
<commit_before>/* Copyright 2016 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>// // YaPB - Counter-Strike Bot based on PODBot by Markus Klinge. // Copyright 2004-2020 YaPB Project <yapb@jeefo.net>. // // SPDX-License-Identifier: MIT // #include <yapb.h> // module interface implementation class YaPBModule : public IYaPBModule, public Singleton <YaPBModule> { private: Bot *get...
<commit_before>#include "ncurses.hh" #include "display_buffer.hh" #include "register_manager.hh" #include "utf8_iterator.hh" #include "event_manager.hh" #include <map> #include <signal.h> #include <termios.h> #include <sys/ioctl.h> #include <fcntl.h> namespace Kakoune { static void set_attribute(int attribute, bo...
<commit_before>// Copyright 2015 Toggl Desktop developers. #include "../src/netconf.h" #include <string> #include <sstream> #include "./https_client.h" #include "Poco/Environment.h" #include "Poco/Logger.h" #include "Poco/Net/HTTPCredentials.h" #include "Poco/Net/HTTPSClientSession.h" #include "Poco/URI.h" #ifdef ...
<commit_before>#include "command.hh" #include "common-args.hh" #include "shared.hh" #include "store-api.hh" #include "derivations.hh" #include "local-store.hh" #include "finally.hh" #include "fs-accessor.hh" #include "progress-bar.hh" #if __linux__ #include <sys/mount.h> #endif using namespace nix; std::string chroo...
<commit_before>#include "dDNNF.h" #include <unordered_map> double dDNNF::dDNNFEvaluation(unsigned g) const { static std::unordered_map<unsigned, double> cache; auto it = cache.find(g); if(it!=cache.end()) return it->second; double result; if(gates[g]==BooleanGate::IN) result = prob[g]; else if(...
<commit_before> #ifdef DAGMC #include "dagmc.h" #include "openmc/error.h" #include <string> #include <algorithm> moab::DagMC* DAG; #define TOLOWER(S) std::transform(S.begin(), S.end(), S.begin(), ::tolower) void load_dagmc_geometry_c() { if(!DAG) { DAG = new moab::DagMC(); } int32_t dagmc_univ_id = 0; /...
<commit_before>// ============================================================================= // File Name: Elevator.cpp // Description: Provides an interface for the robot's elevator // Author: FRC Team 3512, Spartatroniks // ============================================================================= #include "El...
<commit_before>// RUN: %clangxx -O0 %s -o %t && %run %t // UNSUPPORTED: android #include <assert.h> #include <fcntl.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> int main(int argc, char **argv) { int mount_id; struct file_handle *handle = reinterpret_cast<struct file_handle *>( malloc(...
<commit_before>// Copyright (c) 2020 ASMlover. 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 o...
<commit_before>/* Copyright 2013-present Barefoot Networks, 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 b...
<commit_before>/** * Copyright (c) 2016-present, Facebook, 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...
<commit_before>/************************************************************************* * * $RCSfile: typemanager.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2004-09-08 16:43:40 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/*! \copyright (c) RDO-Team, 2012 \file rdolocale.cpp \authors Пройдаков Евгений (lord.tiran@gmail.com) \authors Урусов Андрей (rdo@rk9.bmstu.ru) \date 20.10.2012 \brief Настройка локали для РДО \indent 4T */ // ---------------------------------------------------------...
<commit_before>// https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock/ namespace BestTimeToBuyAndSellStock { class Solution { public: int maxProfit(vector<int> &prices) { int min = INT_MAX; int max = INT_MIN; int maxProfit = 0; fo...
<commit_before>/** \file patch_up_ppns_for_k10plus.cc * \brief Swaps out all persistent old PPN's with new PPN's. * \author Dr. Johannes Ruscheinski */ /* Copyright (C) 2019, Library of the University of Tübingen This program is free software: you can redistribute it and/or modify it under the ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tools.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2006-10-12 15:00:54 $ * * The Contents of this file are made av...
<commit_before>// // Created by dar on 11/27/15. // #include <stdio.h> #include <stdlib.h> #include <gui/GuiText.h> #include <gui/GuiButton.h> #include "Game.h" #include "../core/Core.h" #include "../core/map/TiledTxtMapLoader.h" #include "render/RenderManager.h" #include "InputManager.h" #include <core/map/entity/Ent...
<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>/** * 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 "../test.h" #include <cstdlib> class StrdupTest : public TestBase { public: StrdupTest() : TestBase("strdup") { } virtual void* Parse(const char* json) const { return strdup(json); } virtual char* Stringify(void* userdata) const { return strdup((char*)userdata); }...
<commit_before>/* This is a tool shipped by 'Aleph - A Library for Exploring Persistent Homology'. It loads VTK files (structured grids) or TXT (1D functions) files and calculates the interlevel set persistence hierarchy described in: Hierarchies and Ranks for Persistence Pairs Bastian Rieck, Heike Le...
<commit_before>/* <x0/mod_vhost_basic.cpp> * * This file is part of the x0 web server project and is released under LGPL-3. * * (c) 2009 Chrisitan Parpart <trapni@gentoo.org> */ #include <x0/server.hpp> #include <x0/request.hpp> #include <x0/response.hpp> #include <boost/lexical_cast.hpp> #include <boost/signal.h...
<commit_before>/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software ...
<commit_before>#include "RadioCalibrationWindow.h" RadioCalibrationWindow::RadioCalibrationWindow(QWidget *parent) : QWidget(parent, Qt::Window), radio(new RadioCalibrationData()) { QGridLayout *grid = new QGridLayout(); aileron = new AirfoilServoCalibrator(AirfoilServoCalibrator::AILERON); ...
<commit_before>#include "mem/log/ConsoleFormatter.hpp" namespace mem { namespace log { ConsoleFormatter::ConsoleFormatter () { setId("console"); this->add_tag("type", format_type_start, format_type_end); this->add_tag("symbol", format_type_start, format_type_end); } ConsoleFormatter::~ConsoleFormatter () ...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source Licens...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>/* * Copyright © 2012 Intel Corporation * * 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, mod...
<commit_before>#include <tbb/task.h> #include <iostream> #include <sstream> #include <cassert> #include <atomic> // node in a linked list of tasks that depend on a cont struct cont_node { tbb::task* task; cont_node* next; }; // base class for working with conts (encapsulates tricky atomic code) class cont_ba...
<commit_before>// Copyright (c) 2006-2008 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 <string> #include "base/basictypes.h" #include "base/clipboard.h" #include "base/string_util.h" #include "testing/gtest/...
<commit_before>// Copyright (c) 2020 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>#include "teensy3/WProgram.h" #include "teensy3/core_pins.h" #include "teensy3/usb_serial.h" #define ROWS 15 #define COLS 112 #define CLK 11 #define DAT 12 #define HIBANK 3 #define LOBANK 4 #define BIT0 0 #define BIT1 1 #define BIT2 2 #define bufferSize 512 int serialbuffer[bufferSize]; int img1[ROWS...
<commit_before>#include "parser.h" #include "ast.h" #include "token.h" #include "exceptions.h" #include <string> #include <vector> namespace sota { std::string Parser::Load(const std::string &filename) { return ""; } Token Parser::Take(Token token) { if (token) _tokens.push...
<commit_before>// Copyright (C) 2014 BMW Group // Author: Lutz Bichler (lutz.bichler@bmw.de) // 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 at http://mozilla.org/MPL/2.0/. #include <iomanip>...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: disas.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2007-08-03 09:55:30 $ * * The Contents of this file are made ava...
<commit_before>#include "parser.hpp" namespace Xigua { DataType Parser::parse_to_data_types(std::vector<std::string> string_list, DataTypes list_type) { DataType current_list; current_list.type = list_type; unsigned int current_item_index = 0; for (; current_item_index < string_list.size(); ++current_item_i...
<commit_before>#pragma once #include <depthai-shared/datatype/RawCameraControl.hpp> #include <nlohmann/json.hpp> #include "depthai-shared/common/CameraBoardSocket.hpp" #include "depthai-shared/common/CameraImageOrientation.hpp" namespace dai { /** * Specify ColorCamera options such as camera ID, ... */ struct Col...
<commit_before>#include "main.h" #include "cvar.h" class TournamentStartListener: public IGameEventListener2 { public: virtual ~TournamentStartListener() {} virtual void FireGameEvent(IGameEvent *event) { ConNotifyf("%s", "Tournament event triggered"); if (g_pCVar->FindVar("mp_tournament")-...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source Licens...
<commit_before>#include "include/parser.h" #include <cctype> #include <stack> #include <cstdio> #include "include/operator.h" #include "include/error.h" SpParser::SpParser() { /* initialize the operators table */ operators_ = std::unordered_map<std::string, SpOperator> ({ { "*", SpOperator("*", 10, ASSOC...
<commit_before>#include "perfmon.hpp" #include "arch/arch.hpp" #include "utils.hpp" #include <stdarg.h> #include "coroutine/coroutines.hpp" /* The var list keeps track of all of the perfmon_t objects. */ intrusive_list_t<perfmon_t> &get_var_list() { /* Getter function so that we can be sure that var_list is initi...
<commit_before>/** * @file metric_test.cpp * * Unit tests for the 'LMetric' class. */ #include <mlpack/core.hpp> #include <mlpack/core/metrics/lmetric.hpp> #include <boost/test/unit_test.hpp> #include "old_boost_test_definitions.hpp" using namespace std; using namespace mlpack::metric; BOOST_AUTO_TEST_SUITE(LMetr...
<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>#include "planet.h" QColor Planet::nextSelectionColor = QColor(1,1,1); Planet::Planet() : position(0.0f,0.0f,0.0f) { mass = 1000.0f; selectionColor = nextSelectionColor; nextSelectionColor.setRed(nextSelectionColor.red()+1); if(nextSelectionColor.red() == 0) { nextSelectionCol...
<commit_before>/*************************************** ** Tsunagari Tile Engine ** ** player.cpp ** ** Copyright 2011-2013 PariahSoft LLC ** ***************************************/ // ********** // Permission is hereby granted, free of charge, to any person obtaining a copy // of...
<commit_before>#include <QSettings> #ifdef Q_OS_WIN32 #include <winsparkle.h> #else #include "mac-sparkle-support.h" #endif #include "api/requests.h" #include "seafile-applet.h" #include "utils/utils.h" #include "auto-update-service.h" SINGLETON_IMPL(AutoUpdateService) namespace { #ifdef Q_OS_WIN32 con...
<commit_before>#include "Format.h" #include <iostream> int main() { fmtxx::Format(std::cout, "{1} {} {0} {}\n", 1, 2); // "2 1 1 2" fmtxx::Format(std::cout, "{0:d} {0:x} {0:o} {0:b}\n", 42); // "42 2a 52 101010" fmtxx::Format(std::cout, "{:<<16}\n", "left"); // "left<<<<<<<<<<<<" ...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>#ifndef _TBLIS_CONFIGS_KNL_CONFIG_HPP_ #define _TBLIS_CONFIGS_KNL_CONFIG_HPP_ #include "configs/config_builder.hpp" extern "C" { EXTERN_GEMM_UKR( float, bli_sgemm_opt_30x16_knc); EXTERN_GEMM_UKR(double, bli_dgemm_opt_30x8_knc); EXTERN_GEMM_UKR(double, bli_dgemm_opt_30x8); EXTERN_GEMM_UKR(double, bli_d...
<commit_before>/// /// @file cmdoptions.cpp /// @brief Parse command-line options for the primesieve console /// (terminal) application. /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory....
<commit_before>#ifndef STAN_MATH_PRIM_SCAL_META_PARTIALS_RETURN_TYPE_HPP #define STAN_MATH_PRIM_SCAL_META_PARTIALS_RETURN_TYPE_HPP #include <stan/math/prim/scal/meta/partials_type.hpp> #include <stan/math/prim/scal/meta/scalar_type.hpp> #include <boost/math/tools/promotion.hpp> namespace stan { /** * Template metap...
<commit_before>#include <mist/procs.h> #include <mist/config.h> #include <mist/timing.h> #include "controller_streams.h" #include "controller_storage.h" #include <sys/stat.h> namespace Controller { std::map<std::string, int> lastBuffer; ///< Last moment of contact with all buffers. bool streamsEqual(JSON::Value ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2009 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLI...
<commit_before>/* Copyright 2011 Joe Hermaszewski. 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 ...
<commit_before>/* * HtmlUtils.cpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General Pub...
<commit_before>/* * Copyright 2012, 2013 Esrille 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 applic...
<commit_before>#include <string> #include <stdio.h> #include <stdlib.h> #include <semaphore.h> #include <unistd.h> #include <sys/time.h> #include <signal.h> #include "rpc/client.h" #include "rpc/server.h" #include "benchmark_service.h" using namespace benchmark; using namespace rpc; using namespace std; const char ...
<commit_before>//======================================================================= // Copyright (c) 2020 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //========================================================...
<commit_before>/* Copyright 2016 Kristofer Björnson * * 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 <cassert> #include <iostream> #include <list> #include <pqxx/pqxx> using namespace PGSTD; using namespace pqxx; namespace { void compare_results(string name, result lhs, result rhs) { if (lhs != rhs) throw logic_error("Executing " + name + " as prepared statement " "yields different ...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2015 Relja Ljubobratovic, ljubobratovic.relja@gmail.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...
<commit_before>/* Copyright 1994, 1995 by Abacus Research and * Development, Inc. All rights reserved. */ #include "rsys/common.h" #include "QuickDraw.h" #include "MemoryMgr.h" #include "rsys/cquick.h" #include "rsys/mman.h" #include "rsys/image.h" #include <algorithm> using namespace Executor; #define MAX_ROWB...
<commit_before>/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009 - 2015 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribut...
<commit_before>/** This file is part of Deformable Shape Tracking (DEST). Copyright(C) 2015/2016 Christoph Heindl All rights reserved. This software may be modified and distributed under the terms of the BSD license.See the LICENSE file for details. */ #include <dest/core/config.h> #ifdef DEST_WI...
<commit_before>#include <iostream> #include <napi.h> #include <stdexcept> #include <string> #include <vector> #include "nexus_util.h" #include "string_util.h" #include "nxtranslate_debug.h" // ----- start of declaring debug levels #ifdef DEBUG3_NEXUS_UTIL #define DEBUG2_NEXUS_UTIL #endif #ifdef DEBUG2_NEXUS_UTIL #defi...
<commit_before>/*========================================================================= * * Copyright 2011-2013 The University of North Carolina at Chapel Hill * All rights reserved. * * Licensed under the MADAI Software License. You may obtain a copy of * this license at * * https://madai-public...
<commit_before>// Win32CommonControls.cpp : Defines the initialization routines for the DLL. // // Windows Header Files: #define _WIN32_WINNT 0x0500 #include <windows.h> #include <commctrl.h> #include <commoncontrols.h> #include <vector> #include <string> #include "BZWBAPI.h" BZWB_GET_PLUGIN_VERSION ...
<commit_before>// // Created by pkanev on 12/8/2017. // #include <include/v8.h> #include <assert.h> #include <android/log.h> #include <cstdlib> #include <chrono> #include <iomanip> #include <sstream> #include <V8GlobalHelpers.h> #include <v8_inspector/src/inspector/v8-log-agent-impl.h> #include <JsV8InspectorClient.h>...
<commit_before>#include <gtest/gtest.h> #include <parser.h> using namespace marklar; TEST(ParserTest, BasicFunction) { const auto testProgram = "i32 main() {" "}"; EXPECT_TRUE(parse(testProgram)); } TEST(ParserTest, SkipperStart) { // Has a newline before the function const auto testProgram = R"mrk( i32...
<commit_before>/*************************************************************************** * Copyright (C) 2007 by Lothar May * * * * This program is free software; you can redistribute it and/or modify ...
<commit_before>/* * * D-Bus++ - C++ bindings for D-Bus * * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> * * * 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; eit...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef QUEUEDITEM_HH #define QUEUEDITEM_HH 1 #include "common.hh" #include "item.hh" #include "stats.hh" enum queue_operation { queue_op_set, queue_op_del, queue_op_flush, queue_op_empty, queue_op_commi...
<commit_before>#include "Halide.h" #include "wrapper_tutorial_04A.h" #include <tiramisu/utils.h> #include <cstdlib> #include <iostream> #define NN 1000 int main(int, char **) { Halide::Buffer<uint8_t> A_buf(NN, NN); Halide::Buffer<uint8_t> B_buf(NN, NN); // Initialize matrices with pseudorandom values: ...
<commit_before>#include "drivers/ublox_neo7.hpp" #include <cstdlib> #include <cstring> #include "chprintf.h" #include "unit_config.hpp" const char NMEA_LF = '\n'; const char *NMEA_DELIMS = ",\0"; struct GPGLLMessage { float lon; char lonDir; float lat; char latDir; float utc; char valid; }; void UBloxN...
<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 "ImageFeed.hpp" #include <openMVG/sfm/sfm_data.hpp> #include <openMVG/sfm/sfm_data_io.hpp> #include <openMVG/image/image_io.hpp> #include <boost/filesystem.hpp> #include <boost/algorithm/string/case_conv.hpp> #include <boost/algorithm/string/replace.hpp> #include <queue> #include <iostream> #...
<commit_before>/* libs/graphics/effects/SkBlurMask.cpp ** ** Copyright 2006, 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...
<commit_before> /************************************************************************** * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>#ifndef ENTT_ENTITY_ENTITY_HPP #define ENTT_ENTITY_ENTITY_HPP #include <cstddef> #include <cstdint> #include <type_traits> #include "../config/config.h" #include "fwd.hpp" namespace entt { /** * @cond TURN_OFF_DOXYGEN * Internal details not to be documented. */ namespace internal { template<typen...
<commit_before>#include "j1App.h" #include "j1Render.h" #include "S_InGameMenu.h" #include "j1Player.h" #include "j1Window.h" #include "j1Camera.h" #include "j1HUD.h" #include "j1Pathfinding.h" #include "Gui.h" #include "GuiButton.h" #include "j1GameStartMenuBack.h" #include "j1Audio.h" S_InGameMenu::S_InGameMenu() { ...