text stringlengths 54 60.6k |
|---|
<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.
// A general interface for filtering and only acting on classes in Chromium C++
// code.
#include "ChromeClassTester.h"
#include <sys... |
<commit_before>// Copyright 2006-2012, the V8 project authors. 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
// no... |
<commit_before>#pragma once
#include <type_traits>
#include <boost/mpl/contains.hpp>
#include <boost/mpl/vector.hpp>
#include "value.hpp"
namespace blackhole {
namespace attribute {
/*!
* Helper metafunction that checks if the type `T` is compatible with attribute
* internal implementation, i.e. `attribute::val... |
<commit_before>// $Id: fe_hermite.C,v 1.6 2007-05-23 23:36:11 roystgnr Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License... |
<commit_before>/*
* Copyright (C) 2003-2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
... |
<commit_before>
#include "ttimer.h"
#include "texception.h"
#ifdef _WIN32
#include <windows.h>
//moto strano: se togliamo l'include della glut non linka
#include <GL/glut.h>
//------------------------------------------------------------------------------
namespace
{
void CALLBACK ElapsedTimeCB(UINT uID, UINT uMs... |
<commit_before>/*
*
* Copyright 2015 gRPC 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 applicab... |
<commit_before>#define DEBUG 1
/**
* File : C.cpp
* Author : Kazune Takahashi
* Created : 3/14/2020, 9:03:01 PM
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdi... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>#include "FlowJunction.h"
#include "Conversion.h"
#include "Simulation.h"
#include "Pipe.h"
#include "FEProblem.h"
#include "Factory.h"
#include <sstream>
template<>
InputParameters validParams<FlowJunction>()
{
InputParameters params = validParams<Junction>();
params.addRequiredParam<UserObjectNa... |
<commit_before>// Time: O(logn * nlogx * logx) = O(1)
// Space: O(nlogx) = O(1)
class Solution {
public:
double myPow(double x, int n) {
double result = 1;
long long abs_n = abs(static_cast<long long>(n));
while (abs_n > 0) {
if (abs_n & 1) {
result *= x;
... |
<commit_before>/*
* RToolsInfo.cpp
*
* Copyright (C) 2009-19 by RStudio, PBC
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Pub... |
<commit_before>/*
* RToolsInfo.cpp
*
* Copyright (C) 2009-18 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Pu... |
<commit_before><commit_msg>fastuidraw/painter/stroked_caps_joins: bug fix<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sbxconv.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-10-12 14:32:25 $
*
* The Contents of this file are made ... |
<commit_before>#include "extlineedit.h"
#include <QPushButton>
#include <QIcon>
#include <QPropertyAnimation>
#include <QSignalTransition>
CExtLineEdit::CExtLineEdit(QWidget* parent)
: QLineEdit(parent)
, m_animated(true)
, m_animationDurationMS(500)
, m_clearButton(new QPushButton(this))
, m_text... |
<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-CHROMIUM file.
#include "browser/url_request_context_getter.h"
#include <algorithm>
#include "browser/network_delegate.h"
#include "base/c... |
<commit_before><commit_msg>Solution of prob 10<commit_after>#include <stdio.h>
int count(const int *numbers_a, const int *numbers_b, const int size_a, const int size_b, const int index_a, const int index_b)
{
/* base case */
if(index_a >= size_a || index_b >= size_b) return 0;
/* recursive case */
if(... |
<commit_before>/*
* Copyright (C) 2013 midnightBITS
*
* 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>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file JavascriptInstance.cpp
* @brief Javascript script instance used wit EC_Script.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MemoryLeakCheck.h"
#include "JavascriptInstance.h"
#... |
<commit_before>/*
* Copyright 2010,
* François Bleibel,
* Olivier Stasse,
*
* CNRS/AIST
*
* This file is part of sot-dynamic.
* sot-dynamic 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, eith... |
<commit_before>/// HEADER
#include <csapex/utility/subprocess.h>
#include <csapex/utility/assert.h>
/// SYSTEM
#include <iostream>
#include <boost/optional.hpp>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/containers/string.hpp>
#include <boost/interprocess/sync/interprocess_mut... |
<commit_before>/*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
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... |
<commit_before>#include <iostream>
#include <Poco/Logger.h>
#include <Poco/Message.h>
#include <Poco/File.h>
#include <Poco/Util/Option.h>
#include <Poco/Util/OptionSet.h>
#include <Poco/Util/HelpFormatter.h>
#include <Poco/Util/ServerApplication.h>
#include "server/MongooseServer.h"
#include "di/DependencyInjector.h"... |
<commit_before>//=====================================================================//
/*! @file
@brief VS1063a を使った、オーディオプレイヤー @n
・P73/SO01 (26) ---> VS1063:SI (29) @n
・P74/SI01 (25) ---> VS1063:SO (30) @n
・P75/SCK01(24) ---> VS1063:SCLK (28) @n
・P52 (35) ---> VS1063:/xCS (23) @n
・P5... |
<commit_before>#include "ProcessEvent.h"
#include <specialized/eventbackend.h>
#if defined(__linux__)
#include <linux/version.h>
#elif !defined(KERNEL_VERSION)
#define LINUX_VERSION_CODE 0
#define KERNEL_VERSION(a, b, c) 0
#endif
#if defined(__linux__) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) /* Linux 2.6.15+... |
<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 "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#incl... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/frame/app_non_client_frame_view_ash.h"
#include "ash/wm/workspace/frame_maximize_button.h"
#include ... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/*
* Copyright 2019,
* Olivier Stasse,
*
* CNRS/AIST
*
*/
#include <iostream>
#include <sot/core/debug.hh>
#ifndef WIN32
#include <unistd.h>
#endif
using namespace std;
#include <boost/test/unit_test.hpp>
#include <dynamic-graph/entity.h>
#include <dynamic-graph/factory.h>
#include <sot/core/de... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "AvatarModule.h"
#include "AvatarEditing/AvatarEditor.h"
#include "InputAPI.h"
#include "Scene.h"
#include "SceneAPI.h"
#include "AssetAPI.h"
#include "GenericAssetFactory.h"
#include "Null... |
<commit_before>/*
* Copyright 2018 Universidad Carlos III de Madrid
*
* 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 r... |
<commit_before><commit_msg>bustage fix - file moved<commit_after><|endoftext|> |
<commit_before>
#include "cmath" // For isnan(), when it's defined
#include "diff_system.h"
#include "equation_systems.h"
#include "libmesh_logging.h"
#include "linear_solver.h"
#include "newton_solver.h"
#include "numeric_vector.h"
#include "sparse_matrix.h"
#include "dof_map.h"
NewtonSolver::NewtonSolver (sys_type... |
<commit_before>
#include "diff_system.h"
#include "equation_systems.h"
#include "linear_solver.h"
#include "newton_solver.h"
#include "numeric_vector.h"
#include "sparse_matrix.h"
NewtonSolver::NewtonSolver (sys_type& s) :
Parent(s), linear_solver(LinearSolver<Number>::build())
{
}
NewtonSolver::~NewtonSolver ()... |
<commit_before>#include "shader.h"
#include "mesh.h"
#include "texture.h"
#include <glm/gtc/type_ptr.hpp>
#include <stdexcept>
#include <fstream>
namespace te
{
std::string getShaderLog(GLuint shader)
{
if (!glIsShader(shader))
{
throw std::runtime_error("Passed ID is not a shader... |
<commit_before>
// Camera.cpp
// InternetMap
//
#include "Camera.hpp"
#include <stdlib.h>
static const float MOVE_TIME = 1.0f;
static const float MIN_ZOOM = -10.0f;
//we need a bound on the max. zoom because on small nodes the calculated max puts the target behind the camera.
//this might be a bug in targeting...?
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkScalarsToColors.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redis... |
<commit_before>/**
* @file HOGDescriptor_.cpp
* @brief mex interface for HOGDescriptor
* @author Kota Yamaguchi
* @date 2012
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
namespace {
/// Last object id to allocate
int last_id = 0;
/// Object container
map<int,HOGDescriptor> obj_;
/** Histo... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NeonHeadRequest.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2006-07-19 09:34:54 $
*
* The Contents of this file ar... |
<commit_before>//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2016 Michael Fink
//
/// \file GPhoto2Common.cpp gPhoto2 - Common functions
//
// includes
#include "stdafx.h"
#include "GPhoto2Common.hpp"
#include "GPhoto2SourceInfoImpl.hpp"
#include "GPhoto2Include.hpp"
void GPhoto2::Check... |
<commit_before>/***********************************************************************************
** MIT License **
** **
** Copyright (c) 2017 Victor DENIS (victordenis01@... |
<commit_before>#include <QList>
#include "Connection.hpp"
#include "ForwardingSender.hpp"
#include "RelayEdge.hpp"
#include "RelayForwarder.hpp"
namespace Dissent {
namespace Connections {
RelayForwarder::RelayForwarder(const Id &local_id, const ConnectionTable &ct,
RpcHandler &rpc) :
_local_id(local_id),... |
<commit_before>#include "TriangleMesh.hpp"
#include <Core/Geometry/TriangleOperation.hpp> // triangleArea
namespace Ra {
namespace Core {
namespace Geometry {
inline AttribArrayGeometry ::AttribArrayGeometry( const AttribArrayGeometry& other ) :
AbstractGeometry( other ) {
m_vertexAttribs.copyAllAttributes( o... |
<commit_before>/***********************************************************************
created: Tue Feb 17 2009
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Copyright (C)... |
<commit_before>#include "RedBlackTree.h"
#include <algorithm>
#include <cassert>
#include <utility>
#define RED 'R'
#define BLACK 'B'
RbNode RBNIL = {BLACK, -1, &RBNIL, &RBNIL, &RBNIL};
#define is_nil(e) ((e) == &RBNIL)
#define not_nil(e) ((e) != &RBNIL)
#define set_nil(e) ((e) = &RBNIL)
#define is_leaf(e) (is_nil((... |
<commit_before>#include "GolfBall.hpp"
#include "../Resources.hpp"
#include "Default3D.vert.hpp"
#include "Default3D.geom.hpp"
#include "Default3D.frag.hpp"
#include "glm\gtc\constants.hpp"
GolfBall::GolfBall(BallType ballType) : Object() {
active = false;
modelGeometry = new Geometry::Model("Resources/Models/ro... |
<commit_before>#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <direct.h>
#else
#include <dirent.h>
#include <unistd.h>
#include <errno.h>
#endif
#include <cstring>
#include <string>
#include <set>
#include <algorithm>
#include <stdio.h>
#include <sys/stat.h>
#include <ctype.h>
#include "base/l... |
<commit_before>#include <iostream>
#include <stdexcept>
#include <QClipboard>
#include <QMessageBox>
#include <QSettings>
#include <QSharedPointer>
#include <QWidget>
#include <QFile>
#include <CorpusWidget.hh>
#include <DactMacrosModel.hh>
#include <DactToolsMenu.hh>
#include <DactToolsModel.hh>
#include <DactTreeS... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>//
// File: MapGenerator.cpp
// Class MapGenerator
// Author Jonatan Rapp & Alexander Hederstaf
// All code is my own except where credited to others.
//
// Copyright © 2012 Catch22. All Rights Reserved.
//
// Date: Oct 9, 2012
//
//
#include "MapGenerator.hpp"
#include <algorithm>
#include <math... |
<commit_before>#include "chainerx/cuda/cuda_device.h"
#include <cstddef>
#include <memory>
#include <cuda_runtime.h>
#include "chainerx/cuda/cuda_runtime.h"
#include "chainerx/cuda/cuda_set_device_scope.h"
#include "chainerx/cuda/memory_pool.h"
#include "chainerx/device.h"
#include "chainerx/error.h"
#include "chain... |
<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 "content/renderer/media/media_stream_audio_processor_options.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#in... |
<commit_before>// Implementations of various convex hull algorithms
// using the C++ Standard Library.
// For clarity, the implementations do not check for
// duplicate or collinear points.
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
struct point {
float x;
float y;
point(flo... |
<commit_before>// Copyright 2015 Patrick Putnam
//
// 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>// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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
// t... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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
// t... |
<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 it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; eit... |
<commit_before>// Copyright (C) 2015 Alexandre Janniaux
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/Posix/FileImpl.hpp>
#include <Nazara/Core/Error.hpp>
#include <cstdio>
#include <Nazara/Core/Debug.hpp>
... |
<commit_before>#pragma once
#include <vector>
#include "integrators/symplectic_integrator.hpp"
namespace principia {
namespace integrators {
class SPRKIntegrator : public SymplecticIntegrator {
public:
SPRKIntegrator();
~SPRKIntegrator() override = default;
std::vector<std::vector<double>> const& Order5Opt... |
<commit_before>/*
* jcom.receive
* External for Jamoma: receive messages from remote
* By Trond Lossius & Tim Place, Copyright � 2006
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "Jamoma.h"
/** Receive Object */
typedef struct _recei... |
<commit_before>/*
* Copyright (c) 2015 SeNDA
*
* 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>// Time: O(n)
// Space: O(n)
class Solution {
public:
/**
* @param expression: a vector of strings;
* @return: an integer
*/
int evaluateExpression(vector<string> &expression) {
if (expression.empty()) {
return 0;
}
vector<string> postfix;
... |
<commit_before>// Time: O(n)
// Space: O(n)
class Solution {
public:
/**
* @param expression: a vector of strings;
* @return: an integer
*/
int evaluateExpression(vector<string> &expression) {
if (expression.empty()) {
return 0;
}
vector<string> postfix;
... |
<commit_before>#include <pybind11/pybind11.h>
#include <sirius.h>
#include <pybind11/stl.h>
#include <pybind11/operators.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <utility>
#include <memory>
#include "utils/json.hpp"
using namespace pybind11::literals; // to bring in the `... |
<commit_before><commit_msg>[basefunctionset.fem-localfunctions] update * use types from base * add static error message for wrong dimensions<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2011-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 <bench/bench.h>
#include <policy/policy.h>
#include <random.h>
#include <test/util/setup_common.h>
#i... |
<commit_before>#include "MMDIkSolver.h"
#include <glm/gtc/matrix_transform.hpp>
namespace saba
{
MMDIkSolver::MMDIkSolver()
: m_ikNode(nullptr)
, m_ikTarget(nullptr)
, m_iterateCount(1)
, m_limitAngle(glm::pi<float>() * 2.0f)
, m_enable(true)
{
}
void MMDIkSolver::AddIKChain(MMDNode * node, bool isKne... |
<commit_before>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
*
* the hover data code is largely inspired from the gtk redmond engine
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser... |
<commit_before>// Project specific
#include <Game.hpp>
#include <Utility/DynamicLoader/Include/DynamicLoader.hpp>
/// Engine
// Core
#include <DoremiEngine/Core/Include/DoremiEngine.hpp>
#include <DoremiEngine/Core/Include/Subsystem/EngineModuleEnum.hpp>
#include <DoremiEngine/Core/Include/SharedContext.hpp>
// Physics... |
<commit_before>#include "inmost.h"
using namespace INMOST;
//todo: want to separate all faces into those that share edges
//see todo: inside text
int main(int argc, char ** argv)
{
if (argc < 2)
{
std::cout << "Usage: " << argv[0] << " mesh clusters [clusters=10] [max_iterations=10] [mesh_out=grid.vtk]" << st... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "Property.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace std;
using namespace FTL;
namespace FTLTest
{
class TestClass
{
public:
// Value
Property<TestClass, int, false, false, PropertyType::AutoGen> defaul... |
<commit_before>#include "ship_instance.h"
#include "weapon_instance.h"
ShipCarrier::ShipCarrier(int id, std::vector<float> d) : Ship(id, 1000, 400, d, 9.5, 1000, 1, 1) {
this->add_weapon(new WeaponStandardGun());
this->add_weapon(new WeaponStandardCannon());
}
ShipScout::ShipScout(int id, std::vector<float> d) : Shi... |
<commit_before>/*****************************************************************************
// * This source file is part of ArkGameFrame *
// * For the latest info, see https://github.com/ArkGame *
// * ... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2020, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>/// This is where the magic happens; program your plug-in's core behavior here.
#include "game_hooks.h"
#include <graphics/graphics.h>
#include <SCBW/api.h>
#include <SCBW/scbwdata.h>
#include <SCBW/ExtendSightLimit.h>
#include "psi_field.h"
#include <cstdio>
namespace hooks {
/// This h... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
Copyright (C) 2012 Lasath Fernando <kde@lasath.org>
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... |
<commit_before>// AntAppSkeleton.cpp
#include "AntAppSkeleton.h"
AntAppSkeleton::AntAppSkeleton()
: m_bar(NULL)
{
}
AntAppSkeleton::~AntAppSkeleton()
{
///@todo Delete this before glfw
//delete m_bar;
}
void AntAppSkeleton::_InitializeBar()
{
// Create a tweak bar
m_bar = TwNewBar("TweakBar");
T... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <vw/BundleAdjustment/ControlNetwork.h>
#include <vw/BundleAdjustment/CameraRelation.h>... |
<commit_before>//===- MinGW.cpp ----------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/*
// License Agreement (3-clause BSD License)
// Copyright (c) 2015, Klaus Haag, all rights reserved.
// Third party copyrights and patents are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the f... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 *
* (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>/* Copyright (C) 2005, Thorvald Natvig <thorvald@natvig.com>
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 copyrig... |
<commit_before>#include "lutin.h"
using namespace lutinCompiler;
//implementation of the State5 class methods
State5 :: State5(const char* name) : State(name)
{
}
void State5 ::print()
{
State::print();
}
bool State5 ::transition(Automat &automat, Symbol *s)
{
switch(*s)
{
case ID_TOKEN: automat.shift(s,... |
<commit_before>
// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify... |
<commit_before>
// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify... |
<commit_before>// includes files
#include <gl\glew.h> ///< always include glew before glfw
#include "Window.h" ///< include after glew, never before. that include glfw too
#include "EasyErrors.h"
#include "InputManager.h"
#include "GLProgram.h"
#include "Camera3D.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_tran... |
<commit_before>#include <cucumber-cpp/internal/connectors/wire/WireServer.hpp>
namespace cucumber {
namespace internal {
SocketServer::SocketServer(const ProtocolHandler *protocolHandler) :
ios(),
acceptor(ios),
protocolHandler(protocolHandler) {
}
void SocketServer::listen(const port_type port) {
tc... |
<commit_before>/*
* RInterface.hpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Pu... |
<commit_before>#include "SkColorPriv.h"
#include "SkTableColorFilter.h"
#include "SkUnPreMultiply.h"
class SkTable_ColorFilter : public SkColorFilter {
public:
SkTable_ColorFilter(const uint8_t tableA[], const uint8_t tableR[],
const uint8_t tableG[], const uint8_t tableB[]) {
fFlag... |
<commit_before>#ifdef EMSCRIPTEN
#include <emscripten.h>
#endif
#include <iostream>
#include <SDL/SDL.h>
using namespace std;
// Native GBC display info
const int NATIVE_WIDTH = 160;
const int NATIVE_HEIGHT = 144;
int game_w;
int game_h;
int pixel_size_w = 5;
int pixel_size_h = 5;
bool keep_ratio = true;
// ... |
<commit_before>#include <common/list.h>
#include <gdb/location.h>
#include <stdlib.h>
#include <string.h>
#include <common/log.h>
gdb_location_t::gdb_location_t(){
fullname = 0;
filename = 0;
}
gdb_location_t::~gdb_location_t(){
delete fullname;
delete filename;
}
int conv_location(gdb_result_t* result, void**... |
<commit_before>#include <iostream>
#include <tr1/memory>
#include <queue>
#include <boost/functional.hpp>
#include <boost/program_options.hpp>
#include <boost/program_options/variables_map.hpp>
#include "corpus_tools.h"
#include "m.h"
#include "tdict.h"
#include "sampler.h"
#include "ccrp.h"
// A not very memory-eff... |
<commit_before>/*
* Copyright 2013 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 "SkRandom.h"
#include "SkTArray.h"
namespace skiagm {
// This GM tests a grab-bag of convex... |
<commit_before>#include "MainWindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent),
currentState(NotConnected),
sshProcess(NULL),
sshAskPassFile(NULL),
timer(NULL)
{
setWindowTitle(qApp->applicationName());
layout = new QFormLayout();
sshServerLayout = new QH... |
<commit_before>/////////////////////////////////////////////////////////////////
/*
* Template of a read routine
*/
/////////////////////////////////////////////////////////////////
#include <NrrdIO/NrrdIOAPI.h>
#include <hxfield/HxUniformScalarField3.h>
#include <Amira/HxMessage.h>
#include <teem/nrrd.h>
NRRDIO_A... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.