text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>Add "learn more" link to privacy settings.<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 "chrome/browser/history/in_memory_url_index_types.h"
#include <algorithm>
#include "base/i18n/break_iterator.h"
#include "ba... |
<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/spellchecker/spellcheck_host_impl.h"
#include <set>
#include "base/file_util.h"
#include "base/logging.h"
#i... |
<commit_before>#include <libdariadb/utils/crc.h>
#include <benchmark/benchmark_api.h>
const size_t CRC_SMALL_BENCHMARK_BUFFER = 1024;
const size_t CRC_BIG_BENCHMARK_BUFFER = CRC_SMALL_BENCHMARK_BUFFER * 10;
class CrcFixture : public benchmark::Fixture {
virtual void SetUp(const ::benchmark::State &st) {
buffer ... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 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 COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>#include "system/printer.hpp"
#include "math.hpp"
#include <iostream>
#include <sstream>
int main(int argc, const char **argv) {
using namespace System;
using namespace Math;
quat<int> r0 = {0,0,0,0},
r1 = {1,0,0,0}, ri = {0,1,0,0},
rj = {0,0,1,0}, rk = {0,0,0,1};
dual<int> d10 = {r1, r0}, di0... |
<commit_before>
// PlayerDoc.cpp : implementation of the CPlayerDoc class
//
#include "stdafx.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "Player.h"
#endif
#... |
<commit_before>/*
* raft_if, Go layer of libraft
* Copyright (C) 2015 Clayton Wheeler
*
* 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 ... |
<commit_before>// Copyright 2009 Minor Gordon.
// This source comes from the XtreemFS project. It is licensed under the GPLv2 (see COPYING for terms and conditions).
#include "policy_container.h"
using namespace org::xtreemfs::client;
#include "org/xtreemfs/interfaces/exceptions.h"
#ifdef _WIN32
#include "y... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* DataManReader.cpp
*
* Created on: Feb 21, 2017
* Author: Jason Wang
*/
#include "DataManReader.tcc"
#include "adios2/helper/adiosString.h"
namespace adios2
{
namesp... |
<commit_before>#include "PrimaryTreeIndex.h"
void PrimaryTreeIndex::buildIndex(Table & table, int column) {
int rowno = 0;
for(auto ¤tRow : table) {
index.emplace(currentRow[column], rowno++);
}
}
int PrimaryTreeIndex::size() const {
return index.size();
}
int PrimaryTreeIndex::lookup(c... |
<commit_before>#include "./qimage_drawer.h"
#include <QPainter>
#include <vector>
namespace Graphics
{
QImageDrawer::QImageDrawer(int width, int height)
{
image = std::make_shared<QImage>(width, height, QImage::Format_Grayscale8);
}
void drawPolygon(QPainter &painter, std::vector<QPointF> &points)
{
if (points.s... |
<commit_before>#include "./qimage_drawer.h"
#include <QPainter>
#include <vector>
namespace Graphics
{
QImageDrawer::QImageDrawer(int width, int height)
{
image = std::make_shared<QImage>(width, height, QImage::Format_Grayscale8);
}
void QImageDrawer::drawElementVector(std::vector<float> positions)
{
QPainter pa... |
<commit_before>#pragma once
#include "LevelList.hpp"
#include "GridMap.hpp"
#include "../tools/Overlap.hpp"
namespace maps { namespace grid
{
template <class P>
class MultiLevelGridMap : public GridMap<LevelList<P> >
{
public:
typedef LevelList<P> CellType;
MultiLevelGridMap... |
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html
#include "main.hh"
#include "strings.hh"
#include "thread.hh"
#include "configbits.cc"
#include <string.h>
#include <algorithm>
#include <glib.h>
namespace Rapicorn {
String rapicorn_version () { return RAPICORN_VERSION; }
St... |
<commit_before><commit_msg>Agregada solucion sucia al segundo problema<commit_after>#include <iostream>
#include <vector>
#include <queue>
#include <fstream>
#include <cmath>
using namespace std;
vector < pair <int,int> > arcos;
class Arco
{
public:
int padre, hijo;
Arco(){};
Arco(int p, int h){
this->... |
<commit_before>#include "gtest/gtest.h"
#include <vector>
#include <algorithm>
#include <iostream>
#include "xarray/xarray.hpp"
#include "xarray/xio.hpp"
namespace qs
{
TEST(xio, simple)
{
xshape<size_t> shape = {3, 4};
xarray<double> a(shape);
std::vector<double> data {1, 2, 3, 4, 5... |
<commit_before>// TCP receiver
// Author: Max Schwarz <max.schwarz@uni-bonn.de>
#include "tcp_receiver.h"
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "tcp_packet.h"
#include "../topic_info.h"
#include <topic_tools/shape_shifter.h>
#include <bzlib.h>
#include <nimbro_topic_transport/C... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX24T グループ・ペリフェラル @n
Copyright 2016 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
n... |
<commit_before>#include "unit_tests/suite/lumix_unit_tests.h"
#include "core/mt/lock_free_fixed_queue.h"
#include "core/mt/task.h"
#include "core/mt/thread.h"
namespace
{
struct Test
{
Test()
: value(1)
{}
~Test()
{
value = 2;
}
int32 value;
};
typedef Lumix::MT::LockFreeFixedQueue<Test, 16> ... |
<commit_before>/*
*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "source/loader/driver_discovery.h"
#include <Windows.h>
#include <cassert>
#include <cfgmgr32.h>
#include <devpkey.h>
#include <devguid.h>
#include <iostream>
#include <sstream>
#include <string>
namespac... |
<commit_before>#include "SysConfig.h"
#if(HAS_STD_LIGHTS)
// Includes
#include <Arduino.h>
#include "CLights.h"
#include "NCommManager.h"
namespace
{
// 1% per 10ms
const float kPowerDelta = 0.01f;
inline uint32_t PercentToAnalog( float x )
{
if( x < 0.0f )
{
return 0;
}
else if( x < 0.33f )
{
/... |
<commit_before>/*************************************************************************
*
* $RCSfile: tools.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2005-03-10 13:56:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before>#include <Arduino.h>
#include <SPI.h>
#include <math.h>
#include "Heater.h"
// E0 Main extruder
const int E0_enable = 26; // low == enabled
const int E0_step = 34;
const int E0_dir = 43;
const int E0_MS1 = 65;
const int E0_MS2 = 66;
const int E0_digipot_channel = 0;
const float E0_steps_per_mm = 38.197... |
<commit_before>/*
* File: main.cpp
* Author: Emanuele
*
* Created on 29 July 2014, 17:25
*/
#include <cstdlib>
#include "RankingTable.hpp"
using namespace std;
int main(int argc, char** argv) {
RankingTable<int> table;
table.insert(0);
table.insert(1);
table.insert(2);
... |
<commit_before>/*
* ProbeActivityLinear.cpp
*
* Created on: Mar 7, 2009
* Author: rasmussn
*/
#include "LinearActivityProbe.hpp"
namespace PV {
/**
* @hc
* @dim
* @kLoc
* @f
*/
LinearActivityProbe::LinearActivityProbe(HyPerCol * hc, PVDimType dim, int linePos, int f)
: LayerProbe()
{
this->pare... |
<commit_before>/*
Copyright (c) 2014-2017 AscEmu Team <http://www.ascemu.org/>
This file is released under the MIT license. See README-MIT for more information.
*/
#include "Units/Players/Player.h"
#include "Server/World.Legacy.h"
#include "Server/World.h"
#include "Spell/Definitions/AuraInterruptFlags.h"
#include "Ob... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_/... |
<commit_before>/***************************************************************************
* io/wbtl_file.cpp
*
* a write-buffered-translation-layer pseudo file
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2008-2009 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
*
* Distribu... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id: biosdev.cc,v 1.2 2002/04/24 07:39:47 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
/... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id: biosdev.cc,v 1.6 2003/07/31 15:29:34 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
/... |
<commit_before>#include "gen.h"
#include <cstdio>
#include <algorithm>
#include <tuple>
#include <vector>
#include <numeric>
using namespace std;
struct BiEdge {
vid_t from, to;
weight_t w;
bool operator<(const BiEdge& o) const {
return tie(w, from, to) < tie(o.w, o.from, o.to);
}
};
struct ... |
<commit_before>/*
===============================================================================
FILE: laszip.cpp
CONTENTS:
see corresponding header file
PROGRAMMERS:
martin.isenburg@gmail.com
COPYRIGHT:
(c) 2011, Martin Isenburg, LASSO - tools to catch reality
This is free softw... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
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 imp... |
<commit_before>/*
* THE NEW CHRONOTEXT TOOLKIT: https://github.com/arielm/new-chronotext-toolkit
* COPYRIGHT (C) 2012-2014, ARIEL MALKA ALL RIGHTS RESERVED.
*
* THE FOLLOWING SOURCE-CODE IS DISTRIBUTED UNDER THE MODIFIED BSD LICENSE:
* https://github.com/arielm/new-chronotext-toolkit/blob/master/LICENSE.md
*/
#i... |
<commit_before>//******************************************************************************
// FILE : function_matrix.hpp
//
// LAST MODIFIED : 23 February 2005
//
// DESCRIPTION :
//==============================================================================
#if !defined (__FUNCTION_MATRIX_HPP__)
#define __FUNCT... |
<commit_before>//----------------------------------*-C++-*----------------------------------//
/*!
* \file spn/test/tstFixed_Source_Solver.cc
* \author Thomas M. Evans
* \date Sun Nov 18 19:05:06 2012
* \brief Test of Fixed_Source_Solver class.
* \note Copyright (C) 2012 Oak Ridge National Laboratory, UT-Ba... |
<commit_before>#include <boost/any.hpp>
#include <ir/index_manager/index/BTreeIndex.h>
using namespace std;
using namespace izenelib::util;
using namespace izenelib::ir::indexmanager;
namespace izenelib{ namespace ir{ namespace indexmanager{
template <>
void BTreeIndex<IndexKeyType<String> >::getSuffix(const IndexK... |
<commit_before>#include <getopt.h>
#include <string>
#include <math.h>
#include <boost/lexical_cast.hpp>
#include <boost/asio.hpp>
#include <boost/lexical_cast.hpp>
#include <libwatcher/client.h>
#include <libwatcher/gpsMessage.h>
#include <libwatcher/labelMessage.h>
#include <libwatcher/edgeMessage.h>
#include <libw... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sdxmlexp_impl.hxx,v $
*
* $Revision: 1.26 $
*
* last change: $Author: rt $ $Date: 2005-09-09 13:49:57 $
*
* The Contents of this file are... |
<commit_before>#include <cstdio>
#include <string>
#include <regex>
#include <fstream>
#include <sys/stat.h>
#include <unistd.h>
#include <execinfo.h>
// http://tclap.sourceforge.net/manual.html
#include "tclap/CmdLine.h"
#include "HCIDumpParser.h"
#include "MsgPublisherTypeConstraint.h"
#include "../lcd/LcdDisplay.h"
... |
<commit_before>/***********************************************************************
ssx/genv2.cpp - Walks the SSQLS v2 parse result, writing back out
the equivalent SSQLS v2 DSL code. This is useful for testing that
our parser has correctly understood a given piece of code. It is
also something like the prep... |
<commit_before>/*
Copyright (C) 2011 vlc-phonon AUTHORS
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 option) any later ver... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libcdr 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 ht... |
<commit_before>/* Copyright 2007-2015 QReal Research Group
*
* 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>/** \file add_authority_wikidata_ids.cc
* \brief functionality to acquire wikidata id corresponding to their gnds
* \author andreas-ub
*
* \copyright 2021 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under... |
<commit_before>/** \file augment_canones_references.cc
* \brief A tool for adding numerical canon law references to MARC-21 datasets.
* \author Dr. Johannes Ruscheinski
*/
/*
Copyright (C) 2019-2020, Library of the University of Tübingen
This program is free software: you can redistribute it and/or... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: dataset.C,v 1.1.4.1 2007/03/25 21:56:35 oliver Exp $
//
#include <BALL/VIEW/DATATYPE/dataset.h>
#include <BALL/VIEW/WIDGETS/datasetControl.h>
#include <BALL/VIEW/KERNEL/common.h>
#include <BALL/VIEW/KERNEL/mainControl.h>
#include <BALL/VIEW... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lineaction.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-17 12:49:25 $
*
* The Contents of this file are ma... |
<commit_before>// -*- Mode:C++ -*-
/**************************************************************************************************/
/* */
/* Copyright (C) 2015 University of Hull ... |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <dmitry@aspia.ru>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your ... |
<commit_before>/*
***************************************
* Asylum3D @ 2014-12-24
***************************************
*/
#include "../../asylum.hpp"
/*****************************************************************************/
/* Effect ... |
<commit_before>/*ckwg +5
* Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include <vistk/pipeline/version.h>
#include <vistk/version.h>
#include <boo... |
<commit_before>/*
Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al.
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 "cauchy.h"
#include "util.hpp"
namespace nano
{
function_cauchy_t::function_cauchy_t(const tensor_size_t dims) :
m_dims(dims)
{
}
std::string function_cauchy_t::name() const
{
return "Cauchy" + std::to_string(m_dims) + "D"... |
<commit_before>/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
... |
<commit_before>#include <windows.h>
#include "overlay.h"
#include <OvRender.h>
#include "osd.h"
#include "menu.h"
#include <stdio.h>
BOOLEAN g_FontInited = FALSE;
BOOLEAN IsStableFramerate;
BOOLEAN IsStableFrametime;
BOOLEAN IsLimitedFrametime;
BOOLEAN DisableAutoOverclock;
UINT16 DiskResponseTime;
UINT64 CyclesWaite... |
<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 "GrTessellatingPathRenderer.h"
#include "GrBatchFlushState.h"
#include "GrBatchTest.h"
#include "GrDefaultGeoProcFactory.h"
#include "GrPathUtils.h"
#... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No ... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
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 imp... |
<commit_before>/*!
\file named_mutex.cpp
\brief Named mutex synchronization primitive implementation
\author Ivan Shynkarenka
\date 15.04.2016
\copyright MIT License
*/
#include "threads/named_mutex.h"
#include "errors/exceptions.h"
#include "errors/fatal.h"
#include "system/shared_type.h"
#inclu... |
<commit_before>/************************************************************************************
* Copyright (C) 2014-2015 by Savoir-Faire Linux *
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
* ... |
<commit_before>/*! $Id: ModbusTCPMaster.cc,v 1.3 2009/02/07 13:27:01 vpashka Exp $ */
// -------------------------------------------------------------------------
#include <string.h>
#include <errno.h>
#include <iostream>
#include <sstream>
#include "Exceptions.h"
#include "modbus/ModbusTCPMaster.h"
#include "modbus/Mo... |
<commit_before>#pragma once
#include "SuperComponent.hpp"
#include <string>
#include <glm/glm.hpp>
#include "../Animation/AnimationController.hpp"
namespace Component {
/// Animation controller.
class AnimationController : public SuperComponent {
public:
/// Create new animation controller... |
<commit_before>#if defined(_MSC_VER)
#include <intrin.h> // SIMD intrinsics for Windows
#else
#include <x86intrin.h> // SIMD intrinsics for GCC
#endif
#ifdef linux
#include <omp.h>
#endif
#include "utils.h"
#include <cpuid.h>
#include <stdio.h>
#include <stdlib.h>
#define OSXSAVEFlag (1UL<<27)
#define AVXFlag ... |
<commit_before>#include "musicsoundtouchwidget.h"
#include "ui_musicsoundtouchwidget.h"
#include "musicbackgroundmanager.h"
#include "musicaudiorecordercore.h"
#include "musicmessagebox.h"
#include "musicobject.h"
#include "musicuiobject.h"
#include "musicutils.h"
#include <QSound>
#include <QProcess>
#include <QFileD... |
<commit_before>#if defined(_MSC_VER)
#include <intrin.h> // SIMD intrinsics for Windows
#else
#include <x86intrin.h> // SIMD intrinsics for GCC
#include <stdint.h>
#endif
#ifdef linux
#include <omp.h>
#endif
#include "utils.h"
#include <stdio.h>
#include <stdlib.h>
/*
* Class: com_intel_gkl_IntelGKLUtil... |
<commit_before>#include "compiler/build_tables/build_parse_table.h"
#include <algorithm>
#include <map>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include "compiler/parse_table.h"
#include "compiler/build_tables/parse_conflict_manager.h"
#include "compiler/build_tables/parse_item.h"
#... |
<commit_before>/***************************************************************************
* Copyright (c) 2010 Juergen Riegel <FreeCAD@juergen-riegel.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>// Copyright (C) 2014 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Graphics/DeferredGeometryPass.hpp>
#include <Nazara/Core/ErrorFlags.hpp>
#include <Nazara/Graphics/AbstractVi... |
<commit_before>/*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2009 by Computer Graphics Group, RWTH Aa... |
<commit_before>/**
* Copyright (C) 2015-2016 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS... |
<commit_before>#include "storagepaths.h"
#include "../log/logger.h"
#include <QAndroidJniObject>
LOGGER(StoragePaths);
class StoragePaths::Private
{
public:
static bool initialized;
static QDir scheduler;
static QDir report;
static QDir cache;
static QDir log;
static QDir crashDumps;
};
bool... |
<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>/*
* The MIT License
*
* Copyright (c) 2010 Sam Day
* Copyright (c) 2012 Xavier Mendez
*
* 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 ... |
<commit_before>#ifndef __MINEAR_HPP__
#define __MINEAR_HPP__
#include <memory>
#include <iostream>
namespace minear
{
template <class T> class Matrix
{
public:
unsigned int n_rows;
unsigned int n_cols;
/* constructors and destructors */
Matrix<T>() : n_rows(10), n_... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, PAL Robotics, S.L.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
<commit_before>#include "logging.h"
#include "postProcessManager.h"
bool PostProcessor::global_post_processor_enabled = true;
static int powerOfTwo(int v)
{
v--;
v |= v >> 1;
v |= v >> 2;
v |= v >> 4;
v |= v >> 8;
v |= v >> 16;
v++;
return v;
}
PostProcessor::PostProcessor(string name... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2014 Belledonne Communications SARL.
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 Fou... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_ERROR_HPP_
#define RDB_PROTOCOL_ERROR_HPP_
#include <list>
#include <string>
#include "utils.hpp"
#include "containers/archive/stl_types.hpp"
#include "rdb_protocol/counted_term.hpp"
#include "rdb_protocol/ql2.pb.h"
#include "... |
<commit_before>/*************************************************************************
*
* Copyright 2016 Realm 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.... |
<commit_before>// symbiosis: A hacky and lightweight compiler framework
//
#include "symbiosis.hpp"
#include <sys/stat.h>
#include <iostream>
#include <vector>
#include "cpu_defines.hpp"
using namespace std;
namespace symbiosis {
void dump(uchar* start, size_t s) {
for (size_t i = 0; i < s; i++) {
pri... |
<commit_before>/*
* Copyright © 2013 Intel Corporation
*
* 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, mod... |
<commit_before>/*
* HemisphereA100GPS.cpp
*
* Created on: Nov 5, 2012
* Author: Matthew Barulic
*/
#include "nmeacompatiblegps.h"
#include "nmea.hpp"
#include <string>
#include <common/logger/logger.h>
NMEACompatibleGPS::NMEACompatibleGPS(string devicePath, uint baudRate)
:serialPort(devicePath, baudRa... |
<commit_before>/* notify.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 30 Nov 2013
FreeBSD-style copyright and disclaimer apply
Notify implementation
*/
#include "notify.h"
#include "utils.h"
#include <unistd.h>
#include <sys/eventfd.h>
namespace slick {
/************... |
<commit_before>#pragma once
#include <roerei/dataset.hpp>
#include <roerei/math.hpp>
#include <algorithm>
#include <list>
#include <map>
#include <set>
#include <iostream>
namespace roerei
{
class performance
{
private:
performance() = delete;
public:
struct metrics_t
{
float oocover, ooprecision, recall, ra... |
<commit_before>/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include <iostream>
#include <qitype/genericobject.hpp>
#include "object_p.hpp"
namespace qi {
GenericObject::GenericObject(ObjectType *type, void *value)
: type(type)
, value(value)
{
}
GenericObject::~Generic... |
<commit_before>/**
* ofxCsv.cpp
* Inspired and based on Ben Fry's [table class](http://benfry.com/writing/map/Table.pde)
*
* The MIT License
*
* Copyright (c) 2011-2014 Paul Vollmer, http://www.wng.cc
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software an... |
<commit_before>/*
* Copyright 2009 Bjorn Fahller <bjorn@fahller.se>
* 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
* ... |
<commit_before>Parcer::Parcer(std::string filename){
Tokens = LexicalAnaltysis(filename);
};
/* 構文解析実行
@return 成功:true 失敗:false
*/
bool Parser::doParse(){
if(!Tokens){
fprintf(stderr, "error at lexer\n");
return false;
}
else{
return VisitTranslationUnit();
}
};
TranslationUni... |
<commit_before>#include "parser.hpp"
#include "ast_data.hpp"
namespace klang {
Parser::Parser(TokenVector tokens)
: tokens_(std::move(tokens)),
current_(std::begin(tokens_))
{}
bool Parser::parse_symbol(const char* str) {
if (current_type() == TokenType::SYMBOL &&
current_string() == std::string{s... |
<commit_before>#ifndef MODBUS_CLIENT_HPP
#define MODBUS_CLIENT_HPP
#include <boost/asio.hpp>
#include <stdexcept>
class ModbusClient {
public:
inline ModbusClient(const modbus::tcp::UnitId& unitId, std::unique_ptr<OutputFormatter> out);
inline void setTra... |
<commit_before>/*
* Copyright (c) 2010 SURFnet bv
* 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 li... |
<commit_before>#include "model/PhysicsRemoteCar.h"
#include "model/PhysicsWorld.h"
#include <btBulletDynamicsCommon.h>
#include <sstream>
#include <iostream>
namespace Rally { namespace Model {
namespace {
const btVector3 CAR_DIMENSIONS(2.0f, 1.0f, 4.0f);
const float MAX_CORRECTION_DISTANCE = 1... |
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Source: FGExternalForce.cpp
Author: Jon Berndt, Dave Culp
Date started: 9/21/07
------------- Copyright (C) 2007 Jon S. Berndt (jon@jsbsim.org) -------------
This program is free software; you can redist... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>//! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the LGPLv3 License.
*/
#ifndef TRITON_ASTGARBAGECOLLECTOR_H
#define TRITON_ASTGARBAGECOLLECTOR_H
#include <set>
#include <string>
#include "ast.hpp"
#include "symbolicEnums.hpp"
#include "tritonTypes.hpp"
//! \module ... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* ... |
<commit_before>#include <QString>
#include <QSharedPointer>
#include <QVector>
#include <QUrl>
#include <QFileInfo>
#include "kernel.h"
#include "ilwisdata.h"
#include "abstractfactory.h"
#include "connectorinterface.h"
#include "connectorfactory.h"
#include "mastercatalog.h"
#include "ilwisobjectconnector.h"
#include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.