text stringlengths 54 60.6k |
|---|
<commit_before>/****************************************************************************
* Copyright (c) 2017 Zheng, Lei (realthunder) <realthunder.dev@gmail.com>*
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>/*************************************************************************
*
* $RCSfile: GroupManager.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2004-02-04 12:34:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz>
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 r... |
<commit_before>#include "FreeListAllocator.h"
#include "Utils.h" /* CalculatePaddingWithHeader */
#include <stdlib.h> /* malloc, free */
#include <cassert> /* assert */
#include <limits> /* limits_max */
#ifdef _DEBUG
#include <iostream>
#endif
FreeListAllocator::FreeListAllocator(const std::size_t totalSiz... |
<commit_before>/*
*
* Resource loader, functions for loading all supported data types
* - Loads scene information from json
* - Loads textures form TGA's
* - Loads models from 3ds
*
* TODO Change all functions to throw errors instead of return values
*
*/
#include "resourceloader.hpp"
#inclu... |
<commit_before>#ifdef _WIN32
#include "Socket.h"
#include "System/Log.h"
#include "System/Common.h"
#include "System/Platform.h"
#include <winsock2.h>
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif
unsigned long iftonl(const char* interface_);
/*
* The Socket implementation is tightly coupled with the
... |
<commit_before>/*
* Copyright (C) 2013-2016 Alexander Saprykin <xelfium@gmail.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 Foundation; either version 2 of the License, or
* (at your o... |
<commit_before>#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include <popt.h>
#include "defs.hh"
#include "StringSet.hh"
#include "FactorEncoder.hh"
#include "GreedyUnigrams.hh"
using namespace std;
void assert_single_chars(map<stri... |
<commit_before>/*!
* @file CatmullClark.cpp
* @brief Implementation of Catmull and Clark's subdivision scheme
*/
#include "CatmullClark.h"
namespace psalm
{
/*!
* Applies Catmull and Clark's subdivision algorithm to the given mesh.
* The mesh will be irreversibly _changed_ by this function.
*
* @param input_mesh Mes... |
<commit_before>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <SpikeHwIndication.h>
#include <SpikeHwRequest.h>
#include "dmaManager.h"
#include "spikehw.h"
#include <iostream>
#include <functional>
#ifdef REGISTER_SPIKE_DEVICES
#include <riscv/sim.h... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Daiki Maekawa and Chiba Institute of Technology.
* 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>/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Brad van der Laan
*
* 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 ... |
<commit_before>//
// vtTerrainScene - Container class for all of the terrains loaded
//
// Copyright (c) 2001 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "TerrainScene.h"
#include "Light.h"
#include "SkyDome.h"
#include "Terrain.h"
#include "TimeEngin... |
<commit_before>/******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
You ... |
<commit_before><commit_msg>New values.<commit_after><|endoftext|> |
<commit_before>#include "StableHeaders.h"
#include "Session.h"
//#include "MemoryLeakCheck.h"
#include "ServerInfo.h"
#include "PCMAudioFrame.h"
#include "Vector3D.h"
#include "EC_OgrePlaceable.h" // for avatar position
#include "EC_OpenSimPresence.h" // for avatar position
#include "ModuleManager.h" // for avatar i... |
<commit_before><commit_msg>Fixed PX4IO uploader debug output<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
**
** Copyright (C) Qxt Foundation. Some rights reserved.
**
** This file is part of the QxtBerkeley module of the Qt eXTension library
**
** This library is free software; you can redistribute it and/or modify it
** und... |
<commit_before>#include <stdio.h>
#include <ctype.h>
#include <iostream>
#include <fstream>
#include <string>
#include <metaUtils.h>
#include <metaObject.h>
#include <metaSurface.h>
//
// MetaSurface Constructors
//
MetaSurface::
MetaSurface()
:MetaObject()
{
if(META_DEBUG) std::cout << "MetaSurface()" << std::endl... |
<commit_before>//
// Alert system
//
#include <algorithm>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/foreach.hpp>
#include <map>
#include "alert.h"
#include "key.h"
#include "net.h"
#include "sync.h"
#include "ui_interface.h"
using namespace std... |
<commit_before>#include <type_traits>
/*
* Member function definitions of Analog template class.
* See analog.h for template class declaration.
*/
template <size_t N>
event_source_t Analog<N>::adc_event_source;
template <size_t N>
Analog<N>::Analog() : m_adc_buffer() { }
template <size_t N>
void Analog<N>::start... |
<commit_before>/*
* Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>#include "details/compiler/compiler.h"
#include "details/compiler/compdb.h"
#include "details/program/program.h"
#include "details/reporting/report.h"
#include "details/errors/errors.h"
#include "details/pass/a-src2ast/ast-from-source.h"
#include "details/pass/b-ast-normalize/normalize.h"
#include "detai... |
<commit_before>#include "PerspectiveCamera.h"
#define _USE_MATH_DEFINES
#include <cmath>
PerspectiveCamera::PerspectiveCamera()
: Camera() {
}
PerspectiveCamera::PerspectiveCamera(const Point3D& position, const Point3D& target, const uint32_t image_height, const uint32_t image_width, Renderer * renderer, const floa... |
<commit_before>class AliAnalysisGrid;
void RunAnalysisITS() {
//
// Macro to analyze ESDs from raw data reconstruction
// A.Dainese, andrea.dainese@pd.infn.it
//
//gSystem->Setenv("alien_CLOSE_SE","ALICE::CNAF::SE");
gSystem->SetIncludePath("-I. -I$ROOTSYS/include -I$ALICE_ROOT -I$ALICE_ROOT/include -I$AL... |
<commit_before>/*
------------------
Quadcopter Pilot
------------------
author : vincent jaunet
mail : vincent.jaunet(AT)hotmail(DOT)fr
- Initialization of PID
- Initialization of ESC
- Initialization of MPU6050
Copyright (c) <2014> <Vincent Jaunet>
Permission is hereby granted, free of charge,... |
<commit_before>// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
#if defined(HOST_OS_FUCHSIA)
#include "vm/thread_interrup... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
Version 1.1.0, packaged on March, 2009.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can re... |
<commit_before>/*
This file is part of Akregator.
Copyright (C) 2007 Frank Osterfeld <frank.osterfeld at kdemail.net>
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 versi... |
<commit_before>/*
* Copyright (C) 2012 Kolibre
*
* This file is part of kolibre-clientcore.
*
* Kolibre-clientcore 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 Licens... |
<commit_before>/*
* $Id: XMH323EndPoint.cpp,v 1.37 2008/08/29 08:50:22 hfriederich Exp $
*
* Copyright (c) 2005-2007 XMeeting Project ("http://xmeeting.sf.net").
* All rights reserved.
* Copyright (c) 2005-2007 Hannes Friederich. All rights reserved.
*/
#include "XMH323EndPoint.h"
#include <ptclib/random.h>
#in... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkPath.h"
#include "SkGradientShader.h"
#include "SkTypeface.h"
static SkShader* make_heatGradient(const SkPoin... |
<commit_before>#include<sstream>
#include<iostream>
#include<boost/lexical_cast.hpp>
#include"StringPartitionSet.h"
#include"myUtils.h"
#include"const.h"
using namespace cpb;
extern const int cpb::FAIL;
extern const int cpb::SUCCESS;
/***************************************************
* Author: C. Bleak ... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz>
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 r... |
<commit_before><commit_msg>aw: Minor trace event name fix<commit_after><|endoftext|> |
<commit_before>
// Copyright (c) 2013 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 "android_webview/native/aw_settings.h"
#include "android_webview/browser/renderer_host/aw_render_view_host_ext.h"
#include "... |
<commit_before>//
// protobuf_broker.cpp
// Projectname: amos-ss16-proj5
//
// Created on 28.05.2016.
// Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
//
// This file is part of the AMOS Project 2016 @ FAU
// (Friedrich-Alexander University Erlangen-Nürnberg)
//
// This program is free software: you can redistribut... |
<commit_before>/* Copyright (c) 2014, Chris Berger, Jesse Freitas, Severin Ibarluzea,
Kiana McNellis, Kienan Knight-Boehm, Sam Seng
All rights reserved.
This code is licensed using the BSD "3-Clause" license. Please refer to
"LICENSE.md" for the full license.
*/
#include <stdlib.h>
#include <string>
#include <iostream... |
<commit_before>//
// Copyright (c) 2008-2017 the Urho3D project.
// Copyright (c) 2017-2020 the rbfx project.
//
// 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, includ... |
<commit_before>
/*
pbrt source code Copyright(c) 1998-2010 Matt Pharr and Greg Humphreys.
This file is part of pbrt.
pbrt 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 t... |
<commit_before> // Yigit Suoglu Jul 29, 2016
// includes code detects from given threshold values and enviorement RGB values
#include "RGB_Detection.h"
void detect_rgb(unsigned short r, unsigned short g, unsigned short b, colorBit th_Val[8], bool & r_on, bool & g_on, bool & b_on)
{
if((r > th_Val[7].r_t) & (g > th_V... |
<commit_before>//----------------------------------------------------------------------------
// CalcDriver.cpp
//
// functions: main(void)
//----------------------------------------------------------------------------
#include <iostream>
#include <cstdlib>
#include "RPNCalc.h"
using namespace std;
//----------------... |
<commit_before>#include "GPU.H"
#include "PROFILE.H"
#include "PSXINPUT.H"
#include "SHADOWS.H"
#include "FXTRIG.H"
#include "TEXT_S.H"
#include <LIBETC.H>
#if PSXPC_TEST
#include <stdio.h>
#elif PSX_VERSION
#include <STDIO.H>
#endif
#include <EMULATOR.H>
#include <LIBGPU.H>
#include "CONTROL.H"
unsigned long GnFram... |
<commit_before>/*++
Module Name:
snap.cpp
Abstract:
Main entry point for the snap binary. Calls into the indexer, single-end aligner or
paired-end aligner functions defined in other source files in this directory.
Authors:
Matei Zaharia & Bill Bolosky, February, 2012
Environment:
User mode s... |
<commit_before>/*
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
*/
#include "checker/text_import.h"
#include "kernel/environment.h"
#include "kernel/inductive/inductive.h"
#include "kernel/type_checker.h"
#includ... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE "test_optimizers"
#include <boost/test/unit_test.hpp>
#include "math/abs.hpp"
#include "core/logger.h"
#include "core/minimize.h"
#include "math/random.hpp"
#include "math/numeric.hpp"
#include "math/epsilon.hpp"
#include "text/to_string.hpp"
#inclu... |
<commit_before>
//box
#include "box.hpp"
//default constructor unit box
Box::Box(std::string const& name) :
Shape{name, Material{"box_material", Color{0.0f,0.0f,0.0f},
Color{0.0f,0.0f,0.0f},
Color{0.0f,0.0f,0.0f},
0.0f}},
m_min{glm::vec3{0.0f}},
m_max{glm::vec3{1.0f}}
{}
//custom constructor
Box... |
<commit_before>/*
This file is part of BGSLibrary.
BGSLibrary 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 option) any later version.
BGSLibrary is distributed in ... |
<commit_before><commit_msg>Add a couple of SAL_INFOs to trace the vector refs<commit_after><|endoftext|> |
<commit_before>/*
* JBoss, Home of Professional Open Source
* Copyright 2008, Red Hat, Inc., and others contributors as indicated
* by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available t... |
<commit_before>/*
Copyright (c) 2012, 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:
* Redis... |
<commit_before>/* ===========================
*
* Copyright (c) 2013 Philippe Tillet - National Chiao Tung University
*
* FMinCL - Unconstrained Function Minimization on OpenCL
*
* License : MIT X11 - See the LICENSE file in the root folder
* ===========================*/
#ifndef FMINCL_DIRECTIONS_HP... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ItemPropertyMap.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 00:23:30 $
*
* The Contents of this file ar... |
<commit_before><commit_msg>fdo#37197: No legend entry for regression curve if not applicable<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2015, Nagoya University
* 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, t... |
<commit_before>/*
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Mar 10, 2014
*/
#include <string>
#include <iosfwd>
#include <stdexcept>
#include <tuple>
#include <iosfwd>
#include <type_traits>
#include "tpunit++.hpp"
#include "fakeit.hpp... |
<commit_before><commit_msg>AimGate for kick angle error margin dependant on gate distance.<commit_after><|endoftext|> |
<commit_before><commit_msg>Change the size of media cache Setting media cache too large caused creation of cache backend failed because rvargas is performing a experiment that limits cache size to ~240MB, respect such change.<commit_after><|endoftext|> |
<commit_before>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "scene/sceneLayer.h"
using namespace Tangram;
using Context = StyleContext;
// Functions to initialize SceneLayer instances
SceneLayer instance_a() {
Filter f = Filter(); // passes everything
DrawRule rule = { "dg0", "style_A", { { St... |
<commit_before>//
// TapePRG.cpp
// Clock Signal
//
// Created by Thomas Harte on 14/08/2016.
// Copyright © 2016 Thomas Harte. All rights reserved.
//
#include "TapePRG.hpp"
#include <sys/stat.h>
using namespace Storage;
TapePRG::TapePRG(const char *file_name) : _file(nullptr), _bitPhase(3), _filePhase(FilePha... |
<commit_before>#include "apitrace.h"
#include "loaderthread.h"
#include "saverthread.h"
#include <QDir>
ApiTrace::ApiTrace()
: m_frameMarker(ApiTrace::FrameMarker_SwapBuffers),
m_needsSaving(false)
{
m_loader = new LoaderThread(this);
connect(m_loader, SIGNAL(parsedFrames(const QList<ApiTraceFrame*... |
<commit_before>#include "operator.h"
#include <QPushButton>
#include <QJsonObject>
#include <QJsonDocument>
#include <QStandardPaths>
Operator::Operator(AdvancedView *advancedView, BasicView *basicView, CommandRunner *commandRunner,
ErrorMessage *errorMessage, ProgressWindow *progressWindow, Tray *... |
<commit_before>// @(#)root/g3d:$Name: $:$Id: TTUBE.cxx,v 1.6 2004/09/14 15:15:46 brun Exp $
// Author: Nenad Buncic 18/09/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before><commit_msg>fixed linux build error<commit_after><|endoftext|> |
<commit_before>/*
* This file is part of TelepathyQt4
*
* Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2009 Nokia Corporation
*
* 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 b... |
<commit_before>/*=========================================================================
Program: OpenIGTLink Library
Module: $RCSfile: itkImage.h,v $
Language: C++
Date: $Date: 2008/01/13 19:48:38 $
Version: $Revision: 1.142 $
Copyright (c) Insight Software Consortium. All rights reserved.... |
<commit_before>#ifndef HEADER_AUDIOCPP
#define HEADER_AUDIOCPP
#include "MT2D/MT2D_Terminal_Define.h"
#ifdef _DEBUG
#include <stdio.h>
#endif
#ifdef SDL_USE_AUDIO
#ifdef linux
#include <SDL2/SDL.h>
#include <SDL2/SDL_audio.h>
#include <SDL2/SDL_mixer.h>
#elif defined _WIN32
#include <SDL.h>
#include <SDL_... |
<commit_before>/*
Copyright 2016 Jonathan Bayle, Thomas Medioni
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 la... |
<commit_before>/*
* API for aborting asynchronous operations.
*
* The idea behind it is that functions starting an asynchronous
* operation return a pointer to a struct async_operation, which can
* be used to call async_operation_ref::Abort().
*
* author: Max Kellermann <mk@cm4all.com>
*/
/*
* How to implemen... |
<commit_before>#include "../aq_base.h"
#include <sstream>
#include <string>
#include "gtest/gtest.h"
#include "../../test_helpers/bart_test_helper.h"
class AQBaseTest : public ::testing::Test {
protected:
void SetUp();
template<int dim>
void OutputAQ();
dealii::ParameterHandler prm;
};
void AQBaseTest:... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the
* following conditions are met:
*
* The software must be used only for Non... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the
* following conditions are met:
*
* The software must be used only for Non... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>/*
* 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 option) any later version.
*
* Written (W) 2013 Heiko Strathmann
*/
#inclu... |
<commit_before>/***************************************************************************
* Copyright (C) 2004 by Stanislav Karchebny *
* Stanislav.Karchebny@kdemail.net *
* ... |
<commit_before>// Copyright 2013 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/command_line.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/media/webrtc_browsertest_base.h"
#include "c... |
<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/prerender/prerender_field_trial.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/me... |
<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/prerender/prerender_field_trial.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/me... |
<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/thumbnails/thumbnail_tab_helper.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profi... |
<commit_before>// Copyright (c) 2009 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/views/browser_actions_container.h"
#include "app/gfx/canvas.h"
#include "app/resource_bundle.h"
#include "bas... |
<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 <algorithm>
#include "base/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "chrome/browser/webdata/autofill_e... |
<commit_before>// Copyright (c) 2009 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/renderer/renderer_sandbox_support_linux.h"
#include "base/global_descriptors_posix.h"
#include "base/pickle.h"
#incl... |
<commit_before>// Copyright (C) 1999-2016
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"
#include <tkInt.h>
#include "pannertrue.h"
#include "util.h"
// Tk Canvas Widget Function Declarations
int PannerTrueColorCreateProc(T... |
<commit_before>/***************************************************************************
* tools/benchmark_disks.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2009 Johannes Singler <singler@ira.uka.de>
* Copyright (C) 2013 Timo Bingmann <tb@panthema.net>
*
* Distributed u... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>/*
Copyright (c) 2019, Ford Motor Company, Livio
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, this
list of ... |
<commit_before>
#include "FemusInit.hpp"
#include "MultiLevelProblem.hpp"
#include "VTKWriter.hpp"
#include "TransientSystem.hpp"
#include "NonLinearImplicitSystem.hpp"
#include "Marker.hpp"
#include "Line.hpp"
#include "Fluid.hpp"
#include "Solid.hpp"
#include "Parameter.hpp"
#include "NumericVector.hpp"
#include "a... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>#ifndef MIMOSA_HTTP_RESPONSE_WRITER_HH
# define MIMOSA_HTTP_RESPONSE_WRITER_HH
# include "../stream/stream.hh"
# include "../stream/direct-fd-stream.hh"
# include "../stream/buffer.hh"
# include "response.hh"
namespace mimosa
{
namespace http
{
class ServerChannel;
/**
* This stream b... |
<commit_before>// Copyright 2008 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 law ... |
<commit_before>#include "Vector3D.hpp"
#include <cmath>
using namespace RealRT;
Vector3D::Vector3D(float i, float j, float k)
{
_I = i;
_J = j;
_K = k;
}
explicit Vector3D::Vector3D(const float *values)
{
_I = values[0];
_J = values[1];
_K = values[2];
}
Vector3D(std::initializer_list<floa... |
<commit_before>//
// main.cpp
// Unit Tests
//
// Created by Evan McCartney-Melstad on 12/31/14.
// Copyright (c) 2014 Evan McCartney-Melstad. All rights reserved.
//
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "../cPWP/generateSimulatedData.h"
#includ... |
<commit_before>#include "V9Slice.h"
#include "VGlobal.h"
void V9Slice::updateTransform()
{
sf::Vector2f origin = sf::Vector2f(Origin.x * Size.x, Origin.y * Size.y);
float angle = -Angle * VFRAME_PI / 180.f;
float cosine = static_cast<float>(std::cos(angle));
float sine = static_cast<float>(std::sin(angle));
floa... |
<commit_before>#ifndef __VIDEO_PROCESSOR_HPP__
#define __VIDEO_PROCESSOR_HPP__
#include "opencv2/video/tracking.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
using namespace cv;
using namespace std;
struct VideoProcessor
{
VideoProcessor(VideoCapture &... |
<commit_before>#include "IFaceManager.h"
////////////////////////////////////////
CIFaceManager::~CIFaceManager()
{
}
////////////////////////////////////////
CIFaceManager::CIFaceManager()
{
IFaces[gameFactory].name = "CreateInterfaceFn gameFactory";
IFaces[interfaceFactory].name = "CreateInterfaceFn interfaceFact... |
<commit_before>#include "btcwif.h"
#include <cassert>
#include <ecdsa/base58.h>
#include "utils.h"
namespace btc {
namespace wif {
std::string PrivateKeyToWif(const std::vector<uint8_t> &priv_key) {
// 0. Preparing...
std::vector<uint8_t> pk2(priv_key.size() + 1);
// 1. 0x80 to front.
pk2[0] = 0x80;
mem... |
<commit_before>#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <ros/ros.h>
#include <sensor_msgs/image_encodings.h>
#include <string.h>
#include <vector>
#include "SubImageRecognition/ImgRecObject.h"
#include "SubImageRecognition/ListAlgorit... |
<commit_before>#include <nan.h>
#include "addon.h"
#include "dvbtee-parser.h"
TableData::TableData(const uint8_t &tableId, const std::string &decoderName, const std::string &json)
: tableId(tableId)
, decoderName(decoderName)
, json(json)
{}
////////////////////////////////////////
uv_async_t TableReceiver::m_async;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.