text stringlengths 54 60.6k |
|---|
<commit_before>#include <string.hpp>
#include <locale> // for wstring_convert
#include <codecvt> // for codecvt_utf8_utf16
#include <cctype> // for tolower and toupper
#include <algorithm> // for transform
#include <libgen.h> // for dirname and basename
#include <zlib.h>
namespace rack {
namespace string {
std::str... |
<commit_before>#pragma once
#include "numerics/polynomial_evaluators.hpp"
#include <cstddef>
#include <tuple>
#include "base/bits.hpp"
#include "quantities/elementary_functions.hpp"
namespace principia {
namespace numerics {
namespace internal_polynomial_evaluators {
using base::FloorLog2;
using base::PowerOf2Le;... |
<commit_before>// Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.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 with... |
<commit_before>/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this fil... |
<commit_before>#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/PointCloud.h>
#include <math.h>
static const float tol = 0.000000000000001f;
double magnitude(double vec[3]){
return sqrt(vec[0]*vec[0] + vec[1]*vec[1] + vec[2]*vec[2]);
}
void normalize(double vec[3]){
float m = mag... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#include "views/controls/menu/simple_menu_model.h"
#include "app/l10n_util.h"
namespace views {
////////////////////////////////////... |
<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 "views/focus/accelerator_handler.h"
#include <bitset>
#include <gtk/gtk.h>
#if defined(HAVE_XINPUT2)
#include <X11/extensions... |
<commit_before>// ===== ---- ofp/sys/tcp_server.cpp ----------------------*- C++ -*- ===== //
//
// Copyright (c) 2013 William W. Fisher
//
// 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>/***************************************************************************
*
* Project: libLAS -- C/C++ read/write library for LAS LIDAR data
* Purpose: LAS translation with optional configuration
* Author: Howard Butler, hobu.inc at gmail.com
*****************************************************... |
<commit_before>#include "ornsearchappsmodel.h"
#include <QCryptographicHash>
OrnSearchAppsModel::OrnSearchAppsModel(QObject *parent)
: OrnAppsModel(true, parent)
{
mCanFetchMore = false;
}
QString OrnSearchAppsModel::searchKey() const
{
return mSearchKey;
}
void OrnSearchAppsModel::setSearchKey(const Q... |
<commit_before>#include "mainwindow.h"
MainWindow::MainWindow() {
m_ui.setupUi(this);
}
<commit_msg>mainwindow: setting a label as the central widget<commit_after>#include "mainwindow.h"
#include <QLabel>
MainWindow::MainWindow() {
m_ui.setupUi(this);
QLabel *label1 = new QLabel("Hi", this);
setCentralWidg... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QFileDialog>
#include <QMessageBox>
#include <string>
#include <iostream>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
v... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
marks_select();
ui->form_save_lable->hide();
ui->dateEdit->setDate(current_date);
connect(ui->pushButton,SIGNAL(click... |
<commit_before>/*
Copyright (c) 2006, MassaRoddel, 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 ... |
<commit_before>// Copyright 2012 the V8 project authors. 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 <string.h>
#if defined(__SSE2__)
#include <emmintrin.h>
#endif
#if defined(__SSE4_1__)
#include <smmintrin.h>
#endif
#include "m_half.h"
#include "m_const.h"
namespace m {
static struct halfData {
halfData();
// 1536 bytes
uint32_t baseTable[512];
uint8_t shiftTable[512];
} g... |
<commit_before>#pragma once
#include <rapidjson/rapidjson.h>
#include <common/SignalVector.hpp>
#include "providers/irc/IrcChannel2.hpp"
#include "providers/irc/IrcServer.hpp"
class QAbstractTableModel;
namespace chatterino {
enum class IrcAuthType { Anonymous, Custom, Pass };
struct IrcServerData {... |
<commit_before>#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
void init() __attribute__((constructor));
void fini() __att... |
<commit_before>/* This file is part of QJson
*
* Copyright (C) 2009 Flavio Castelli <flavio.castelli@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version ... |
<commit_before>#include "rethink_db.hpp"
namespace com {
namespace rethinkdb {
connection::connection(const std::string& host, const std::string& port, const std::string& database, const std::string& auth_key) : resolver_(io_service), socket_(io_service) {
this->host = host;
this->port = port;
this->databa... |
<commit_before>/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* definitions for rodsLog routines */
#include "rodsError.hpp"
#define LOG_SQL 11
/* This is for logging SQL statements. These are only logged... |
<commit_before>#include <aleph/math/Bootstrap.hh>
#include <aleph/math/PiecewiseLinearFunction.hh>
#include <aleph/utilities/String.hh>
#include <fstream>
#include <iostream>
#include <iterator>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <getopt.h>
#include <cmath>
using D... |
<commit_before>/******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>/*******************************************************************************
* c7a/data/channel_sink.hpp
*
* Part of Project c7a.
*
* Copyright (C) 2015 Timo Bingmann <tb@panthema.net>
*
* This file has no license. Only Chuck Norris can compile it.
********************************************... |
<commit_before>#include "Lexer.h"
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <sstream>
using namespace garter;
enum CharType {
LOWER_CASE = 0x01,
UPPER_CASE = 0x02,
UNDERSCORE = 0x04,
NUMBER = 0x08,
};
static const uint8_t CharTab[256] = {
['a' ... 'z'] = LOWER_CASE,
['A' ... 'Z'] ... |
<commit_before>/*************************************************************************
*
* $RCSfile: flushcode.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2005-07-01 12:17:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker 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, ... |
<commit_before>#include <spv_utils.h>
#include <cassert>
namespace sut {
static const size_t kSpvIndexMagicNumber = 0;
static const size_t kSpvIndexVersionNumber = 1;
static const size_t kSpvIndexGeneratorNumber = 2;
static const size_t kSpvIndexBound = 3;
static const size_t kSpvIndexSchema = 4;
static const size_t ... |
<commit_before>/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001 Russell L. Smith. *
* *
* Th... |
<commit_before>// compilation
// $ g++ -std=c++11 main.cpp
// or
// $ clang++ -std=c++11 main.cpp
#include <iostream>
#include <fstream>
#include <array>
#include <vector>
#include <string>
#include <chrono>
#include <thread>
#include "pipeline.hpp"
typedef std::array<int, 4> Vector;
typedef std::array<std::array<int... |
<commit_before>/*
* Mihalcea.cc
*
* Implements the Rada Mihalcea word-sense disambiguation algorithm.
*
* Copyright (c) 2008 Linas Vepstas <linas@linas.org>
*/
#include "Mihalcea.h"
#include <stdio.h>
#include <opencog/atomspace/ForeachChaseLink.h>
#include <opencog/util/platform.h>
#include <opencog/nlp/wsd/M... |
<commit_before><commit_msg>use std::<commit_after><|endoftext|> |
<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 "webkit/plugins/npapi/plugin_lib.h"
#include <dlfcn.h>
#if defined(OS_OPENBSD)
#include <sys/exec_elf.h>
#else
#include <elf.... |
<commit_before>////////////////////////////////////////////////////////////
//
// DAGON - An Adventure Game Engine
// Copyright (c) 2011-2013 Senscape s.r.l.
// All rights reserved.
//
// 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 ... |
<commit_before>#include "Bubblewrap/Base/Game.hpp"
#include "Bubblewrap/Managers/Container.hpp"
#include "Bubblewrap/Render/Window.hpp"
#include "Bubblewrap/Render/Types.hpp"
#include "GaPaddle.hpp"
#include "GaPong.hpp"
#include "GaTextController.hpp"
#include "GaLevel.hpp"
#include "Bubblewrap/Events/Event.hpp"
#inc... |
<commit_before>// @(#)root/g3d:$Name: $:$Id: TTUBS.cxx,v 1.4 2004/09/14 15:15:46 brun Exp $
// Author: Nenad Buncic 18/09/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/*
Kopete , The KDE Instant Messenger
Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
Viva Chile Mierda!
Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile
Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org>
*************************************... |
<commit_before>/*
Kopete , The KDE Instant Messenger
Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
Viva Chile Mierda!
Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*********************... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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
Unless required by ap... |
<commit_before>#include "transactiondesc.h"
#include "bitcoinunits.h"
#include "guiutil.h"
#include "base58.h"
#include "main.h"
#include "paymentserver.h"
#include "transactionrecord.h"
#include "timedata.h"
#include "ui_interface.h"
#include "wallet.h"
#include "txdb.h"
#include <string>
QString TransactionDesc::... |
<commit_before>#ifndef RDB_PROTOCOL_ERR_HPP_
#define RDB_PROTOCOL_ERR_HPP_
#include <list>
#include <string>
#include "utils.hpp"
#include "containers/archive/stl_types.hpp"
#include "rdb_protocol/ql2.pb.h"
#include "rdb_protocol/ql2_extensions.pb.h"
#include "rpc/serialize_macros.hpp"
namespace ql {
// NOTE: you ... |
<commit_before>/*
* Copyright 2011 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 "SkPaint.h"
#include "SkRandom.h"
// skbug.com/1316 shows that this cubic, when slightly clipped, creates big
// ... |
<commit_before>/*
* Copyright 2015 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 "SkImage.h"
#include "SkImageCacherator.h"
#include "SkPictureRecorder.h"
#include "SkSurface.h"
#if SK_SUPPORT_... |
<commit_before>/*
* Copyright 2014 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 "SkPath.h"
#include "SkTypeface.h"
#include "SkRandom.h"
/**
* Draws text with random parameters. The text draw... |
<commit_before>/*
* A simple resizable circular buffer.
*/
#include "rust_internal.h"
bool
is_power_of_two(size_t value) {
if (value > 0) {
return (value & (value - 1)) == 0;
}
return false;
}
circular_buffer::circular_buffer(rust_dom *dom, size_t unit_sz) :
dom(dom),
unit_sz(unit_sz),
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Script Generator project on Qt Labs.
**
**... |
<commit_before>/*
* Copyright (c) 2003-2016 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
... |
<commit_before>#include "comm.h"
#include "room.h"
#include "low.h"
#include "extern.h"
#include "obj_gas.h"
#include "pathfinder.h"
#include "obj_portal.h"
#include "being.h"
#include "obj_plant.h"
#include "materials.h"
// TGas uses function pointers to get a virtual-class like affect,
// without having to have mult... |
<commit_before>#include <stdio.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <unordered_map>
#include <ctime>
int main(int argc, char* argv[])
{
if (argc != 5)
{
std::cerr << "Path Finder only accepts 4 arguments\n";
exit(1);
}
// Load in all page titles into a vector... |
<commit_before>/******************************************************************************
* Copyright (C) 2015 Felix Rohrbach <kde@fxrh.de>
*
* 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... |
<commit_before>/**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary... |
<commit_before>/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/asio.hpp>
#include <windows.h>
#include <boost/program_options.hpp>
#include <base/logging.h>
#include <base/contrail_ports.h>
#include <pugixml/pugixml.hpp>
#include <base/task.h>
#include <io/event_manager.h>
#i... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <vw/Camera/LensDistortion.h>
#include <vw/Camera/PinholeModel.h>
#include <vw/Math/Le... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <vw/Plate/SnapshotManager.h>
#include <vw/Plate/TileManipulation.h>
#include <vw/Mosa... |
<commit_before>#include <stdlib.h>
#define BOOST_TEST_MODULE watcher::Color test
#include <boost/test/unit_test.hpp>
#include <boost/archive/polymorphic_text_iarchive.hpp>
#include <boost/archive/polymorphic_text_oarchive.hpp>
#include <boost/archive/polymorphic_binary_iarchive.hpp>
#include <boost/archive/polymorphi... |
<commit_before>#pragma once
// `krbn::file_monitor` can be used safely in a multi-threaded environment.
#include "boost_defs.hpp"
#include "cf_utility.hpp"
#include "filesystem.hpp"
#include "logger.hpp"
#include <CoreServices/CoreServices.h>
#include <boost/signals2.hpp>
#include <utility>
#include <vector>
namesp... |
<commit_before>#pragma once
#include <mach/mach_time.h>
namespace krbn {
class time_utility final {
public:
static uint64_t absolute_to_nano(uint64_t absolute_time) {
auto& t = get_mach_timebase_info_data();
if (t.numer != t.denom && t.denom != 0) {
return absolute_time * t.numer / t.denom;
}
... |
<commit_before>#ifndef _SDD_HOM_SUM_HH_
#define _SDD_HOM_SUM_HH_
#include <algorithm> // all_of, copy, equal
#include <deque>
#include <initializer_list>
#include <iosfwd>
#include <stdexcept> //invalid_argument
#include <unordered_map>
#include <boost/container/flat_set.hpp>
#include "sdd/dd/definition.hh"
#inclu... |
<commit_before>#include "blfhandler.h"
#include <QDebug>
#include <QFile>
#include <QString>
#include <QtEndian>
#define BLF_REMOTE_FLAG 0x80
BLFHandler::BLFHandler()
{
}
/*
Written while peeking at source code here:
https://python-can.readthedocs.io/en/latest/_modules/can/io/blf.html
https://bitbucket.org/tobylor... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_RANK_HPP
#define STAN_MATH_PRIM_MAT_FUN_RANK_HPP
#include <stan/math/prim/mat/err/check_range.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <vector>
namespace stan {
namespace math {
/**
* Return the number of components of v less than v[s].
*... |
<commit_before><commit_msg>docx m:r can contain multiple m:t<commit_after><|endoftext|> |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>//
// Use 'addr2line -e program ADDR' in order to decode addresses in stack frames.
// Use 'c++filt -t SYMBOL' in order to decode C++ mangled symbols like "Ss".
//
#include <stack/StackHandler.h>
#include <core/Options.h>
#include <core/System.h>
#include <core/Logger.h>
#include <stdio.h>
#include <st... |
<commit_before>/** ==========================================================================
* Original code made by Robert Engeln. Given as a PUBLIC DOMAIN dedication for
* the benefit of g3log. It was originally published at:
* http://code-freeze.blogspot.com/2012/01/generating-stack-traces-from-c.html
* 2014-... |
<commit_before>
//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// temp_table.cpp
//
// Identification: /peloton/src/storage/temp_table.cpp
//
// Copyright (c) 2015, 2016 Carnegie Mellon University Database Group
//
//===-----------------------... |
<commit_before>#include <gtest/gtest.h>
#include "streamblender_tests.h"
namespace streamblender {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void StreamBlenderTest::SetUp() {
src_facility_ = new StreamBlender(tc_.get());
InitParameters();
SetUpStreamBlender();
}
void StreamB... |
<commit_before>
/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2011-2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public... |
<commit_before>// Copyright (c) 2016 zenghur
#include "Epoll.h"
#include <string.h>
#include "Error.h"
#include "DateTime.h"
#include "IOEvent.h"
using vanilla::printError;
using vanilla::PollerEvent;
using vanilla::IOEvent;
using vanilla::DateTime;
#ifdef __linux__
#include <sys/epoll.h>
Epoll::Epoll(): epollfd_... |
<commit_before>#include "nimplugin.h"
#include "nimpluginconstants.h"
#include "editor/nimeditor.h"
#include "editor/nimhighlighter.h"
#include "project/nimprojectmanager.h"
#include "project/nimimportprojectwizardfactory.h"
#include "project/nimnewprojectwizardfactory.h"
#include "project/nimnewfilewizardfactory.h"
#i... |
<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 "webkit/glue/ftp_directory_listing_response_delegate.h"
#include <vector>
#include "base/i18n/icu_string_conversions.h"
#inc... |
<commit_before>/*
* =====================================================================
* Version: 1.0
* Created: 22.08.2012 15:15:54
* Author: Miroslav Bendík
* Company: LinuxOS.sk
* =====================================================================
*/
#include <cstdlib>
#... |
<commit_before>#pragma once
#include "Grappa.hpp"
#include "GlobalAllocator.hpp"
#include "ParallelLoop.hpp"
#include "AsyncDelegate.hpp"
#include "BufferVector.hpp"
#include "Statistics.hpp"
#include "Array.hpp"
#include "FlatCombiner.hpp"
#include <vector>
#include <unordered_set>
// for all hash tables
// GRAPPA_... |
<commit_before>//===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>// Copyright 2019 The Bazel 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
//
// Unless r... |
<commit_before>//===- dsymutil.cpp - Debug info dumping utility for llvm -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************************************************************************
*
* $RCSfile: DataPointItemConverter.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: bm $ $Date: 2003-12-17 16:43:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the f... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DataPointItemConverter.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 11:50:30 $
*
* The Contents of thi... |
<commit_before>#ifndef RS_LAZY_FLAT_SET
#define RS_LAZY_FLAT_SET
#include <vector>
#include <algorithm>
#include <type_traits>
namespace rs {
template <class Key, class Less = std::less<Key>, class Equal = std::equal_to<Key>, class Alloc = std::allocator<Key>>
class LazyFlatSet {
public:
using size_type = ty... |
<commit_before>/* Copyright 2015 Peter Goodman (peter@trailofbits.com), all rights reserved. */
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <sstream>
#include <system_error>
#include <llvm/Bitcode/ReaderWriter.h>
#include <llvm/IR/BasicBlock.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/LLVMCo... |
<commit_before>#include "LargeRAWFile.h"
#include <sstream>
using namespace std;
LargeRAWFile::LargeRAWFile(const std::string& strFilename, uint64_t iHeaderSize):
m_StreamFile(NULL),
m_strFilename(strFilename),
m_bIsOpen(false),
m_bWritable(false),
m_iHeaderSize(iHeaderSize)
{
}
LargeRAWFile::LargeRAWFile(... |
<commit_before>// Copyright (c) 2013 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <iostream>
#include "main.h"
#include "util.h"
#include "serializ... |
<commit_before>int main(){
//Comments
return 0;
}<commit_msg>more comments<commit_after>int main(){
//Comments
//More Comments
return 0;
}<|endoftext|> |
<commit_before>/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "kdbconfig.h"
#include <external.hpp>
#include <kdb.h>
#include <kdb.hpp>
#include <iostream>
#include <string>
#include <vector>
#include <errno.h>
#include <limits.h>
#include <stdlib.h... |
<commit_before>/** @file
A brief file description
@section license License
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 fi... |
<commit_before>/*
* The translation response struct.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "translate_response.hxx"
#include "pool.h"
#include "strref-pool.h"
#include "strmap.h"
#include "widget-view.h"
#include <string.h>
void
TranslateResponse::Clear()
{
memset(this, 0, sizeof(*this));
}
... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* 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 o... |
<commit_before>/*************************************************************************
*
* $RCSfile: dselect.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: os $ $Date: 2002-12-05 12:47:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*************************************************************************
*
* $RCSfile: viewdlg.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2003-04-17 15:50:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2012 Razor team
* Authors:
* Johannes Zellner <webmaster@nebulon.de>
*
* This program or library is free software; you can redistribute it
* and/or modify it... |
<commit_before>#include "p0run/interpreter.hpp"
#include "p0run/string.hpp"
#include "p0run/table.hpp"
#include "p0compile/compiler.hpp"
#include "p0compile/compiler_error.hpp"
#include <boost/test/unit_test.hpp>
using namespace p0::run;
namespace
{
bool expect_no_error(p0::compiler_error const &error)
{
std::cer... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015-2018 Hugo Beauzée-Luyssen, Videolabs, VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* T... |
<commit_before>#include "widgets/chatwidget.hpp"
#include "channelmanager.hpp"
#include "colorscheme.hpp"
#include "notebookpage.hpp"
#include "settingsmanager.hpp"
#include "widgets/textinputdialog.hpp"
#include <QDebug>
#include <QFont>
#include <QFontDatabase>
#include <QPainter>
#include <QShortcut>
#include <QVBo... |
<commit_before>#include "test/fuzz/fuzz_runner.h"
#include "common/common/logger.h"
#include "common/common/thread.h"
#include "common/common/utility.h"
#include "common/event/libevent.h"
#include "test/test_common/environment.h"
namespace Envoy {
namespace Fuzz {
spdlog::level::level_enum Runner::log_level_;
PerT... |
<commit_before>// @(#)root/test:$Id$
// Author: David Smith 20/10/14
/////////////////////////////////////////////////////////////////
//
//___A test for I/O plugins by reading files___
//
// The files used in this test have been generated by
// stress.cxx and preplaced on some data servers.
// stressIOPlugins... |
<commit_before>// Filename: pgButton.cxx
// Created by: drose (13Mar02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// S... |
<commit_before>#include <iostream>
#include <vector>
#include <list>
#include <cstddef>
#include <sstream>
#include <algorithm>
#include <tuple>
#include <cassert>
const size_t B=2;
class cascading{
struct item{
bool is_init;
int value;
item(){
is_init=false;
value... |
<commit_before>#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include "managed.h"
#include "glib.h"
#include "float.h"
TEST_CASE("Types.C", "[C][Types]") {
BuiltinTypes* bt = BuiltinTypes_new();
BuiltinTypes_ReturnsVoid(bt);
REQUIRE(BuiltinTypes_ReturnsBool(bt) == true);
REQUIRE(BuiltinTypes_Retu... |
<commit_before>// Copyright (c) 2016, Joseph Mirabel
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
//
// This file is part of hpp-core.
// hpp-core 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... |
<commit_before>#include "account.hpp"
#include "b_string.hpp"
#include "draft_journal.hpp"
#include "entry.hpp"
#include "interval_type.hpp"
#include "phatbooks_tests_common.hpp"
#include "repeater.hpp"
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/shared_ptr.hpp>
#include <jewel/decimal.hpp>
#incl... |
<commit_before>#include <OpenCL/opencl.h>
#define PV_USE_OPENCL
#include "../src/arch/opencl/CLDevice.hpp"
#include "../src/arch/opencl/CLKernel.hpp"
#include "../src/arch/opencl/CLBuffer.hpp"
#include "../src/utils/Timer.hpp"
#include "../src/utils/cl_random.h"
#include <assert.h>
#include <stdio.h>
#include <stdli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.