text stringlengths 54 60.6k |
|---|
<commit_before>/***********************************************************************
OpenSync Plugin for KDE 3.x
Copyright (C) 2004 Stewart Heitmann <sheitmann@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 ... |
<commit_before>// Copyright (c) 2017-2019 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 <consensus/tx_verify.h>
#include <consensus/consensus.h>
#include <primitives/transaction.h>
#includ... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// QUESO - a library to support the Quantification of Uncertainty
// for Estimation, Simulation and Optimization
//
// Copyright (C) 2008,2009,2010,... |
<commit_before>/*
* Copyright (c) 2007 MIPS Technologies, Inc.
* 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, thi... |
<commit_before>#ifndef ENTT_META_CONTAINER_HPP
#define ENTT_META_CONTAINER_HPP
#include <array>
#include <map>
#include <set>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "../container/dense_map.hpp"
#include "../container/dense_set.hpp"
#include "meta.hpp"
#inclu... |
<commit_before>const int MAX = 400;
vector<vector<int> > adjlist;
int res[MAX][MAX], n, s, t;
int find_path() {
const int inf = int(1e9 + 7);
vector<int> visited(n, 0), from(n, -1);
queue<int> q;
int u, v, f;
q.push(s);
visited[s] = true;
while (!visited[t] && !q.empty()) {
u = q.front();
q.pop(... |
<commit_before>/*
* fiberrenderer.cpp
*
* Created on: 28.12.2012
* @author Ralph Schurade
*/
#include "tuberenderer.h"
#include "tuberendererthread.h"
#include "glfunctions.h"
#include "../../data/enums.h"
#include "../../data/datasets/fiberselector.h"
#include "../../data/properties/propertygroup.h... |
<commit_before>#include "qhalgroup.h"
#include "debughelper.h"
QHalGroup::QHalGroup(QQuickItem *parent) :
QQuickItem(parent),
m_halgroupUri(""),
m_name("default"),
m_ready(false),
m_sState(Down),
m_connectionState(Disconnected),
m_error(NoError),
m_errorString(""),
m_containerItem(t... |
<commit_before>/*
* This file is part of `et engine`
* Copyright 2009-2013 by Sergey Reznik
* Please, do not modify content without approval.
*
*/
#include <fstream>
#include <libpng/png.h>
#include <et/imaging/imagewriter.h>
using namespace et;
bool internal_writePNGtoFile(const std::string& fileN... |
<commit_before>/* Please refer to license.txt */
#pragma once
#undef interface // For some reason, the Win32 API defined 'interface' as 'struct'... *sigh*
#include <string>
#include <map>
#include <CEGUI/CEGUI.h>
#include <CEGUI/RendererModules/OpenGL/GLRenderer.h>
#include <SFML/Graphics.hpp>
namespace GEngine
{... |
<commit_before>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2007 Andrew Manson <g.real.ate@gmail.com>
//
#include "GpsTracking.h... |
<commit_before>#include <stack>
#include <memory>
#include <iostream>
#include <tinyxml2.h>
#include "scene.h"
#include "film/color.h"
#include "loaders/load_scene.h"
#include "volume/volume.h"
#include "volume/homogeneous_volume.h"
#include "volume/geometry_volume.h"
#include "volume/exponential_volume.h"
#include "vo... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: style.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2008-03-12 13:08:24 $
*
* The Contents of this file are made ava... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: extrusioncontrols.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:36:10 $
*
* The Contents of this file ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chardlg.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-10-12 12:06:51 $
*
* The Contents of this file are made ... |
<commit_before>//
// use implicit modeller to create a logo
//
#include "vtk.h"
main ()
{
vtkRenderer *aRenderer = vtkRenderer::New();
vtkRenderWindow *ourRenderingWindow = vtkRenderWindow::New();
ourRenderingWindow->AddRenderer(aRenderer);
vtkRenderWindowInteractor *ourInteractor = vtkRenderWindowInterac... |
<commit_before>// RUN: cat %s | %cling -Xclang -verify
// Actually test clang::DeclContext::removeDecl(). This function in clang is
// the main method that is used for the error recovery. This means when there
// is an error in cling's input we need to revert all the declarations that came
// in from the same transa... |
<commit_before><commit_msg>cppcheck: multiCondition<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2008, Willow Garage, Inc.
* 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
* ... |
<commit_before>// $Id$
// (c) Guido Kanschat
//
// Show the shape functions implemented.
#include <base/quadrature_lib.h>
#include <base/logstream.h>
#include <lac/vector.h>
#include <grid/tria.h>
#include <grid/tria_iterator.h>
#include <dofs/dof_accessor.h>
#include <grid/grid_generator.h>
#include <fe/fe_q.h>
#incl... |
<commit_before>#include "Midi.h"
#include "MidiClock.h"
// #include "GUI.h"
#define MIDI_NOTE_OFF_CB 0
#define MIDI_NOTE_ON_CB 1
#define MIDI_AT_CB 2
#define MIDI_CC_CB 3
#define MIDI_PRG_CHG_CB 4
#define MIDI_CHAN_PRESS_CB 5
#define MIDI_PITCH_WHEEL_CB 6
const midi_parse_t midi_parse[]... |
<commit_before>/*
* Copyright (C) 2017 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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, either version 3 of the License, or
* (at your op... |
<commit_before>#include "tests/Base.hh"
#include "topology/Mesh.hh"
#include "topology/MorseSmaleComplex.hh"
#include <vector>
void test1()
{
ALEPH_TEST_BEGIN( "Simple mesh");
aleph::topology::Mesh<double> M;
M.addVertex( 0.0, 0.0, 0.0 );
M.addVertex( 0.0, 1.0, 0.0 );
M.addVertex( 1.0, 0.0, 0.0 );
M.ad... |
<commit_before>/*
* Copyright 2010-2015 Branimir Karadzic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "test.h"
#include <bx/uint32_t.h>
TEST(StrideAlign)
{
CHECK(0 == bx::strideAlign(0, 12) );
for (uint32_t ii = 0; ii < 12; ++ii)
{
CHECK(12 == bx::strideAlign(... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl>
* Copyright (C) 2010 Dan Leinir Turthra Jensen <admin@leinir.dk>
*
* This library is free software; you can r... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#define MAX 0x100
struct TStack {
int stack[MAX];
int next;
};
// todo: Protect the stack from pushing data beyond MAX.
void push(int value, struct TStack *store){
// store.stack[(*store).next++] = value;
store->stack[store->next++] = value;
}
//... |
<commit_before>#include "GLFramebuffer.h"
#include "de/hackcraft/opengl/GL.h"
unsigned int GLFramebuffer::getFramebuffer() {
return framebuffer;
}
unsigned int GLFramebuffer::getColorbuffer() {
return colorbuffer;
}
unsigned int GLFramebuffer::getDepthbuffer() {
return depthbuffer;
}
unsigned int G... |
<commit_before>#include <idmlib/resys/incremcf/IncrementalItemCF.h>
#include <util/PriorityQueue.h>
#include <map>
#include <algorithm>
#include <cmath> // for sqrt
#include <glog/logging.h>
namespace
{
struct QueueItem
{
QueueItem(uint32_t itemId = 0, float weight = 0)
:itemId_(itemId)
,weight... |
<commit_before>/**
* \file vtkFbxExporter.cxx
* 2012-06-01 LB Initial implementation
*
* Implementation of vtkFbxExporter class
*/
// ** INCLUDES **
#include "vtkFbxExporter.h"
#include "vtkFbxConverter.h"
#include "vtkAssemblyNode.h"
#include "vtkAssemblyPath.h"
#include "vtkObjectFactory.h"
#include "vtkRender... |
<commit_before>
#include "Stack.h"
#include <vector>
#include <iostream>
#include <iomanip>
#include <cstdint>
#include <cassert>
#include <llvm/IR/Function.h>
#ifdef _MSC_VER
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif
namespace evmcc
{
struct i256
{
uint64_t a;
uint64_t b;
uint64_t c;
... |
<commit_before>#include "pbview.h"
#include <cinttypes>
#include <cstdio>
#include <cstring>
#include <ncurses.h>
#include <iostream>
#include <sstream>
#include "config.h"
#include "configcontainer.h"
#include "dllist.h"
#include "download.h"
#include "fmtstrformatter.h"
#include "help.h"
#include "listformatter.h"
... |
<commit_before>// SA:MP Profiler plugin
//
// Copyright (c) 2011 Zeex
//
// 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
//
// ... |
<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>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2006-2007 Torsten Rahn <tackat@kde.org>
// Copyright 2007 Inge Walli... |
<commit_before>#include "robobo.h"
int main(int argc, char** argv) {
std::string workingDir (argv[0]);
workingDir = workingDir.substr(0, workingDir.find_last_of('/'));
std::string confName ("robobo.conf");
unsigned short debugLevel = 0;
if (argc > 1) {
opterr = 0;
option validOptions[] = {
{"help", 0, null... |
<commit_before>#include "switch.h"
#include <functional>
using namespace std::placeholders;
Switch::Switch(const char* name, bool isSmart, int inputPin, int outputPin)
: _name(name),
_inputPin(inputPin),
_outputPin(outputPin),
_isSmart(isSmart)
{
_input = new Pressing(inputPin, HIGH, 400);
auto didPressButto... |
<commit_before>// Copyright 2012 the V8 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.
#include "src/v8.h"
#include "src/version.h"
// These macros define the version number for the current version.
// NOTE these macros ar... |
<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>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<commit_before>/*************************************************************************
*
* $RCSfile: elementexport.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2003-12-01 12:03:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/*************************************************************************
*
* $RCSfile: proxyaggregation.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2003-05-19 12:56:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>#include <sys/time.h>
#include "thread_private.h"
#include "parameters.h"
#include "exception.h"
bool align_req = false;
int align_size = PAGE_SIZE;
extern struct timeval global_start;
class cleanup_callback: public callback
{
rand_buf *buf;
ssize_t read_bytes;
int thread_id;
thread_private *thre... |
<commit_before>#ifndef ITER_SLIDING_WINDOW_HPP_
#define ITER_SLIDING_WINDOW_HPP_
#include "internal/iterator_wrapper.hpp"
#include "internal/iteratoriterator.hpp"
#include "internal/iterbase.hpp"
#include <deque>
#include <iterator>
#include <utility>
namespace iter {
namespace impl {
template <typename Contai... |
<commit_before>/**
* Process control - running other tasks and manipulating their input/output
*/
#include <v8.h>
#include <string>
#include "js_macros.h"
#include <stdlib.h>
namespace {
JS_METHOD(_system) {
if (args.Length() != 1) {
return JS_EXCEPTION("Wrong argument count. Use include(\"process\").system(\"c... |
<commit_before>/**
* Process control - running other tasks and manipulating their input/output
*/
#include <v8.h>
#include <string>
#include "js_macros.h"
#include <stdlib.h>
namespace {
JS_METHOD(_system) {
if (args.Length() != 1) {
return JS_EXCEPTION("Wrong argument count. Use include(\"process\").system(\"c... |
<commit_before>#include "../src/meshoptimizer.h"
#define CGLTF_IMPLEMENTATION
#include "cgltf.h"
const char* getError(cgltf_result result)
{
switch (result)
{
case cgltf_result_file_not_found:
return "file not found";
case cgltf_result_io_error:
return "I/O error";
case cgltf_result_invalid_json:
return ... |
<commit_before>// Copyright 2011 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>//
// Copyright (c) 2002-2010 The ANGLE 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.
//
// Framebuffer.cpp: Implements the gl::Framebuffer class. Implements GL framebuffer
// objects and related functionalit... |
<commit_before>/**
* @file broker.hpp
* @brief Component Broker
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 21
* @details
*/
#ifndef _COSSB_BROKER_HPP_
#define _COSSB_BROKER_HPP_
#include <map>
#include <string>
#include "interface/icomponent.hpp"
#include "arch/singleton.hpp"
#include ... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <boost/foreach.hpp>
using namespace std;
class HDB3Parser
{
public:
vector<string> Encode(vector<string> data)
{
this->_resultData = data;
EncodeToHDB3();
return this->_resultData;
}
vector<string> Decode(vector<string> data)
... |
<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 "base/process.h"
#include "base/logging.h"
#include "base/process_util.h"
#include "base/scoped_ptr.h"
namespace base {
... |
<commit_before>// Copyright 2014 BVLC and contributors.
//
// This is a simple script that allows one to quickly test a network whose
// structure is specified by text format protocol buffers, and whose parameter
// are loaded from a pre-trained network.
// Usage:
// test_net net_proto pretrained_net_proto iteration... |
<commit_before>/*
* LicenseReader.cpp
*
* Created on: Mar 30, 2014
*
*/
#ifdef _WIN32
# pragma warning(disable: 4786)
#else
# include <unistd.h>
#endif
#include <cstring>
#include <ctime>
#include <vector>
#include <iostream>
#include <iterator>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#in... |
<commit_before>
#include <vector>
#include <cassert>
#include "types.hpp"
#include "fftwmpi.hpp"
#include "particle.hpp"
int pic_fft(int argc, char* argv[]) {
// Temp test params
const int nt = 1;
const int ppc = 1;
// Global problem setup
const FLOAT Lz = 2*M_PI;
const FLOAT Ly = 2*M_PI;
const FLOAT... |
<commit_before>// -*-coding:utf-8-unix;-*-
// refactry from
// https://github.com/scylladb/seastar/blob/master/core/thread.cc
//
#pragma once
#ifdef __APPLE__
#define _XOPEN_SOURCE 700
#endif // __APPLE__
//
#include <ucontext.h>
#include <setjmp.h>
#include "macros.hh"
//
namespace NAMESPACE {
//
// usage
// struct _C... |
<commit_before>#include "mtrace.h"
#if MTRACE
// Tell mtrace about switching threads
struct kstack_tag {
int val __mpalign__;
};
extern struct kstack_tag kstack_tag[NCPU];
// Tell mtrace about switching threads/processes
template<typename Ret, typename... Args>
static inline void mtstart(Ret (*ip)(Args...), struct p... |
<commit_before>#include <iostream>
#include <iomanip>
#include <fstream>
using namespace std;
class Matrix
{
private:
int **matr;
int st, cl;
public:
Matrix();
Matrix(int, int);
Matrix(Matrix &matrс);
~Matrix();
Matrix operator+ (const Matrix &mat_2) const;
Matrix operator* (const Matrix &mat_2) const;
Matr... |
<commit_before>#include <iostream>
class matrix_t final
{
private:
unsigned int rows_;
unsigned int columns_;
int** elements_;
public:
matrix_t() noexcept;
auto rows() -> unsigned int;
auto columns() -> unsigned int;
};
<commit_msg>Update matrix.hpp<commit_after>using namespace std;
class Matr... |
<commit_before>///////////////////////////////////////////////////////////////////////////////////
// Tryx Plugin System made by Avra Neel Chakraborty //
// //
// Copyright (c) 2017 Avra Neel Chakraborty ... |
<commit_before>#ifndef STRONG_STRONG_HPP
#define STRONG_STRONG_HPP
#include <type_traits>
#include <utility>
/**
* Namespace for creating strong typedefs.
*/
namespace strong {
/**
* A strong typedef wrapper around some Type.
*
* Allows the programmer to define a strong type to avoid comparing values that have ... |
<commit_before>#pragma once
#include "IShapeEditor.hpp"
namespace Component {
class Physics;
}
namespace GUI {
/// Plane shape editor for physics components.
class PlaneShapeEditor : public IShapeEditor {
public:
/// Plane type label.
/**
* @return "Plane" st... |
<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 "xtreemfs/dir_proxy.h"
using namespace xtreemfs;
DIRProxy::~DIRProxy()
{
for ( std::map<std::string, CachedAddressMappings*>::itera... |
<commit_before>#include <iostream>
#include <string>
#include "src/Options.hpp"
#include "src/Cluster.hpp"
#include <map>
using namespace std;
int main(int argc, char *argv[]){
std::map<string,string > options2;
options2["eps_iter"] = "1e-4";
/* Dirichlet, lumped */
options2... |
<commit_before>/**
* @file
* Zenderer/Math/zVector.hpp - A vector class representing a position
* in 3D (or 2D) space, fully supporting the mathematical operations
* typical of such a structure.
*
* @author George Kudrayvtsev (halcyon)
* @version 1.5.1
* @copyright Apache License v2.0
* Licensed... |
<commit_before>// (C) Copyright Gennadiy Rozental 2001-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
/// @file
/// @brief Entry p... |
<commit_before>/****************************************************************************/
/* Copyright 2005-2006, Francis Russell */
/* */
/* Licensed under the Apache License, Version 2.0 (the License); ... |
<commit_before>#ifndef HTOOL_PRECONDITIONER_HPP
#define HTOOL_PRECONDITIONER_HPP
#include "matrix.hpp"
#include "lapack.hpp"
#include "wrapper_mpi.hpp"
#include "wrapper_hpddm.hpp"
namespace htool{
template<template<typename> class LowRankMatrix, typename T>
class DDM{
private:
int n;
int n_inside;
const std:... |
<commit_before>#ifndef IM_STR_CONFIG_HPP
#define IM_STR_CONFIG_HPP
// clang format doesn't indent neste #if blocks, so lets do it manually
// clang-format off
// In c++20, our destructor can be declared constexpr
// that then propagetes to many member functions of im_str.
#ifndef IM_STR_USE_CONSTEXPR_DESTRUCTOR
#if ... |
<commit_before>#ifndef KGR_KANGARU_INCLUDE_KANGARU_DETAIL_ERROR_HPP
#define KGR_KANGARU_INCLUDE_KANGARU_DETAIL_ERROR_HPP
#include "traits.hpp"
#include "service_traits.hpp"
namespace kgr {
namespace detail {
template<typename T, typename... Args>
struct ServiceError {
template<typename Arg, typename Service = T, en... |
<commit_before>#ifndef LIBPORT_SINGLETON_PTR_HH
# define LIBPORT_SINGLETON_PTR_HH
# define STATIC_INSTANCE(Cl, Name) \
class Cl ## Name; \
libport::SingletonPtr<Cl ## Name> Name; \
template<> Cl ## Name* libport::SingletonPtr<Cl ## Name>::ptr = 0
# define STATIC_INSTANCE_DECL(Cl, Name) \
class C... |
<commit_before>#pragma once
#include <NvInfer.h>
#include <DO/Shakti/Utilities/ErrorCheck.hpp>
#include <array>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <vector>
namespace DO::Sara::TensorRT {
//! @ingroup NeuralNetworks
//! @defgroup TensorRT
//!... |
<commit_before>/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
#include <aws/core/Aws.h>
#include <aws/core/utils/threading/Semaphore.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/transcribestreaming/TranscribeStreamingService... |
<commit_before>/*
* Qumulus UML editor
* Author: Randy Thiemann
*
*/
#include "QumulusApplication.h"
#include <Gui/Widgets/StyleType.h>
#include <Gui/Widgets/SideBar.h>
#include <Gui/Widgets/StatusBar.h>
QUML_BEGIN_NAMESPACE_GC
QumulusApplication::QumulusApplication(int& argc, char** argv) :
QApplication(ar... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>#ifndef INCLUDE_AL_GRAPHICS_HPP
#define INCLUDE_AL_GRAPHICS_HPP
/*
Copyright (C) 2006-2008. The Regents of the University of California (REGENTS).
All Rights Reserved.
Permission to use, copy, modify, distribute, and distribute modified versions
of this software and its documentation without fee a... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>#pragma once
#include <iostream>
#include <eigen/Dense>
template<typename Type>
struct SimplexSolver {
Eigen::Matrix<Type, Eigen::Dynamic, Eigen::Dynamic> matrix;
// see https://www.youtube.com/watch?v=Axg9OhJ4cjg (german) bottom row is negative unlike in the video
// TODO< handle special cases... |
<commit_before>#ifndef _CPP_CALLSEQUENCE_HPP_
#define _CPP_CALLSEQUENCE_HPP_
#include <tuple>
namespace toolbox
{
namespace cpp
{
template<typename... Functors>
class call_seq
{
public:
call_seq(Functors... functors) :
functors_(functors...)
{}
template<typename... Args>
void operator()(Args&&... args)
{
e... |
<commit_before>#pragma once
#include <gcl/mp/concepts.hpp>
#include <concepts>
namespace gcl::mp::value_traits
{
template <auto... values>
struct sequence {
constexpr static auto size = sizeof...(values);
};
template <auto... values>
requires(std::equality_comparable_with<
de... |
<commit_before>/**
* @file _httppolicy.cpp
* @brief Internal definitions of the Http policy thread
*
* $LicenseInfo:firstyear=2012&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2012-2013, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it ... |
<commit_before>/**
* @file lllandmarklist.cpp
* @brief Landmark asset list class
*
* $LicenseInfo:firstyear=2002&license=viewergpl$
*
* Copyright (c) 2002-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you under t... |
<commit_before><commit_msg>use the correct flag to remove notes<commit_after><|endoftext|> |
<commit_before><commit_msg>Avoid expensive allocation & deallocation of local vector on every call.<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: tpcalc.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: hr $ $Date: 2004-05-10 16:04:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*
Copyright (C) 2005 Steven L. Scott
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 version.
This... |
<commit_before>#include "vtkSmartPointer.h"
#include "vtkActor.h"
#include "vtkCamera.h"
#include "vtkDoubleArray.h"
#include "vtkPoints.h"
#include "vtkPointData.h"
#include "vtkPolyData.h"
#include "vtkProperty.h"
#include "vtkProperty2D.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include... |
<commit_before>#include "mem/cache/tags/wplru.hh"
#include "base/intmath.hh"
#include "debug/CacheRepl.hh"
#include "mem/cache/tags/cacheset.hh"
#include "mem/cache/tags/lru.hh"
#include "mem/cache/base.hh"
#include "sim/core.hh"
#include "mem/cache/blk.hh"
#include <typeinfo>
WPLRU::WPLRU( unsigned _numSets,
... |
<commit_before><commit_msg>Fixed the wrong keyboard selection behavior in reference mode.<commit_after><|endoftext|> |
<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 "base/logging.h"
#include "media/base/callback.h"
#include "media/base/media.h"
#include "remoting/base/capture_data.h"
#inclu... |
<commit_before>#include "SkCanvas.h"
#include "SkColorPriv.h"
#include "SkGraphics.h"
#include "SkImageEncoder.h"
#include "SkNWayCanvas.h"
#include "SkPicture.h"
#include "SkString.h"
#include "SkTime.h"
#include "SkBenchmark.h"
static void erase(SkBitmap& bm) {
if (bm.config() == SkBitmap::kA8_Config) {
... |
<commit_before>/* Copyright 2016 Carnegie Mellon University
*
* 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 a... |
<commit_before>#include <windows.h>
#include <OvRender.h>
#include "d3d8overlay.h"
#include "d3d9overlay.h"
#include "dxgioverlay.h"
#include "ddraw\ddrawoverlay.h"
Dx8Overlay* OvDx8Overlay;
Dx9Overlay* D3D9Overlay;
DxgiOverlay* DXGIOverlay;
DDrawOverlay* DirectDrawOverlay;
extern CRITICAL_SECTION OvCritic... |
<commit_before>/**
* @file
*
* @brief Source for yanlr plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
// -- Imports ------------------------------------------------------------------------------------------------------------------------------
#include <iostream>
#include... |
<commit_before><commit_msg>coverity#736943 Untrusted loop bound<commit_after><|endoftext|> |
<commit_before>/*
This file is part of KAddressBook.
Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
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>///
/// @file iterator.cpp
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/config.hpp>
#include <primesieve/pmath.hpp>
#include <primesieve/PrimeFinder.h... |
<commit_before>/*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2015] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.