text stringlengths 54 60.6k |
|---|
<commit_before>#include "Halide.h"
#include <stdio.h>
#include <math.h>
using std::vector;
using namespace Halide;
using namespace Halide::Internal;
class CountInterleaves : public IRVisitor {
public:
int result;
CountInterleaves() : result(0) {}
using IRVisitor::visit;
void visit(const Call *op) {
... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is distribut... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include <gtest/gtest.h>
#include <string>
#include "magic_xattr.h"
#include "mountpoint.h"
#include "options.h"
#include "testutil.h"
#include "util/posix.h"
#include "uuid.h"
class T_MagicXattr : public ::testing::Test {
protected:
virtual ... |
<commit_before>
#include "messagepub.hpp"
#include "../../include/componentpack.hpp"
using namespace std;
COMPONENT_INSTANCE(messagepub)
COMPONENT_CREATE(messagepub)
COMPONENT_DESTROY
messagepub::messagepub()
:icomponent(COMPONENT(messagepub)){
// TODO Auto-generated constructor stub
}
messagepub::~messagepub() {... |
<commit_before>#include <iostream>
#include <osg/Notify>
#include <osg/MatrixTransform>
#include <osg/PositionAttitudeTransform>
#include <osg/Geometry>
#include <osg/Geode>
#include <osgUtil/Optimizer>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgGA/TrackballManipulator>
#include <osgGA/FlightM... |
<commit_before>/* -*-c++-*-
* Copyright (C) 2017 Julien Valentin <mp3butcher@hotmail.com>
*
* 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 fi... |
<commit_before>#include <gtksourceview/gtksource.h>
#include "jazz.hpp"
#include "jazz_tablabel.hpp"
#include "jazz_sourceview.hpp"
#include "jazz_filetree.hpp"
#include "jazz_util.hpp"
#include <iostream>
using coral::zircon::json_loadfile;
namespace Jazz
{
JazzIDE::JazzIDE(): box(Gtk::ORIENTATION_VERTICAL, 1),
h_bo... |
<commit_before>#include "ece556.h"
void handler(int sig) {
void *array[10];
size_t size;
size = backtrace(array, 10);
fprintf(stderr, "ERROR: signal %d:\n", sig);
backtrace_symbols_fd(array, size, STDERR_FILENO);
exit(1);
}
int readBenchmark(const char *fileName, routingInst *rst){
ifstr... |
<commit_before>#include <cmath>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include "StateSpace3.h"
#include "PriorityQueue.h"
#include "State3.h"
#include "environment.h"
template<typename T> std::string to_string(T x) {
return static... |
<commit_before>// This file is part of Playslave-C++.
// Playslave-C++ is licenced under the MIT license: see LICENSE.txt.
/**
* @file player/player.cpp
* Main implementation file for the Player class.
* @see player/player.hpp
* @see player/player_position.cpp
* @see player/player_state.cpp
*/
#include <stdexce... |
<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 Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/*
* Copyright 2010-2011 Research In Motion Limited.
*
* 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 appli... |
<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 "TextureLoader.h"
#include "App.h"
#include "ModuleRenderer3D.h"
#include "GameObject.h"
#include "ModuleGameObject.h"
#include "ComponentTexture.h"
#include "Functions.h"
#include "Devil\include\il.h"
#include "Devil\include\ilu.h"
#include "Devil\include\ilut.h"
#pragma comment (lib, "Devil/... |
<commit_before>// SetTests.cpp : Defines the entry point for the console application.
//
#include "gtest/gtest.h"
#include <set.h>
TEST(SuperSet, InitialSizeIsZero) {
Set set;
EXPECT_EQ(0, set.size());
}
int main(int argc, char** argv)
{
// run all tests
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_T... |
<commit_before>#pragma once
#include "prion/core.hpp"
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
namespace Unicorn {
using namespace Prion;
namespace Literals { using namespace Prion::Literals; }
// Exceptions
class InitializationError:
public std::runtime_error {
... |
<commit_before>#include "CalibTest.h"
// declare external tests here, to save us some trivial header files
void TestTipCalibration();
void Test2D3DPoseEstimation();
void Test3DPointReconstruction();
void TestAbsoluteOrientation();
void TestBundleAdjustment();
void TestDecomposeProjection();
void TestFundamentalMatrix(... |
<commit_before>/*
Copyright 2002-2014 CEA LIST
This file is part of LIMA.
LIMA 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) ... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2018 Morwenn
*
* 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><commit_msg>[Bug 11981] inproper "AND" operator in AutoSense.hpp.<commit_after><|endoftext|> |
<commit_before><commit_msg>#101785# set transparency to link display bitmaps<commit_after><|endoftext|> |
<commit_before><commit_msg>cid#1194914 Overflowed return value<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS loadenv01 (1.4.156); FILE MERGED 2004/03/12 14:47:53 mba 1.4.156.1: #115936#: remove window properties set while loading<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS cellbreak (1.2.322); FILE MERGED 2003/11/14 10:06:55 fme 1.2.322.4: #i2109# Split table rows 2003/11/07 07:22:14 fme 1.2.322.3: #i2109# Feature - Split table rows 2003/10/06 12:52:27 fme 1.2.322.2: #i2109# Feature - Split table rows 2003/09/08 07:46:05 fme 1.2.322.1: #i2109# ... |
<commit_before><commit_msg>INTEGRATION: CWS aw024 (1.18.12); FILE MERGED 2006/09/08 19:40:20 aw 1.18.12.6: RESYNC: (1.20-1.21); FILE MERGED 2006/08/18 08:20:13 od 1.18.12.5: #i68597# - remove unneeded forward declaration of class Region 2006/08/14 17:35:40 aw 1.18.12.4: #i68597# prepare SW for fully buffered Overlay 20... |
<commit_before><commit_msg>INTEGRATION: CWS swqbugfixes16 (1.41.180); FILE MERGED 2005/02/17 09:18:40 fme 1.41.180.1: #i37142# Footnote numbering portion should not take over certain attributes from the paragraph style<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS swundo01 (1.6.126); FILE MERGED 2004/01/06 23:48:48 hbrinkm 1.6.126.2: RESYNC: (1.6-1.7); FILE MERGED 2003/08/15 14:09:55 hbrinkm 1.6.126.1: #111827#<commit_after><|endoftext|> |
<commit_before>//
// (c) Copyright 2017 DESY,ESS
//
// This file is part of h5pp.
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your o... |
<commit_before>// Copyright 2009 Google Inc. 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><commit_msg>Add unit test constructing double with one arg (double). modified: tests/test_constructor_api.cpp<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
Copyright (c) 2014, Hans Robeers
All rights reserved.
BSD 2-Clause License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
... |
<commit_before>#include <chrono>
#include <cmath>
#include "ps/ps.h"
using namespace ps;
template <typename Val>
void EmptyHandler(const KVMeta &req_meta, const KVPairs<Val> &req_data, KVServer<Val> *server) {
KVPairs<Val> res;
if (req_meta.push) {
} else {
res.keys = req_data.keys;
res.vals.resize(req_... |
<commit_before>#ifndef MY_LEVEL
#define MY_LEVEL
#include <Annwvyn.h>
using namespace Annwvyn;
//Each level you can create hinerits
//from AnnAbstractLevel
class MyLevel : LEVEL
{
public:
MyLevel();
void load();
void runLogic();
};
#endif //MY_LEVEL<commit_msg>correct typo<commit_after>#ifndef MY_LEVEL
#define MY... |
<commit_before><commit_msg>Single quote strings with '\' to join lines now styled correctly. Bug #3150522.<commit_after><|endoftext|> |
<commit_before><commit_msg>New tests<commit_after><|endoftext|> |
<commit_before> /*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filcmd.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2006-06-20 05:19:31 $
*
* The Contents of this file are made a... |
<commit_before>//===- llvm/unittest/ADT/DenseMapMap.cpp - DenseMap unit tests --*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// This code is licensed under the New BSD license.
// See LICENSE.txt for more details.
#include <iostream>
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Host.h"
#include "clang/Frontend/DiagnosticOptions.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Basic/LangOp... |
<commit_before>#include <znc/main.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/Modules.h>
#include <znc/Nick.h>
#include <znc/Chan.h>
#include "twitchtmi.h"
#include "jload.h"
TwitchTMI::~TwitchTMI()
{
}
bool TwitchTMI::OnLoad(const CString& sArgsi, CString& sMessage)
{
OnBoot();
if(GetNe... |
<commit_before>/*
Copyright (c) 2016 Erik Rigtorp <erik@rigtorp.se>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modif... |
<commit_before>/*************************************************************************
Service - Classe d'interface des services de traitement distants
-------------------
dbut : 10/05/17
copyright : (C) 2017 par CHAZELLE
e-mail : benjamin.chazelle@insa-lyon.fr
***************... |
<commit_before>// Copyright 2021 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "include/core/SkCanvas.h"
#include "include/core/SkGraphics.h"
#include "include/gpu/GrDirectContext.h"
#include "tools/DDLPromiseImageHelper.h"
#include "tools/DD... |
<commit_before>/*
* This file is part of TelepathyQt4
*
* Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2008 Nokia Corporation
*
* 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 b... |
<commit_before>/*
* The MIT License(MIT)
*
* Copyright(c) 2016 Victor DENIS (victordenis01@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without l... |
<commit_before>/*
This program 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:
hadd targetfile source1 source2 ...
or
hadd -f targetfile source1 source... |
<commit_before>//
// Content.cpp
//
// Implements the ContentManager class, including the ability to read
// and write the contents to an XML file.
//
// Copyright (c) 2001 Virtual Terrain Project.
// Free for all uses, see license.txt for details.
//
#ifdef _MSC_VER
#pragma warning( disable : 4786 )
#endif
#include ... |
<commit_before>/*******************************************************************************
* tests/core/hash_table_bench.cpp
*
* Part of Project c7a.
*
*
* This file has no license. Only Chuck Norris can compile it.
******************************************************************************/
#include <c... |
<commit_before>/*---------------------------------------------------------------------------*\
* OpenSG *
* *
* ... |
<commit_before>/// \file RClusterPool.cxx
/// \ingroup NTuple ROOT7
/// \author Jakob Blomer <jblomer@cern.ch>
/// \date 2020-03-11
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/*************************************************... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2011. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Containers/Common.h"
#include "TextInputStream.h"
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Streams;
/*
********************... |
<commit_before><commit_msg>tweak<commit_after><|endoftext|> |
<commit_before>
#ifndef AT_TIMER_HPP
#define AT_TIMER_HPP
class atTimer
{
private:
static atTimer *systemTimer;
double markTime;
double markInterval;
public:
atTimer();
~atTimer();
void mark();
void markAtInterval(... |
<commit_before>#include "Connection.h"
#include "Encryption.h"
#include "Compression.h"
#include "Packets/PacketDispatcher.h"
#include "Packets/PacketFactory.h"
#include "Network/Network.h"
#include "Network/TCPSocket.h"
#include <future>
#include <thread>
namespace Minecraft {
Connection::Connection(Minecraft::Pa... |
<commit_before>#include <iostream>
#include "yaml-cpp/emitterstyle.h"
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
class NullEventHandler : public YAML::EventHandler {
public:
typedef YAML::Mark Mark;
typedef YAML::anchor_t anchor_t;
NullEventHandler() {}
virtual void... |
<commit_before>/* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* 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>// @(#)root/tree:$Name: $:$Id: TTreeCache.cxx,v 1.5 2006/08/11 20:17:26 brun Exp $
// Author: Rene Brun 04/06/2006
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 NorthScale, 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... |
<commit_before>#include "EntityImpl.h"
#include "catch.hpp"
#include "../src/EntityContainer.h"
#include "../src/EntityProperties.h"
#include "../src/GameData.h"
#include "../src/CollisionDetector.h"
#include "../src/DeltatimeMonitor.h"
#include "../src/Mixer.h"
TEST_CASE( "Object container tests", "[objectcontainer]"... |
<commit_before>#include "evaluator.hpp"
#include "action.hpp"
#include "expr.hpp"
#include "decode.hpp"
#include "type.hpp"
#include "decl.hpp"
#include <climits>
#include <sstream>
// testing only
#include <iostream>
namespace pip
{
static cap::decoded_packet* create_modified_packet(const cap::packet& pkt)
{
... |
<commit_before>#include<d3d9.h>
#include "object.h"
void object::init(LPDIRECT3DDEVICE9 g_pd3dDevice, int VertexSize, int IndexSize, CUSTOMVERTEX Vertices[], WORD Indices[],int PrimitiveCount)
{
m_VertexSize = VertexSize;
m_IndexSize = IndexSize;
m_PrimitiveCount = PrimitiveCount;
g_pd3dDevice->CreateVertexBuff... |
<commit_before>/* Copyright 2013 - 2015 Yurii Litvinov and 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
*
* U... |
<commit_before>/*
* Copyright (C) 2006 Funambol
*
* 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
* (at your option) any later version.
*
* This progr... |
<commit_before>// Copyright (c) 2012-2013 Zeex
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list o... |
<commit_before>#include <gtest/gtest.h>
#include "url.h"
#include "robots.h"
TEST(RobotsTest, NoLeadingUserAgent)
{
// Assumed to be the default user agent
std::string content =
"Disallow: /path\n"
"Allow: /path/exception\n"
"Crawl-delay: 5.2\n";
Rep::Robots robot(content);
EX... |
<commit_before>/*
* Copyright (C) 2017 Nagisa Sekiguchi
*
* 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>#define BOOST_TEST_MODULE TestrocFFT
#include <iostream>
#include <vector>
#include <cstdint>
#include "hip/hip_runtime_api.h"
#include "hip/hip_vector_types.h"
#include "rocfft.h"
#include <boost/test/unit_test.hpp>
#include <iostream>
BOOST_AUTO_TEST_CASE( FFT1DSingle, * boost::unit_test::tolerance(0.... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is dis... |
<commit_before>#include "Assembler.h"
#include "Basic.h"
#include "Iterate.h"
#include <iostream>
using namespace std;
namespace snot {
Assembler::~Assembler() {
for (auto iter = iterate(m_SubAsms); iter; ++iter) {
for (auto asm_iter = iterate(iter->second); asm_iter; ++asm_iter) {
delete *asm_iter;
}
}... |
<commit_before>inline
grass_points::grass_points( const std::string in_path,
const std::string in_actionNames,
const int in_scale_factor,
const int in_shift,
const int in_scene, //only for kth
const int in_segment_length,
const int in_p
)
:path(in_path), actionNames(in_actio... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2011 Laszlo Papp <djszapi@archlinux.us>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesse... |
<commit_before>#include "stdafx.h"
#include "Problem1.h"
/*
https://projecteuler.net/problem=1
Multiples of 3 and 5
Problem 1
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
*/
in... |
<commit_before>// Generator requires C++11
#if __cplusplus > 199711L || _MSC_VER >= 1800
#include "Generator.h"
namespace {
// Return true iff the name is valid for Generators or Params.
// (NOTE: gcc didn't add proper std::regex support until v4.9;
// we don't yet require this, hence the hand-rolled replacement.)
... |
<commit_before>// cfiles, an analysis frontend for the Chemfiles library
// Copyright (C) Guillaume Fraux and contributors -- BSD license
#ifndef CFILES_HISTOGRAM_HPP
#define CFILES_HISTOGRAM_HPP
#include <vector>
#include <cmath>
#include <numeric>
#include <functional>
#include "Errors.hpp"
/// Histogram class
tem... |
<commit_before>/*
* Copyright 2015-2017 Kacper Kasper <kacperkasper@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Languages.h"
#include <algorithm>
#include <map>
#include <string>
#include <Catalog.h>
#include <FindDirectory.h>
#include <Path.h>
#include <String.h... |
<commit_before>// Scintilla source code edit control
/** @file LexMatlab.cxx
** Lexer for Matlab.
** Written by Jos Fonseca
**
** Changes by Christoph Dalitz 2003/12/04:
** - added support for Octave
** - Strings can now be included both in single or double quotes
**/
// Copyright 1998-2001 by Neil Hodgson <... |
<commit_before>#include "mission_item_impl.h"
#include "global_include.h"
#include "log.h"
#include <cmath>
namespace dronecode_sdk {
MissionItemImpl::MissionItemImpl() {}
MissionItemImpl::~MissionItemImpl() {}
void MissionItemImpl::set_position(double latitude_deg, double longitude_deg)
{
_latitude_deg = latit... |
<commit_before>//
// INTEL CORPORATION PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright... |
<commit_before><commit_msg>Update abi defs for type changes<commit_after><|endoftext|> |
<commit_before><commit_msg>Updated for new memory manager call<commit_after><|endoftext|> |
<commit_before>/* <x0/plugins/proxy.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.ws/
*
* (c) 2009-2010 Christian Parpart <trapni@gentoo.org>
*/
#include <x0/http/HttpPlugin.h>
#include <x0/http/HttpServer.h>
#include <x0/http/HttpRequest.h>
#include <x0... |
<commit_before>#include "Image.hpp"
#include "Misc.hpp"
#include "TargaImage.hpp"
#include "PNGImage.hpp"
namespace Core
{
Image::Image()
: m_width(0), m_height(0), m_format(0), m_bytesPerPixel(0)
{
}
Image::~Image()
{
}
GLushort Image::GetWidth() const
{
return m_width;
}
GLushort Image::GetHeight()... |
<commit_before><commit_msg>coverity#708261 Uninitialized scalar field<commit_after><|endoftext|> |
<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-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fol... |
<commit_before>#include <qcustomplot.h>
#include <iostream>
#include "settingswidget.h"
#include "ui_settingswidget.h"
SettingsWidget::SettingsWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::SettingsWidget) {
ui->setupUi(this);
}
SettingsWidget::~SettingsWidget() {
delete ui;
}
Settin... |
<commit_before>// (C) 2014 Arek Olek
#pragma once
#include <cstring>
#include <string>
#include <sstream>
#include <vector>
namespace opt_util {
template <class Result>
Result convert(const char* cstr) {
throw "stub";
}
template <>
int convert<int>(const char* cstr) {
return atoi(cstr);
}
templ... |
<commit_before>// Still just looking into possible choices for syntax but so far I like this one a lot. It's a bit more explicit then other solutions and
// offers more control then macros.
#include "Events.hpp"
#include "ScriptingManager.hpp"
namespace Testing {
class TestingEventStuff {
private:
static Engine::... |
<commit_before>#include "Mesh_OGL3.hpp"
Mesh::Mesh(void)
{
}
Mesh::~Mesh(void)
{
}
void Mesh::initBuffers()
{
glGenVertexArrays(1, &vertexArrayObject);
glGenBuffers(1, &vertexBuffer);
glGenBuffers(1, &indexBuffer);
glBindVertexArray(vertexArrayObject);
glBindBuffer(GL_ARRAY_BUFFER, vertexBuf... |
<commit_before><commit_msg>Improvements in Emscripten resize<commit_after><|endoftext|> |
<commit_before>#include <MicroNMEA.h>
// Allow debugging/regression testing under normal g++ environment.
#ifdef MICRONMEA_DEBUG
#include <stdlib.h>
#include <iostream>
using namespace std;
#endif
static long exp10(uint8_t b)
{
long r = 1;
while (b--)
r *= 10;
return r;
}
static char toHex(uint8_t nibble)
{
... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is dis... |
<commit_before>#include <gtest/gtest.h>
#include <stan/prob/distributions/univariate/discrete/ordered_logistic.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <boost/math/distributions.hpp>
#include <stan/math/constants.hpp>
using Eigen::Matrix;
using Eigen::Dynamic;
typedef Eigen::Matrix<double,Eigen::Dyn... |
<commit_before>//---------------------------- crash_10.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the f... |
<commit_before>#include "NodeModel.hpp"
using namespace QtNodes;
NodeModel::NodeModel() {}
void NodeModel::setInData(std::shared_ptr<QtNodes::NodeData> nodeData,
QtNodes::PortIndex port) {
Q_UNUSED(nodeData)
Q_UNUSED(port)
}
std::shared_ptr<NodeData> NodeModel::outData(PortIndex port) ... |
<commit_before>// Basic include files
#include "libmesh/equation_systems.h"
#include "libmesh/exodusII_io.h"
#include "libmesh/nemesis_io.h"
#include "libmesh/mesh.h"
#include "libmesh/mesh_generation.h"
#include "libmesh/parallel.h" // set_union
#include "libmesh/string_to_enum.h"
#include "libmesh/boundary_info.h"
#i... |
<commit_before>/*************************************************************************
*
* $RCSfile: unottabl.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2004-11-26 15:10:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<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 <math.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/codec/jpeg_codec.h"
namespace gfx {
// out of 100,... |
<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: xtablend.cxx,v $
* $Revision: 1.... |
<commit_before>#include <gtest/gtest.h>
#include "red_black_tree.hpp"
namespace gt = testing;
namespace pk
{
namespace testing
{
struct red_black_tree_tester : public gt::Test
{
static const int MAX_SIZE = 100;
// tested class:
red_black_tree<int, MAX_SIZE> rbt;
};
TEST_F(red_black_tree_tester, te... |
<commit_before><commit_msg>spelling...<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.