text stringlengths 54 60.6k |
|---|
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: anchoreddrawobject.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:32:25 $
*
* The Contents of this file... |
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*-
* kmail: KDE mail client
* Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
*
* 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 Foundat... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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.or... |
<commit_before>#include <csignal>
#include <fcntl.h>
#include <sys/stat.h>
#include "driver.h"
#include "../main/version.h"
#include "files.h"
#include "chpl.h"
#include "baseAST.h"
#include "symbol.h"
#include "expr.h"
#include "stmt.h"
#include "stringutil.h"
#include "misc.h"
#include "yy.h"
static void cleanup_for... |
<commit_before>/*
* Copyright (c) 2015 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>/* -*- 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: delete.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: kz $ $Date: 2006-07-19 09:30:36 $
*
* The Contents of this file are made a... |
<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>/***************************************************************************
copyright : (C) 2006 by Lukáš Lalinský
email : lalinsky@gmail.com
copyright : (C) 2004 by Allan Sandfeld Jensen
email : kde@carewolf.org
... |
<commit_before>#ifndef CALLBACK_HPP
#define CALLBACK_HPP
#include "noncopyable.hpp"
#include <type_traits>
#include <cstring>
struct callback_t : private noncopyable_t
{
enum {INTERNAL_STORAGE_SIZE = 64};
template <typename T>
callback_t(T &&object)
{
typedef typename std::rem... |
<commit_before>// @(#)root/tmva $\Id$
// Author: Andreas Hoecker, Peter Speckmayer
/**********************************************************************************
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
* Package: TMVA ... |
<commit_before><commit_msg>add missing include<commit_after><|endoftext|> |
<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
*"Licen... |
<commit_before>#include <stx/algorithm/MinMax.h>
#include <gtest/gtest.h>
TEST(Min, BasicFirst)
{
int x = 0;
auto& result = stx::Min(x, 1);
EXPECT_EQ(0, result);
EXPECT_EQ(&x, &result);
}
TEST(Min, BasicSecond)
{
int x = 0;
auto& result = stx::Min(1, x);
EXPECT_EQ(0, result);
EXPECT_EQ(&x, &result);
}
TEST... |
<commit_before>#include <tightdb.hpp>
#include <gperftools/profiler.h>
#include <unistd.h>
#include <wait.h>
// benchmark - requires linux and links with google-pprof
using namespace tightdb;
int main(int argc, char* argv [])
{
int spawns = 0;
if (argc != 4) {
printf("Arguments: profile_name num_proc... |
<commit_before>// local includes
#include "augment_sparsity_on_interface.h"
// libMesh includes
#include "libmesh/elem.h"
using namespace libMesh;
AugmentSparsityOnInterface::AugmentSparsityOnInterface(MeshBase & mesh,
boundary_id_type crack_boundary_lower,
... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2014 Paul T. Bauman, Roy H. Stogner
// Copyright (C) 2010-2013 The PE... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkVolumeTextureMapper.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyr... |
<commit_before>#include <RenHook/RenHook.hpp>
#include <RenHook/Hooks/Hook.hpp>
#include <RenHook/Memory/Protection.hpp>
#include <RenHook/Threads/Threads.hpp>
RenHook::Hook::Hook(const uintptr_t Address, const uintptr_t Detour)
: m_address(Address)
{
RenHook::Managers::Threads Threads;
Threads.Suspend();
... |
<commit_before>/*************************************************************************
*
* $RCSfile: MNameMapper.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2004-03-17 10:42:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scrwnd.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2007-04-26 09:30:53 $
*
* The Contents of this file are made a... |
<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 2017 The Apollo 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 ... |
<commit_before>#include <v8.h>
#include <node.h>
#include <node_buffer.h>
#include <sstream>
#include <cstring>
#include <string>
#include "BoyerMoore.h"
using namespace v8;
using namespace node;
namespace {
// this is an application of the Curiously Recurring Template Pattern
template <class Derived> struct Unary... |
<commit_before>/*------------gauss_vis.cpp----------------------------------------------------/
*
* Purpose: Simple visualization script for difference scenes for computus video
* 2020
*
* Notes: Compilation instructions:
* g++ -L/path/to/GathVL -I/path/to/GathVL -lgathvl -o gauss_vis gauss_vis.... |
<commit_before>/*
* dht11.c:
* Simple test program to test the wiringPi functions
* DHT11 test
*/
#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/xattr.h>
#include <string>
#include <iostream>
#include <fstream>
... |
<commit_before>/**
* Capture.cpp
*/
#include <iomanip>
#include <bites.hpp>
#include "Capture.hpp"
namespace wabbit {
Capture::Capture( bites::Config& config,
const int& duration,
std::ostream* output_stream )
: m_config( config ),
m_duration( duration ),
m_ou... |
<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>/*=========================================================================
*
* 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>/*******************************************************************************
* tests/api/operations_test.cpp
*
* Part of Project c7a.
*
*
* This file has no license. Only Chuck Norris can compile it.
******************************************************************************/
#include <c7a... |
<commit_before><commit_msg>Files.app: Disable all browser tests of Files.app in slow environment.<commit_after><|endoftext|> |
<commit_before>#include "SwitchingFunctionMaterial.h"
template<>
InputParameters validParams<SwitchingFunctionMaterial>()
{
InputParameters params = validParams<OrderParameterFunctionMaterial>();
params.addClassDescription("Helper material to provide h(eta) and its derivative in one of two polynomial forms.\nSIMPL... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_GEO_TRAVERSAL_HPP_
#define RDB_PROTOCOL_GEO_TRAVERSAL_HPP_
#include <set>
#include <vector>
#include "errors.hpp"
#include <boost/optional.hpp>
#include "btree/keys.hpp"
#include "btree/slice.hpp"
#include "containers/counted.... |
<commit_before>#include "generatorBase/converters/stringPropertyConverter.h"
using namespace generatorBase::converters;
using namespace qReal;
QString StringPropertyConverter::convert(QString const &data) const
{
QString result = data;
return "\"" + result.replace("\"", "\\\"") + "\"";
}
<commit_msg>Fixed print tex... |
<commit_before>/* Copyright (c) 2012 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 <sys/types.h> // Include something that will define __GLIBC__.
// The entire file is wrapped in this #if. We do this so ... |
<commit_before>/* -*- Mode: C; indent-tabs-mode: s; c-basic-offset: 4; tab-width: 4 -*- */
/* vim:set et ai sw=4 ts=4 sts=4: tw=80 cino="(0,W2s,i2s,t0,l1,:0" */
#include "batterywidget.h"
#include "batteryimage.h"
#include "batterydbusinterface.h"
#include "dcpbattery.h"
#include "slidercontainer.h"
#include "timeconta... |
<commit_before>/*
* Copyright (c) 2017, Nagoya 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, t... |
<commit_before>// Copyright (c) 2012 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 "content/browser/renderer_host/image_transport_factory_android.h"
#include "base/memory/singleton.h"
#include "content/browse... |
<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>// 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 "webkit/glue/image_decoder.h"
#pragma warning(push, 0)
#include "ImageSourceSkia.h"
#include "IntSize.h"
#include "RefPt... |
<commit_before>//
// FirebaseRemoteConfig.cpp
// ee_x
//
// Created by Zinge on 5/9/17.
//
//
#include "ee/firebase_remote_config/internal/FirebaseRemoteConfigBridge.hpp"
#include <ee/core/IMessageBridge.hpp>
#include <ee/core/Task.hpp>
#include <ee/core/Utils.hpp>
#include <ee/core/internal/JsonUtils.hpp>
#includ... |
<commit_before>#include "Duet.hpp"
#include "PrintHostSendDialog.hpp"
#include <algorithm>
#include <ctime>
#include <boost/filesystem/path.hpp>
#include <boost/format.hpp>
#include <boost/log/trivial.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <wx/frame.h>
#i... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Date.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 07:26:44 $
*
* The Contents of this file are made avai... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2014 William T. James
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>// The object hash map.
// (C) 2013 Cybozu.
#ifndef CYBOZU_HASH_MAP_HPP
#define CYBOZU_HASH_MAP_HPP
#include "MurmurHash3.h"
#include <algorithm>
#include <cstring>
#include <memory>
#include <mutex>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
namespace cybozu {
// ... |
<commit_before>// Spinlock.
// (C) 2013 Cybozu.
#ifndef CYBOZU_SPINLOCK_HPP
#define CYBOZU_SPINLOCK_HPP
#include <atomic>
#if defined(__i386__) || defined(__x86_64__)
# include <x86intrin.h>
#endif
namespace cybozu {
// A simple spinlock.
class spinlock {
public:
spinlock(): m_flag(ATOMIC_FLAG_INIT) {}
void... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>//
// Created by salmon on 17-9-18.
//
#include "MPIUpdater.h"
#include <mpi.h>
#include "MPIComm.h"
#include "simpla/SIMPLA_config.h"
#include "simpla/utilities/macro.h"
namespace simpla {
namespace parallel {
struct MPIUpdater::pimpl_s {
bool m_is_setup_ = false;
MPI_Comm comm;
int ndims ... |
<commit_before>#include <hop_bits/optimisationAlgorithm/covarianceMatrixAdaptationEvolutionStrategy.hpp>
namespace hop {
CovarianceMatrixAdaptationEvolutionStrategy::CovarianceMatrixAdaptationEvolutionStrategy(const std::shared_ptr<OptimisationProblem> optimisationProblem) : OptimisationAlgorithm(optimisationProblem... |
<commit_before>#include <QtTest>
#include <QtJsonSerializer>
#include "typeconvertertestbase.h"
#include <QtJsonSerializer/private/datetimeconverter_p.h>
using namespace QtJsonSerializer;
using namespace QtJsonSerializer::TypeConverters;
class DateTimeConverterTest : public TypeConverterTestBase
{
Q_OBJECT
protect... |
<commit_before>#include <catch2/catch.hpp>
#include "manipulator/manipulators/mouse_motion_to_scroll/count_converter.hpp"
TEST_CASE("count_converter::update") {
krbn::manipulator::manipulators::mouse_motion_to_scroll::count_converter c(8);
REQUIRE(c.update(0) == 0);
REQUIRE(c.update(8) == 1);
REQUIRE(c.updat... |
<commit_before>#include "UASQuickViewTextItem.h"
#include "QsLog.h"
#include <QVBoxLayout>
UASQuickViewTextItem::UASQuickViewTextItem(QWidget *parent) : UASQuickViewItem(parent)
{
QVBoxLayout *layout = new QVBoxLayout();
this->setLayout(layout);
layout->setSpacing(0);
layout->setMargin(0);
titleLab... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/scom/handleSpecialWakeup.C $ ... |
<commit_before>// __BEGIN_LICENSE__
//
// Copyright (C) 2006 United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration
// (NASA). All Rights Reserved.
//
// Copyright 2006 Carnegie Mellon University. All rights reserved.
//
// This software is distributed u... |
<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>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2020 Ben Vanik. All rights reserved. ... |
<commit_before>// Copyright 2011 Gregory Szorc
//
// 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>/*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aa... |
<commit_before><commit_msg>Refactoring ...<commit_after><|endoftext|> |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../../StroikaPreComp.h"
#if qHasFeature_OpenSSL
#include <openssl/evp.h>
#if OPENSSL_VERSION_MAJOR >= 3
#include <openssl/provider.h>
#endif
#endif
#include "../../Debug/Assertions.h"
#include "../../Execution/Exce... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#include "../../../Characters/Format.h"
#include "Reader.h"
//// SEEE http://www.zlib.net/zlib_how.html
/// THIS SHOWS PRETTY SIMPLE EXAMPLE OF HOW TO DO COMPRESS/DECOMPRESS AND WE CAN U... |
<commit_before>//
// Copyright (C) 2014, 2015 Ableton AG, Berlin. All rights reserved.
//
// 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
... |
<commit_before>/*******************************************************
* Copyright (c) 2020, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>/**
* Copyright (C) 2015 Virgil Security Inc.
*
* Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
... |
<commit_before>/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF),... |
<commit_before>/** \copyright
* Copyright (c) 2014, Balazs Racz
* 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>#include "animation.h"
#include "abstractframeset.h"
#include "limits.h"
#include "models/common/namechecks.h"
#include <cmath>
using namespace UnTech;
using namespace UnTech::MetaSpriteCommon;
/*
* ANIMATION
* =========
*/
const char* Animation::TYPE_NAME = "Animation";
Animation::Animation(Abstr... |
<commit_before>/*
* Copyright (c) 2010 Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>/*
* 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 License, or
* (at your option) any later version.
*
* Written (W) 2012 Heiko Strathmann
*/
#incl... |
<commit_before>// alembicPlugin
// Initial code generated by Softimage SDK Wizard
// Executed Fri Aug 19 09:14:49 UTC+0200 2011 by helge
//
// Tip: You need to compile the generated code before you can load the plug-in.
// After you compile the plug-in, you can load it by clicking Update All in the Plugin Manager.
#in... |
<commit_before>// vim : set fileencoding=utf-8 expandtab noai ts=4 sw=4 :
/// @addtogroup ahbmem
/// @{
/// @file ahbmem.cpp
///
/// @date 2010-2014
/// @copyright All rights reserved.
/// Any reproduction, use, distribution or disclosure of this
/// program, without the express, prior written con... |
<commit_before>#include <Windows.h>
#include <cstdio>
#include <cstring>
using namespace std;
enum DisplaySelection {
DS_MONITOR = 1,
DS_HDMI = 2,
DS_TOGGLE = 3,
};
/* This array must match the above enum */
char *DisplaySelectionString[] = {
"Monitor",
"HDMI",
"Toggle",
};
#define MAX_PATH_ELEMENTS 10
#defin... |
<commit_before>// [WriteFile Name=GenerateGeodatabase, Category=Features]
// [Legal]
// Copyright 2016 Esri.
// 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/license... |
<commit_before>#include "inverseIndexStorageUnorderedMap.h"
InverseIndexStorageUnorderedMap::InverseIndexStorageUnorderedMap(size_t pSizeOfInverseIndex, size_t pMaxBinSize) {
mSignatureStorage = new vector__umapVector(pSizeOfInverseIndex);
mMaxBinSize = pMaxBinSize;
mKeys = new vvsize_t(pSizeOfInverseIndex, vsize... |
<commit_before>// Copyright (c) 2014 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 "git_command.h"
int GitCommand::parseFileSystem(pp::VarDictionary message, std::string name,
pp::FileSystem& system) {
... |
<commit_before>#ifndef STAN_MATH_PRIM_FUN_INV_CLOGLOG_HPP
#define STAN_MATH_PRIM_FUN_INV_CLOGLOG_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/exp.hpp>
#include <cmath>
namespace stan {
namespace math {
/**
* The inverse complementary log-log function.
*
* The function is defined by
*
* <c... |
<commit_before>#include <iostream>
#include <string>
using namespace std::string_literals;
#include "acmacs-base/argc-argv.hh"
#include "acmacs-base/read-file.hh"
#include "acmacs-base/quicklook.hh"
// #include "acmacs-base/enumerate.hh"
#include "acmacs-chart/ace.hh"
#include "acmacs-map-draw/draw.hh"
#include "sett... |
<commit_before>#ifndef ALEPH_GEOMETRY_COVER_TREE_HH__
#define ALEPH_GEOMETRY_COVER_TREE_HH__
#include <iterator>
#include <limits>
#include <memory>
#include <ostream>
#include <queue>
#include <stdexcept>
#include <vector>
// FIXME: remove after debugging
#include <iostream>
#include <cassert>
#include <cmath>
nam... |
<commit_before>
#include "config.h"
#include "include/types.h"
//#define MDS_CACHE_SIZE 4*10000 -> <20mb
//#define MDS_CACHE_SIZE 80000 62mb
#define AVG_PER_INODE_SIZE 450
#define MDS_CACHE_MB_TO_INODES(x) ((x)*1000000/AVG_PER_INODE_SIZE)
//#define MDS_CACHE_SIZE MDS_CACHE_MB_TO_INOD... |
<commit_before>// xiva (acronym for HTTP Extended EVent Automata) is a simple HTTP server.
// Copyright (C) 2009 Yandex <highpower@yandex.ru>
// 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; ... |
<commit_before>#include <cmdstan/command.hpp>
#include <test/test-models/proper.hpp>
#include <stan/math/prim/core/init_threadpool_tbb.hpp>
#include <tbb/task_scheduler_init.h>
#include <gtest/gtest.h>
TEST(StanUiCommand, threadpool_init) {
tbb::task_scheduler_init &scheduler_init = stan::math::init_threadpool_tbb()... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: include/eos/core/LandmarkMapper.hpp
*
* Copyright 2014-2017 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
<commit_before>#include "data-id.hpp"
ID::ID() {
init(Department(NONE), 0, "");
}
ID::ID(const ID& c) {
copy(c);
}
ID& ID::operator= (const ID &c) {
if (this == &c) return *this;
copy(c);
return *this;
}
ID::ID(string str) {
string d, d1, d2, n, s;
int num;
long firstSpace, firstDigit, lastDigit, lastChar;
/... |
<commit_before>#ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_EXCEPTION_HPP
#define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_EXCEPTION_HPP
#include "internal/common.hpp"
#include <cutehmi/ExceptionMixin.hpp>
namespace cutehmi {
namespace modbus {
class Exception:
public ExceptionMixin<Exc... |
<commit_before>// Copyright © 2012-2014 Inria, Written by Lénaïc Bagnères, lenaic.bagneres@inria.fr
// 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/LICE... |
<commit_before>/*
Copyright (c) 2010-2014, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of ... |
<commit_before>//! \brief A collection of constants for Nova to use
#pragma once
#include "nova_renderer/memory/bytes.hpp"
using namespace nova::mem::operators;
namespace nova::renderer {
constexpr const char* MODEL_MATRIX_BUFFER_NAME = "NovaModelMatrixUBO";
constexpr const char* PER_FRAME_DATA_NAME = "Nova... |
<commit_before>#pragma once
#include <deque>
#include <forward_list>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#ifdef... |
<commit_before>/**
** \file object/urbi-exception.hxx
** \brief Implementation of UrbiException
*/
#ifndef OBJECT_URBI_EXCEPTION_HXX
# define OBJECT_URBI_EXCEPTION_HXX
# include <boost/format.hpp>
namespace object
{
inline
LookupError::LookupError (libport::Symbol slot)
: UrbiException ((boost::format ("... |
<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>#include "gvki/Logger.h"
#include <cstdlib>
#include <cstdio>
#include <cassert>
#include <errno.h>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "string.h"
#include "gvki/Debug.h"
// For mkdir(). FIXME: Make windows compatible
#include <sys/stat.h>
// For opendir(). FIXME: Make wi... |
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved.
//
// ______ __ ___
// /\__ _\ /\ \ /\_ \
// \/_/\ \/ __ \_\ \ _____ ___\//\ \ __
// \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\
// \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/... |
<commit_before>#include <iostream>
#include <map>
#include <string>
class Elem {};
class FaceInfo {};
class Variable
{
double _x;
public:
Variable(const double x) : _x(x) {}
double operator()(const Elem & elem) const { return _x; }
double operator()(const FaceInfo & fi) const { return _x; }
double operator(... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2020 BMW Car IT GmbH
* %%
* 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>/**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/image/freeimage.h"
#include "saiga/util/assert.h"
#ifdef SAIGA_USE_FREEIMAGE
#include <FreeImagePlus.h>
#include <cstring>
namespace Saiga {
namespace FIP {
bool... |
<commit_before>#include <cmath>
#include <array>
#include <chrono>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <sys/stat.h>
#include "simulation.h"
#include "codes/codes.h"
namespace detail {
inline bool file_exists(const std::string &fname) {
struct stat buf;
return (... |
<commit_before>#ifndef STAN_IO_VALIDATE_DIMS_HPP
#define STAN_IO_VALIDATE_DIMS_HPP
#include <stan/io/var_context.hpp>
#include <string>
#include <vector>
namespace stan {
namespace io {
/**
* Check variable dimensions against variable declaration.
*
* @param context The var context to check.
* @param stage stan ... |
<commit_before>// Copyright (c) 2012-2013 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 "consensus/consensus.h"
#include "consensus/tx_verify.h"
#include "consensus/validation.h"
#include "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.