text stringlengths 54 60.6k |
|---|
<commit_before>#include <iostream>
#include <vector>
#include <cmath>
#include <assert.h>
#include <atomic>
#include <algorithm>
#include <gtest/gtest.h>
#include "../algorithm.h"
#include "../parallel.h"
#include "../sequence.h"
#include "../async.h"
#include "../task.h"
class Parallel2Test : testing::Test { };
TEST... |
<commit_before>// A C / C++ program for Dijkstra's single source shortest path algorithm.
// The program is for adjacency matrix representation of the graph
#include <stdio.h>
#include <limits.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include "d... |
<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 "BenchTimer.h"
#include "SkCommandLineFlags.h"
#include "SkForceLinking.h"
#include "SkGraphics.h"
#include "SkOSFile.h"
#include "SkPicture.h"
#includ... |
<commit_before>//===- yaml2elf - Convert YAML to a ELF object file -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>Remove the DCHECK in the UrlRequestautomationJob::ReadRawData function which asserts that this function is only invoked in the IO thread. While this is true for ChromeFrame in general for chrome frame net tests this DCHECK fires beause the test suite runs the url request tests in a worker thr... |
<commit_before><commit_msg>Fix flaky ExtensionBrowserTest.IncognitoYesScript.<commit_after><|endoftext|> |
<commit_before><commit_msg>Disabling flaky ExtensionBrowserTest.IncognitoYesScript test.<commit_after><|endoftext|> |
<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/ui/toolbar/wrench_menu_model.h"
#include "base/command_line.h"
#include "base/i18n/number_formatting.h"
#incl... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/shared_resources_data_source.h"
#include <string>
#include "base/memory/singleton.h"
#include "base... |
<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 "remoting/base/decoder_vp8.h"
#include "base/logging.h"
#include "media/base/media.h"
#include "media/base/yuv_convert.h"
#in... |
<commit_before>/* Copyright 2021 The TensorFlow 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 appl... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkCoordinate.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistribut... |
<commit_before><commit_msg>Reverted workaround that disables events in JIT compilation because it makes CompiledMethodLoad event disabled and makes some tests to pass. This bug should be fixed in a different way, possibly with an implementation of lazy resolution on x86_64.<commit_after><|endoftext|> |
<commit_before>/*
* Handling of virtual-to-phisycal memory translation.
* Copyright, Svilen Kanev, 2014
*/
#include <stdio.h>
#include <cstdlib>
#include <unordered_map>
#include "host.h"
#include "misc.h"
#include "machine.h"
#include "options.h"
#include "stats.h"
#include "memory.h"
#include "synchronization.h"... |
<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 appli... |
<commit_before>#include <stdio.h>
#include "Halide.h"
using namespace Halide;
// NB: You must compile with -rdynamic for llvm to be able to find the appropriate symbols
#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT
#endif
int call_counter[4] = {0, 0, 0, 0};
extern "C" DLLEXPORT int ... |
<commit_before>/**
* \file
* \brief StaticThread class header
*
* \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* distribu... |
<commit_before>// Copyright (c) 2017 nyorain
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
/// file Contains the Span template class for not-owned contigous ranges.
#pragma once
#ifndef NYTL_INCLUDE_SPAN
#define NYTL_IN... |
<commit_before>#pragma once
#include <gunrock/algorithms/algorithms.hxx>
using vertex_t = int;
using edge_t = int;
using weight_t = float;
namespace gunrock {
namespace mst {
template <typename vertex_t>
struct param_t {
// No parameters for this algorithm
};
template <typename vertex_t, typename weight_t>
struc... |
<commit_before>#ifndef H_MODULES_CUTEHMI__1_INCLUDE_CUTEHMI_EXCEPTION_HPP
#define H_MODULES_CUTEHMI__1_INCLUDE_CUTEHMI_EXCEPTION_HPP
#include "internal/common.hpp"
#include <QCoreApplication>
#include <QException>
namespace cutehmi {
/**
* %Exception.
*/
class CUTEHMI_API Exception:
public QException
{
Q_DECLAR... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: b3dcommn.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:24:44 $
*
* The Contents of this file are made ... |
<commit_before>/*
* linker32.cpp
*
* Created on: Jul 23, 2014
* Author: Pimenta
*/
#include <cstdint>
#include <cstring>
#include <cstdio>
#include <fstream>
#include <set>
#include <map>
#include <string>
using namespace std;
typedef uint32_t uword_t;
#ifndef MEM_WORDS
#define MEM_WO... |
<commit_before>// @(#)root/gpad:$Id$
// Author: Rene Brun 08/01/2000
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2012 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>// Copyright (c) 2014-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_MEMORY_INPUT_HPP
#define TAO_PEGTL_MEMORY_INPUT_HPP
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <string>
#include <string_view>... |
<commit_before>// Copyright (C) 2016 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef TYPE_SAFE_OPTIONAL_REF_HPP_INCLUDED
#define TYPE_SAFE_OPTIONAL_REF_HPP_INCLUDED
#include <type_safe/op... |
<commit_before>/*************************************************************************
*
* $RCSfile: rtl_old_testint64.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-05-03 09:10:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>#define __STDC_FORMAT_MACROS
#include "parser.h"
#include "pageTags.h"
#include "util/exception.h"
#include "util/minmax.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <limits.h>
#define STREQ(src, literal) (strncmp(src, literal, strlen(literal)) == 0)
#de... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2012 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>#ifndef ORG_EEROS_HALFEATURES_HAL_HPP_
#define ORG_EEROS_HALFEATURES_HAL_HPP_
#include <map>
#include <string>
namespace eeros{
namespace hal{
enum Direction {
In,
Out
};
enum Type {
Logic,
Real
};
const std::map<std::string, Direction> directionOfChannel = {
{ "DigIn", ... |
<commit_before>/*
This file is part of KAddressBook.
Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
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 Licen... |
<commit_before>// Material.cpp
#include "Material.h"
#include "CycException.h"
#include "CycLimits.h"
#include "Timer.h"
#include "Logger.h"
#include <cmath>
#include <vector>
#include <list>
using namespace std;
using namespace boost;
list<Material*> Material::materials_;
bool Material::decay_wanted_ = false;
in... |
<commit_before>
#include <iostream>
#include <fstream>
#include <cassert>
#include <set>
#include <getopt.h>
#include <osmium/index/map/all.hpp>
#include <osmium/handler/node_locations_for_ways.hpp>
#include <osmium/visitor.hpp>
#include <osmium/geom/geojson.hpp>
#include <osmium/geom/tile.hpp>
#include <osmium/io/an... |
<commit_before>// bdlt_timetable.cpp -*-C++-*-
#include <bdlt_timetable.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(bdlt_timetable_cpp,"$Id$ $CSID$")
#include <bdlt_dateutil.h>
#include <bslim_printer.h>
#include <bsl_ostream.h>
namespace BloombergLP {
namespace bdlt... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* lxqt-connman-applet - a gui frontend for connman
*
* Copyright: 2014-2015 Christian Surlykke
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as pub... |
<commit_before>
#ifdef __OBJC__
#define OBJC_CLASS(name) @class name
#else
#define OBJC_CLASS(name) typedef struct objc_object name
#endif
<commit_msg>Fix for compiling.<commit_after>
#ifndef AT_LANG_H
#define AT_LANG_H
#ifdef __OBJC__
#define OBJC_CLASS(name) @class name
#else
#define OBJC_CLASS(name) typedef struct... |
<commit_before>void surfaces() {
//Draw 2-Dim functions
// To see the output of this macro, click begin_html <a href="gif/surfaces.gif">here</a> end_html
//Author: Rene Brun
TCanvas *c1 = new TCanvas("c1","Surfaces Drawing Options",200,10,700,900);
c1->SetFillColor(42);
gStyle->SetFrameFillColor(4... |
<commit_before>#include <string>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmat... |
<commit_before>#ifndef SIMDIFY_VEC3_FLT
#define SIMDIFY_VEC3_FLT
#include "../vec3.hpp"
#include "../util/inline.hpp"
#ifdef SIMDIFY_SSE
#define INL SIMDIFY_FORCE_INLINE
namespace simd {
template <>
struct basic_vec3<flt> {
using mm_t = flt::mm_t;
using fp_t = flt::fp_t;
using bitma... |
<commit_before>#include "merlin.h"
namespace merlin {
Merlin::Merlin() {
// MagickWandGenesis();
}
Merlin::~Merlin() {
MagickWandTerminus();
}
void
Merlin::Initialize(Handle<Object> target) {
HandleScope scope;
Handle<Object> merlin = Object::New();
merlin->Set(String::NewSymbol("version"),
... |
<commit_before>// Copyright 2013 Bobby Powers. All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.
#pragma once
#ifndef _ENCIRCLING_ARRAY_HPP_
#define _ENCIRCLING_ARRAY_HPP_
#include "_common.hpp"
#include <memory>
#include <cstring>
namespace enc... |
<commit_before>#ifndef RENDERER_COLOR_HPP
#define RENDERER_COLOR_HPP
#include "base.hpp"
namespace renderer {
class Color {
float rgb[3] = { 0 };
public:
Color();
Color(float r, float g, float b);
Color(const Color &);
Color(Color &&);
Color& operator = (const Color&);
Color& operator = (Color&&);
~C... |
<commit_before>#include "stack.hpp"
#ifndef STACK_CPP
#define STACK_CPP
template <typename T>
stack<T>::stack() : count_(0), array_size_(1), array_(new T[array_size_])
{}
template <typename T>
size_t stack<T> :: count() const
{
return count_;
}
template <typename T>
stack<T>::~stack()
{
delete[] array_;
}
template ... |
<commit_before>#include "stack.hpp"
#include <stdexcept>
#ifndef STACK_CPP
#define STACK_CPP
bitset::bitset(size_t size) : ptr_(std::make_unique<bool[]>(size)),size_(size),counter_(0)
{}
auto bitset::set(size_t index)->void //инициализация всех битов единицами или изменение значения тдельного бита
{
if (index >= 0... |
<commit_before>#include <iostream>
using namespace std;
template <typename T>
class stack
{
public:
stack();
stack(const stack<T> &);
size_t count() const;
void print()const;
void push(T const &);
void swap(const stack<T>&);
T pop();
stack<T>& operator=(const stack<T> &);
~stack();
private:
T * array_;
siz... |
<commit_before>#include <iostream>
using namespace std;
template <typename T>
class stack
{
public:
stack();/*strong*/
stack(const stack<T> &);
size_t count() const; /*noexcept*/
void print()const;
void push(T const &); /*basic*/
void swap(stack<T>&); /*noexcept*/
void pop(); /*no safety*/
T top(); /*strong*/... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scuiautofmt.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2006-07-21 14:09:27 $
*
* The Contents of this file are ma... |
<commit_before>/* FILTERBANK - multi-band reson instrument
This is like INPUTSIG from IIR, except that the parameters for each filter
band are time-varying.
p0 = output start time
p1 = input start time
p2 = input duration
p3 = amplitude multiplier *
p4 = ring-down duration
p5 = input channel
... |
<commit_before>
#undef BUILDING_QT4_GUI
#include "qt4_gui.hpp"
#include "../testdialogs/dlg_test.h"
#include <gwenhywfar/gwenhywfar.h>
#include <gwenhywfar/gui.h>
#include <gwenhywfar/dialog.h>
#include <gwenhywfar/debug.h>
#include <qapplication.h>
int test1(int argc, char **argv) {
QApplication a(argc, argv);
... |
<commit_before>#include <iostream>
#include <string>
#include <ctime> //for seeding srand
#define WORDLIST_LENGTH 40
#define MAX_INCORRECT_GUESSES 6
using namespace std;
enum EGameState : int
{
WaitingToStart,
InProgress,
Over
};
//draws the current state of the hangman
void DrawHangman(int IncorrectGuesses)
{
... |
<commit_before>/*************************************************************************
*
* $RCSfile: SlsViewOverlay.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-03-30 09:26:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/*
This file is part of the KDE project
Copyright (C) 2002-2003 Daniel Molkentin <molkentin@kde.org>
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 ... |
<commit_before>// $CXX -std=c++11 webmdump.cc -pthread -o webmdump -Wall -Wextra -Werror
#include "io-main.h"
#include "../broadcast.cc"
static const char * ebml_tag_name(const struct ebml_tag t)
{
switch (t.id) {
case EBML_TAG_EBML: return "EBML";
case EBML_TAG_Void: return "V... |
<commit_before>#ifndef INC_AL_CONTROL_GLV_HPP
#define INC_AL_CONTROL_GLV_HPP
#include "allocore/io/al_Window.hpp"
#include "GLV/glv_core.h"
namespace al {
struct GLVControl {
GLVControl(glv::GLV * v): mGLV(v){}
void glv(glv::GLV * v){ mGLV=v; }
glv::GLV& glv(){ return *mGLV; }
protected:
glv::GLV * mGLV;
};
... |
<commit_before>#pragma once
/*
* Covariant Script Version Info
*
* Licensed under the Covariant Innovation General Public License,
* Version 1.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://covariant.cn/licenses/LICENSE-1.0
*
*... |
<commit_before>#pragma once
/*
* Covariant Script Version Info
*
* Licensed under the Covariant Innovation General Public License,
* Version 1.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://covariant.cn/licenses/LICENSE-1.0
*
*... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>#ifndef GCN_ACTIONLISTENER_HPP
#define GCN_ACTIONLISTENER_HPP
#include <string>
namespace gcn
{
/**
* A ActionListener listens for action events from a widget.
*
* @see Widget::addActionListener
*/
class ActionListener
{
public:
/**
* Destructor.
*/
virtual ~Actio... |
<commit_before>//============================================================================
// MCKL/include/mckl/core/state_matrix.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//------------------------------------------------------------------... |
<commit_before>#ifndef INC_METTLE_DRIVER_CMD_LINE_HPP
#define INC_METTLE_DRIVER_CMD_LINE_HPP
#include <chrono>
#include <cstdint>
#include <memory>
#include <vector>
#include <string>
#include <boost/any.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/variables_map.hpp>
... |
<commit_before>#pragma once
#include <string>
#include "string_util.hpp"
class InvalidCdImageException : public Oddlib::Exception
{
public:
explicit InvalidCdImageException(const char* msg)
: Exception(msg)
{
}
};
const Uint32 kRawSectorSize = 2352;
const Uint32 kFileSystemStartSector = 16;
cla... |
<commit_before>/*
* algorithm.hpp
*
* Created on: 28 мая 2016 г.
* Author: sergey.fedorov
*/
/**
* @page Metaprogramming algorithms
*
*/
#ifndef PUSHKIN_META_ALGORITHM_HPP_
#define PUSHKIN_META_ALGORITHM_HPP_
#include <type_traits>
#include <limits>
#include <pushkin/meta/type_tuple.hpp>
namespace pss... |
<commit_before>// Copyright 2021 The Pigweed 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 applica... |
<commit_before>// Copyright (C) 2016 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef TYPE_SAFE_BOUNDED_TYPE_HPP_INCLUDED
#define TYPE_SAFE_BOUNDED_TYPE_HPP_INCLUDED
#include <type_traits>... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>/**
* @file llavatariconctrl.cpp
* @brief LLAvatarIconCtrl class implementation
*
* $LicenseInfo:firstyear=2009&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under t... |
<commit_before>/**
* @file llimconversation.cpp
* @brief LLIMConversation class implements the common behavior of LNearbyChatBar
* @brief and LLIMFloater for hosting both in LLIMContainer
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2012, Linden Research, I... |
<commit_before>// #define PY_SSIZE_T_CLEAN 1
#include <Python.h>
#include <bytesobject.h>
#include "tlsh.h"
#define TLSH_VERSION "0.2.0"
#define AUTHOR "Chun Cheng"
/* We want to update the hash using bytes object in Python 3 */
#if PY_MAJOR_VERSION >= 3
# define BYTES_VALUE_CHAR "y"
#else
# define BYTES_VALUE_CHAR "... |
<commit_before>//mbind header
//Copyright (c) 2014 mmYYmmdd
#if !defined MMYYMMDD_MBIND_INCLUDED
#define MMYYMMDD_MBIND_INCLUDED
#include <type_traits>
#include <utility>
// Metaなbind mbind
namespace mymd {
namespace detail_mbind {
//-----------------------------------------------
// default ... |
<commit_before>#include "thread_manager.h"
#include "core_manager.h"
#include "performance_model.h"
#include "hooks_manager.h"
#include "config.h"
#include "log.h"
#include "transport.h"
#include "simulator.h"
#include "clock_skew_minimization_object.h"
#include "core.h"
#include "thread.h"
#include "scheduler.h"
#incl... |
<commit_before>// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Renderer/Texture.hpp>
#include <Nazara/Core/Error.hpp>
#include <Nazara/Renderer... |
<commit_before>
/*
* Rosetta web server, copyright(c) 2016, Thomas Hansen, phosphorusfive@gmail.com.
*
* 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, version 3.
*
* This program ... |
<commit_before>#include "Quatf.h"
#include <cmath>
#include "vmath\vmath.h"
///////////////////////////////////////
// CONSTRUCTORS
///////////////////////////////////////
Quatf::Quatf()
: w{ 0 }
, v{}
{ }
Quatf::Quatf(float w, float x, float y, float z)
: Quatf(w, Vector3f{ x, y, z })
{ }
Quatf::Quatf(float ... |
<commit_before>#define BOOST_TEST_STATIC_LINK
#define BOOST_TEST_MODULE FIXED_POINT_LIB_COMMON_USE_CASES
#include <boost/test/unit_test.hpp>
#include <boost/foreach.hpp>
#include <boost/range/irange.hpp>
#include <limits>
#include <string>
#include <sstream>
#include <iomanip>
#include <stdexcept>
#in... |
<commit_before>/*
* Copyright 2004-2015 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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... |
<commit_before>// SAMPLE_PLUGIN.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include "plugin_utils.h"
class SAMPLE_PLUGIN : public bz_Plugin
{
virtual const char* Name (){return "SAMPLE PLUGIN";}
virtual void Init ( const char* config);
virtual void Event ( bz_EventData *eventDa... |
<commit_before>#include "selfdrive/ui/qt/offroad/networking.h"
#include <algorithm>
#include <QDebug>
#include <QHBoxLayout>
#include <QLabel>
#include <QPainter>
#include <QScrollBar>
#include "selfdrive/ui/qt/util.h"
#include "selfdrive/ui/qt/qt_window.h"
#include "selfdrive/ui/qt/widgets/controls.h"
#include "sel... |
<commit_before>#include "CaffeBatchPrediction.hpp"
#include "classifierio.hpp"
using namespace std;
using namespace cv;
int main(int argc, char **argv)
{
::google::InitGoogleLogging(argv[0]);
if (argc < 2)
{
cout << "Usage : " << argv[0] << " filelist_of_imgs.txt" << endl;
return 1;
}
ClassifierIO clio("d24"... |
<commit_before>#pragma once
#include <vector>
#include "acmacs-base/fmt.hh"
// ----------------------------------------------------------------------
namespace acmacs
{
template <typename Key, typename Value> class flat_map_t
{
public:
using key_type = Key;
using value_type = Value;
... |
<commit_before>#pragma once
#include <string_view>
#include <string>
#include <vector>
#include "acmacs-base/fmt.hh"
// ----------------------------------------------------------------------
namespace acmacs::messages::inline v1
{
using key_t = std::string_view;
using value_t = std::string;
// --------... |
<commit_before>#pragma once
// ----------------------------------------------------------------------
#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wreserved-id-macro" // in Python.h
#pragma GCC diagnostic ignored "-Wextra-semi"
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC dia... |
<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 V4VM module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage... |
<commit_before>/******************************************************************************
* This file is part of the Mula project
* Copyright (c) 2011 Laszlo Papp <lpapp@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* L... |
<commit_before>// --------------------------------------------------------
// Code generated by Papyrus C++
// --------------------------------------------------------
#define Annotator_AnnotatorLib_Loader_JSONLoader_BODY
/************************************************************
JSONLoader class body
**********... |
<commit_before>//===-- sanitizer_posix_test.cpp ------------------------------------------===//
//
// Part of the LLVM Project, 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
//
//===------------... |
<commit_before>#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetLogLevel(OF_LOG_VERBOSE);
ofEnableDepthTest();
kinect.setRegistration(true);
kinect.init();
kinect.open();
ofSetFrameRate(30);
}
//--------------------------------------------------... |
<commit_before>/*
* Copyright (C) 2016-2017 Pelagicore AB
*
* 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>/*
* fMBT, free Model Based Testing tool
* Copyright (c) 2012, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
*... |
<commit_before>#include <string.h>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <stdio.h>
#include <sstream>
#include <time.h>
#include "SuMo.h"
#include "Timer.h"
/* specific to file */
const int NUM_ARGS = 4;
const char* filename = "logData";
const char* description = "log data from DAQ";
usi... |
<commit_before>/* gobby - A GTKmm driven libobby client
* Copyright (C) 2005, 2006 0x539 dev group
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (... |
<commit_before>#include <algorithm>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "demoloop.h"
#include "graphics/2d_primitives.h"
#include "hsl.h"
using namespace std;
using namespace demoloop;
#define NUM_VERTS 12
float t = 0;
const float CYCLE_LENGTH = 6;
class Loop015 : pu... |
<commit_before>//===- ReadConst.cpp - Code to constants and constant pools ---------------===//
//
// This file implements functionality to deserialize constants and entire
// constant pools.
//
// Note that this library should be as fast as possible, reentrant, and
// threadsafe!!
//
//===--------------------------... |
<commit_before>//===- MachineCopyPropagation.cpp - Machine Copy Propagation Pass ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright (c) 2011, Peter Thorson. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, th... |
<commit_before>/*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include "lib/universal_include.h"
#include "missile.h"
#include "lib/gfx/debug_render.h"
#include "lib/gfx/simple_primitives.h"
#include "lib/gfx/shape.h"
#include "lib/sound/sound_system.h"
#include "lib/hi_res_time.h"
#include "lib/resource.h"
#include "arena.h"
#include "big_explosions.h"
... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2005 Peter Kmmel
// Copyright (c) 2005 Richard Sposato
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted without fee, provide... |
<commit_before>/*
Copyright (c) 2014, The Cinder Project, All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redistri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.