text stringlengths 54 60.6k |
|---|
<commit_before>#include "implementedinfos.h"
ImplementedInfos::ImplementedInfos(Device *device)
: SysExMessage(SysExMessage::RET_INFO_LIST, SysExMessage::QUERY, device) {}
void ImplementedInfos::parseAnswerData() {
implementedInfos = new std::vector<DeviceInfoItem>();
unsigned int nInfosSize = data->size();
Devi... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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 LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>// Copyright (c) 2017 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "cashaddr.h"
#include "cashaddrenc.h"
#include "chainparams.h"
#include "random.h"
#include "test/test_bitcoin.... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner
// Copyright (C) 2010-2013 The... |
<commit_before>#include "UASQuickTabView.h"
#include "ui_UASQuickTabView.h"
#include <QTextCodec>
#include <QDebug>
#include <QTableWidget>
#include <QtGui>
UASQuickTabView::UASQuickTabView(QWidget *parent) :
ui(new Ui::UASQuickTabView)
{
ui->setupUi(this);
// this->setLayout(ui->gridLayout);
// ui->gri... |
<commit_before>/*
* Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
* @author Andre Moreira Magalhaes <[email protected]>
* Copyright (C) 2011 David Edmundson <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<[email protected]>
*
* This program is f... |
<commit_before>#include "gtest/gtest.h"
TEST(FooTest, HandleNoneZeroInput) {
EXPECT_EQ(2, 2);
EXPECT_EQ(6, 3 + 3);
}
int main(int argc, char *argv[]) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
<commit_msg>unit test<commit_after>#include "gtest/gtest.h"
#include "socket.h"
#include "iolo... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "keystore.h"
#include "script.h"
bool CKeyStore::GetPubKe... |
<commit_before>// $Id$
// The libMesh Finite Element Library.
// Copyright (C) 2002-2008 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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 Foun... |
<commit_before>/* -------------------------------------------------------------------------- */
/* Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) */
/* */
/* Licensed under the Apache License, Version 2.0 (the "Licens... |
<commit_before>/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozil... |
<commit_before>/*
Copyright (c) 2003, 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 condi... |
<commit_before>/*
Copyright (c) 2003, 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 condi... |
<commit_before>/*
* Copyright © 2016 Red Hat, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* T... |
<commit_before>/* The MIT License (MIT)
*
* Copyright (c) 2014-2018 David Medina and Tim Warburton
*
* 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 witho... |
<commit_before>//===--- Heap.cpp - Swift Language Heap Logic -----------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#ifndef SERIALIZABLE_H
#define SERIALIZABLE_H
#include <string>
#include <type_traits>
#include "manager.hpp"
#define SERIAL_START void serializer (JsonTree* _json_tree_, bool _json_op_, string _json_path_) {serialize (_json_op_, _json_path_, _json_tree_,
#define SERIAL_END ); }
namespace json {
clas... |
<commit_before><commit_msg>Remove unnecessary include<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rlrcitem.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-09-17 04:36:29 $
*
* The Contents of this file are made... |
<commit_before>/******************************************************************************
* Copyright (C) 2018 Kitsune Ral <[email protected]>
*
* 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 Fre... |
<commit_before><commit_msg>i115391 corected from isLocked to IsPasteResize which was used in modifiers for CustomShape and TextShape (cherry picked from commit 473a118a62842270b85713d0ab0dc247b5778439)<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: linkmgr.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: jp $ $Date: 2000-09-26 12:08:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* $RCSfile: dbgloop.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-19 00:08:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dflyobj.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 15:10:15 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: portxt.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:03:20 $
*
* The Contents of this file are made av... |
<commit_before><commit_msg>tdf#88230 Blind fix for IOS-only code<commit_after><|endoftext|> |
<commit_before>/***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : [email protected]
***************************************************************************/
/*********************************************... |
<commit_before>/***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : [email protected]
***************************************************************************/
/*********************************************... |
<commit_before>#ifndef UNIQUE_EVERSEEN_HPP
#define UNIQUE_EVERSEEN_HPP
#include "filter.hpp"
#include <type_traits>
#include <functional>
#include <utility>
#include <unordered_set>
#include <iterator>
namespace iter
{
//the container type must be usable in an unordered_map to achieve constant
//performance... |
<commit_before>/*===================================================================
BlueBerry Platform
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 implied warranty of MERCHANTABI... |
<commit_before>
#include "../../Flare.h"
#include "FlareWeaponStatus.h"
#include "../Components/FlareRoundButton.h"
#include "../../Spacecrafts/FlareWeapon.h"
#include "../../Spacecrafts/FlareSpacecraft.h"
#define LOCTEXT_NAMESPACE "FlareWeaponStatus"
/*----------------------------------------------------
Construct... |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... |
<commit_before>#include "Camera.h"
#include "../../Window.h"
#include "../GameObject.h"
#include "../../graphics/Skybox.h"
#include "../../graphics/TextRender.h"
#include "Transform.h"
#include "../../graphics/Renderer.h"
#include <algorithm>
#include "../../Input.h"
#include "../../editor/gizmos/Gizmos.h"
namespace th... |
<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>#include <iostream>
#include <iomanip>
using namespace std;
int main() {
// Declara as variavéis A B MEDIA
double A, B, MEDIA;
// Leiura das var A e B
cin >> A;
cin >> B;
// Produto dos pesos e cálcula a média e armazenada na var MEDIA
MEDIA = ((A*3.5)+(B*7.5))/11;
// Setar a pre... |
<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 "base/sync_socket.h"
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <sys/types.h>
#include "base/logging... |
<commit_before>/// @file
/// @version 3.5
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
#ifdef _ANDROID
#include <jni.h>
#include <hltypes/harray.h>
#include <hltypes/hlog.h... |
<commit_before>/* FLAC input plugin for Winamp3
* Copyright (C) 2000,2001,2002 Josh Coalson
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (... |
<commit_before>/*
* Copyright (c) 2011, Peter Thorson. 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, th... |
<commit_before>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
extern bool fWalletUnlockStakingOnly;
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
Q... |
<commit_before>/*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2015] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* i... |
<commit_before>/*
I actually got tricked into working hard and ended up wasting half a day
when a such a naive solution works.
:<
*/
#include <iostream>
#include <vector>
#include <cmath>
#include <numeric>
#include <unordered_set>
#include "prime_util.h"
#include "number_util.h"
void search(
int N,
... |
<commit_before>class Solution {
public:
int titleToNumber(string s) {
int ans=0,mul=1;
for(int i=s.size()-1;i>=0;i--){
ans+=(s[i]-'A'+1)*mul;
mul*=26;
}
return ans;
}
};
<commit_msg>Excel Sheet Column Number<commit_after>class Solution {
public:
int ti... |
<commit_before>#include "Zookeeper.hpp"
Gpu::Gpu() {
box->cpu->map_io(0xFD000000, PAGE_SIZE, (MMIOReceiver *) this); // 16MB address space
}
uint32_t Gpu::read(uint32_t addr) {
cout << format("Gpu::read(0x%08x)") % addr << endl;
switch(addr) {
case 0xfd100200:
return 3;
default:
return addr;
}
}
void ... |
<commit_before>// BUG: this whole thing depends on the specifics of how the clang version I
// am using emits llvm bitcode for the hacky RMC protocol.
// We rely on how basic blocks get named, on the labels forcing things
// into their own basic blocks, and probably will rely on this block
// having one predecessor and... |
<commit_before>#include "mn101.hpp"
#include <srarea.hpp>
typedef enum {
OPG_NONE = 0,
OPG_D_SRC,
OPG_D_DST,
OPG_DW_SRC,
OPG_DW_DST,
OPG_D0_DW_DST, //#
OPG_D1_DW_DST, //#
OPG_A_8, //#
OPG_A_SRC, //#
OPG_A_DST, //#
OPG_IMM4,
OPG_IMM4_S,
OPG_IMM8, //#
OPG_IMM8_S, /... |
<commit_before>#ifndef ANY_HPP
# define ANY_HPP
# pragma once
#include <cassert>
#include <cstdint>
#include <stdexcept>
#include <typeinfo>
#include <type_traits>
#include <utility>
namespace generic
{
class any
{
public:
template <typename T>
using remove_cvr = ::std::remove_cv<
typename ::std::remov... |
<commit_before>namespace bmi {
const int BMI_SUCCESS = 0;
const int BMI_FAILURE = 1;
const int MAX_COMPONENT_NAME = 2048;
const int MAX_VAR_NAME = 2048;
const int MAX_UNITS_NAME = 2048;
const int MAX_TYPE_NAME = 2048;
class Bmi {
public:
// Model control functions.
virtual void Initiali... |
<commit_before>// Calculates the size of a C-style array
int a[5];
std::cout << "Size: " << sizeof(a)/sizeof(*a) << std::endl;
<commit_msg>-Fast sigmoid is added<commit_after>// Calculates the size of a C-style array
int a[5];
std::cout << "Size: " << sizeof(a)/sizeof(*a) << std::endl;
// Fast sigmoid f(x) = x / (1 + ... |
<commit_before>/***************************************************************************
* Copyright (c) 2013 Jan Rheinländer *
* <[email protected]> *
* ... |
<commit_before>// returns success if stdin or the argument is a complete datafile
#include "rdb.hpp"
#include "../utils/utils.hpp"
#include <cerrno>
// from datafile.cc
extern const char *start4;
extern const char *end4;
int main(int argc, char *argv[]) {
FILE *in = stdin;
if (argc == 2) {
if (!fileexists(argv[1... |
<commit_before>#include "stdafx.h"
#include "Formula.h"
#include "Actions.h"
#include "Parser.h"
#include "PropertyBag.h"
#include "TokenPool.h"
#include "EventHandler.h"
#include "Scriptable.h"
#include "ScriptWorld.h"
#include "DeserializerFactory.h"
#include "../GameEngine/Map.h"
#include "../GameEngi... |
<commit_before>#include "cartrige.h"
struct rom_header
{
u8 start_vector[4];
u8 nintendo_logo[48];
u8 game_title[11];
u8 manufacturer_code[4];
u8 cgb_flag;
u8 new_license_code[2];
u8 sgb_flag;
u8 cartrige_type;
u8 rom_size;
u8 ram_size;
u8 destination_code;
u8 old_license_code;
u8 rom_version;
u8 checks... |
<commit_before><commit_msg>Added _absoluteRotation attribute<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: fumeasur.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-08-04 08:54:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: fuprlout.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2004-10-04 18:33:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: fuprobjs.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>#include <Python.h>
#include <awd/libawd.h>
#include "AWD.h"
#include "AWDMatrix4.h"
#include "AWDAttrBlock.h"
#include "AWDSubMesh.h"
#include "AWDMeshData.h"
#include "AWDMeshInst.h"
#include "AWDSkeleton.h"
#include "AWDSkeletonPose.h"
#include "AWDSkeletonJoint.h"
#include "AWDSkeletonAnimation.h"
... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <map>
#include <vespa/searchlib/features/rankingexpression/feature_name_extractor.h>
#include <vector>
#include <vespa/eval/eval/llvm/compiled_funct... |
<commit_before>// Catch
#include <catch.hpp>
// C++ Standard Library
#include <cstdlib>
#include <string>
// Armadillo
#include <armadillo>
// Mantella
#include <mantella>
extern std::string testDirectory;
TEST_CASE("bbob2013::BuecheRastriginFunction", "") {
for (const auto& numberOfDimensions : {2, 40}) {
m... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#include "../../StroikaPreComp.h"
#if qPlatform_Windows
#include <Windows.h>
#endif
#include "../../../Foundation/Characters/String_Constant.h"
#include "../../../Foundation/Characters/String2Float.h"
#includ... |
<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>// for some reason, we have to include windows.h for this to run
#ifdef _MSC_VER
#include <windows.h>
#endif
#include <wx/wx.h>
#include <audiere.h>
using namespace audiere;
bool TryDevice(const char* name);
enum {
DEVICE_NEW_DEVICE,
DEVICE_OPEN_STREAM,
DEVICE_OPEN_SOUND,
DEVICE_CREATE_TONE... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/eval/eval/fast_value.h>
#include <vespa/eval/eval/operation.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/eval/test/eval_fixture.h>
#include <vespa/eval... |
<commit_before>#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/un.h>
#include <time.h>
#include <unistd.h>
#include <string>
using std::string;
... |
<commit_before><commit_msg>improve coverage of matrix-vector product<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2009 Kevin Ottens <[email protected]>
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) any... |
<commit_before>/*
* =====================================================================================
*
* Filename: 3.cpp
*
* Description: Solution to the third problem of the `evens' section.
*
* Version: 1.0
* Created: 28.01.2015 6,00,07
* Revision: none
* Compil... |
<commit_before>#include <gtest/gtest.h>
#include <utility>
#include "OsiSolverInterface.hpp"
#include "OsiClpSolverInterface.hpp"
#include "CoinPackedMatrix.hpp"
#include "CoinModel.hpp"
#include "coin_helpers.h"
#include "exchange_graph.h"
#include "equality_helpers.h"
#include "prog_translator.h"
#include "solver_... |
<commit_before>/**
* @file
*/
#include "bi/type/FunctionType.hpp"
#include "bi/visitor/all.hpp"
bi::FunctionType::FunctionType(Type* params, Type* returnType, Location* loc,
const bool assignable) :
Type(loc, assignable),
ReturnTyped(returnType),
params(params) {
//
}
bi::FunctionType::~FunctionT... |
<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>// Copyright (c) 2020 The Orbit 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 "orbiteventiterator.h"
#include "absl/strings/str_format.h"
#include "ui_orbiteventiterator.h"
//------------------------------... |
<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 "gtest/gtest.h"
#include <SessionInfo.h>
#include <CryptokiException.h>
using namespace objck;
TEST(SessionInfo_test, constructor) {
CK_SESSION_INFO info = {
37,
CKS_RW_PUBLIC_SESSION,
CKF_SERIAL_SESSION,
2
};
SessionInfo sInfo(info);
EXPECT_EQ(sInfo.slotId(), 37);
EXPECT_EQ(... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/new_profile_handler.h"
#include "base/string_number_conversions.h"
#include "base/values.h"
#include... |
<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 <dwmapi.h>
#include "chrome/browser/views/frame/aero_glass_frame.h"
#include "chrome/app/theme/theme_resources.h"
#incl... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/renderer/pepper_plugin_delegate_impl.h"
#include "app/surface/transport_dib.h"
#include "base/logging.h"
#include "ba... |
<commit_before>/**
* The handler always needs to know what the previous node/way/relation
* in the file looked like to answer questions like "what is the
* valid_from date of the current entity" or "is this the last version
* of that entity". The EntityTracker takes care of keeping the
* current and the previous e... |
<commit_before>#include "PanelComponents.h"
#include "Application.h"
#include "ModuleWindow.h"
#include "GameObject.h"
#include "ComponentTransformation.h"
#include "ComponentMesh.h"
#include "ComponentMaterial.h"
#include "ComponentCamera.h"
#include "ModuleCamera3D.h"
#include "ModuleRenderer3D.h"
#include ... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libvisio 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 at ... |
<commit_before>/**
@file Datastore.hpp
@brief Datastore class.
@author Tim Howard
@copyright 2013 Tim Howard under the MIT license;
see @ref index or the accompanying LICENSE file for full text.
*/
#ifndef HORD_DATASTORE_HPP_
#define HORD_DATASTORE_HPP_
#include "./config.hpp"
#include "./traits.hpp"
#include "./com... |
<commit_before>///
/// @file aligned_vector.hpp
///
/// Copyright (C) 2017 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef ALIGNED_VECTOR_HPP
#define ALIGNED_VECTOR_HPP
#include <cstddef>
#include <vector>
... |
<commit_before>///
/// @file aligned_vector.hpp
///
/// Copyright (C) 2019 Kim Walisch, <[email protected]>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef ALIGNED_VECTOR_HPP
#define ALIGNED_VECTOR_HPP
#include <cstddef>
#include <vector>
... |
<commit_before>/*
* Copyright (c) 2015-2016 Fotonic
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* ... |
<commit_before>#pragma once
/**
@file
@brief int type definition and macros
Copyright (C) 2008 Cybozu Labs, Inc., all rights reserved.
*/
#if defined(_MSC_VER) && (MSC_VER <= 1500)
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
typedef unsigned int uint32_t;
typedef int int32_t;
typedef unsigned s... |
<commit_before>// Own header
#include "sized_glyph.h"
// Project headers
#include "master_glyph.h"
#include "text_renderer_aa_internals.h"
// Standard headers
#include <algorithm>
#include <stdlib.h>
// ***************************************************************************
// SizedGlyph
// ******... |
<commit_before>#include <QtWidgets>
#include <QObject>
#include <QStandardPaths>
#include "mainwindow.h"
#include "timer.h"
#include "../../Numeric/CRC.hpp"
/*
General Qt implementation notes:
* it seems like Qt doesn't offer a way to constrain the aspect ratio of a view by constraining
the size of the window ... |
<commit_before>#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <iostream>
#include <string>
#include <boost/unordered_map.hpp>
#include "config.hpp"
#include "pid.hpp"
#include "process.hpp"
using std::istream;
using std::ostream;
using std::size_t;
using std::string;
n... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>//Create by Christine Nattrass, Rebecca Scott, Irakli Martashvili
//University of Tennessee at Knoxville
//by default this runs locally
//With the argument true this submits jobs to the grid
//As written this requires an xml script tag.xml in the ~/et directory on the grid to submit jobs
void runHadEt(b... |
<commit_before>/*************************************************************************
*
* $RCSfile: b2ipoint.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: thb $ $Date: 2004-02-16 17:03:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dinfedt.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2007-06-27 23:11:03 $
*
* 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>/* LiteSQL - Common routines for backends
*
* The list of contributors at http://litesql.sf.net/
*
* See LICENSE for copyright information. */
#include <map>
#include "compatibility.hpp"
#include "litesql/backend.hpp"
#include "litesql/string.hpp"
#include "litesql/types.hpp"
#ifdef HAVE_LIBMYS... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkCommunicator.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>#include <iostream>
#include <stdexcept>
const bool BLACK = 1;
const bool RED = 0;
template<typename T>
struct Node
{
T value;
bool color;
Node* leftNode;
Node* rightNode;
Node* parNode;
};
template<typename T>
class RedBlackTree
{
private:
Node<T>* root;
Node<T>* NIL;
public:
RedBlackTree()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.