text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
#include <iterator>
#include <cstdlib> //malloc, realloc
#include <cstring> //memcpy, memmove
#include <exception> //bad_alloc
#include <type_traits>
#include <utility>
namespace tyti {
template<typename T>
class any_iterator : std::iterator<std::bidirectional_iterator_tag, T>
{
//fun... |
<commit_before>#pragma once
#include <hop_bits/optimisationAlgorithm.hpp>
namespace hop {
class CovarianceMatrixAdaptationEvolutionStrategy : public OptimisationAlgorithm {
public:
//TODO: which input parameters should be added to the constructor?
explicit CovarianceMatrixAdaptationEvolutionStrategy... |
<commit_before>// win32.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <cstdio>
#include "test.h"
int _tmain(int argc, _TCHAR* argv[])
{
Test t;
int i = t.function_one(400, true, "Hello World!");
printf("function_one: %i\n", i);
bool b = t.function_two(4.2e14, (v... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/phy/adr32s.H $ ... |
<commit_before>/*
* Copyright (C) 2017 Fondazione Istituto Italiano di Tecnologia
* Authors: Silvio Traversaro
* CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
*
*/
#include <iDynTree/InverseKinematics.h>
#include <iDynTree/KinDynComputations.h>
#include <iDynTree/Core/TestUtils.h>
#... |
<commit_before>//===-- Local.cpp - Functions to perform local transformations ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>#include <catch.hpp>
#include <rapidcheck-catch.h>
#include <numeric>
#include "util/Predictable.h"
#include "util/GenUtils.h"
#include "util/ArbitraryRandom.h"
#include "rapidcheck/newgen/detail/ExecRaw.h"
#include "rapidcheck/shrinkable/Operations.h"
#include "rapidcheck/seq/Operations.h"
using nam... |
<commit_before>#include "Halide.h"
#include <cstdio>
#include <cstdint>
#include "benchmark.h"
using namespace Halide;
template<typename T>
bool test(int w, bool div) {
Func f, g, h;
Var x, y;
size_t bits = sizeof(T)*8;
bool is_signed = (T)(-1) < (T)(0);
printf("%sInt(%2d, %2d) ",
... |
<commit_before>/*
The class for calculating the global (not detector specific) quality assurance.
It reuses the following TLists from its base class
AliQADataMaker::fRecPointsQAList (for keeping the track residuals)
AliQADataMaker::fESDsQAList (for keeping global ESD QA data)
*/
#include <TPDGCode.h>
#... |
<commit_before>#include <vector>
#include <Poco/Exception.h>
#include "service/GatewayService.h"
#include "server/AccessLevel.h"
#include "dao/GatewayDao.h"
#include "dao/RoleInPlaceDao.h"
#include "dao/PlaceDao.h"
#include "dao/IdentityDao.h"
#include "dao/VerifiedIdentityDao.h"
#include "policy/GatewayAccessPolicy.h... |
<commit_before>#include "mex.h"
#include "matrix.h"
#include <cmath>
#include <cstdint>
#include <thread>
#include <emmintrin.h>
/*
* compilation, at matlab prompt: (adjust NUM_THREADS as appropriate)
*
* == windows ==
*
* mex OPTIMFLAGS="/O2" -largeArrayDims -DNUM_THREADS=4 dmsm.cpp
*
* == linux ==
*
* m... |
<commit_before>/* vim: tabstop=2 shiftwidth=2 expandtab textwidth=80 linebreak wrap
*
* Copyright 2012 Matthew McCormick
* Copyright 2015 Pawel 'l0ner' Soltys
*
* 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 ... |
<commit_before>#ifndef __MODEL_HPP_INCLUDED
#define __MODEL_HPP_INCLUDED
// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <GL/glew.h>
#endif
// Include GLFW
#ifndef __GLFW3_H_INCLUDED
#define __GLFW3_H_INCLUDED
#include <glfw3.h>
#endif
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include "Hardware.h"
#define PIN_LED_R 14
#define PIN_LED_G 13
#define PIN_LED_B 10
#define PIN_MOTOR_I_PWM 22
#define PIN_MOTOR_I_DIR 27
#define PIN_MOTOR_J_PWM 24
#define PIN_MOTOR_J_DIR 28
#define PIN_MOTOR_K_PWM 25
#define PIN_MOTOR_K_DIR 29
#define PIN_LINE_LED 12
Hardware::Hardware() {
wir... |
<commit_before>/*
* Copyright (c) 2016 Joseph Thomson
*
* 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, modi... |
<commit_before>/*
* wexcept.hpp
* Classes to handle exceptions with const wchar_t* messages
*
* written by janus_wel<[email protected]>
* This source code is in the public domain, and has NO WARRANTY.
* */
#ifndef WEXCEPT_HPP
#define WEXCEPT_HPP
#include <exception>
#include <string>
namespace util {
n... |
<commit_before>#include "openCLUtilities.hpp"
cl::Context createCLContext(cl_device_type type, bool GLInterop, cl_vendor vendor) {
// Get available platforms
cl::vector<cl::Platform> platforms;
cl::Platform::get(&platforms);
if(platforms.size() == 0)
throw cl::Error(1, "No... |
<commit_before><commit_msg>Made dashesy's changes to for loop that checks for additional parameters in OnFileConfig( )<commit_after><|endoftext|> |
<commit_before>/***********************************************************************
filename: CEGuiGLFWSharedBase.cpp
created: 12/2/2012
author: Paul D Turner
*************************************************************************/
/************************************************************************... |
<commit_before>/**
* \file
* \brief SignalsCatcherControlBlock class header
*
* \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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 (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <ctime>
#include <i... |
<commit_before>#include "ValueViewerTable.h"
#include "CCAPI/Common.h"
#include "CCAPI/Helpers.h"
#include <iostream>
#include <fstream>
#include <FL/fl_draw.H>
#include <FL/Fl_Widget.H>
#include "ui_main.h"
using namespace std;
#define ADDRESS_COL 0
#define VALUE_COL 1
#define HEX_COL 2
#define VALUE_COLS 3
... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2016 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>// MsOfficeDocumentInformation.h: Schnittstelle f�r die Klasse MsOfficeDocumentInformation.
//
//////////////////////////////////////////////////////////////////////
#ifndef _REGISTRATIONCONTEXTINFORMATION_HXX_
#define _REGISTRATIONCONTEXTINFORMATION_HXX_
#pragma warning(push, 1) /* disable warnings wi... |
<commit_before>#ifndef STAN_MATH_REV_SCAL_FUNCTOR_REDUCE_SUM_HPP
#define STAN_MATH_REV_SCAL_FUNCTOR_REDUCE_SUM_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/rev/fun/typedefs.hpp>
#include <tbb/task_arena.h>
#include <tbb/parallel_reduce.h>
#include <tbb/blocked_range.h>
#include <iostream>
#include <ite... |
<commit_before>/*******************************
Copyright (C) 2013-2015 gregoire ANGERAND
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 late... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... |
<commit_before>/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "DexStructure.h"
#include <boost/algorithm/string/predicate.hpp>
#include <vector>
#include "DexClass.h"... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: doctemplateslocal.cxx,v $
* $Rev... |
<commit_before>#include <iostream>
#include "DDImage/ddImageVersionNumbers.h"
int main(int, char*[])
{
std::cout << kDDImageVersion;
return 0;
}
<commit_msg>Build Nuke stuff into lib/nuke${MAJOR}.${MINOR} (e.g lib/nuke6.2)<commit_after>#include <iostream>
#include "DDImage/ddImageVersionNumbers.h"
int main(int, cha... |
<commit_before>#include "ARVersion.h"
#if !defined(__CINT__) || defined(__MAKECINT__)
#include "AliCDBManager.h"
#include "AliCDBStorage.h"
#include "AliCDBId.h"
#include "AliCDBMetaData.h"
#include "AliGeomManager.h"
#include <TROOT.h>
#include "AliRun.h"
#include <TGeoManager.h>
#include <TString.h>
#endif
void Upda... |
<commit_before>#include <iostream>
#include <pwd.h>
#include <sys/time.h>
#include <unordered_set>
#include <stdlib.h>
#include <unistd.h>
#include <dirent.h>
#include <fnmatch.h>
#include "f2db_Options.h"
#include "buildRmapT.h"
#include "epoch.h"
#include "xalt_user.h"
#include "xalt_fgets_alloc.h"
int buildUserSet... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rig... |
<commit_before>/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: RooFitCore
* File: $Id: RooAcceptReject.cc,v 1.20 2001/11/07 01:56:06 verkerke Exp $
* Authors:
* DK, David Kirkby, Stanford University, [email protected]... |
<commit_before>/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
*... |
<commit_before>/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
*... |
<commit_before>#include "Globals.h"
#include "App.h"
#include "ModuleInput.h"
#include "ModuleCamera3D.h"
#include "EditorUI.h"
#include "Game.h"
#include "ModuleWindow.h"
#include "Cursor.h"
#include "imgui.h"
#include "JSONLoader.h"
ModuleCamera3D::ModuleCamera3D(bool start_enabled) : Module(start_enabled)
{
SetNam... |
<commit_before><commit_msg>coverity#1209778 & coverity#1209777 Resource leak<commit_after><|endoftext|> |
<commit_before>//Simplified TParticle class
#include "AliHBTParticle.h"
#include <TParticle.h>
ClassImp(AliHBTParticle)
//______________________________________________________________________________
AliHBTParticle::AliHBTParticle():
fPdgCode(0), fPx(0), fPy(0),fPz(0),fE(0), fVx(0), fVy(0),fVz(0... |
<commit_before>#ifndef NEU_ANY_LAYER_VECTOR_HPP
#define NEU_ANY_LAYER_VECTOR_HPP
//20150914
#include <vector>
#include <neu/basic_type.hpp>
#include <neu/range/algorithm.hpp>
#include <neu/range/gpu_buffer_range.hpp>
#include <neu/layer/traits.hpp>
#include <neu/layer/any_layer.hpp>
#include <neu/layer/deserialize_fwd.... |
<commit_before>/* Copyright (C) 2004 MySQL AB
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; version 2 of the License.
This program is distributed in the hope that it will be useful,
... |
<commit_before>#include <Windows.h>
#include <cstdio>
#include <cstring>
using namespace std;
enum DisplaySelection {
DS_MONITOR = 1,
DS_HDMI = 2,
DS_TOGGLE = 3,
};
/* This array must match the above enum */
char *DisplaySelectionString[] = {
"Monitor",
"HDMI",
"Toggle",
};
#define MAX_PATH_ELEMENTS 128
#defi... |
<commit_before>// Copyright 2020, Intel Corporation
#include "mlir/Conversion/GPUToVulkan/ConvertGPUToVulkanPass.h"
#include "mlir/Conversion/SCFToGPU/SCFToGPU.h"
#include "mlir/Conversion/SCFToGPU/SCFToGPUPass.h"
#include "mlir/Conversion/SCFToStandard/SCFToStandard.h"
#include "mlir/Conversion/StandardToLLVM/Convert... |
<commit_before><commit_msg>throw error if mcnp_to_id is unsuccessful<commit_after><|endoftext|> |
<commit_before><commit_msg>New correct fix for memory leaks in AliTPCDigitizer<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "BaseTestBlock.hpp"... |
<commit_before>#include "NotificationLoader.h"
CNotificationLoader::CNotificationLoader()
{
m_hNotificationDLL = NULL;
lpfn_Notify_FindClose = NULL;
lpfn_Notify_FindFirst = NULL;
lpfn_Notify_FindNext = NULL;
lpfn_Notify_SetCycleInfo = NULL;
lpfn_Notify_GetCycleInfo = NULL;
lpfn_Notify_SetState ... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 wit... |
<commit_before>#include <iostream>
#include <sstream>
#include <iomanip>
#include <kvs/StructuredVolumeObject>
#include <kvs/StructuredVolumeImporter>
#include <kvs/HydrogenVolumeData>
#include <kvs/RayCastingRenderer>
#include <kvs/Timer>
#include <kvs/egl/Screen>
int main( int argc, char** argv )
{
kvs::Structu... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include "gtest/gtest.h"
#include <hspp/Managers/GameA... |
<commit_before>// PWHistDlg.cpp : implementation file
//
#include "stdafx.h"
#include "PasswordSafe.h"
#include "ThisMfcApp.h"
#include "resource.h"
#include "PWHistDlg.h"
#include "corelib/ItemData.h"
#include ".\pwhistdlg.h"
// CPWHistDlg dialog
IMPLEMENT_DYNAMIC(CPWHistDlg, CDialog)
CPWHistDlg::CPWHistDlg(CWnd... |
<commit_before>#include "websocketbroker.h"
#include "logger.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QVector>
#include <QFile>
#include <QCoreApplication>
#include <QRegularExpression>
WebSocketBroker::WebSocketBroker(const QString& vssFile)
{
loadJson(vssFile);
loadTempSignalList();
c... |
<commit_before>/*
* opencog/atoms/core/Checkers.cc
*
* Copyright (C) 2017 Linas Vepstas
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software Foundation and including the... |
<commit_before>// Do nothing, if no thread support
#ifdef QT_THREAD_SUPPORT
#include "threads.h"
#include "mainframe.h"
#include <BALL/MOLMEC/MINIMIZATION/energyMinimizer.h>
#include <BALL/MOLMEC/MDSIMULATION/molecularDynamics.h>
#include <BALL/VIEW/WIDGETS/scene.h>
#include <BALL/MOLMEC/AMBER/amber.h>
namespace BALL... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// transaction_test.cpp
//
// Identification: tests/concurrency/transaction_test.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===--------------------... |
<commit_before>/*
* Chrome Token Signing Native Host
*
* 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 "stdafx.h"
struct Screen
{
int32_t Width;
int32_t Height;
int32_t Width43;
} Screen;
DWORD WINAPI WindowCheck(LPVOID hWnd)
{
while (true)
{
Sleep(10);
if (*(HWND*)hWnd && !IsWindow(*(HWND*)hWnd))
ExitProcess(0);
}
return 0;
}
void Init(... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: surfaceModel.C,v 1.19 2002/12/17 18:39:18 amoll Exp $
#include <BALL/MOLVIEW/FUNCTOR/surfaceModel.h>
#include <BALL/KERNEL/system.h>
#include <BALL/STRUCTURE/surfaceProcessor.h>
#include <BALL/MOLVIEW/FUNCTOR/molecularInformation.h>
#includ... |
<commit_before>#include <reflection/reflection.h>
REFLECTABLE(auto, operator!=, member_function);
REFLECTABLE(auto, operator%, member_function);
REFLECTABLE(auto, operator%=, member_function);
REFLECTABLE(auto, operator&, member_function);
REFLECTABLE(auto, operator&&, member_function);
REFLECTABLE(auto, ... |
<commit_before>/*
Copyright (c) 2019 -> Present Advanced Micro Devices, Inc. All rights reserved.
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 t... |
<commit_before>/* Jim Viebke
Jun 3 2015 */
#include "npc_enemy.h"
void Hostile_NPC::update(World & world, map<string, shared_ptr<Character>> & actors)
{
// every time this is called, the NPC executes one action against the world then returns
// any number of internal objectives may be created, updated, or deleted
... |
<commit_before>#include "wiVersion.h"
#include <sstream>
namespace wiVersion
{
// main engine core
const int major = 0;
// minor features, major updates
const int minor = 18;
// minor bug fixes, alterations, refactors, updates
const int revision = 8;
long GetVersion()
{
return major * 1000000 + minor * 10... |
<commit_before>#include <iostream>
int main()
{
printf("Hello World!\n");
}<commit_msg>Fixed the invalid input section<commit_after>#include <iostream>
#include <stdio.h>
unsigned long Fabonacci_Lookup[31] =
{
0,
1,
1,
2,
3,
5,
8,
13,
21,
34,
55,
89,
144,
233,
377,
610,
987... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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, c... |
<commit_before>#include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/Rand.h"
#include "entityx/Event.h"
#include "entityx/Entity.h"
#include "entityx/System.h"
#include "pockets/Types.h"
using namespace ci;
using namespace ci::app;
using namespace std;
using namespace entityx;
using pockets::... |
<commit_before>#include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/Rand.h"
#include "cinder/Json.h"
#include "cinder/ip/Premultiply.h"
#include "entityx/Event.h"
#include "entityx/Entity.h"
#include "entityx/System.h"
#include "puptent/BatchRenderSystem2d.h"
#include "puptent/PhysicsSystem2d.... |
<commit_before>/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/
#include "AppConfig.h"
#include <juce_video/juce_video.cpp>
<commit_msg>Delete juce_video.cpp<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: drtxtob2.cxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: rt $ $Date: 2005-09-08 20:54:22 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* $RCSfile: fuconarc.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2003-11-24 17:26:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "dlg_status.h"
#include "control.h"
#include "hardware.h"
#include <QtGui>
#include <QApplication>
StatusDlg::StatusDlg(QWidget *parent, QWidget *controlDlg)
: QWidget(parent)
, m_controlDlg(controlDlg)
{
ui.setupUi(this);
Qt::WindowFlags flags = windowFlags();
flags |= Qt::Framel... |
<commit_before>/*
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
*
* 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>#include <vector>
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
vector <unsigned> IT(vector <unsigned>& x)
{
int i;
// cout << x[0] <<endl;
/*
for (i=0;i < x[0].size();i++){
cout << "AAAA"<<" "<<x[0][i]<<endl;
}
*/
x[0]=x[0]+1;
x[1]=x[1]+2;
return x;
}
int m... |
<commit_before>#include "stdafx.h"
#include "SmartViewTestData.h"
#include "resource.h"
namespace SmartViewTestData
{
struct SmartViewTestResource {
__ParsingTypeEnum structType;
bool parseAll;
DWORD hex;
DWORD expected;
};
// Resource files saved in unicode have a byte order mark of 0xfeff
// We load the... |
<commit_before>/*************************************************************************
*
* $RCSfile: image.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:12:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>
#ifndef __CLIENT_HPP__
#define __CLIENT_HPP__
#include <pthread.h>
#include "protocol.hpp"
using namespace std;
/* Information shared between clients */
struct shared_t {
public:
typedef protocol_t*(*protocol_factory_t)(void);
public:
shared_t(config_t *_config, protocol_factory_t _proto... |
<commit_before>#include <nan.h>
// toys used in testing
#include <cmath>
#include <time.h>
//==============================================================================
// Implementation sketch
//==============================================================================
namespace NanIntern { // scnr
template... |
<commit_before>#ifndef __RANK_FILTER__
#define __RANK_FILTER__
#include <list>
#include <set>
#include <cmath>
#include <cassert>
#include <iostream>
#include <iterator>
#include <type_traits>
#include <utility>
#include <vigra/multi_array.hxx>
#include <vigra/linear_algebra.hxx>
namespace vigra
{
template<unsigne... |
<commit_before>#include <cmd_classbook_localization_add_record_handler.h>
#include <QJsonArray>
#include <QSqlError>
#include <log.h>
#include <QUuid>
#include <QCryptographicHash>
CmdClassbookLocalizationAddRecordHandler::CmdClassbookLocalizationAddRecordHandler(){
m_vInputs.push_back(CmdInputDef("classbookid").r... |
<commit_before>#include "mpi_common.h"
#include <iostream>
#include "phonons.h"
#include "timer.h"
#include "parsephon.h"
#include "memory.h"
#include "error.h"
#include "gruneisen.h"
#include "system.h"
#include "symmetry_core.h"
#include "kpoint.h"
#include "fcs_phonon.h"
#include "dynamical.h"
#include "phonon_veloc... |
<commit_before>#include <iostream>
#include <settings_class.h>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
void Settings_Profile::test_function(int a){
std::cout << a;
return;
}
Settings_Profile::Settings_Profile(){
}
Settings_Profile::Settings_Profile(std::s... |
<commit_before>#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
using namespace std;
int main()
{
while(1)
{
string path;
getline(cin, path);
cv::Mat input = cv::imread(path+".jpg");
cv::Mat hsv_filtered15;//画像の初期化
cv::Mat hsv_filtered18... |
<commit_before>/*
* opencog/atomspace/AtomSpace.cc
*
* Copyright (c) 2008-2010 OpenCog Foundation
* Copyright (c) 2009, 2013 Linas Vepstas
* All Rights Reserved
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* publish... |
<commit_before><commit_msg>lp: added detection of problem type<commit_after><|endoftext|> |
<commit_before>/**
@file Rule/Defs.hpp
@brief Rule definitions.
@author Tim Howard
@copyright 2013 Tim Howard under the MIT license;
see @ref index or the accompanying LICENSE file for full text.
*/
#ifndef HORD_RULE_DEFS_HPP_
#define HORD_RULE_DEFS_HPP_
#include <Hord/config.hpp>
#include <Hord/Object/Defs.hpp>
#in... |
<commit_before>#ifndef COBALT_COM_STD_HPP_INCLUDED
#define COBALT_COM_STD_HPP_INCLUDED
#pragma once
// Classes in this file:
// equatable
// comparable
// hashable
// copyable
// coder
// decodable
// encodable
// codable
#include <cobalt/com/error.hpp>
#include <cobalt/utility/intrus... |
<commit_before>#pragma once
#include "util.hpp"
#include <iostream>
#include <memory>
#include <type_traits>
namespace imu {
/**
* A type that can hold any other value. This could be replaced with
* std::any, once it's not experimental anymore.
*
*/
struct value {
typedef std::shared_ptr<value>... |
<commit_before>/************************************************************************/
/* */
/* Copyright 1998-2003 by Hans Meine */
/* Cognitive Systems Group, University of Hamburg, Germany */
/* ... |
<commit_before>// 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 or agreed to in writing, software
// ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkCylinderSource.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighte... |
<commit_before><commit_msg>Draw cicles centred as intended so that folding margin markers look correct.<commit_after><|endoftext|> |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>#include "catch.hpp"
#include "stream.hpp"
#include "gsl.h"
#include <sstream>
#include <algorithm>
using namespace std;
using namespace gsl;
using Payload = vector<ubyte>;
struct TestConnection {
void newMessage(span<const ubyte> bytes) {
switch(getMessageType(bytes)) {
case MqttT... |
<commit_before>#include "quadrature/utility/quadrature_utilities.h"
#include <algorithm>
#include <cmath>
#include "quadrature/tests/quadrature_point_mock.h"
#include "quadrature/tests/quadrature_generator_mock.h"
#include "quadrature/tests/quadrature_set_mock.h"
#include "quadrature/tests/ordinate_mock.h"
#include ... |
<commit_before>/*************************************************************************
*
* $RCSfile: dynamicregister.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: vg $ $Date: 2003-04-01 13:16:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>#ifndef SIMDIFY_COMMON
#define SIMDIFY_COMMON
#include "../util/inline.hpp"
#include "../util/type.hpp"
#include "../util/1b.hpp"
#include <cmath>
#include <cstdint>
#include <type_traits>
#include <initializer_list>
#include <algorithm>
#include <array>
#include <utility>
#include <iterator>
#define I... |
<commit_before>/**
* Render Pipeline C++
*
* Copyright (c) 2014-2016 tobspr <[email protected]>
* Copyright (c) 2016-2017 Center of Human-centered Interaction for Coexistence.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation... |
<commit_before>#include "sbt.h"
#include <llvm/Bitcode/BitcodeWriter.h>
#include <llvm/MC/MCAsmInfo.h>
#include <llvm/MC/MCContext.h>
#include <llvm/MC/MCDisassembler/MCDisassembler.h>
#include <llvm/MC/MCInstrInfo.h>
#include <llvm/MC/MCObjectFileInfo.h>
#include <llvm/MC/MCRegisterInfo.h>
#include <llvm/Object/Binar... |
<commit_before>// Copyright 2012 Alessio Sclocco <[email protected]>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.