text stringlengths 54 60.6k |
|---|
<commit_before>#include "Lia/list/basics.hpp"
#include "Lia/list/folds.hpp"
#include <vector>
#include <string>
#include <cassert>
void basic_test() {
std::vector<int> v = {1,2,3,4,5,6,7,8,9,10,11};
assert(lia::head(v) == 1 && "head");
assert(lia::last(v) == 11 && "last");
assert(lia::null(v) == false ... |
<commit_before>/*
* Copyright (c) 2015-2018 JlnWntr (jlnwntr@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... |
<commit_before>#include<string>
int main(int argc, const char *argv[])
{
return 0;
}
<commit_msg>at 2018年 12月 14日 星期五 22:55:55 PST<commit_after><|endoftext|> |
<commit_before>#include "stdafx.h"
#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[] arra... |
<commit_before>#include <iostream>
using namespace std;
template <typename T>
class stack
{
public:
stack();
stack(stack const &);
~stack();
size_t count() const;
auto push(T const &) -> void;
T pop();
auto operator=(stack const & right)->stack &;
private:
T * array_;
size_t array_size_;
size_... |
<commit_before>#ifndef stack_cpp
#define stack_cpp
#pragma once
#include <iostream>
using namespace std;
template<typename T>
auto newcopy( const T * item, size_t size, size_t count) -> T*
{
T * buff = new T[size];
copy(item, item + count, buff);
return buff;
}
template <typename T>
class stack
{
pub... |
<commit_before>#include <iostream>
#include <algorithm>
#include <stdexcept>
template <typename T>
class stack
{
public:
stack();
~stack()noexcept;
stack(stack<T> const&);
stack& operator=(stack<T> const&)noexcept;
size_t count()const noexcept;
size_t array_size()const noexcept;
void push(T const&);
void pop()... |
<commit_before>#include "Param.h"
namespace Halide {
void OutputImageParam::add_implicit_args_if_placeholder(std::vector<Expr> &args,
Expr last_arg,
int total_args,
... |
<commit_before>#include <iostream>
using namespace std;
template <typename T>
class stack
{
public:
stack();/*noexept*/
stack(const stack<T> &);/*strong*/
size_t count() const; /*noexcept*/
void print()const;/*noexcept*/
void push(T const &); /*strong*/
void swap(stack<T>&); /*noexcept*/
auto pop()->std::share... |
<commit_before>#include <Pixel.h>
#define PIXEL WalrusRPG::Graphics::Pixel
#define GRAPHICS WalrusRPG::Graphics
PIXEL::Pixel(std::uint16_t color) : value(color) {
}
PIXEL::Pixel(Pixel &pix) : value((std::uint8_t)pix) {
}
PIXEL::Pixel(std::uint8_t red, std::uint8_t green, std::uint8_t blue) : r(red>>3), g(green>>2... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: PtLoad.cc
Language: C++
Date: $Date$
Version: $Revision$
This file is part of the Visualization Library. No part of this file
or its contents may be copied, reproduc... |
<commit_before>#include <phpcpp.h>
#include <stdlib.h>
#include <stdio.h>
#include "Rsync.hpp"
extern "C" {
#include <librsync.h>
}
/**
* rs_result rs_sig_file (FILE *old_file, FILE *sig_file, size_t block_len, size_t strong_len, rs_stats_t *)
*/
void php_sig_file(Php::Parameters & params) {
int32_t block_len =... |
<commit_before>/* Copyright (c) 2012-2015 Stanford University
*
* Permission to use, copy, modify, and 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>/*
* Store.cpp
*
* Created on: 24 de may. de 2015
* Author: carlos
*/
#include "Store.h"
#include <sstream>
#include <cassert>
#include <iomanip>
namespace event {
using grpc::ServerContext;
using grpc::Status;
using grpc::ServerWriter;
using namespace std;
using namespace common;
Store:... |
<commit_before>#pragma once
#include <string>
#include <sstream>
template<typename T>
std::string to_s(const T& t)
{
std::ostringstream ss;
ss << t;
return ss.str();
}
// Based upon http://stackoverflow.com/a/10168511
template<>
std::string to_s<cv::Mat>(const cv::Mat& m)
{
std::ostringstream ss("Mat... |
<commit_before>/*-------------FDTD.cpp-------------------------------------------------------//
*
* Finite Difference Time Domain
*
* Purpose: To replicate the results of our invisible lense raytracer with
* FDTD. Woo!
*
* Notes: Most of this is coming from the following link:
* htt... |
<commit_before>
#include "Uniform.h"
#include "Utilities.h"
#include <ionMath.h>
#include <GL/glew.h>
#include <glm/gtc/type_ptr.hpp>
namespace ion
{
namespace GL
{
template <>
void Uniform::Bind<float>(uint const Handle, float const & Value)
{
CheckedGLCall(glUniform1f(Handle, Value));
... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>#include <node.h>
#include <node_buffer.h>
#include <v8.h>
#include <nan.h>
#include <cstddef>
#include <cassert>
#include <cstring>
#include "KeccakNISTInterface.h"
#define MAX_DIGEST_SIZE 64
#define ASSERT_IS_STRING_OR_BUFFER(val) \
if (!val->IsString() && !Buffer::HasInstance(val)) { \
return Nan... |
<commit_before>#include "ics3/angle.hpp"
#define _USE_MATH_DEFINES
#include <cmath>
ics::Angle ics::Angle::newDegree() noexcept {
static const double limit = 130;
static const Angle DEGREE(-limit, limit, 800.0 / 27.0);
return DEGREE;
}
ics::Angle ics::Angle::newRadian() noexcept {
static const double limit =... |
<commit_before>// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pal.h"
#include "utils.h"
#include "trace.h"
#include <dlfcn.h>
#include <dirent.h>
#include <sys/stat.h>
#if defined(... |
<commit_before>#ifndef __itkLabelImageGenericInterpolateImageFunction_hxx
#define __itkLabelImageGenericInterpolateImageFunction_hxx
#include "itkLabelImageGenericInterpolateImageFunction.h"
#include <itkImageRegionConstIterator.h>
namespace itk
{
template<typename TInputImage, template<class, typename> class TInter... |
<commit_before>// Copyright 2016 Etix Labs
//
// 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 ... |
<commit_before>/*
* Copyright (c) 2015-2019 Dubalu LLC
*
* 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>// -*- mode: C++ -*-
//
// Copyright (c) 2007, 2008, 2009, 2010, 2011 The University of Utah
// All rights reserved.
//
// This file is part of `csmith', a random generator of C programs.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that... |
<commit_before>/******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in s... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>#include <clang-c/Index.h>
#include <iostream>
#include <string.h>
#include <sys/utsname.h>
#include "frontends/clang/kbuild_helper.h"
#include "ast.h"
#include "bpftrace.h"
#include "clang_parser.h"
#include "types.h"
extern "C" const char __stddef_max_align_t_h[];
extern "C" const unsigned __stddef_... |
<commit_before>#if !defined(IO)
# define IO async_strategy
#endif
#include "client.h"
#if 0 // IO == sync_strategy
#include "io/sync.h"
#endif
#if IO == async_strategy
#include "io/async.h"
#endif
#if 0 // IO == coro_strategy
#include "io/coro.h"
#endif
#include "message_generator.h"
#include <functional>
#include <c... |
<commit_before>/*************************************************
* CMS Compression Source File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#include <botan/cms_enc.h>
#include <botan/cms_dec.h>
#include <botan/der_enc.h>
#include <botan/ber... |
<commit_before>/*************************************************
* CMS Encoding Operations Source File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#include <botan/cms_enc.h>
#include <botan/der_enc.h>
#include <botan/x509find.h>
#include <botan/bi... |
<commit_before>// Copyright Hugh Perkins 2016
// 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 agr... |
<commit_before>#include "consoletools.h"
#include "client.h"
#include "log/logger.h"
#include "settings.h"
#include "controller/logincontroller.h"
#include "controller/registrationcontroller.h"
#include <QTextStream>
#include <QCoreApplication>
#include <QCommandLineParser>
#include <QCommandLineOption>
#include <QDeb... |
<commit_before>#include "ui_radio.h"
#include "guiutil.h"
#include "util.h"
#include "main.h"
#include <QtCore>
#include <QtGui>
#include <QtWebKit>
Radio::Radio(QWidget *parent) :
QWidget(parent),
ui(new Ui::Radio),
model(0)
{
ui->setupUi(this);
}
void Radio::setModel(WalletModel *model)
{
thi... |
<commit_before>#include "asset.hpp"
#include "util/common.hpp"
#include "osdialog.h"
#if ARCH_MAC
#include <CoreFoundation/CoreFoundation.h>
#include <pwd.h>
#endif
#if ARCH_WIN
#include <Windows.h>
#include <Shlobj.h>
#include <Shlwapi.h>
#endif
#if ARCH_LIN
#include <unistd.h>
#include <sys/types.h>
#inclu... |
<commit_before>/* $OpenBSD: bcrypt.c,v 1.24 2008/04/02 19:54:05 millert Exp $ */
/*
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
<commit_before>
#include "renderer.h"
#include "lib/renderer_support.lua.h"
namespace aroma {
GLuint make_float_buffer(float* parts, size_t size) {
GLuint buffer;
glGenBuffers(1, &buffer);
glBindBuffer(GL_ARRAY_BUFFER, buffer);
glBufferData(GL_ARRAY_BUFFER, sizeof(float) * size, parts, GL_STATIC_DRAW);
re... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <list>
#include <map>
#include <algorithm>
#include <locale>
#include <getopt.h>
#include <stdlib.h>
#include <unordered_map>
#include "fileroutines.h"
#include "readroutines.h"
#include "search.h"
#include "stats.h"
#in... |
<commit_before>// Copyright (c) 2009-2017 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Developers
// Copyright (c) 2016-2017 Duality Blockchain Solutions Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#inc... |
<commit_before>// Copyright (c) 2012-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bloom.h>
#include <hash.h>
#include <primitives/transaction.h>
#include <random.h>
#include <script... |
<commit_before>// Copyright 2015 Mitchell Kember. Subject to the MIT License.
#include "sentence.hpp"
#include <algorithm>
#include <cassert>
// =============================================================================
// Logical
// =====================================================================... |
<commit_before>#include "buffer.hh"
#include "buffer_manager.hh"
#include "window.hh"
#include "assert.hh"
#include "utils.hh"
#include "hooks_manager.hh"
#include "context.hh"
#include <algorithm>
namespace Kakoune
{
template<typename T>
T clamp(T min, T max, T val)
{
if (val < min)
return min;
if ... |
<commit_before>//==================================================
// Copyright (c) 2015 Deividas Kazlauskas
//
// See the file license.txt for copying permission.
//==================================================
/*
* =====================================================================================
*
* ... |
<commit_before>#pragma once
#include <iostream>
#include "acmacs-draw/surface.hh"
#include "chart.hh"
// ----------------------------------------------------------------------
class Tree;
class TreeDraw;
class HzSections;
// ----------------------------------------------------------------------
class MarkAntigenS... |
<commit_before>/*
Copyright 2016 Mitchell Young
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 o... |
<commit_before>// @Alan
//
// Exercise 11.27:
// What kinds of problems would you use count to solve?
// When might you use find instead?
// I would use count to deal with multimap or multi multiset.
// As for the associative container that have unique key, I would use find instead of count.
//
// Exercise 11.28:
// ... |
<commit_before>// Copyright (c) 2006-2008 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 <windows.h>
#include <shlwapi.h>
#include "chrome/app/breakpad_win.h"
#include "chrome/app/client_util.h"
#include "chro... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <cstdio>
#include "util.h"
using namespace std;
void status(string message) {
cout << "[+] " << message << "\n";
}
void header() {
cout << "SIC-Disassembler v1.0 by Jay Bosamiya\n"
"-------------------------------------\n\n";
}
void usage(... |
<commit_before>#include "LevelEditDlg.h"
#include "dataset/LevelCfg.h"
#include "dataset/DynamicWidget.h"
namespace lr
{
LevelEditDlg::LevelEditDlg(wxWindow* parent, d2d::ISprite* spr)
: CfgEditDlg(parent, "Level", spr)
{
InitData(spr);
InitLayout();
}
std::string LevelEditDlg::ToString()
{
std::string ret = "t... |
<commit_before>#include "ltl/detail/task_queue_impl.hpp"
#include "ltlcontext/ltlcontext.hpp"
#include "ltl/detail/task_context.hpp"
#include "ltl/detail/current_task_context.hpp"
#include "ltl/detail/log.hpp"
#include <condition_variable>
#include <thread>
#include <mutex>
#include <deque>
#include <vector>
#includ... |
<commit_before>// Copyright 2018 Global Phasing Ltd.
#include <complex>
// for symmetrize_min and symmetrize_max
bool operator<(const std::complex<float>& a, const std::complex<float>& b) {
return std::norm(a) < std::norm(b);
}
bool operator>(const std::complex<float>& a, const std::complex<float>& b) {
retur... |
<commit_before>#include "sitkImage.h"
#include "sitkImage.txx"
namespace {
}
namespace itk
{
namespace simple
{
template<class TImageType>
typename EnableIf<IsBasic<TImageType>::Value>::Type
Image::AllocateInternal ( uint64_t Width, uint64_t Height, uint64_t Depth )
{
typename TImageType::... |
<commit_before><commit_msg>Benchmarks for checkpointer.<commit_after><|endoftext|> |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <iostream>
#include <string>
#include <cstdlib>
#include <boost/program_options.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.... |
<commit_before>#include <criterion/criterion.h>
#include <criterion/redirect.h>
#include <iostream>
// set a timeout for I/O tests
TestSuite(redirect, .timeout = 0.1);
#if __GNUC__ >= 5
Test(redirect, mock) {
auto fmock = criterion::mock_file();
fmock << "Hello" << std::flush;
fmock.seekg(0);
std::s... |
<commit_before>#include "stdafx.h"
#include "ContextEnumeratorTest.h"
#include "ContextEnumerator.h"
TEST_F(ContextEnumeratorTest, DegenerateEnumeration) {
size_t ct = 0;
for(const auto& cur : ContextEnumerator(std::shared_ptr<CoreContext>(nullptr))) {
ASSERT_TRUE(!!cur.get()) << "Context enumerator incorrectl... |
<commit_before>/*
* pv.cpp
*
*/
#include <columns/buildandrun.hpp>
#include <connections/CopyConn.hpp>
#include <connections/HyPerConn.hpp>
#include <normalizers/NormalizeBase.hpp>
int runparamsfile(int argc, char ** argv, char const * paramsfile);
int main(int argc, char * argv[]) {
int rank = 0;
#ifdef PV_U... |
<commit_before><commit_msg>Zero-fill tab drag icon pixel buffer.<commit_after><|endoftext|> |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either... |
<commit_before>/// \file rtmp_analyser.cpp
/// Debugging tool for RTMP data.
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <mist/flv_tag.h>
#include <mist/amf.h>
#include <mist/rtmpchunks.h>
#include <mist/config.h>
#define DETAIL_RECONSTRUCT 1
#define DETAIL_EXPLICIT 2
#define... |
<commit_before>/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkAndroidCodec.h"
#include "SkAnimatedImage.h"
#include "SkCanvas.h"
#include "SkCodec.h"
#include "SkCodecPriv.h"
#include "SkPicture.h"
#include "Sk... |
<commit_before>#include <LightGBM/application.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/text_reader.h>
#include <LightGBM/network.h>
#include <LightGBM/dataset.h>
#include <LightGBM/boosting.h>
#include <LightGBM/objective_function.h>
#include <LightGBM/metric.h>
#include "predictor.hpp"
#inclu... |
<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><commit_msg>IQA-490: Dummy out calls to LLTrans::getString() in linux_updater.cpp. It appears that the LLTrans machinery, or at least the way it's used in this program, is buggy: linux-updater.bin has been crashing. Tracebacks and experimentation identify LLTrans as the culprit, so replace it with baked-... |
<commit_before>/***********************************************************************
* filename: Window.cpp
* created: 11/6/2011
* author: Martin Preisler
*************************************************************************/
/****************************************************************... |
<commit_before>/*
* Convert_hapcut2.cpp
*
* Created on: Mar 14, 2018
* Author: sedlazec
*/
#include "Convert_hapcut2.h"
map<std::string, bool> parse_hapcut(std::string hapcut2, std::string target_chr) {
std::string buffer;
std::ifstream myfile;
map<std::string, bool> hapcut;
myfile.open(hapcut2.c_str... |
<commit_before>/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/core/SkBlendModeBlender.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#if SK_SUPPORT_GPU
#include "src/gpu/GrFragmentP... |
<commit_before>#include "catch.hpp"
#include "expected.hpp"
#include <string>
using std::string;
tl::expected<int, string> getInt3(int val) { return val; }
tl::expected<int, string> getInt2(int val) { return val; }
tl::expected<int, string> getInt1() { return getInt2(5).and_then(getInt3); }
TEST_CASE("Issue 1", "... |
<commit_before>/*****************************************************************************
YASK: Yet Another Stencil Kernel
Copyright (c) 2014-2019, Intel Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), t... |
<commit_before>#include <filesystem>
#include <vector>
#include <mutex>
#include <iostream>
#include <ogr_api.h>
#include <ogr_spatialref.h>
#pragma warning (push)
#pragma warning (disable:4251)
#include <gdal_priv.h>
#pragma warning (pop)
#include <cpl_vsi.h>
#include <ZFXMath.h>
#include "../WebMapService.h"
usi... |
<commit_before>#ifndef LEPP2_SPLIT_APPROXIMATOR_H__
#define LEPP2_SPLIT_APPROXIMATOR_H__
#include "lepp2/ObjectApproximator.hpp"
#include "lepp2/models/ObjectModel.h"
#include <deque>
#include <map>
#include <pcl/common/pca.h>
#include <pcl/common/common.h>
namespace lepp {
/**
* An ABC that represents the strateg... |
<commit_before>#include "gtest/gtest.h"
#include "Packet.h"
TEST(packet, parseRead)
{
ASSERT_EQ(1, 1);
}
<commit_msg>Adding few testcases for Packet::parseRead<commit_after>#include "gtest/gtest.h"
#include "Packet.h"
TEST(packet, shouldReadPacketForOneServiceAndOnceCharacteristic)
{
char binPkt[] = {
0x01,... |
<commit_before>#include "external_copy.h"
#include "isolate/environment.h"
#include "isolate/util.h"
#include <cstring>
using namespace v8;
using std::make_unique;
using std::unique_ptr;
namespace ivm {
/**
* ExternalCopy implemtation
*/
unique_ptr<ExternalCopy> ExternalCopy::Copy(const Local<Value>& value) {
u... |
<commit_before>//=======================================================================
// Copyright (c) 2014 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 GUARD_VERIFY_HPP
#define GUARD_VERIFY_HPP
#include <numeric>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <functional>
#include <mlopen/returns.hpp>
namespace mlopen {
// Compute the value of a range
template<class R>
using range_value = typename std::decay<decltype(*std:... |
<commit_before>/*
* Copyright 2010 MQWeb - Franky Braem
*
* Licensed under the EUPL, Version 1.1 or – as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of th... |
<commit_before>/*
* Poly2Tri Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistri... |
<commit_before>#include "Renderer.hpp"
#include <GL/glew.h>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
#include <math.h>
#include <memory>
#include <stdlib.h>
#include "ui/DebugText.hpp"
Renderer::Renderer(int width, int height):
width(width),
height(height),
perspective_mat(glm::perspective<floa... |
<commit_before>// Copyright (c) 2012 The University of Georgia
//
// 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, co... |
<commit_before>#include <iostream>
#include <list>
#include <algorithm>
#include <Magick++/Image.h>
#include <Magick++/STL.h>
static std::string getInitializer(const std::string module)
{
if ((module == "BGR") || (module == "CMYK") || (module =="RGB") || (module =="YUV"))
return "interlace";
return "";
}
int... |
<commit_before>/******************************************************************************
** Copyright (c) 2013-2015, Intel Corporation **
** All rights reserved. **
** ... |
<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>
#ifndef CALIB_HPP_Q5H9DDXY
#define CALIB_HPP_Q5H9DDXY
#include <image.hpp>
#include <improc.hpp>
#include <region.hpp>
#include <linalg.hpp>
#include <matfunc.hpp>
/*!
* @brief Calculate object points for chessboard pattern used as calibration object.
*
* @param rows rows of corners present in the ... |
<commit_before>#include "kwm.h"
extern uint32_t MaxDisplayCount;
extern uint32_t ActiveDisplaysCount;
extern CGDirectDisplayID ActiveDisplays[];
extern std::map<int, std::vector<int> > SpacesOfWindow;
extern std::vector<screen_info> DisplayLst;
extern std::vector<window_info> WindowLst;
extern AXUIElementRef FocusedW... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2009 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>#include "editor.hh"
#include "exception.hh"
#include "utils.hh"
#include "register.hh"
#include "register_manager.hh"
#include "utf8_iterator.hh"
#include <array>
namespace Kakoune
{
Editor::Editor(Buffer& buffer)
: m_buffer(&buffer),
m_edition_level(0),
m_selections(buffer)
{
m... |
<commit_before>#include "editor.hh"
#include "exception.hh"
#include "utils.hh"
#include "register.hh"
#include "register_manager.hh"
#include "utf8_iterator.hh"
#include <array>
namespace Kakoune
{
Editor::Editor(Buffer& buffer)
: m_buffer(&buffer),
m_edition_level(0)
{
m_selections.push_back(Select... |
<commit_before>#ifndef SDLAB_H
#define SDLAB_H
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errors.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <termios.h>
#include <time.h>
#include <float.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <s... |
<commit_before>#include <iostream>
#include "search.cc"
#include <string>
#include <assert.h>
using namespace std;
int main(){
int SA[] = {11, 10, 7, 4, 1, 0, 9, 8, 6, 3, 5, 2};
string S = "mississippi$";
int LCP[] = {-1, 0, 1, 1, 4, 0, 0, 1, 0, 2, 1, 3};
int ISA[] = {5, 4, 11, 9, 3, 10, 8, 2, 7, 6, 1, 0};
cha... |
<commit_before>/**************************************************************************
**
** This file is part of Doxygen plugin for Qt Creator
**
** Copyright (c) 2009 Kevin Tanguy (kofee@kofee.org).
**
** This plugin is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser G... |
<commit_before>/* dro project
* this attempt is with lpc1343, using Olimex P1343 dev kit (8 LED's :)
*/
#include "quadraturecounter.h"
QuadratureCounter pos;//as in 'position'
#include "lpc13xx.h"
#include "gpio.h"
#include "nvic.h"
//shared ~millisecond services:
#include "systick.h"
using namespace SystemTimer;... |
<commit_before>#ifndef __FAST5_HPP
#define __FAST5_HPP
#include <cassert>
#include <exception>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "hdf5_tools.hpp"
namespace fast5
{
//
// This struct represents the expected signal measured
// given the kmer sequence that is in the po... |
<commit_before>/**
* Self-Organizing Maps on a cluster
* Copyright (C) 2013 Peter Wittek
*
* 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>#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <string>
#include <thread>
#include <cmath>
#include "glcxt.hpp"
#include "myshaders.hpp"
namespace mbwk {
static auto
createWindow(int width, int height, std::string title) -> GLFWwindow*
{
glfwWindowHi... |
<commit_before>/** @file */
#include "clientmanager.h"
/**
* Gets the icon structure which is owns the given window.
* @param window The window to find.
* @return Either the owning Icon, or NULL.
*/
Icon *ClientManager::get_icon_of_client(Window window)
{
for (ClientIconIterator icon_iter = m_icons.begin();
... |
<commit_before>#include "valuedlg.h"
#include "ui_valuedlg.h"
#include "logtab.h"
#include "themeutils.h"
#include "tokenizer.h"
#include <QDebug>
#include <QDesktopServices>
#include <QFile>
#include <QFontDatabase>
#include <QHttpMultiPart>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetwor... |
<commit_before>// ComDirver.cpp: implementation of the CComDirver class.
//
//////////////////////////////////////////////////////////////////////
#include "vmlua.h"
#include "lua/lua.hpp"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "hash.h"
#include "key.h"
#include "main.h"
#include <openss... |
<commit_before>#include "client/keyboard/keytable.h"
#include "client/ui/event.hpp"
#include "client/ui/menu.hpp"
#include "client/ui/window.hpp"
#include "sys/path.hpp"
#include "sys/rand.hpp"
#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.... |
<commit_before>#include "rubymotion.h"
#include <dlfcn.h>
/// @class Scene < Node
/// This class represents a scene, an independent screen or stage of the
/// application workflow. A scene is responsible for handling events from the
/// device, providing a physics world for the sprites, and also starting the
/// game ... |
<commit_before>/*
* Copyright (C) 2011, Paul Tagliamonte
*
* 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, m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.