text stringlengths 54 60.6k |
|---|
<commit_before>/** \copyright
* Copyright (c) 2014, Balazs Racz
* 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... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <functional>
using namespace std;
namespace {
namespace io {
enum token_type {
REG,
NN
};
ofstream outfile;
ifstream infile;
void exit_ok() {
infile.close();
outfile.close();
exit(0);
}
void exit_err(string... |
<commit_before><commit_msg>Applied patch from HARMONY-4705 [drlvm][jni] JNI transition uses ineffective TLS get<commit_after><|endoftext|> |
<commit_before>#include "simplesp.h"
using namespace sp;
int main(){
Mem2<Col3> src;
Mem2<Byte> gry;
{
SP_ASSERT(loadBMP(src, SP_DATA_DIR "/image/Lenna.bmp"));
saveBMP(src, "color.bmp");
cnvImg(gry, src);
saveBMP(gry, "gray.bmp");
}
// gaussian
{
Mem2<Byte> dst;
gaussianFilter(dst, gry, 2.0);
... |
<commit_before>//
// Created by Danni on 09.06.15.
//
#include "TweeCompiler.h"
#include "ZAssemblyGenerator.h"
#include "exceptions.h"
#include <sstream>
#include <iostream>
#include <Passage/Body/Link.h>
#include <Passage/Body/Text.h>
#include <Passage/Body/Newline.h>
#include <Passage/Body/Expressions/Variable.h>
#... |
<commit_before>// Disable some warnings which are caused with CUDA headers
#pragma warning(disable: 4201 4408 4100)
#include <iostream>
#include <cvconfig.h>
#include "opencv2/core/core.hpp"
#include <opencv2/gpu/gpu.hpp>
#if !defined(HAVE_CUDA) || !defined(HAVE_TBB)
int main()
{
#if !defined(HAVE_CUDA)
... |
<commit_before>// Stolen from libLAS' endian.hpp
/******************************************************************************
* $Id$
*
* Project: libLAS - http://liblas.org - A BSD library for LAS format data.
* Purpose: Endian macros
* Author: Mateusz Loskot, mateusz@loskot.net
*
* This file has been sto... |
<commit_before>#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include <unistd.h>
#include <algorithm>
#include <regex>
#include <string>
#include <vector>
#include "SDL2/SDL.h"
#include "SDL2/SDL_joystick.h"
#include <GL/gl3w.h>
#include "../Lib... |
<commit_before>#ifndef ORM_SQLOBJECT_HPP
#define ORM_SQLOBJECT_HPP
#include "Bdd.hpp"
#include "Query.hpp"
#include <list>
namespace orm
{
class Query;
template<typename T>
class SQLObject
{
public:
SQLObject() : pk(-1)
{
};
bool loadFromBdd(... |
<commit_before>// Filename: textMonitor.cxx
// Created by: drose (12Jul00)
//
////////////////////////////////////////////////////////////////////
#include "textMonitor.h"
#include <indent.h>
////////////////////////////////////////////////////////////////////
// Function: TextMonitor::Constructor
// Acc... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/eval/simple_tensor.h>
#include <vespa/eval/eval/simple_tensor_engine.h>
#include... |
<commit_before>// $Id$
/***********************************************************************
Moses - factored phrase-based, hierarchical and syntactic language decoder
Copyright (C) 2009 Hieu Hoang
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General ... |
<commit_before>/***************************************************************************
* tests/mng/test_aligned.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2009 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
*
* Distributed under the Boost Software License, Version 1.0... |
<commit_before>/*=========================================================================
*
* Copyright RTK 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleViewForwarder.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 14:24:31 $
*
* The Contents of thi... |
<commit_before>#include "precompiled.h"
//
// Copyright (c) 2012 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.
//
// VertexDeclarationCache.cpp: Implements a helper class to construct and cache vertex declarations... |
<commit_before>#include <iostream>
#include <memory>
template <typename T>
class propagate_const
{
typedef decltype(*std::declval<T>()) reference_type;
public:
using value_type = typename std::enable_if<
std::is_lvalue_reference<reference_type>::value,
typename std::remove_reference<reference_type>::t... |
<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 2 of the License, or
* (at your option) any later version.
*
* Written (W) 2007-2010 Christian Widmer
* Co... |
<commit_before>/*
* Copyright © 2012, 2013, 2014 Intel Corporation
*
* 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 us... |
<commit_before>/*********************************************************************
* node-dvbtee for Node.js
*
* Copyright (c) 2017 Michael Ira Krufky <https://github.com/mkrufky>
*
* MIT License <https://github.com/mkrufky/node-dvbtee/blob/master/LICENSE>
*
* See https://github.com/mkrufky/node-dvbtee for mo... |
<commit_before>/*************************************************************************
*
* $RCSfile: exceptiontree.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-03-30 16:51:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#ifndef _INCLUDED_LZW_BIT_CODER_HPP_
#define _INCLUDED_LZW_BIT_CODER_HPP_
#include <tudocomp/Coder.hpp>
#include <tudocomp/lz78/trie.h>
#include <tudocomp/lz78/Lz78DecodeBuffer.hpp>
#include <tudocomp/lzw/factor.h>
#include <tudocomp/lzw/decode.hpp>
namespace tudocomp {
namespace lzw {
using ::lzw:... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#include <QtTest/QtTest>
#include "../qtest-platform.h"
#include "setupdialog.h"
#define VISUAL_INIT \
IF_VISUAL \
{ ... |
<commit_before>
#include <iostream>
#include <assert.h>
#include "semantican.h"
SemanticAn::SemanticAn( std::vector<Token *> tokens)
{
this->tokens = tokens;
}
std::vector<SemanticUnit *> SemanticAn::run()
{
std::vector<SemanticUnit *> res;
for ( tok = tokens.begin(); tok != tokens.end(); )
{
... |
<commit_before>#include "StringUtils.h"
namespace ccons {
void vstring_printf(std::string *dst, const char *fmt, va_list ap)
{
char *s;
if (vasprintf(&s, fmt, ap) > 0) {
dst->assign(s);
free(s);
}
}
void string_printf(std::string *dst, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
vstring_printf(d... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, University of Toronto
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
<commit_before>#pragma once
#include <planning/Path.hpp>
#include <Geometry2d/Point.hpp>
#include <Geometry2d/Segment.hpp>
#include <Geometry2d/CompositeShape.hpp>
#include <Configuration.hpp>
namespace Planning
{
/**
* @brief Represents a motion path made up of a series of Paths.
*
* @details The path represen... |
<commit_before>// $Id: forceField.C,v 1.12 2000/02/02 09:52:09 len Exp $
#include <BALL/MOLMEC/COMMON/forceField.h>
#include <BALL/MOLMEC/COMMON/forceFieldComponent.h>
#include <BALL/MOLMEC/COMMON/periodicBoundary.h>
#include <BALL/KERNEL/bond.h>
#include <BALL/KERNEL/forEach.h>
using namespace std;
namespace BALL ... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before><commit_msg>Rmoved logging line<commit_after><|endoftext|> |
<commit_before>
#include <iostream>
#include <fstream>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include "storage/DevicegraphImpl.h"
#include "storage/Environment.h"
#include "storage/Storage.h"
#include "storage/Action.h"
#include "storage/Devices/DeviceImpl.h"
#include "storage/Devices/BlkDevice.h"
... |
<commit_before><commit_msg>Planning: enlarge BackToSelfLaneTolerance<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: docu_pe2.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: np $ $Date: 2002-03-08 14:45:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>// Copyright (c) 2021 Ultimaker B.V.
// CuraEngine is released under the terms of the AGPLv3 or higher.
#include <algorithm>
#include "CenterDeviationBeadingStrategy.h"
namespace cura
{
CenterDeviationBeadingStrategy::CenterDeviationBeadingStrategy(const coord_t pref_bead_width,
... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, to any person obta... |
<commit_before>/*************************************************************************
*
* $RCSfile: ODriver.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: vg $ $Date: 2005-03-10 15:32:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "PoseEstimation_interface.hpp"
////////////////////////////////////////////////////
////////////////// Main //////////////////////////
////////////////////////////////////////////////////
int
main (int argc, char *argv[])
{
PointCloud<PointXYZRGBA> cloud;
pcl::io::loadPCDFile(arg... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: CConnection.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 06:59:05 $
*
* The Contents of this file are ma... |
<commit_before>#include <iostream>
#include <algorithm>
#include <vector>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/lexical_cast.hpp>
using namespace boost;
using namespace posix_time;
template <typename F_t>
class Timer
{
public:
Timer(F_t f_) : f(f_)
{
start = microsec_clock::local_... |
<commit_before>/*
Copyright (C) 2000 by Jorrit Tyberghein and K. Robert Bate.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at you... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>#include <crossbow/infinio/EventProcessor.hpp>
#include <crossbow/infinio/Fiber.hpp>
#include <crossbow/logger.hpp>
#include <algorithm>
#include <cerrno>
#include <sys/epoll.h>
#include <sys/eventfd.h>
namespace crossbow {
namespace infinio {
EventProcessor::EventProcessor(uint64_t pollCycles)
... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentat... |
<commit_before>/*
This file is part of solidity.
solidity 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.
solidity is distributed in ... |
<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 "content/renderer/android/content_detector.h"
#include "base/logging.h"
#include "third_party/WebKit/Source/WebKit/chromium/p... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>#include "QtViewerMapping.h"
#include <widgetzeug/make_unique.hpp>
#include <glbinding/gl/enum.h>
#include <gloperate/base/RenderTargetType.h>
#include <gloperate/painter/Camera.h>
#include <gloperate/painter/AbstractCameraCapability.h>
#include <gloperate/painter/AbstractProjectionCapability.h>
#incl... |
<commit_before>#include <QtGui>
#include <QtGlobal>
#include "editorviewscene.h"
#include "uml_edgeelement.h"
#include "uml_nodeelement.h"
#include "realreporoles.h"
#include <math.h>
using namespace UML;
static const double Pi = 3.14159265358979323846264338327950288419717;
static double TwoPi = 2.0 * Pi;
static... |
<commit_before>/*
* Copyright 2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>//
// Created by Luris on 3/20/16.
//
#include "Planet_object.h"
#include "Global_constant.h"
#include <cmath>
Planet::Planet(int x, int y, double mass, float radius, std::string path, sf::Font* font) {
setMass(mass);
setRadius(radius);
createShape();
createSprite(path);
setPosition(x, y);
crea... |
<commit_before>// Copyright (C) 2009-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
// 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.
//
// This library is... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; -*- */
/* ex: set shiftwidth=4 tabstop=4 expandtab: */
/*
* Copyright (c) 2015-2016, Rice University
* All rights reserved.
*
* Author(s): Neil T. Dantam <ntd@rice.edu>
*
* Redistribution and use in source and binary forms, with or
* without modification, a... |
<commit_before>//-----------------------------------------------------------------------------
// File: list.cpp
//
// Class: list
// Functions: main
//-----------------------------------------------------------------------------
#include "list.h"
using namespace std;
namespace NP_ADT
{
//-------------------... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>#include "xor.h"
#include "../../utils/cz.h"
#include "../../utils/utils.h"
using namespace dariadb;
using namespace dariadb::compression::v2;
XorCompressor::XorCompressor(const ByteBuffer_Ptr &bw_)
: BaseCompressor(bw_), _is_first(true), _first(0), _prev_value(0) {}
bool XorCompressor::append(Val... |
<commit_before>#include <assert.h>
#include "stdafx.h"
#include "overflow.h"
#include "kmp.h"
#include "aho-corasick.h"
struct num {
size_t val;
dequeue list;
};
int _tmain (int argc, TCHAR *argv[]) {
int32_t a = INT32_MIN, b = INT32_MIN;
int32_t c = 0;
assert (true == checked_add_32 (a, b, &c));
/*==========... |
<commit_before>#include "Scale9.h"
#include "S2_Sprite.h"
#include "S2_Symbol.h"
#include "DrawNode.h"
#include <SM_Calc.h>
#include <string.h>
#include <assert.h>
namespace s2
{
Scale9::Scale9()
: m_type(S9_NULL)
, m_width(0)
, m_height(0)
{
memset(m_grids, 0, sizeof(m_grids));
}
Scale9::Scale9(const Scale9& ... |
<commit_before>#include "InventoryTransitions.h"
#include "com/mojang/minecraftpe/client/gui/screen/Screen.h"
std::shared_ptr<Touch::TButton> InventoryTransitions::forwardButton = NULL;
std::shared_ptr<Touch::TButton> InventoryTransitions::backButton = NULL;
void InventoryTransitions::init(Screen* self)
{
if(!forwa... |
<commit_before>#include "builders/terrain/TerraGenerator.hpp"
#include <functional>
#include <unordered_map>
using namespace ClipperLib;
using namespace utymap::builders;
using namespace utymap::mapcss;
using namespace utymap::meshing;
using namespace utymap::utils;
using namespace std::placeholders;
namespace {
... |
<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) 2011 Sergey Lisitsyn
* Copyrigh... |
<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) 2015 Wu Lin
* Written (W) 2012 ... |
<commit_before>/* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Copyright (c) 2012-2013 Sergey Lisitsyn
*/
#ifndef TAPKEE_VPTREE_H_
#define TAPKEE_VPTREE_H_
#include <tapkee_defines.hpp>
#include <vector>
#include <queue>
#include <algorithm>
#include <limits>
namespace tapkee
{... |
<commit_before>// Problem 10 from Project Euler
// http://projecteuler.net/problem=10
#include <iostream>
#include <algorithm>
#include <unordered_map>
int main()
{
std::unordered_map<unsigned int, bool> number_map;
unsigned int size = 100;
unsigned int iter = 2;
while (iter <= size)
{
// numbe... |
<commit_before>/// HEADER
#include <csapex_core_plugins/interactive_node.h>
/// SYSTEM
#include <chrono>
using namespace csapex;
InteractiveNode::InteractiveNode()
: stopped_(false), done_(false)
{
}
void InteractiveNode::process()
{
throw std::runtime_error("not implemented");
}
void InteractiveNode::proces... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* 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 License along with th... |
<commit_before>// Copyright © 2015 Mikko Ronkainen <firstname@mikkoronkainen.com>
// License: MIT, see the LICENSE file.
#include <cmath>
#include "Raytracing/Primitives/Sphere.h"
#include "Raytracing/Ray.h"
#include "Raytracing/Intersection.h"
using namespace Raycer;
void Sphere::initialize()
{
}
v... |
<commit_before>#include "SettingsWindow.hpp"
#include <imgui.h>
#include "../ImGui/Theme.hpp"
using namespace GUI;
SettingsWindow::SettingsWindow() {
themes.push_back("Default");
}
void SettingsWindow::Show() {
if (ImGui::Begin("Settings", &visible)) {
// Show drop down list to select theme.
... |
<commit_before>#include "window.h"
#include <algorithm>
#include "augs/log.h"
#include "augs/templates/string_templates.h"
#include "platform_utils.h"
#ifdef PLATFORM_WINDOWS
#include "augs/window_framework/translate_windows_enums.h"
namespace augs {
namespace window {
LRESULT CALLBACK wndproc(HWND hwnd, UINT u... |
<commit_before>#pragma once
#include <queue>
#include <boost/asio.hpp>
#include <blackhole/formatter/string.hpp>
#include <blackhole/log.hpp>
#include <blackhole/logger.hpp>
#include <blackhole/sink/stream.hpp>
#include <blackhole/synchronized.hpp>
#include <blackhole/utils/atomic.hpp>
#include <blackhole/utils/form... |
<commit_before><commit_msg>Glyph cache optimization<commit_after><|endoftext|> |
<commit_before>#include "http.h"
#include "Configuration.h"
#include "ServerConnection.h"
#include "../IPC/Message.h"
#include "../IPOCS/Message.h"
#include "ArduinoConnection.h"
#include "LedControl.hpp"
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiClient.h>
#include <list>
#include <EEPROM.h>
#def... |
<commit_before>/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* 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 require... |
<commit_before>/* __ __ _
* / // /_____ ____ (_)
* / // // ___// __ \ / /
* / // // /__ / /_/ // /
* /_//_/ \___/ \____//_/
* https://bitbucket.org/galaktor/llcoi
* copyright (c) 2014, llcoi Team
* MIT license applies - see file "LICENSE" for details.
*/
#include "ogre_interface.... |
<commit_before>/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#include <iostream>
#include <thread>
#include <chrono>
#include <random>
#include "stratlib/event.h"
constexpr char const* const RESET_C = "\x1b[0m";
constexpr char const* const RED_C = "\x1b[95m";
constexpr char const* const CLEAR... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef EXTPROC_POOL_HPP_
#define EXTPROC_POOL_HPP_
#include <sys/types.h> // pid_t
#include "errors.hpp"
#include "concurrency/one_per_thread.hpp"
#include "concurrency/semaphore.hpp"
#include "concurrency/signal.hpp"
#include "container... |
<commit_before>#ifndef DAVFILE_HPP
#define DAVFILE_HPP
#include <davixcontext.hpp>
#include <params/davixrequestparams.hpp>
#include <posix/davposix.hpp>
#include <davix_types.h>
#ifndef __DAVIX_INSIDE__
#error "Only davix.h or davix.hpp should be included."
#endif
///
/// @file davfile.hpp
/// @author Devresse A... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the... |
<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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "cuda_xengine.h" // For Complex and CompexInput typedefs
// Normally distributed random numbers with standard deviation of 2.5,
// quantized to integer values and saturated to the range -7.0 to +7.0. For
// the fixed... |
<commit_before>// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypter.h"
#include "script.h"
#include <string>
#include <vector>
#include <boost/foreach.hpp>
#in... |
<commit_before>#include <iostream>
#include "common.h"
#include "shader.h"
#include "cubemesh.h"
using namespace std;
namespace Hodhr {
CubeMesh::CubeMesh ()
{
cout << "Created a cube mesh asset" << endl;
}
/**
* Destroy the cube mesh buffers
**/
CubeMesh::~CubeMesh ()
{
cout << "Destroying the cube mesh" ... |
<commit_before>#include "qmlinspectortoolbar.h"
#include "qmljsinspectorconstants.h"
#include <extensionsystem/pluginmanager.h>
#include <coreplugin/icore.h>
#include <debugger/debuggeruiswitcher.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <core... |
<commit_before>//
// This file is part of the Marble Virtual 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 2008 Torsten Rahn <tackat@kde.org>
// Copyright 2010 Cezar Mocan <mocance... |
<commit_before><commit_msg>fixed crash when undoing removal of a point light<commit_after><|endoftext|> |
<commit_before>/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file... |
<commit_before><commit_msg>[code] Maked some commentary for lisibility<commit_after><|endoftext|> |
<commit_before>
#include <jni.h>
#include "Solver/Solver.h"
#include "kodkod_engine_satlab_CryptoMiniSat.h"
using namespace CMSat;
/*
* Class: kodkod_engine_satlab_CryptoMiniSat
* Method: make
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_kodkod_engine_satlab_CryptoMiniSat_make
(JNIEnv *, jclass) {
Solv... |
<commit_before>#pragma once
#include "types.hpp"
#include <mach/mach_time.h>
#include <optional>
#include <pqrs/dispatcher.hpp>
#include <pqrs/osx/iokit_hid_device.hpp>
namespace krbn {
class hid_keyboard_caps_lock_led_state_manager final : public pqrs::dispatcher::extra::dispatcher_client {
public:
hid_keyboard_ca... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "NodeThread.h"
#include "nodeblink.h"
#include "gin/v8_initializer.h"
#include "libplatform/libplatform.h"
#include "base/thread.h"
#include "common/ThreadCall.h"
#include "common/NodeBinding.h"
#include <string.h>
#include <Windows.h>
#include <process.h>
#pragma comment(lib,"openssl.lib")
#... |
<commit_before>#include <string>
#include <vector>
#include "caffe/data_layers.hpp"
#include "caffe/util/io.hpp"
namespace caffe {
template <typename Dtype>
BaseDataLayer<Dtype>::BaseDataLayer(const LayerParameter& param)
: Layer<Dtype>(param),
transform_param_(param.transform_param()),
data_transfor... |
<commit_before><commit_msg>INTEGRATION: CWS vgbugs07 (1.12.256); FILE MERGED 2007/06/04 13:27:29 vg 1.12.256.1: #i76605# Remove -I .../inc/module hack introduced by hedaburemove01<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS cellbreak (1.4.324); FILE MERGED 2003/11/14 10:06:55 fme 1.4.324.3: #i2109# Split table rows 2003/11/07 10:12:15 fme 1.4.324.2: RESYNC: (1.4-1.5); FILE MERGED 2003/09/08 07:46:05 fme 1.4.324.1: #i2109# Feature - Split table rows<commit_after><|endoftext|> |
<commit_before><commit_msg>fix up unit test<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
*
* This file is part of eigenpy.
* eigenpy 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 3 of
* the License, or (a... |
<commit_before>//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "NXUserDetectorConstruction.hh"
#include "NXUIMessenger.hh"
#include "NXChamberParameterisation.hh"
#include "NXMagneticField.hh"
#i... |
<commit_before>/*
* Copyright (C) 2007 Tommi Maekitalo
*
* 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.... |
<commit_before>#include "core.h"
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include <QDebug>
#include "cpuregisters.h"
#include "keyboard.h"
#include "memory.h"
#include "screen.h"
#include "timer.h"
namespace gameboy {
Core::Core() :
registers(new CPURegisters),
memory(new Me... |
<commit_before>// 0 = all
// 1 = not pion
// 2 = not kaon
// 3 = not proton
// 4 = not muon
// 5 = not electron
// 6 = not neutron
Int_t particle_type=0;
#include "iostream.h"
void RICHMerger (Int_t evNumber1=0,Int_t evNumber2=0)
{
/////////////////////////////////////////////////////////////////////////
// This... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.