text
stringlengths
54
60.6k
<commit_before><commit_msg>json.hpp update<commit_after><|endoftext|>
<commit_before>#include "array.h" #include "benchmark.h" #include <random> #include <iostream> using namespace array; // The standard matrix notation is to refer to elements by 'row, // column'. To make this efficient for typical programs, we're going // to make the second dimension the dense dim. template <typename...
<commit_before>#include <osg/Texture2D> #include <osg/TexGen> #include <osg/Material> #include <osg/LightSource> #include <osg/Geode> #include <osg/ShapeDrawable> #include <osgUtil/CullVisitor> #include <osgUtil/RenderToTextureStage> #include "CreateShadowedScene.h" using namespace osg; class CreateShadowTextureCul...
<commit_before>#include "test.h" #include "lib/Function.h" #include "Codegen.h" #include "ASTNode.h" #include "lib/Runtime.h" #include "x86_64/Disassembler.h" using namespace snow; using namespace ast; #include <iostream> TEST_SUITE(Codegen); // convenience for building ASTs #define _function new FunctionDefinition ...
<commit_before>#include "qwindowcompositor.h" #include <QMouseEvent> #include <QKeyEvent> #include <QTouchEvent> QWindowCompositor::QWindowCompositor(QOpenGLWindow *window) : WaylandCompositor(window) , m_window(window) , m_textureBlitter(0) , m_renderScheduler(this) , m_draggingWindow(0) , m_d...
<commit_before>/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * 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 <world/core.h> #include <world/flat.h> #include <world/terrain.h> using namespace world; int main(int argc, char **argv) { std::unique_ptr<FlatWorld> world(FlatWorld::createDemoFlatWorld()); FlatMapper mapper; Image output(1024, 1024, ImageType::RGB); double u = 50000; ...
<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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: updateprotocol.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2007-07-06 14:39:13 $ * * The Contents of this file are...
<commit_before>/************************************************************************* * * $RCSfile: frameloaderfactory.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2004-01-28 15:16:19 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before>#ifndef VEXCL_TYPES_HPP #define VEXCL_TYPES_HPP /* The MIT License Copyright (c) 2012 Denis Demidov <ddemidov@ksu.ru> 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 restr...
<commit_before>/* Copyright (c) 2012-2020, Intel Corporation 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 con...
<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 <time.h> #include <pqxx/pqxx> #include <random> #include <iostream> #include <unordered_map> //hash table #include "const.h" #include "pgutils.hpp" #include "dblog.hpp" using namespace std; using namespace pqxx; //declare all static variables PGUtils* PGUtils::instance; //constructor PGUti...
<commit_before>/** * phatELF.cpp * @author Michael Cotterell <mepcotterell@gmail.com> * @see LICENSE */ #include <cstdio> #include <cstdlib> #include <unistd.h> using namespace std; int main(int argc, char **argv, char **env) { printf("2423\n"); char cmdbuf[1024]; /** * The command below is credited to d...
<commit_before> #include <string.h> #include "atString.h++" atString::atString() { // Initialize string to not being allocated local_string = NULL; string_length = 0; // Set a default string setString("\0"); } atString::atString(char * stringToCopy) { // Initialize string to not being allocated ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/*ckwg +5 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include "component_score_json_writer_process.h" #include <vistk/pipeline/dat...
<commit_before>#include "textlayout_p.h" #include "textedit_p.h" #include "textdocument.h" #include "textedit.h" void TextLayout::dirty(int width) { viewport = width; layoutDirty = true; if (textEdit) textEdit->viewport()->update(); } int TextLayout::viewportWidth() const { if (!lineBreaking) ...
<commit_before>/* * Generate code to convert between VHDL types. * * Copyright (C) 2008 Nick Gasson (nick@nickg.me.uk) * * 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 versi...
<commit_before>#pragma once #include "../types.hpp" #include "base.hpp" #include <nlohmann/json.hpp> #include <pqrs/dispatcher.hpp> namespace krbn { namespace manipulator { namespace manipulators { class mouse_motion_to_scroll final : public base, public pqrs::dispatcher::extra::dispatcher_client { public: mouse_mo...
<commit_before>/************************************************************************* * * $RCSfile: convert.hxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 16:59:07 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * $RCSfile: idxmrk.hxx,v $ * * $Revision: 1.9 $ * * last change: $Author: vg $ $Date: 2003-04-24 11:00:20 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pggrid.hxx,v $ * $Revision: 1.10...
<commit_before>// LICENSE/*{{{*/ /* sxc - Simple Xmpp Client Copyright (C) 2008 Dennis Felsing, Andreas Waidler 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 3 of the Licen...
<commit_before>#include "defs.hpp" #include <Grappa.hpp> #include <Collective.hpp> #include <Delegate.hpp> #include <ParallelLoop.hpp> #include <GlobalCompletionEvent.hpp> #include <GlobalHashSet.hpp> #include <GlobalCounter.hpp> #include <Array.hpp> using namespace Grappa; namespace d = Grappa::delegate; DECLARE_int...
<commit_before>#include <stdio.h> #include "base/at_exit.h" #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/files/file_enumerator.h" #include "base/i18n/icu_util.h" #include "base/logging.h" #include "base/process/memory.h" #include "base/strings/string_util.h" #include "base/memory/...
<commit_before>#include <cmath> #include <ctime> #include <iostream> #include <vector> using namespace std; vector<long int> v_primes; void InitVector(long int s) { v_primes.reserve(s); v_primes.push_back(2); } int main(int argc, char const *argv[]) { clock_t begin = clock(); auto max = 10000000; auto lprime...
<commit_before>/* This macro will add histograms from a list of root files and write them to a target root file. The target file is newly created and must not be identical to one of the source files. Syntax: hist_add targetfile source1 source2 ... Author: Sven A. Schmidt, sven.schmidt@cern.ch Date: ...
<commit_before>#include <cppunit/ui/text/TestRunner.h> #include <cppunit/TestCaller.h> #include <cppunit/TestCase.h> #include <cppunit/extensions/HelperMacros.h> #include <iostream> #include <vector> #include "Hand.h" class CardTest : public CppUnit::TestCase { private: public: void testCreateHand() {//Basic t...
<commit_before>#include "polygon.h" #include <algorithm> fim::PolygonList fim::Polygon::convexDecomposition() { fim::PolygonList res; fim::PolygonQueue processQueue; processQueue.push(*this); while(!processQueue.empty()) { auto tmp = processQueue.front(); processQueue.pop(); int ccPoint = tmp.getConcavePoint...
<commit_before>#include "gtest/gtest.h" #include "delaunay.h" namespace { // The fixture for testing class Foo. class DelaunayTest : public ::testing::Test { protected: // You can remove any or all of the following functions if its body // is empty. DelaunayTest() { // You can do set-up work ...
<commit_before>/* This file is part of VROOM. Copyright (c) 2015-2018, Julien Coupey. All rights reserved (see LICENSE). */ #include <set> #include "problems/vrptw/heuristics/solomon.h" #include "utils/helpers.h" tw_solution solomon(const input& input, INIT_T init, float lambda) { tw_solution routes; for (ind...
<commit_before>/* * item grouping implementation */ #include <string> #include <sys/uio.h> #include "node.h" #include "config.h" #include "message.h" #include "convert.h" #include "array.h" #include "layout.h" #include "object.h" __MPT_NAMESPACE_BEGIN template <> int typeinfo<Group *>::id() { static int id...
<commit_before>/* This file is part of the Vc library. Copyright (C) 2009-2012 Matthias Kretz <kretz@kde.org> Vc 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 3 of th...
<commit_before>#include <catch.hpp> #include <fstream> #include <iostream> #include <kitty/constructors.hpp> #include <kitty/dynamic_truth_table.hpp> #include <kitty/operations.hpp> #include <kitty/print.hpp> #include <mockturtle/algorithms/akers_synthesis.hpp> #include <mockturtle/networks/mig.hpp> using namespace...
<commit_before>/* This file is part of: NoahFrame https://github.com/ketoo/NoahGameFrame Copyright 2009 - 2019 NoahFrame(NoahGameFrame) File creator: lvsheng.huang NoahFrame is open-source software and you can redistribute it and/or modify it under the terms of...
<commit_before>#include <iostream> #include <cmath> #include <cstdlib> #include <iomanip> #include <string> using namespace std; // void rowSum(int a[][4],int nRow){ // for(int i=0;i<nRow;i++){ // for(int j=0;j<4;j++){ // a[i][0] = a[i][j]; // } // } // } // void splitFloat(float x,int *intPart, float *fracP...
<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 // "Lic...
<commit_before>#include <camera.hpp> Camera::Camera(): name_{"Camera_Obscura"}, eye_{ 0.0,0.0,0.0 }, direction_{ 0,-1,0 }, up_{ 0.0,0.0,0.0 }, fovX_{ 0.0 } {} Camera::Camera(glm::vec3 const& pos) : name_{"Camera_Obscura"}, eye_{ pos }, direction_{0,-1,0}, up_{ 0.0,0.0,0.0 }, fovX_{0.0} {} Camera::Camera(s...
<commit_before>/*++ Copyright (c) 2012 Microsoft Corporation Module Name: fpa2bv_model_converter.h Abstract: Model conversion for fpa2bv_converter Author: Christoph (cwinter) 2012-02-09 Notes: --*/ #include"ast_smt2_pp.h" #include"fpa2bv_model_converter.h" void fpa2bv_model_converter::display(std::...
<commit_before>/* --------------------------------------------------------------------- * Numenta Platform for Intelligent Computing (NuPIC) * Copyright (C) 2018, Numenta, Inc. Unless you have an agreement * with Numenta, Inc., for a separate license for this software code, the * following terms and conditions app...
<commit_before>/* This file is part of solidity. solidity 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. solidity ...
<commit_before>// Copyright 2020 The gVisor Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
<commit_before>/* ** Copyright 2012-2015 Merethis ** ** This file is part of Centreon Broker. ** ** Centreon Broker is free software: you can redistribute it and/or ** modify it under the terms of the GNU General Public License version 2 ** as published by the Free Software Foundation. ** ** Centreon Broker is distribu...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<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 "views/controls/tabbed_pane/native_tabbed_pane_win.h" #include <vssym32.h> #include "app/gfx/canvas.h" #include "app/gfx/fon...
<commit_before>#include "gmock/gmock.h" #include "tcframe/experimental/runner.hpp" using ::testing::Test; namespace tcframe { class FakeProblem : public BaseProblem { protected: void InputFormat() {} }; class FakeGenerator : public BaseGenerator<FakeProblem> {}; class RunnerTests : public Test { protected: ...
<commit_before>#define BOOST_TEST_MODULE TestImpedanceSpectroscopy #define BOOST_TEST_MAIN #include <cap/energy_storage_device.h> #include <boost/format.hpp> #include <boost/foreach.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> #include <boost/math/constants/constants.hpp> ...
<commit_before>#include <iostream> #include <math.h> // Functions inclusive: #include <new-feature.h> // End. using namespace std; int main() { short int cResult = (8*2) + 7 + 1; cout << cResult; return 0; } <commit_msg>Last step: include feature<commit_after>#include <iostream> #include <math.h> // Functions i...
<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>// // Copyright (C) 2013 Mateusz Łoskot <mateusz@loskot.net> // // This file is part of Qt Creator Boost.Build plugin project. // // This is free software; you can redistribute and/or modify it under // the terms of the GNU Lesser General Public License, Version 2.1 // as published by the Free Software ...
<commit_before>// // Copyright 2020 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 la...
<commit_before><commit_msg>Check that chunk length is a multiple of 8<commit_after><|endoftext|>
<commit_before><commit_msg>Minor formatting changes and added config option for CFG tool.<commit_after><|endoftext|>
<commit_before>/*********************************************************************** filename: Sample_ScrollablePane.cpp created: Wed Aug 2 2006 author: Tomas Lindquist Olsen *************************************************************************/ /*********************************************...
<commit_before>/** * The MIT License * * Copyright (C) 2017 Kiyofumi Kondoh * * 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 ri...
<commit_before>#include <QString> #include <functional> #include <future> #include <memory> #include "kernel.h" #include "coverage.h" #include "columndefinition.h" #include "table.h" #include "attributerecord.h" #include "polygon.h" #include "geometry.h" #include "feature.h" #include "featurecoverage.h" #include "symbo...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sbintern.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2005-09-29 16:10:51 $ * * The Contents of this file are made ...
<commit_before><commit_msg>fixed typo<commit_after><|endoftext|>
<commit_before>#ifndef STRING_HPP #define STRING_HPP #include <string> #include <vector> #include <sstream> #include <cmath> namespace string { using unicode_char = std::uint32_t; using unicode = std::basic_string<unicode_char>; template<typename T> std::string convert(const T& t) { std::ostr...
<commit_before>#include <cfloat> #include <cmath> #include "geometry/r3_element.hpp" #include "glog/logging.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "quantities/elementary_functions.hpp" #include "quantities/si.hpp" #include "testing_utilities/numerics.hpp" namespace principia { namespace testin...
<commit_before>/* * Copyright (c) 2017 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....
<commit_before> #include "CopierAstConsumer.h" using namespace clang; #include <fstream> #include "FileUtils.h" namespace typegrind { CopierAstConsumer::CopierAstConsumer(clang::Rewriter*& rewriter, DirectoryMapper mapper, AppConfig const& appConfig) : AllocationASTConsumer(r...
<commit_before>/* =========================================================================== Daemon GPL Source Code Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. This file is part of the Daemon GPL Source Code (Daemon Source Code). Daemon Source Code is free software: you can redistribute it and...
<commit_before>/* Copyright The kNet 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 required by applicable la...
<commit_before>/* * DesktopMenuCallback.cpp * * Copyright (C) 2009-17 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 G...
<commit_before>#ifndef ENTT_ENTITY_VIEW_PACK_HPP #define ENTT_ENTITY_VIEW_PACK_HPP #include <tuple> #include <type_traits> #include <utility> #include "../core/type_traits.hpp" #include "fwd.hpp" #include "utility.hpp" namespace entt { /** * @brief View pack. * * The view pack allows users to combine multiple ...
<commit_before>#include "astutil.h" #include "expr.h" #include "stmt.h" #include "iterator.h" IteratorInfo::IteratorInfo() : seqType(NULL), classType(NULL), getHeadCursor(NULL), getNextCursor(NULL), isValidCursor(NULL), getValue(NULL) {} static FnSymbol* buildEmptyIteratorMethod(char* name, ClassType* c...
<commit_before>/* * SessionPath.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, * MERCHANTABILIT...
<commit_before>#include "cpu/pred/control_fault_evaluator.hh" using namespace Evaluator; using namespace std; ControlFaultEvaluator::ControlFaultEvaluator(string trigger,string action, bool _isEnabled) : isEnabled(_isEnabled) { if (!isEnabled) return; int n_nodes, n_edges; stringstream trigg...
<commit_before>/*========================================================================= * * Copyright Marius Staring, Stefan Klein, David Doria. 2011. * * 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 ...
<commit_before>/*! * Copyright (c) 2015 by Contributors * \file im2rec.cc * \brief convert images into image recordio format * Image Record Format: zeropad[64bit] imid[64bit] img-binary-content * The 64bit zero pad was reserved for future purposes * * Image List Format: unique-image-index label[s] path-to-im...
<commit_before>/************************************************************************* * * $RCSfile: cppdep.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: mh $ $Date: 2001-02-16 14:04:14 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2007 Jos van den Oever <jos@vandenoever.info> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; eithe...
<commit_before>///////////////////////////////////////////////////////////////////////////// // // BSD 3-Clause License // // Copyright (c) 2019, The Regents of the University of California // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted pr...
<commit_before>/* * Copyright 2004-2014 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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...
<commit_before>/* * stdp.cpp * * Created on: Apr 2, 2009 * Author: Craig Rasmussen */ #include <assert.h> #include <stdlib.h> #include "LinearPostConnProbe.hpp" #include "BiConn.hpp" #include "Patterns.hpp" #include <src/columns/HyPerCol.hpp> #include <src/io/ConnectionProbe.hpp> #include <src/io/GLDispl...
<commit_before>/* * Copyright 2006-2008 The FLWOR Foundation. * * 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...
<commit_before>/* * Copyright 2012 Troels Blum <troels@blum.dk> * * This file is part of cphVB <http://code.google.com/p/cphvb/>. * * cphVB 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...
<commit_before>// Copyright (c) 2009-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <test/fuzz/fuzz.h> #include <util/bip32.h> void test_one_input(const std::vector<uint8_t>& buffer) {...
<commit_before>/* Copyright (C) 2013 Andreas Hartmetz <ahartmetz@gmail.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option)...
<commit_before>NAN_METHOD(GitPatch::ConvenientFromDiff) { if (info.Length() == 0 || !info[0]->IsObject()) { return Nan::ThrowError("Diff diff is required."); } if (info.Length() == 1 || !info[1]->IsFunction()) { return Nan::ThrowError("Callback is required and must be a Function."); } ConvenientFrom...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright 2000-2002 The OGRE Team Also see acknowledgements in Readme.html This program is free ...
<commit_before>#include <blackhole/formatter/string.hpp> #include <blackhole/keyword/message.hpp> #include <blackhole/keyword/timestamp.hpp> #include "global.hpp" using namespace blackhole; TEST(string_t, FormatSingleAttribute) { record_t record; record.insert(keyword::message() = "le message"); std::st...
<commit_before>// Copyright (c) 2009 - Mozy, Inc. #include "timer.h" #include <algorithm> #include <vector> #include "assert.h" #include "atomic.h" #include "exception.h" #include "log.h" #include "version.h" #include "util.h" #include "config.h" #ifdef OSX #include <mach/mach_time.h> #elif defined(WINDOWS) #incl...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2018-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.f...
<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>/** @file @brief Implementation @date 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2016 Sensics, Inc. // Copyright 2019 Collabora, Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance wi...
<commit_before>#include "processes_page.h" #include "ui_processes_page.h" #include "utilities.h" ProcessesPage::~ProcessesPage() { delete ui; } ProcessesPage::ProcessesPage(QWidget *parent) : QWidget(parent), ui(new Ui::ProcessesPage), mItemModel(new QStandardItemModel(this)), mSortFilterModel(new QSortFi...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the tools applications of the Qt Toolkit. ** ** $QT_BE...
<commit_before>// Copyright (c) 2016, Baldur Karlsson // // Licensed under BSD 2-Clause License, see LICENSE file. // // Obtained from https://github.com/baldurk/qprocessinfo #include "qprocessinfo.h" #if defined(Q_OS_WIN32) #include <windows.h> #include <tlhelp32.h> typedef DWORD(WINAPI *PFN_GETWINDOWTHREADPROCES...
<commit_before>#include "profilerui.h" #include "ui_profilerui.h" #include <qpainter.h> #include <qpixmap.h> static const int MAX_FRAMES = 200; ProfileModel::Block::Block() { m_frames.reserve(MAX_FRAMES); for(int i = 0; i < MAX_FRAMES; ++i) { m_frames.push_back(0); } m_hit_counts.reserve(MAX_FRAMES); for (int...
<commit_before>#ifndef STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP #define STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/row.hpp> #include <stan/math/prim/fun/col.hpp> #include <stan/math/prim/fun/transpose.hpp> #include <stan/math...
<commit_before>#ifndef STAN_MATH_REV_FUN_LOG_DETERMINANT_SPD_HPP #define STAN_MATH_REV_FUN_LOG_DETERMINANT_SPD_HPP #include <stan/math/rev/meta.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/rev/core/typedefs.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math...
<commit_before>// Copyright 2018 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 o...
<commit_before>/* The MIT License (MIT) Copyright (c) [2016] [BTC.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 the rights to use, c...
<commit_before>// Copyright 2009 The RE2 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 "util/test.h" #include "re2/filtered_re2.h" #include "re2/re2.h" DECLARE_int32(filtered_re2_min_atom_len); // From prefilter_tree.cc ...
<commit_before>// Scintilla source code edit control /** @file LexCSS.cxx ** Lexer for Cascade Style Sheets ** Written by Jakub Vrna **/ // Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #in...
<commit_before>#include <jni.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <locale.h> #include <mpv/client.h> #include <mpv/opengl_cb.h> #include <EGL/egl.h> #include "main.h" #define ARRAYLEN(a) (sizeof(a)/sizeof(a[0])) #define jfunc(name, type) JNIEXPORT type JNICALL Java_is_xyz_mpv_MPVLib_...