text stringlengths 54 60.6k |
|---|
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2010-2015 Belledonne Communications SARL, All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
publishe... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#ifndef UTIL_BOX_H__
#define UTIL_BOX_H__
#include <sstream>
#include <iostream>
#include <type_traits>
#include "point.hpp"
namespace util {
// forward declaration
template <typename T, int N>
class box;
template <typename Derived, typename T, int N>
class box_base {
public:
/**
* Default cons... |
<commit_before>#include "Arduino.h"
#include "DFR_Key.h"
static int DEFAULT_KEY_PIN = 0;
static int DEFAULT_THRESHOLD = 5;
/*
To use any alternate set of values you will need to enable it by a define.
The define should NOT be done in code or it will impact all users. Visual
Studio users can set 'DF_ROBOT_V1' in ... |
<commit_before>#include "mnetracer.h"
using namespace UTILSLIB;
static const char* defaultTracerFileName("default_MNETracer_file.json");
bool MNETracer::ms_bIsEnabled(false);
std::ofstream MNETracer::ms_OutputFileStream;
bool MNETracer::ms_bIsFirstEvent(true);
long long MNETracer::ms_iZeroTime(0);
//================... |
<commit_before>/*
* TTUnitTest
* Copyright © 2011, Timothy Place and Trond Lossius
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include <limits>
#include "TTUnitTest.h"
static const TTFloat32 kTTTestFloat32Epsilon = 0.00001f;
stati... |
<commit_before>/*
* Copyright (C) 2013 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><commit_msg>WaE: MSVC2008 C2220 unsafe mix of types in operation<commit_after><|endoftext|> |
<commit_before>/* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* bit_by_bit.hpp
*
* author: ISHII 2bit
* mail: 2bit@b... |
<commit_before>/******************************************************************************
* (C) Copyright 2020 AMIQ Consulting
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
<commit_before>/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* 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/.
*/
#pragma once
#include "types.hpp"
namespace ox... |
<commit_before>/* vim: tabstop=2 shiftwidth=2 expandtab textwidth=80 linebreak wrap
*
* Copyright 2012 Matthew McCormick
* Copyright 2013 Justin Crawford <Justasic@gmail.com>
* Copyright 2015 Pawel 'l0ner' Soltys
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
<commit_before>/*************************************************************************/
/* audio_player.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*************************************************************************/
/* grid_container.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "stdafx.h"
#include "Environment.h"
#include <regex>
#include <set>
#include "Handle.h"
#include "ErrorUtilities.h"
#include "StringUtilities.h"
static const wregex EnvVarRegex = wregex(L"(.+)=(.*)");
// In upper case
static const set<wstring> AutoOverrides = {
L"APPDATA",
L"HOMEPATH",
L"LO... |
<commit_before>// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - -O1 %s | \
// RUN: FileCheck -check-prefixes=CHECK,CHECK-OLD %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin -new-struct-path-tbaa \
// RUN: -emit-llvm -o - -O1 %s | \
// RUN: FileCheck -check-prefixes=CHECK,CHECK-NEW %s
//
// C... |
<commit_before>#include <UnitTest++/UnitTest++.h>
#include <memory>
#include <sstream>
#include <utility>
#include "Article.h"
#include "JsonSerializer.h"
SUITE(ArticleJsonSerializerTests)
{
using namespace WikiWalker;
#define WW_PROTOCOL_HEADER \
R"("program":"wikiwalker","scheme-version":2,"ArticleCollection"... |
<commit_before>#include "atomic.hh"
#include "locks.hh"
#include <pthread.h>
#include <unistd.h>
#include "assert.h"
#define NUM_THREADS 90
#define NUM_ITEMS 100000
struct thread_args {
SyncObject mutex;
SyncObject gate;
AtomicQueue<int> queue;
int counter;
};
void *launch_consumer_thread(void *arg) {... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH *
* ... |
<commit_before>//------------------------------------------------------------------------------
// Copyright (c) 2017 John D. Haughton
//
// 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 wi... |
<commit_before>//
// Copyright (c) 2008-2016 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, ... |
<commit_before>// File: main_louvain.cpp
// -- community detection, sample main file
//-----------------------------------------------------------------------------
// Community detection
// Based on the article "Fast unfolding of community hierarchies in large networks"
// Copyright (C) 2008 V. Blondel, J.-L. Gui... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH *
* ... |
<commit_before>#include "domain.h"
#include "person.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include "data.h"
#include "console.h"
using namespace std;
Domain::Domain()
{
}
bool agePerson (const Person& lsh, const Person& rhs) // sort by birthyear
{
return (lsh.getBirth() < rhs.getBirth())... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include <errno.h>
#include <fcntl.h>
#include <linux/limits.h>
#include <poll.h>
#include <sys/inotify.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <cassert>
#include <string>
#include <vector>
#include "file_watc... |
<commit_before>/**
* @file posixtimer.hpp
* @brief Simple timer using POSIX functions.
* @author Paolo D'Apice
*/
#ifndef VIS_UTILS_POSIXTIMER_HPP
#define VIS_UTILS_POSIXTIMER_HPP
#warning "This class has been deprecated"
#include <sys/time.h>
/// @brief Type used for timestamps.
typedef unsigned long long time... |
<commit_before>// Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#include "Dialog.h"
#include "../../3RVX/Logger.h"
#include "Control.h"
Dialog::Dialog(LPCWSTR className, LPCWSTR dlgTemplate) :
Window(className) {
_dlgHwnd = CreateDialogParam(
... |
<commit_before>#include "SpriteRenderer.hpp"
#include "ShaderManager.hpp"
#include <iostream>
SpriteRenderer::SpriteRenderer()
{
}
void SpriteRenderer::init()
{
m_VertexBuffer.init();
m_TexCoordBuffer.init();
}
void SpriteRenderer::render(std::vector<Sprite>& sprites, Texture& texture)
{
clearVectors();
for ... |
<commit_before>// Copyright 2019 The TCMalloc 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... |
<commit_before>// ComplexCi.cpp : ̨Ӧóڵ㡣
//
//#include "stdafx.h"
#include <iostream>
#include <vector>
#include <set>
#include <fstream>
#include <string>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <sstream>
#include <iterator>
#include <queue>
#include <algorithm>
#include <chrono>
#in... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) 2010 Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License a... |
<commit_before>// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2002, 2003
//
// Test STL montageImages function
//
#include <Magick++.h>
#include <string>
#include <iostream>
#include <list>
#include <vector>
using namespace std;
using namespace Magick;
int ma... |
<commit_before>/**
* Copyright (C) 2016 3D Repo Ltd
*
* This program 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, either version 3 of the
* License, or (at your option) any later version.
*
* T... |
<commit_before>/**
* Copyright (C) 2015 3D Repo Ltd
*
* This program 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, either version 3 of the
* License, or (at your option) any later version.
*
* T... |
<commit_before>
/**************************************************************************
* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>
#include "stdafx.h"
#include "GStreamerCore.h"
#include "UnityHelpers.h"
#include <IThreadManager.h>
#include <gst/app/gstappsink.h>
#include <gst/video/video.h>
#include <glib-object.h>
#include <glib.h>
#include <algorithm>
#if false
#include "CMySrc.h"
#include "CMySink.h"
#endif
#ifdef USE_UNI... |
<commit_before>
<commit_msg>Removed useless file<commit_after><|endoftext|> |
<commit_before>#include "PAK.hpp"
#include "DNAMP3.hpp"
namespace DataSpec::DNAMP3 {
const hecl::FourCC CMPD("CMPD");
template <>
void PAK::Enumerate<BigDNA::Read>(athena::io::IStreamReader& reader) {
m_header.read(reader);
if (m_header.version != 2)
Log.report(logvisor::Fatal, fmt("unexpected PAK magic"));
... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkGradientShader.h"
#define W SkIntToScalar(80)
#define H SkIntToScalar(60)
typedef void (*PaintProc)(SkPa... |
<commit_before>#include "ofApp.h"
void ofApp::setup()
{
femurBone.load("femur.png");
images = { femurBone, femurBone, femurBone, femurBone, femurBone, femurBone, femurBone, femurBone };
angles = { 0, 0, 0, 0, 0, 0, 0, 0 };
anglesMinimum = { -360, -270, -180, -90, -80, -70, -60, -45 };
anglesMaxim... |
<commit_before>//include the engine code
#include "../RTEngine/RTEngine.hpp"
#include "../RTEngine/PhongMaterial.hpp"
#include "../RTEngine/Sphere.hpp"
#include "../RTEngine/Plane.hpp"
#include "../RTEngine/SphericalLight.hpp"
#include <cstdio>
#include <png.h>
using namespace RealRT;
void writeBufferAsPng... |
<commit_before>/*
* SessionPresentation.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 G... |
<commit_before>#include "stdafx.h"
#include "ScriptWindow.h"
#include "Editor.h"
void ScriptWindow::Create(EditorComponent* _editor)
{
editor = _editor;
wi::gui::Window::Create(ICON_SCRIPT " Script", wi::gui::Window::WindowControls::COLLAPSE | wi::gui::Window::WindowControls::CLOSE);
SetSize(XMFLOAT2(520, 80));
c... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p10/procedures/hwp/pm/p10_qme_sram_access.C $... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
<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 config.tests of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usag... |
<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 "chrome/browser/autofill/autofill_popup_view.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/autofill/test_au... |
<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 "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include... |
<commit_before>/*
* Keyman is copyright (C) SIL International. MIT License.
*
* Keyman Core - Debugger API unit tests
*/
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include "../../../src/kmx/kmx_xstring.h"
#include "../test_assert.h"
using ... |
<commit_before>// Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "iree/compiler/InputConversion/TOSA/Passes.h"
#include "iree/compiler/Di... |
<commit_before>/*
Copyright (C) 2008-2015 The Communi Project
You may use this file under the terms of BSD license as follows:
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 mus... |
<commit_before>/*
Copyright (C) 2008-2014 The Communi Project
You may use this file under the terms of BSD license as follows:
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 mus... |
<commit_before>//===========================================
// Lumina-DE source code
// Copyright (c) 2014, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "AppMenu.h"
#include "LSession.h"
#include <LuminaOS.h>
... |
<commit_before>#include "blockstream.h"
#define MASK_5BIT 0x000001F
#define MASK_10BIT 0x00003FF
#define MASK_16BIT 0x000FFFF
#define MASK_26BIT 0x3FFFFFF
#define MASK_28BIT 0xFFFFFFF
namespace redsea {
uint16_t syndrome(int vec) {
uint16_t synd_reg = 0x000;
int bit,l;
for (int k=25; k>=0; k--) {
bit ... |
<commit_before>// Copyright Daniel Wallin 2008. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef LUABIND_FORMAT_SIGNATURE_081014_HPP
# define LUABIND_FORMAT_SIGNATURE_081014_HP... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before>// Catch
#include <catch.hpp>
#include <helper.hpp>
// C++ Standard Library
#include <cmath>
#include <array>
// Mantella
#include <mantella>
TEST_CASE("geometry: get2DRotationMatrix(...)", "") {
SECTION("Generates 2D rotation matrix") {
const std::array<double, 15>& angles = {{0.0, 45.0, 90.0,... |
<commit_before>#include "alloGLV/al_ControlGLV.hpp"
namespace al{
bool GLVInputControl::onMouseDown(const Mouse& m){
glv::space_t xrel=m.x(), yrel=m.y();
glv().setMouseDown(xrel,yrel, m.button(), 0);
glv().setMousePos(m.x(), m.y(), xrel, yrel);
return !glv().propagateEvent();
}
bool GLVInputControl::onMouseUp(co... |
<commit_before>//======================================================================
//-----------------------------------------------------------------------
/**
* @file iutest_filter_tests.cpp
* @brief filter 対応テスト
*
* @author t.sirayanagi
* @version 1.0
*
* @par copyright
* Copyright (C) ... |
<commit_before>/**
* @file main.cpp
*
* @brief File containing main Q-Learning algorithm and all necessary associated functions to implementing this routine.
*
* @author Machine Learning Team 2015-2016
* @date March, 2016
*/
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <string>
#include <sstrea... |
<commit_before>/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>#include <BALL/VIEW/RENDERING/RENDERERS/rtfactRenderer.h>
#include <RTfact/Config/Init.inc.cpp>
//#include <RTfact/Utils/Packets/Detail/Constants.inc.cpp>
#include <BALL/STRUCTURE/triangulatedSurface.h>
#include <BALL/VIEW/PRIMITIVES/sphere.h>
#include <BALL/VIEW/PRIMITIVES/twoColoredTube.h>
using name... |
<commit_before>#include "rForcom.h"
#include "de/hackcraft/psi3d/GLF.h"
#include "de/hackcraft/psi3d/GLS.h"
#include "de/hackcraft/world/Message.h"
std::string rForcom::cname = "FORCOM";
unsigned int rForcom::cid = 1032;
rForcom::rForcom(Entity* obj) {
object = obj;
quat_zero(ori);
vector_zero(twr)... |
<commit_before>// Copyright 2015 The Crashpad 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
//
// Unle... |
<commit_before>// Copyright (c) 2003 Daniel Wallin and Arvid Norberg
// 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... |
<commit_before>#include "test.hpp"
#include "setup_transfer.hpp"
#include "libtorrent/socket.hpp"
#include "libtorrent/io.hpp"
#include <cstring>
#include <asio/read.hpp>
#include <asio/write.hpp>
#include <boost/bind.hpp>
using namespace libtorrent;
int read_message(stream_socket& s, char* buffer)
{
using namespace... |
<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 distributed WIT... |
<commit_before><commit_msg>ENH: handle cleaning of temporary files<commit_after><|endoftext|> |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2011 - 2017 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
*
... |
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> **************
*
* VR Juggler is (C) Copyright 1998-2003 by Iowa State University
*
* Original Authors:
* Allen Bierbaum, Christopher Just,
* Patrick Hartling, Kevin Meinert,
* Carolina Cruz-Neira, Albert Baker
*
* This libra... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 f... |
<commit_before><commit_msg>INTEGRATION: CWS pchfix02 (1.5.16); FILE MERGED 2006/09/01 17:30:41 kaib 1.5.16.1: #i68856# Added header markers and pch files<commit_after><|endoftext|> |
<commit_before>#include "mitkPropertyList.h"
#include <fstream>
int mitkPropertyListTest(int argc, char* argv[])
{
mitk::PropertyList::Pointer propList;
std::cout << "Testing New(): ";
propList = mitk::PropertyList::New();
if (propList.IsNull()) {
std::cout<<"[FAILED]"<<std::endl;
return EXIT_FAILURE;... |
<commit_before>/*
* opencog/spatial/3DSpaceMap/Pathfinder3D.cc
*
* Copyright (C) 2002-2011 OpenCog Foundation
* All Rights Reserved
* Author(s): Shujing Ke
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by... |
<commit_before>#ifndef GUARD_database_transaction_hpp
#define GUARD_database_transaction_hpp
#include "database_connection.hpp"
#include <boost/noncopyable.hpp>
namespace sqloxx
{
/**
* Class for managing database transactions using RAII.
* An instance of DatabaseTransaction, when created, causes
* an SQL transac... |
<commit_before>/*
* Application.cpp
*
* Created on: 30 avr. 2017
* Author: JulienCombattelli
*/
#include "Application/Application.h"
#include "Application/Events.h"
#include <exception>
#include <initializer_list>
Application::Application() : m_is_running(true)
{
add_event_handler<Moving_But... |
<commit_before>#include "server.hpp"
#include "AppLogger.hpp"
#include "ServerSettings.hpp"
#include "SystemMeasurement.hpp"
#include "SimpleHttpServer.hpp"
#include "DBBackEnd.hpp"
#include "SMTPAgent.hpp"
#include <QCoreApplication>
#include <QSettings>
#include <QFileInfo>
#include <QDir>
#include <QBuffer>
#include... |
<commit_before>#include <stdio.h>
#include "RegViewVU.h"
#include "../PS2VM.h"
CRegViewVU::CRegViewVU(HWND hParent, const RECT& rect, CVirtualMachine& virtualMachine, CMIPS* pCtx)
: CRegViewPage(hParent, rect)
, m_pCtx(pCtx)
{
virtualMachine.OnMachineStateChange.connect(boost::bind(&CRegViewVU::Update, this))... |
<commit_before>#pragma once
#include <vector>
#include <But/Format/detail/ParsedFormat.hpp>
#include <But/Format/detail/common.hpp>
#include <But/Mpl/parse.hpp>
namespace But
{
namespace Format
{
namespace detail
{
inline constexpr auto skipUntilEndOfComment(char const* fmt)
{
while( not isEos(*fmt) && *fmt!='}' )
... |
<commit_before>
/**
* @file ComputeMelbourneWubbena.hpp
* This class eases computing Melbourne-Wubbena combination for GNSS data structures.
*/
#ifndef Compute_MELBOURNEWUBBENA_GPSTK
#define Compute_MELBOURNEWUBBENA_GPSTK
//============================================================================
//
// This fi... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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
// t... |
<commit_before>#include "KEngine/Core/Entity.hpp"
#include "KEngine/Interfaces/IEntityComponent.hpp"
#include "KEngine/Log/Log.hpp"
#include <cassert>
namespace ke
{
Entity::Entity(const ke::EntityId p_ID)
: m_EntityID(p_ID)
{}
Entity::Entity(ke::Entity && p_rrEntity)
: m_Components(std::... |
<commit_before><commit_msg>fix -Wmaybe-uninitialized<commit_after><|endoftext|> |
<commit_before><commit_msg>Planning: add TODO item for avoiding off-road.<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 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>#include <limits>
#include <vector>
#include <gtest/gtest.h>
#include <boost/random/mersenne_twister.hpp>
#include <boost/math/distributions.hpp>
#include <boost/math/tools/promotion.hpp>
#include <stan/math/rev.hpp>
#include <stan/math/prim/fun/sign.hpp>
#include <stan/math/prim/fun/fabs.hpp>
#include... |
<commit_before>/*!
** \file Request.cpp
** \date Wed May 7 2008
** \author Steve Sloan <steve@finagle.org>
** Copyright (C) 2008 by Steve Sloan
**
** 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 F... |
<commit_before>#include <Core/Types.hpp>
#include <Engine/Rendering/Renderer.hpp>
#include <Engine/Scene/Light.hpp>
#include <Gui/Utils/KeyMappingManager.hpp>
#include <Gui/Viewer/RotateAroundCameraManipulator.hpp>
#include <Gui/Viewer/Viewer.hpp>
namespace Ra {
namespace Gui {
using namespace Ra::Core::Utils;
using ... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>/**@file
@brief Elements for Mobility Management messages, GSM 04.08 9.2.
*/
/*
* Copyright 2008, 2014 Free Software Foundation, Inc.
* Copyright 2010 Kestrel Signal Processing, Inc.
* Copyright 2014 Range Networks, Inc.
*
* This software is distributed under multiple licenses;
* see the COPYING file in... |
<commit_before>#include "stdafx.h"
#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... |
<commit_before>/**
* lambdak.tcc -
* @author: Jonathan Beard
* @version: Thu Oct 30 10:12:36 2014
*
* Copyright 2014 Jonathan Beard
*
* 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>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>#include "gcscpp_runner.h"
#include <string>
#include <thread>
#include "absl/random/random.h"
#include "absl/time/time.h"
#include "google/cloud/storage/client.h"
#include "google/cloud/storage/grpc_plugin.h"
GcscppRunner::GcscppRunner(Parameters parameters,
std::shared_ptr... |
<commit_before>// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002, 2003
//
// Pixels Implementation
//
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
#include <cstring>
#include "Magick++/Include.h"
#include <string> // Thi... |
<commit_before>#include <UWP/UWP.hpp>
#include <Windows.h>
#include <ShlObj.h>
#include <appmodel.h>
#include <AppxPackaging.h>
#include <memory>
namespace
{
template< typename T >
void FreeDeleter(T* Data)
{
free(Data);
}
std::unique_ptr<PACKAGE_ID, decltype(&FreeDeleter<PACKAGE_ID>)> GetPackageIdentifier()
{
st... |
<commit_before>/* Copyright 2013-2016 CyberTech Labs Ltd.
*
* 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 app... |
<commit_before>/*
* Copyright (C) 2006 George Staikos <staikos@kde.org>
* Copyright (C) 2006 Dirk Mueller <mueller@kde.org>
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
* Copyright (C) 2006 Simon Hausmann <hausmann@kde.org>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with o... |
<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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.