text stringlengths 54 60.6k |
|---|
<commit_before>AliAnalysisTask *AddTaskHFECalSys(int sysID, int TPCclust, int TPCclustPID, int Nits, int ITSstat)
{
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
Error("AddTaskHFEECal", "No analysis manager found.");
return NULL;
}
if (!mgr->GetInputEventHandler()) {
... |
<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
*/
#pragma once
namespace fakeit {
template<typename TARGET, typename SOURCE>
TARGET union_cast(SOURCE source) {
//static_assert(sizeof(TARGET) == ... |
<commit_before>#include "SoundWrapper.h"
SoundWrapper::SoundWrapper()
{
m_soundDevice = NULL;
m_masterVoice = NULL;
m_channelVolumes = NULL;
m_masterVolume = 1.0f; // NOTE: (Johan) Makes no difference if this is changed.
ZeroMemory(&m_details, sizeof(XAUDIO2_DEVICE_DETAILS));
/*******************************... |
<commit_before>// Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2009 David Capello
// 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 o... |
<commit_before>#include <osg/GLExtensions>
#include <osg/Node>
#include <osg/Geometry>
#include <osg/Notify>
#include <osg/MatrixTransform>
#include <osg/Texture2D>
#include <osg/Stencil>
#include <osg/ColorMask>
#include <osg/Depth>
#include <osg/Billboard>
#include <osg/Material>
#include <osgUtil/TransformCallback>... |
<commit_before>// Scintilla source code edit control
/** @file LexCPP.cxx
** Lexer for C++, C, Java, and Javascript.
**/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
... |
<commit_before>// Scintilla source code edit control
/** @file LexCPP.cxx
** Lexer for C++, C, Java, and Javascript.
**/
// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/*
Copyright (C) 2002 by Mrten Svanfeldt
Anders Stenberg
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 L... |
<commit_before>#pragma once
namespace usagi::keyboard::glfw3
{
const int glfw3_available_keys[] =
{ 32, 39
, 44, 45, 46, 47, 48, 49
, 50, 51, 52, 53, 54, 55, 56, 57, 59
, 61, 65, 66, 67, 68, 69
, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79
, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89
, 90, 91, 92, 93, 96
, 16... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info>
*
* 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; eithe... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char* argv[])
{
return 0;
}
<commit_msg>Updated cpp template<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string>
#include <vector>
#include <map>
using namespace std;
int main(int argc, ch... |
<commit_before>#include "search_index_builder.hpp"
#include "feature_utils.hpp"
#include "features_vector.hpp"
#include "search_delimiters.hpp"
#include "search_trie.hpp"
#include "search_string_utils.hpp"
#include "string_file.hpp"
#include "../defines.hpp"
#include "../platform/platform.hpp"
#include "../coding/t... |
<commit_before>#ifndef DUNE_STUFF_COMMON_PARAMETER_TREE_HH
#define DUNE_STUFF_COMMON_PARAMETER_TREE_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#include <cstring>
#include <sstream>
#include <vector>
#include <boost/algorithm/string/join.hpp>
... |
<commit_before>/*==========================================================================
Portions (c) Copyright 2008-2009 Brigham and Women's Hospital (BWH) All Rights Reserved.
See Doc/copyright/copyright.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: ... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// FILE: FastLogger.cpp
// PROJECT: Micro-Manager
// SUBSYSTEM: MMCore
//-----------------------------------------------------------------------------
// DESCRIPTION: Implementation of the IMMLogger ... |
<commit_before>/*************************************************************************
*
* $RCSfile: SlsPageCacheManager.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-11-08 16:30:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the foll... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: miscopt.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-26 08:41:43 $
*
* The Contents of this file are made a... |
<commit_before>//! @Alan
//!
//! Exercise 9.50:
//! Write a program to process a vector<string>s whose elements represent integral values.
//! Produce the sum of all the elements in that vector.
//! Change the program so that it sums of strings that represent floating-point values.
//!
#include <iostream>
#include <st... |
<commit_before><commit_msg>edk/watch/Time: I try to compile the source code and I get and error in Time.cpp.<commit_after><|endoftext|> |
<commit_before>//! @Alan
//!
//! Exercise 11.7:
//! Define a map for which the key is the family’s last name and
//! the value is a vector of the children’s names. Write code to
//! add new families and to add new children to an existing family.
//!
#include <iostream>
#include <map>
#include <vector>
#include <string... |
<commit_before><commit_msg>coverity#1158124 Dereference after null check<commit_after><|endoftext|> |
<commit_before>#include <algorithm>
#include <chrono>
#include <fstream>
#include <vector>
#include <CGAL/ch_graham_andrew.h>
#include "point.h"
#include "bsthull.h"
template<class TFn, class ...TArgs>
double measureAlgo(TFn fn, size_t testsNum, TArgs&&... args)
{
using namespace std::chrono;
const auto tStar... |
<commit_before><commit_msg>n#821567: Use BitmapURL only if its valid.<commit_after><|endoftext|> |
<commit_before><commit_msg>SwIndex: clean up Remove duplication<commit_after><|endoftext|> |
<commit_before><commit_msg>Simplify<commit_after><|endoftext|> |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief ST7565 LCD ドライバー
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
#include "common/csi_io.hpp"
namespace chip {
//++... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wrt_fn.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:51:29 $
*
* The Contents of this file are made av... |
<commit_before><commit_msg>revert hunk that makes sw_ooxmlexport tests fail<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: conform.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2007-09-27 12:24:23 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: textidx.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2006-08-14 17:55:00 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: ZipPackageBuffer.hxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: mtg $ $Date: 2001-11-15 19:59:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*
* cam_ZWO.cpp
* PHD Guiding
*
* Created by Robin Glover.
* Copyright (c) 2014 Robin Glover.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
<commit_before>#include "task.h"
#include "lua_moo.h"
#include "objectmanager.h"
#include <QDateTime>
const char *Task::mPrepositionList[] =
{
"with/using",
"at/to",
"in front of",
"in/inside/into",
"on top of/on/onto/upon",
"out of/from inside/from",
"over",
"through",
"under/underneath/benea... |
<commit_before><commit_msg>Minor example cleanup<commit_after><|endoftext|> |
<commit_before><commit_msg>fixing code-style<commit_after><|endoftext|> |
<commit_before>#include "AsyncWriterThread.h"
#include <fastrtps/rtps/writer/RTPSWriter.h>
#include <boost/thread.hpp>
#include <boost/thread/lock_guard.hpp>
#include <algorithm>
#include <cassert>
using namespace eprosima::fastrtps::rtps;
AsyncWriterThread::AsyncWriterThread() : thread_(nullptr)
{
}
AsyncWriterTh... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#include <vtkSmoothPolyDataFilter.h>
#include <vtkSmartPointer.h>
#include <vtkPolyData.h>
#include <vtkPolyDataReader.h>
#include <vtkPolyDataWriter.h>
#include <vtkXMLPolyDataReader.h>
#include <vtkXMLPolyDataWriter.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkRenderer.h>
#inclu... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018, Image Engine Design 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:... |
<commit_before>//
// Created by Sam on 9/25/2017.
//
#include <utility>
#include <iostream>
#include "../../../include/Game/Core/Card.h"
#include "../../../include/Game/Core/Player.h"
#include "../../../include/Game/Core/Game.h"
#include "../../../include/Game/Core/Board.h"
#include "../../../include/Network/Client.h... |
<commit_before>#include "xml.h"
#include <cstring>
#include <iostream>
#include "../leanify.h"
#include "../utils.h"
Xml::Xml(void *p, size_t s /*= 0*/) : Format(p, s), doc(true)
{
unsigned char *q = (unsigned char *)p;
const unsigned char utf8_bom[] = { 0xEF, 0xBB, 0xBF };
// tinyxml2 does not suppo... |
<commit_before>// Neptools.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include "PacArchive.h"
using namespace neptools;
using namespace std;
namespace fs = boost::filesystem;
namespace po ... |
<commit_before>#include "zip.h"
#include <algorithm> // std::search
#include <cstdint>
#include <iostream>
#include <string>
#include <vector>
#include <miniz/miniz.h>
#include "../leanify.h"
#include "../utils.h"
using std::cerr;
using std::endl;
using std::string;
using std::vector;
const uint8_t Zip::header_ma... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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 a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2018 Taras Kushnir <kushnirTV@gmail.com>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not ... |
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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 the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//... |
<commit_before>/*
* ConnectedComponents.cpp
*
* Created on: Dec 16, 2013
* Author: cls
*/
#include <set>
#include "ParallelConnectedComponents.h"
#include "../structures/Partition.h"
#include "../coarsening/PartitionCoarsening.h"
#include "../auxiliary/Log.h"
namespace NetworKit {
ParallelConnectedCompon... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2015 ARM Limited
*
* 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>//===-- DYLDRendezvous.cpp --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* chronos - a crude substitution for POSIX `time` command line utility
on Windows.
Aggregates and reports user and kernel times for process and its children.
Attempts to mimic output format used on Linux
Copyright (c) 2016, Grigory Rechistov
All rights reserved.
Redistribution and use in sour... |
<commit_before>#ifndef DISSENT_MESSAGING_FILTER_H_GUARD
#define DISSENT_MESSAGING_FILTER_H_GUARD
#include "ISink.hpp"
#include "Source.hpp"
namespace Dissent {
namespace Messaging {
/**
* Acts as a basic messaging Filter
*/
class Filter : public Source, public ISender, public ISink {
inline virtual void... |
<commit_before>//
// SuperheroPosition.cpp
// CGP-Superhero
//
// Created by Amir Blum on 4/27/15.
// Copyright (c) 2015 Amir Blum. All rights reserved.
//
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
using namespace glm;
#include "SuperheroPosition.h"
#define CAMERA_DISTANCE (2.5f)
SuperheroPosition::Super... |
<commit_before>#include "TGrid.h"
#include "TGridCollection.h"
#include "TSystem.h"
#include "TString.h"
#include "TFile.h"
#include "TMap.h"
#include "TGridResult.h"
#include "TAlien.h"
#include "TAlienResult.h"
#include <fstream>
/*
Simple toolkit for Alien
Use ROOT C++ interfaces classes to access information f... |
<commit_before>// RUN: clang-cc -fsyntax-only -verify -std=c++0x
void f() {
int b[5];
auto a[5] = b; // expected-error{{'a' declared as array of 'auto'}}
}
<commit_msg>Fix test.<commit_after>// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
void f() {
int b[5];
auto a[5] = b; // expected-error{{'a' declare... |
<commit_before>
#include "stdafx.h"
#include "python_cheats.h"
#include <temple/dll.h>
#include <util/fixes.h>
#include <common.h>
#include <party.h>
#include <obj.h>
#include <gamesystems/gamesystems.h>
#include <gamesystems/objects/objsystem.h>
// Returns 1 if it can handle the command
typedef int (__cdecl *CheatFn)... |
<commit_before>#include "wrapper.h"
#ifdef __WXMSW__
# include <windows.h>
#endif
wxString GetApplicationPath()
{
static bool found = false;
static wxString path;
if (!found)
{
/* Windows */
#ifdef __WXMSW__
char buf[512] = "";
GetModuleFileName(NULL, buf, 511);
path = buf;
/* M... |
<commit_before>/* r_interface.cpp
*
* SimplR - Basic Symbolic Expression Simplification
* R interface to SimplR's C++ functions.
* (c) 2015 Oliver Flasch, Felix Gorschlueter, sourcewerk UG
*/
#include "expression.h"
#include <R.h>
#include <Rinternals.h>
#include <string.h>
using namespace ev3;
struct SexpTo... |
<commit_before>#include "xchainer/context.h"
#include <dlfcn.h>
#include <atomic>
#include <cstdlib>
#include <gsl/gsl>
#ifdef XCHAINER_ENABLE_CUDA
#include "xchainer/cuda/cuda_backend.h"
#endif // XCHAINER_ENABLE_CUDA
#include "xchainer/error.h"
#include "xchainer/native/native_backend.h"
namespace xchainer {
na... |
<commit_before>// The MIT License (MIT)
//
// Copyright(c) 2015 huan.wang
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files(the "Software"),
// to deal in the Software without restriction, including without limitation the rights
// ... |
<commit_before>// Copyright (c) 2011 - 2017, GS Group, https://github.com/GSGroup
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the above copyright notice and this permission notice appear in all copies.
// THE SOFTWARE IS PRO... |
<commit_before>#ifndef HMLIB_BIO_OSI_INC
#define HMLIB_BIO_OSI_INC 100
#
#include<utility>
#include<vector>
#include<cmath>
#include<boost/optional.hpp>
#include"../tuple.hpp"
#include"../algorithm/sampling.hpp"
#include"../random.hpp"
#include"../exceptions.hpp"
#include"pairgame.hpp"
namespace hmLib {
namespace bio ... |
<commit_before>/*****************************************************************************
* PROGRAM NAME: COutputLine.cpp
* PROGRAMMER: Wei Sun wsun@vt.edu
* PURPOSE: COutputLine Class Implemention
*****************************************************************************/
#include <iostream>
#include <fstream>... |
<commit_before>
#include "MapFileParser.h"
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <DbgHelp.h>
#include <ClangReflectCore/Database.h>
#include <ClangReflectCore/FileUtils.h>
#include <ClangReflectCore/Logging.h>
#include <cstdio>
#include <cstring>
namespace
{
bool InitialiseSym... |
<commit_before>/* Copyright 2021 The TensorFlow 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 the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>#include <botan/tls_server.h>
#include <botan/tls_client.h>
#include <botan/pkcs10.h>
#include <botan/x509self.h>
#include <botan/rsa.h>
#include <botan/x509_ca.h>
#include <botan/hex.h>
#include "validate.h"
#include <iostream>
#include <vector>
#include <memory>
using namespace Botan;
namespace {
c... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission ... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission no... |
<commit_before>#include <Windows.h>
#include <iostream>
#include <string>
#define BUFFER_SIZE 512
using namespace std;
int main()
{
//
HANDLE hFatherWriteOver = NULL;
HANDLE hChildReadOver = NULL;
//ַ
string str;
//ǷʾûӽѶ
bool giveHint = false;
//ӽ
TCHAR* appName = T... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 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>///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Tavendo GmbH
//
// Boost Software License - Version 1.0 - August 17th, 2003
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompa... |
<commit_before>// Copyright 2016 AUV-IITK
#include <cv.h>
#include <highgui.h>
#include <ros/ros.h>
#include "std_msgs/String.h"
#include "std_msgs/Int8.h"
#include <fstream>
#include <vector>
#include <std_msgs/Bool.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <dynamic_reconfigur... |
<commit_before>/* The goal of these tests is to verify the behavior of all blob commands given
* the current state is verificationStarted. This state is achieved as a out of
* verificationPending.
*/
#include "firmware_handler.hpp"
#include "firmware_unittest.hpp"
#include "status.hpp"
#include "util.hpp"
#include... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2008, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>#pragma once
namespace despairagus {
namespace bitnode {
template <typename A>
class bitnode {
namespace {
template<typename B>
using conref = const B &;
using byte = unsigned char;
using bit = bool;
template <typename A>
static inline void killPtr(A* &a) noexcept {
... |
<commit_before>#pragma once
namespace despairagus {
namespace bitnode {
template <typename A>
class bitnode final {
template<typename B>
using conref = const B &;
using byte = unsigned char;
using bit = bool;
template <typename A>
static inline void killPtr(A* &a) noexcept {
if (a !... |
<commit_before>/*
Copyright (c) 2013, Sean Kasun
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 condi... |
<commit_before>#include "oglWidget.h"
//
// CONSTRUCTORS ////////////////////////////////////////////////////////////////
//
/**
* @brief Default constructor for OGLWidget.
*/
OGLWidget::OGLWidget()
{
// Update the widget after a frameswap
connect( this, SIGNAL( frameSwapped() ),
this, SLOT( u... |
<commit_before>/*
Allocore Example: Fluid
Description:
This demonstrates a 3D fluid simulation
Author:
Graham Wakefield 2011
*/
#include "allocore/al_Allocore.hpp"
#include "allocore/graphics/al_Shader.hpp"
#include "allocore/graphics/al_Isosurface.hpp"
#include "alloutil/al_Field3D.hpp"
using namespace al;
// As... |
<commit_before>/*
* Copyright 2011-2015 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include <entry/cmd.h>
#include <entry/input.h>
#include <debugdraw/debugdraw.h>
#include "camera.h"
#include <bx/uint32_t... |
<commit_before>/**********************************************************************
* Copyright (c) 2013-2014 Red Hat, Inc.
*
* Developed by Daynix Computing LTD.
*
* Authors:
* Dmitry Fleytman <dmitry@daynix.com>
* Pavel Gurvich <pavel@daynix.com>
*
* Licensed under the Apache License, Version 2.0 (the "Li... |
<commit_before>#include "core/HierarchicalEA.hpp"
#include "core/CrossoverOperation.hpp"
#include "core/EndCondition.hpp"
#include "core/FitnessFunction.hpp"
#include "core/ToStringFunction.hpp"
#include "core/GeneNode.hpp"
#include "core/EvolutionarySystem.hpp"
#include "core/Genome.hpp"
#include "core/PopulationNode.... |
<commit_before>#include "hermes1d.h"
#include "legendre.h"
#include "quad_std.h"
// This test makes sure that Legendre
// polynomial starting with the linear
// one, integrated from -1 to 1 numerically,
// gives zero.
#define ERROR_SUCCESS 0
#define ERROR_FAILURE ... |
<commit_before>//===-- SIPropagateImmReads.cpp - TODO: Add brief description -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------... |
<commit_before>#include "include/FeedbackDelegate.h"
#include <memory>
#include <QPainter>
#include <QMouseEvent>
#include "SearchObject.h"
#include "SearchResultElementFeedback.h"
#include "DualFeedbackEditor.h"
/**
* @brief Implementation of QStyledItemDelegate::paint.
* @param painter
* @param option
* @param i... |
<commit_before>/* Copyright 2018 The TensorFlow 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 the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>//
// Copyright (C) 2012
// Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 lat... |
<commit_before>//modify maxn to the max length/9
//* can be improved
// / and % are not completely tested.
//can not support negative number
#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
const int base=1000000000;
const int maxn=500;
struct bigint
{
int len;
int data[maxn];
i... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (ivan.frade@nokia.com)
**
** This file is part of the test suite of the QtSparql module (not yet... |
<commit_before>// Petter Strandmark 2013
// petter.strandmark@gmail.com
//
// Dantzig, G B, chapter 3.3 in Linear Programming and Extensions,
// Princeton University Press, Princeton, New Jersey, 1963.
// http://en.wikipedia.org/wiki/AMPL
#include <iostream>
#include <map>
#include <set>
#include <string>
using names... |
<commit_before>/* Copyright 2017 The TensorFlow 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 the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appl... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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>#include "Shader.h"
#include <functional>
Shader::Shader() {
// Create the program
program = glCreateProgram();
const GLchar* vshader[] =
{
"#version 140\nin vec2 LVertexPos2D; void main() { gl_Position = vec4( LVertexPos2D.x, LVertexPos2D.y, 0, 1 ); }"
};
// Create and compile the vertex shad... |
<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 <math.h>
#include <cstdio>
#include <cstdlib>
#include "Sprite.h"
#include "Game.h"
#ifndef clamp
#define clamp(N,L,U) N=std::max((float)L,std::min(N,(float)U))
#endif
Sprite::Sprite():
destroyTexture(false)
{
texture = nullptr;
}
Sprite::Sprite(std::string file, int frameC... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkWidgetRepresentation.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detail... |
<commit_before>/*
* Copyright (C) 2011 Josh A. Beam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, t... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
utils/gnupg-helper.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2008 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.