text stringlengths 54 60.6k |
|---|
<commit_before>#include "kernel.h"
#include "ilwisdata.h"
#include "coverage.h"
#include "symboltable.h"
#include "operationExpression.h"
#include "operationmetadata.h"
#include "commandhandler.h"
#include "operation.h"
#include "mastercatalog.h"
#include "uicontextmodel.h"
#include "drawers/draweroperation.h"
#include... |
<commit_before>#include <iostream>
#include <fstream>
#include "Matrix.h"
using namespace std;
#define DW(__instruction) cout << #__instruction << "==" << (__instruction) << endl;
Matrix loadMatrixFromFile(const char* filename)
{
ifstream stream;
stream.open(filename, ifstream::in);
if(stream.good())
... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>/***************************************************************************
copyright : (C) 2002 - 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/*********************************************... |
<commit_before>#include <shogun/lib/config.h>
#include <shogun/mathematics/Random.h>
#include <shogun/mathematics/Math.h>
#include <shogun/lib/SGVector.h>
#include <gtest/gtest.h>
#include <stdio.h>
using namespace shogun;
const uint32_t n_runs=1200000;
const uint32_t array_len=23;
/**
* NOTE: these unit tests were... |
<commit_before>#include "../base/SRC_FIRST.hpp"
#include "straight_text_element.hpp"
#include "overlay_renderer.hpp"
namespace graphics
{
void visSplit(strings::UniString const & visText,
buffer_vector<strings::UniString, 3> & res,
char const * delimiters,
size_t delim... |
<commit_before>#pragma once
#include "eigen.hh"
#include "geometry/ray.hh"
namespace slam {
class CameraModel {
public:
using Vec2 = Eigen::Vector2d;
using Vec3 = Eigen::Vector3d;
using Vec4 = Eigen::Vector4d;
using ProjMat = Eigen::Matrix<double, 3, 3>;
CameraModel(const ProjMat& K) : K_(K){};... |
<commit_before>/**
* Touhou Community Reliant Automatic Patcher
* Cheap command-line patch stack configuration tool
*
* ----
*
* Game searching front-end code.
*/
#include <thcrap.h>
#include "configure.h"
static const char games_js_fn[] = "config/games.js";
static const char* ChooseLocation(const char... |
<commit_before>/*************************************************************************
*
* $RCSfile: unowrapper.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:02:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>#include <iostream>
#include <sstream>
#include "Myexception.h"
#include "chain.h"
using namespace std;
void chain :: readAndStoreFromFile(char* fileName)
{
//This function reads integers from the file given by fileName then store them in the chain
/*ifstream in;
ifstream infile("input.txt");
st... |
<commit_before>/**
*main.cpp
*
*@author neucrack
*@date 2016-04-21
*
*/
#include "hardware.h"
#include "app.h"
#include "Interrupt.h"
App app;
void Timer2_IRQ();
// ----------------------------------------------------------------------------
int
main(int argc, char* argv[])
{
app.Init();
// Infinite l... |
<commit_before>/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
... |
<commit_before>/*
* Copyright (C) 2014 Andrew Duggan
* Copyright (C) 2014 Synaptics Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
<commit_before>#ifndef __RMOL_RMOL_TYPES_HPP
#define __RMOL_RMOL_TYPES_HPP
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <vector>
#include <list>
// Boost
#include <boost/shared_ptr.h... |
<commit_before>// Macro to run TPC performance
// By default 6 performance components are added to
// the output:
// 1. AliPerformanceRes (TPC track resolution at DCA)
// 2. AliPerformanceResTPCInner (TPC track resolution at inner TPC wall)
// 3. AliPerformanceEff (TPC track reconstruction efficieny)
// 4. AliPerform... |
<commit_before>// This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2016 dune-gdt developers and contributors. All rights reserved.
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// Authors:
// Felix Schindler (2012 - 2016)
// ... |
<commit_before>#include <iostream> /* allows to perform standard input and output operations */
#include <stdio.h> /* Standard input/output definitions */
#include <stdint.h> /* Standard input/output... |
<commit_before>#include "PackPkg.h"
#include "check_params.h"
#include <ee/Exception.h>
#include <gum/FilepathHelper.h>
#include <gum/StringHelper.h>
#include <fstream>
namespace edb
{
PackPkg::PackPkg()
: m_buf(NULL)
, m_buf_size(0)
{
}
PackPkg::~PackPkg()
{
delete[] m_buf;
}
std::string PackPkg::Command() c... |
<commit_before>#ifndef MPACK_BUFFEROBJECT_HPP
#define MPACK_BUFFEROBJECT_HPP
#include "Types.hpp"
#include "Debug.hpp"
namespace MPACK
{
namespace Graphics
{
template<GLenum target> class BufferObject
{
public:
BufferObject();
~BufferObject();
GLvoid Init(GLvoid *data, GLuint size,... |
<commit_before>
#include "../src/AtomicStack.h"
#include "../src/LocalWriteEM.h"
#include "test_suite.h"
using namespace peloton;
using namespace index;
// This must be instanciated in the translation unit where it is
// used. Otherwise the compiler is not able to know its existence
// which causes the linker to comp... |
<commit_before>#include <iostream>
#include <string>
#include <fstream>
#include <cstdint>
using namespace std;
template <class T>
struct Node
{
T data;
Node<T>* left;
Node<T>* right;
};
template <class T>
class BinaryTree
{
private:
Node<T> *root;
uint16_t CountElements = 0;
public:
BinaryTree();
~Binar... |
<commit_before>#pragma once
/**
@file
@brief logger
Copyright (C) Cybozu Labs, Inc., all rights reserved.
*/
#include <cybozu/format.hpp>
#include <cybozu/time.hpp>
#ifdef _WIN32
#else
#include <syslog.h>
#endif
namespace cybozu {
enum LogPriority {
LogDebug = 0,
LogInfo = 1,
LogWarning = 2,
LogError = 3
};
... |
<commit_before>// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
... |
<commit_before>
#pragma once
#include <nstd/Base.hpp>
class String;
class Debug
{
public:
static int print(const tchar* str);
static int printf(const tchar* format, ...);
#ifndef NDEBUG
static bool getSourceLine(void* addr, String& file, int& line);
#endif
};
#ifdef _MSC_VER
void __cdecl __debugbreak(void);
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/shared/mss_const... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_ddr_phy_reset... |
<commit_before>///
/// @file phi_vector.hpp
/// @brief The PhiCache class calculates the partial sieve function
/// (a.k.a. Legendre-sum) using the recursive formula:
/// phi(x, a) = phi(x, a - 1) - phi(x / primes[a], a - 1).
/// phi(x, a) counts the numbers <= x that are not divisible by
/// ... |
<commit_before>#include <common/buffer.h>
#include <common/endian.h>
#include <event/action.h>
#include <event/callback.h>
#include <event/event_system.h>
#include "wanproxy_config.h"
static void usage(void);
int
main(int argc, char *argv[])
{
std::string configfile("");
int ch;
INFO("/wanproxy") << "WANProxy";... |
<commit_before>#include "tentacle-pseudopod.h"
#include <stddef.h>
Pseudopod::Pseudopod(Stream &input, Print &output, Tentacle& tentacle) {
pb_ostream_from_stream(output, pbOutput);
pb_istream_from_stream(input, pbInput);
this->tentacle = &tentacle;
messagePinActions = new Action[tentacle.getNumPins()];
res... |
<commit_before>/*
irceditaccountwidget.cpp - IRC Account Widget
Copyright (c) 2003 by Olivier Goffart <ogoffart@tiscalinet.be>
Copyright (c) 2003 by Jason Keirstead <jason@keirstead.org>
Kopete (c) 2003 by the Kopete developers <kopete-devel@kde.org>
****************************************... |
<commit_before>/***************************************************************************
dlgjabberservices.cpp - description
-------------------
begin : Mon Dec 9 2002
copyright : (C) 2002 by Till Gerken
email ... |
<commit_before>/*
Tone.cpp
A Tone Generator Library for the ESP8266
Copyright (c) 2016 Ben Pirt. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
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>/** \brief A MARC-21 filter utility that can remove records based on patterns for MARC subfields.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2016 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can redistr... |
<commit_before>/* The MIT License (MIT)
Copyright (c) 2016 Guilherme Andrade <nlocks(at)gandrade(dot)net>
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, includin... |
<commit_before>/*
* caosVM_core.cpp
* openc2e
*
* Created by Alyssa Milburn on Tue May 25 2004.
* Copyright (c) 2004 Alyssa Milburn. All rights reserved.
*
* 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 ... |
<commit_before>
#include <am/hash/fnv.hpp>
#include <am/hash/murmur.hpp>
#include <cstring>
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <iomanip>
// FIXME: seeds are currently narrowed to HL32
using func_vector_type
= std::vector<
void
(*)(
std::string const&,
am::hash::comm... |
<commit_before>/**
* @file NaoTime.cpp
*
* Class NaoTime provides methods for time information and calculation
*
* @author Oliver Welter
*/
#include "NaoTime.h"
#include "Tools/Debug/Trace.h"
#include "Tools/Debug/NaoTHAssert.h"
#include <iostream>
using namespace naoth;
const unsigned long long NaoTime::startingTime... |
<commit_before>/**
* \file Gnomonic.hpp
* \brief Header for GeographicLib::Gnomonic class
*
* Copyright (c) Charles Karney (2009, 2010) <charles@karney.com>
* and licensed under the LGPL. For more information, see
* http://geographiclib.sourceforge.net/
**********************************************************... |
<commit_before>#include <QtDeclarative>
#include <QEventLoop>
#include <QGLFormat>
#include <QGLFramebufferObject>
#include <QGLWidget>
#include <QImage>
#include <QList>
#include <QPainter>
#include <QResizeEvent>
#include <QSize>
#include <QString>
#include <QVariant>
#include "webvfx/image.h"
#include "webvfx/qml_co... |
<commit_before>/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011 Kentoku SHIBA
Copyright(C) 2011-2012 Kouhei Sutou <kou@clear-code.com>
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 Foundat... |
<commit_before>#pragma once
// https://infektor.net/posts/2017-03-31-range-based-enumerate.html
#include <iterator>
#include <utility>
// ----------------------------------------------------------------------
namespace acmacs
{
namespace _enumerate_internal
{
template <typename Iterator, typename in... |
<commit_before>/*
* Copyright (c) 2012 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. ... |
<commit_before>#pragma once
#include <string>
#include <variant>
#include <functional>
#include <iostream>
#include <fstream>
#include "acmacs-base/filesystem.hh"
// ----------------------------------------------------------------------
namespace acmacs::file
{
enum class ForceCompression { No, Yes };
enum ... |
<commit_before>/**
* This file is part of the CernVM file system
*/
#include "sync_item.h"
#include <errno.h>
#include "sync_mediator.h"
using namespace std; // NOLINT
namespace publish {
SyncItem::SyncItem() :
union_engine_(NULL),
whiteout_(false),
scratch_type_(static_cast<SyncItemType>(0)),
rdonly_... |
<commit_before>//---------------------------------------------------------------------------//
/*
Copyright (c) 2012, Stuart R. Slattery
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
*: Re... |
<commit_before>/*
Copyright 2019 Alain Dargelas
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 applicable law or agreed to in w... |
<commit_before>#include <plugins/interactive/PluginInteractive.h>
namespace beliefstate {
namespace plugins {
PluginInteractive::PluginInteractive() {
this->addDependency("ros");
m_imsServer = NULL;
}
PluginInteractive::~PluginInteractive() {
if(m_imsServer) {
delete m_ims... |
<commit_before><commit_msg>Fixed parallelized mean computation + removed unnecessary recomputation of results in opencv/superpixels/mean<commit_after><|endoftext|> |
<commit_before>/*******************************************************
* Copyright (c) 2015, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>#include <imap.hpp>
#include "helpers.hpp"
#include <cctype>
#include <iterator>
#include <string>
#include <vector>
#include "catch.hpp"
using iter::imap;
using Vec = const std::vector<int>;
namespace {
int plusone(int i) {
return i + 1;
}
class PlusOner {
public:
int operator()(i... |
<commit_before>/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
*/
#include "Chat.h"
#include "ScriptMgr.h"
#include "Language.h"
#include "Player.h"
#include "PlayerCommand.h"
bool PlayerCommand... |
<commit_before>/*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2014 Wu Lin
* Written (W) 2013 Roman Votyakov
* 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. Re... |
<commit_before>/*
* linuxWaitingSlot.cpp
*
* Created on: 12. 10. 2017
* Author: ondra
*/
#include <fcntl.h>
#include <sys/socket.h>
#include <unistd.h>
#include "../exceptions.h"
#include "../mt.h"
#include "netEventDispatcher.h"
#include "../defer.h"
namespace simpleServer {
using ondra_shared::defer;... |
<commit_before>#include "wled.h"
/*
* Adalight and TPM2 handler
*/
enum class AdaState {
Header_A,
Header_d,
Header_a,
Header_CountHi,
Header_CountLo,
Header_CountCheck,
Data_Red,
Data_Green,
Data_Blue,
TPM2_Header_Type,
TPM2_Header_CountHi,
TPM2_Header_CountLo,
};
void handleSerial()
{
i... |
<commit_before>// This file is part of the AliceVision 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 https://mozilla.org/MPL/2.0/.
#include <aliceVision/feature/imageDescriberCommon.h... |
<commit_before>#pragma once
template<class T>
struct LuaResultTraits {};
template<>
struct LuaResultTraits<unsigned long> {
typedef unsigned long type;
};
template<>
struct LuaResultTraits<unsigned long long> {
typedef unsigned long long type;
};
template<>
struct LuaResultTraits<int> {
typedef int type;
};
t... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2018-2019 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
<commit_before>#include "stan/math/functions/lmgamma.hpp"
#include <gtest/gtest.h>
TEST(MathsSpecialFunctions, lmgamma) {
unsigned int k = 1;
double x = 2.5;
double result = k * (k - 1) * log(boost::math::constants::pi<double>()) / 4.0;
result += lgamma(x); // j = 1
EXPECT_FLOAT_EQ(result, stan::math... |
<commit_before>
//Copyright (c) 2012 Jonathan Topf
//
//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, modify, merg... |
<commit_before>/*************************************************************************
*
* $RCSfile: textproperties.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: pjunck $ $Date: 2004-11-03 10:32:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*************************************************************************
*
* $RCSfile: SvXMLAutoCorrectExport.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2001-07-11 11:44:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the f... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>#include "RuleMatching.h"
#include "hext/Rule.h"
#include "NodeUtil.h"
namespace hext {
void SaveMatchingNodesRecursive(const Rule * rule,
const GumboNode * node,
std::vector<MatchingNodes>& result)
{
assert(n... |
<commit_before>#include "parser.h"
#include "_parser.h"
#include <QScriptValueIterator>
int i = 0;
QCoreApplication *qCoreApplication = new QCoreApplication(i, nullptr);
QScriptEngine *engine = new QScriptEngine();
namespace QJSTP
{
namespace Parser
{
QScriptValue parse(QString str)
{
uint beg = 0;
skipWh... |
<commit_before>/*
kopeteprotocol.cpp - Kopete Protocol
Copyright (c) 2002 by Duncan Mac-Vicar Prett <duncan@kde.org>
Copyright (c) 2002 by Martijn Klingens <klingens@kde.org>
Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org>
************************************************... |
<commit_before>
/*
* iterator_test.cpp
*
* Tests basic iterator operations
*
* by Ziqi Wang
*/
#include "test_suite.h"
/*
* ForwardIteratorTest() - Tests forward iterator functionalities
*/
void ForwardIteratorTest(TreeType *t, int key_num) {
printf("========== Forward Iteration Test ======... |
<commit_before>#include <audio_system.h>
#include <sound.h>
#include <stream.h>
#include <thread>
#include <chrono>
#include <iostream>
using namespace KameMix;
using std::cout;
void onSoundFinished(Sound *sound, void *udata)
{
cout << "sound finished\n";
}
void onStreamFinished(Stream *stream, void *udata)
{
co... |
<commit_before><commit_msg>Fix vsm options serialization.<commit_after><|endoftext|> |
<commit_before>#include <execution_policy>
#include <iostream>
int main()
{
bulk_async(std::seq, [](std::sequential_agent& self)
{
std::cout << "self.index(): " << self.index() << std::endl;
}).wait();
std::mutex mut;
bulk_invoke(std::con(10), [&mut](std::concurrent_agent& self)
{
mut.lock();
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: typemanager.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: vg $ $Date: 2007-10-15 12:45:01 $
*
* The Contents of this file are ma... |
<commit_before>#ifndef UTILS_HPP
#define UTILS_HPP
#include <list>
#include <iostream>
#include "Object.hpp"
#include "ViewPort.hpp"
#define GUI_FILE "graphical_system.glade"
/* Global Variables */
static cairo_surface_t* surface = NULL;
GtkBuilder* builder;
GtkWidget* _window;
GtkWidget* _draw_area;
GtkTextView* _t... |
<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 "chrome/browser/autofill/autofill_download.h"
#include <algorithm>
#include <vector>
#include "base/logging.h"
#include "bas... |
<commit_before>/**
* @file sa_impl.hpp
* @auther Zhihao Lou
*
* The implementation of the SA optimizer.
*/
#ifndef __MLPACK_CORE_OPTIMIZERS_SA_SA_IMPL_HPP
#define __MLPACK_CORE_OPTIMIZERS_SA_SA_IMPL_HPP
#include <mlpack/core/dists/laplace_distribution.hpp>
namespace mlpack {
namespace optimization {
template<
... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief mruby client connection
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004-2013 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 ... |
<commit_before>// $Id$
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Authors: Matthias Richter <Matthias.Richter@ift.uib.no> ... |
<commit_before>// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard
// U.S. Geological Survey
//
// <LicenseText>
//
// ----------------------------------------------------------------------
//
#include <porti... |
<commit_before>#include "GarageDoor/GPIO/Manager.h"
GarageDoor::GPIO::Manager::Manager()
{
LoadPins();
}
void GarageDoor::GPIO::Manager::LoadPins()
{
std::string path = "/sys/class/gpio_hw";
std::vector<std::string> dirList = GarageDoor::Filesystem::ListDirectory(path);
std::cout << "Dirs found: " <<... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>/**
* @file callbacks.hpp
* @brief Callbacks for histograms computation.
* @author Paolo D'Apice
*/
#ifndef VIS_CALLBACKS_HPP
#define VIS_CALLBACKS_HPP
#include "callbacks_hog.hpp"
#include "descriptors_type.hpp"
#include "hsv.hpp"
namespace vis {
class Vocabulary;
/// @brief Base class for call... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lngreg.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-09-17 03:54:25 $
*
* The Contents of this file are made a... |
<commit_before>#include <ctre.hpp>
#include <ctre-unicode.hpp>
#include <string_view>
void empty_symbol() { }
template <typename T> struct identify;
template <size_t N> struct number_id;
#if !(__cpp_nontype_template_parameter_class || (__cpp_nontype_template_args >= 201911L))
#define CTRE_CREATE(pattern) (pattern #... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/** \brief Generates a continous decompressed stream of data from a BASE tarball containing gzipped ListRecord files.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2016 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free softw... |
<commit_before>/* Copyright 2017 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>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/**
* @author Andre Anjos <andre.anjos@idiap.ch>
* @date Thu 7 Nov 13:50:16 2013
*
* @brief Binds configuration information available from bob
*/
#include <Python.h>
#include <string>
#include <cstdlib>
#include <blitz/blitz.h>
#include <boost/preprocessor/stringize.hpp>
#include <boost/version.h... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "driver/uart.h"
#include "freertos/queue.h"
#include "esp_log.h"
#include "soc/uart_struct.h"
static const char *TAG = "MFRC522";
... |
<commit_before>/* Copyright 2015 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>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>//RUN: make -C %testexecdir/../../clang/ test TESTSUITE=Sema CLANG=%p/clangTestUnloader.sh
//XFAIL: *
// Current SemaCXX failures:
// Expected Passes : 392
// Expected Failures : 1
// Unexpected Failures: 184
// Current Sema failures:
// Expected Passes : 331
// Unexpected Failures: 90
<commit_m... |
<commit_before>#define PUT(x) std::cout << #x "=" << (x) << std::endl
#include <cybozu/benchmark.hpp>
#include <cybozu/option.hpp>
#include <cybozu/xorshift.hpp>
#include <mcl/fp.hpp>
#include <mcl/fp_tower.hpp>
typedef mcl::FpT<mcl::FpTag> Fp;
typedef mcl::Fp2T<Fp> Fp2;
typedef mcl::FpDblT<Fp> FpDbl;
typedef mcl::Fp6... |
<commit_before>#ifndef MIMOSA_SYNC_CONDITION_HH
# define MIMOSA_SYNC_CONDITION_HH
# include <stdexcept>
# include <melon/melon.h>
# include "../non-copyable.hh"
# include "../runtime/time.hh"
namespace mimosa
{
namespace sync
{
class Condition : private NonCopyable
{
public:
inline Condition()... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/*
This file is part of Kontact.
Copyright (c) 2003 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 License, o... |
<commit_before>// Copyright 2022 The Crashpad 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... |
<commit_before>//===-- IPConstantPropagation.cpp - Propagate constants through calls -----===//
//
// 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>#ifndef KDROPOUTFULLYCONNECTED_HPP
#define KDROPOUTFULLYCONNECTED_HPP
#include <fstream>
#include <random>
#include "Layer.hpp"
class KDropoutFullyConnected : public Layer
{
private:
int K;
std::mt19937 mt;
std::uniform_real_distribution<double> d_rand;
Mat mask;
public:
KDropoutFullyConnected ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.