text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright (C) 2014 Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... |
<commit_before>/* Autogenerated with kurento-module-creator */
#include "TelmateFrameGrabberOpenCVImpl.hpp"
#include <KurentoException.hpp>
namespace pt = boost::posix_time;
namespace kurento {
TelmateFrameGrabberOpenCVImpl::TelmateFrameGrabberOpenCVImpl()
{
this->thrLoop = true;
this->frameQueue = new boo... |
<commit_before>#pragma once
#ifndef __VALIJSON_CONSTRAINTS_CONSTRAINT_VISITOR_HPP
#define __VALIJSON_CONSTRAINTS_CONSTRAINT_VISITOR_HPP
namespace valijson {
namespace constraints {
struct FormatConstraint;
class AllOfConstraint;
class AnyOfConstraint;
class DependenciesConstraint;
class EnumConstraint;
class LinearI... |
<commit_before>#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/gl/Texture.h"
#include "cinder/svg/Svg.h"
#include "cinder/ip/Fill.h"
//#include "cinder/svg/SvgGl.h"
#include "cinder/cairo/Cairo.h"
using namespace ci;
using namespace ci::app;
using namespace std... |
<commit_before>#include "MipsExecutor.h"
CMipsExecutor::CMipsExecutor(CMIPS& context, uint32 maxAddress)
: m_context(context)
, m_subTableCount(0)
#ifdef DEBUGGER_INCLUDED
, m_breakpointsDisabledOnce(false)
#endif
{
if(maxAddress < 0x10000)
{
maxAddress = 0x10000;
}
assert((maxAddress & 0xFFFF) == 0... |
<commit_before>#include <android/log.h>
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <jni.h>
#include <stdlib.h>
#include "tango-api/tango_client_api.h"
#define GLM_FORCE_RADIANS
#include "glm.hpp"
#include "gtc/matrix_transform.hpp"
#include "gtc/quaternion.hpp"
#include "gtc/type_ptr.hpp"
#define LOG... |
<commit_before>//===- Test.cpp -----------------------------------------------------------===//
//
// The pat Team
//
// This file is distributed under the New BSD License.
// See LICENSE for details.
//
//===----------------------------------------------------------------------===//
#include <pat/... |
<commit_before>/**************************************************************************
**
** This file is part of Doxygen plugin for Qt Creator
**
** Copyright (c) 2009 Kevin Tanguy (kofee@kofee.org).
**
** This plugin is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser G... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: template.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: rt $ $Date: 2005-09-08 03:57:48 $
*
* The Contents of this file are made... |
<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> /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2009-2012, Willow Garage, Inc.
* Copyright (c) 2012-, Open Perception, Inc.
* Copyright (c) 2014, RadiantBlue Technologies, Inc.
* Copyright (c) 2014, Centrum Wiskunde Informatic... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSigmaProjectionImageFilterTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights re... |
<commit_before>// Copyright 2013 The Flutter 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 "fl_renderer.h"
#include "flutter/shell/platform/embedder/embedder.h"
G_DEFINE_QUARK(fl_renderer_error_quark, fl_renderer_error)
... |
<commit_before>// $Id$
/*
Copyright (c) 2007-2009, Trustees of The Leland Stanford Junior University
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>#ifndef _MPH_HASH_H_
#define _MPH_HASH_H_
#include <cmath>
#include <vector.hpp>
#include <list.hpp>
namespace hash_functions {
int knuth_div_hash(int k, int n) {
return (k * (k + 3) ) % n;
}
int mod_hash(int k, int n) {
return k % n;
}
int mult_hash(int k, int n) {
float A =... |
<commit_before>#include <Halide.h>
#include "halide-hexagon-setup.h"
#include <stdio.h>
using namespace Halide;
using namespace Halide::Internal;
IRPrinter irp(std::cerr);
// RUN: rm -f stdout; ./nv12-max.out; llvm-dis -o stdout nv12torgb888.bc ;FileCheck %s < stdout
//CHECK-NOT: vmax
#define COMPILE_OBJ(X) ((X).... |
<commit_before>// Copyright (c) 2012-2020 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 <interfaces/chain.h>
#include <node/context.h>
#include <wallet/coinselectio... |
<commit_before><commit_msg>Update inlineMathFunctions.hpp<commit_after><|endoftext|> |
<commit_before>#pragma once
/*
MIT License
Copyright (c) 2017 Arlen Keshabyan (arlen.albert@gmail.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... |
<commit_before>/**************************************************************************
*
* Copyright 2013 VMware, 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 t... |
<commit_before>#pragma once
#include <eosiolib/print.hpp>
#include <eosiolib/action.hpp>
#include <boost/fusion/adapted/std_tuple.hpp>
#include <boost/fusion/include/std_tuple.hpp>
#include <boost/mp11/tuple.hpp>
#define N(X) ::eosio::string_to_name(#X)
namespace eosio {
template<typename Contract, typename FirstA... |
<commit_before>//===-- TimeProfiler.cpp - Hierarchical Time Profiler ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Used for testing, do not use it as an example
#include <iostream>
#include "qpp.h"
int main() {
/////////// testing ///////////
using namespace qpp;
QCircuit qc{4, 4};
qc.QFT();
qc.measureZ(0, 0);
qc.measureZ(1, 1);
std::cout << qc << std::endl << std::endl;
QEngin... |
<commit_before>#include <uv.h>
#include "sds.h"
#include "sds_responder.hpp"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
using namespace rapidjson;
extern char* current_time;
void create_plaintext_response_sds(write_batch* batch) {
sds response_buffer = sdsnew("HTTP/1.1 200 OK\r\n");
re... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2005 Artem Pavlenko
*
* Mapnik 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 an... |
<commit_before>/*
* despot1_main.cpp
*
* Created by Tobias Wood on 27/01/2015.
* Copyright (c) 2015 Tobias Wood.
*
* 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 distributed with this
* file, You can obtain one at http://mozilla.org/MP... |
<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>/**
* Steps to do for pwm
* 1. "echo am33xx_pwm > /sys/devices/bone_capemgr.9/slots"
* 2. "echo bone_pwm_P8_13 > /sys/devices/bone_capemgr.9/slots"
* 3. "cd /sys/devices/ocp.3/pwm_test_P8_13.16/"
* 4. "echo 0 > duty" for max value or "echo 500000 > duty" for min value
*/
#include "gpio.hpp"
#incl... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/layers/base_layer_derivations/base_tivlayer.h"
using namespace elm;
base_TIVLayer... |
<commit_before>#include "condor_common.h"
#include "condor_classad.h"
BEGIN_NAMESPACE( classad )
ClassAd* getOldClassAd( Sock& sock )
{
ClassAd *ad = new ClassAd( );
if( !ad ) {
return (ClassAd*) 0;
}
if( !getOldClassAd( sock, *ad ) ) {
delete ad;
return NULL;
}
return ad;
}
bool getOldClassAd( Sock& ... |
<commit_before><commit_msg>[HOTFIX] Release Python GIL & reset threat state<commit_after><|endoftext|> |
<commit_before>#include <gtest/gtest.h>
#include <map>
// PRIVATE API
extern "C" {
#include "disir_private.h"
#include "value.h"
}
#include "test_helper.h"
// Global recurring sample string
const char sample[] = "Snickers and Mars bars";
class DisirValueGenericTest: public testing::DisirTestWrapper
{
protected:
... |
<commit_before>#pragma once
#ifndef VIEW_HPP
#define VIEW_HPP
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <functional>
#include <GL/gl3w.h>
#include <GLFW/glfw3.h>
//template<typename T> struct std::function;
namespace View {
void printErrors(const char *prefix);
/// A view structure (state... |
<commit_before>//===-- SymbolTable.cpp - Implement the SymbolTable class -----------------===//
//
// 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>/*
*
* interval.cpp
*/
#include <iostream>
#include <utility>
// Include the prototype of the Interval Tree class
#include "interval.h"
using namespace std;
#define INF 1000000000
// Definition of the functions of Interval Class
// Constructor
Interval::Interval()
{
root = NULL;
}
// Insert an... |
<commit_before>#include "Detour.h"
XHACKING_START_NAMESPACE
LONG WINAPI EHandler(EXCEPTION_POINTERS* /*ExceptionInfo*/);
bool EHApplied = false;
std::vector<Detour_i*> EHandlers;
Detour_i::Detour_i(BYTE* src, BYTE* dst, BYTE arguments) :
_src(src),
_dst(dst),
_arguments(arguments),
_withTrampoline(false),
_deto... |
<commit_before>/***********************************************************************
dummy.cpp - Exists solely to fix a problem with Visual Studio: it won't
show the C/C++ project settings unless there is a *.cpp file in the
project. Rather than rename all the *.cc files, I'm just adding
this to the projects fo... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: surfaceProcessor.C,v 1.6 2002/12/20 14:01:45 oliver Exp $
#include <BALL/STRUCTURE/surfaceProcessor.h>
namespace BALL
{
SurfaceProcessor::SurfaceProcessor()
: ses_(true),
surface_(),
spheres_(),
density_(4.5),
probe_radius_... |
<commit_before>/* Copyright 2022 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 <engine/gfx/opengl_glew.hpp>
#include <engine/window/sdl_window.hpp>
#include <stlw/format.hpp>
#include <stlw/type_ctors.hpp>
namespace engine
{
namespace window
{
stlw::result<stlw::empty_type, std::string>
sdl_library::init()
{
// (from the docs) The requested attributes should be set bef... |
<commit_before>/*************************************************************************/
/* translation_loader_po.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#include "config.h"
#if HAVE_ALUGRID
# include <dune/grid/alugrid.hh>
# include <dune/... |
<commit_before>/**
* @file joint_interpolation_planner.cpp
* @brief Joint interpolation planner for moveit.
*
* This class is used to represent a joint interpolated path planner for
* moveit. This planner does not have the inherent ability to avoid
* collision. It does check if the path created is collision free... |
<commit_before>/*
* SchemeSmobAtom.c
*
* Scheme small objects (SMOBS) for opencog atom properties
*
* Copyright (c) 2008,2009 Linas Vepstas <linas@linas.org>
*/
#ifdef HAVE_GUILE
#include <vector>
#include <libguile.h>
#include <opencog/atomspace/ClassServer.h>
#include <opencog/atomspace/TruthValue.h>
#inclu... |
<commit_before>#include "features2d.h"
#include "features2d_DescriptorMatcher.h"
#include "features2d_FeatureDetector.h"
#include "features2d_AgastFeatureDetector.h"
#include "features2d_AKAZE.h"
#include "features2d_BRISK.h"
#include "features2d_GFTTDetector.h"
#include "features2d_KAZE.h"
#include "features2d_MSER.h... |
<commit_before>#include "analysis/ReachingDefinitions/Srg/MarkerSRGBuilderFS.h"
using namespace dg::analysis::rd::srg;
/**
* Saves the current definition of certain variable in given block
* Used from value numbering procedures.
*/
void MarkerSRGBuilderFS::writeVariableStrong(const DefSite& var, NodeT *assignment, ... |
<commit_before>/*
* Copyright (C) 2015 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include "sgsql.h"
using namespace std;
using namespace hal;
SGSQL::SGSQL() : _sgBuilder(0), _sg(0)
{
}
SGSQL::~SGSQL()
{
}
void SGSQL::writeDb(const SGBuilder* sgBuilder, const st... |
<commit_before><commit_msg>using placeholders works better at the module level for use throughout the file only use the placeholders that are in use<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2012 Stanford University
*
* Permission to use, copy, modify, and 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 PROVIDED "AS IS" AN... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>// IBM_PROLOG_BEGIN_TAG
// This is an automatically generated prolog.
//
// $Source: src/kernel/blockmsghdlr.C $
//
// IBM CONFIDENTIAL
//
// COPYRIGHT International Business Machines Corp. 2011
//
// p1
//
// Object Code Only (OCO) source materials
// Licensed Internal Code Source Materials
// ... |
<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.
*/
#pragma once
#include "stdafx.h"
#in... |
<commit_before>#ifndef INCLUDE_UNITTESTS_DECIMATER_HH
#define INCLUDE_UNITTESTS_DECIMATER_HH
#include <gtest/gtest.h>
#include <Unittests/unittests_common.hh>
#include <OpenMesh/Tools/Decimater/DecimaterT.hh>
#include <OpenMesh/Tools/Decimater/ModQuadricT.hh>
#include <OpenMesh/Tools/Decimater/ModNormalFlippingT.hh>
... |
<commit_before>//===- InstCombineAtomicRMW.cpp -------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>///
/// @file ParallelSieve.cpp
/// @brief Multi-threaded prime sieve using std::async.
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/config.hpp>
#in... |
<commit_before>/*
* PatternLayout.cpp
*
* Copyright 2002, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include "PortabilityImpl.hh"
#include <log4cpp/PatternLayout.hh>
#include <log4cpp/Priority.hh>
#include <log4cpp/NDC.hh>
#include <log4cpp/TimeSt... |
<commit_before>#ifndef SIMPLEOBJECTCONTROLLER_HPP_INCLUDED
#define SIMPLEOBJECTCONTROLLER_HPP_INCLUDED
template<typename T>
class SimpleObjectController: public tuio::CanDirectObjects <Graphic>
{
T Min, Max;
std::string Addr;
unsigned int f_id;
tuio::DirectObject * dobj;
T & value;
float an... |
<commit_before>#ifndef SHELL_HPP
#define SHELL_HPP
#include <string>
#include <iostream>
#include <vector>
class Shell
{
public:
/**
* Defines a command
*/
struct command
{
std::string command;
std::string name;
int argc;
std::vector<std::str... |
<commit_before>/*
* Copyright (c) 2014 Eran Pe'er.
*
* This program is made available under the terms of the MIT License.
*
* Created on Mar 10, 2014
*/
#include <string>
#include "tpunit++.hpp"
#include "fakeit.hpp"
using namespace fakeit;
struct ArgumentMatchingTests: tpunit::TestFixture {
ArgumentMatchingT... |
<commit_before><commit_msg>Fix missing return value in tracing test.<commit_after><|endoftext|> |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/**
* @file
* exercise_02_41_part_3.cpp
* @author
* Henrik Samuelsson, henrik.samuelsson(at)gmail.com
* @brief
* Part three of exercise 2.41 from the book C++ Primer (5th edition).
* @details
* A program that reads several transactions for the same ISBN. Will then
* wr... |
<commit_before>/******************************************************************************
* Copyright (c) 2015, Bradley J Chambers (brad.chambers@gmail.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* co... |
<commit_before>/* This is a fuzz test of the http parser */
#define WIN32_EXPORT
#include "helpers.h"
/* We test the websocket parser */
#include "../src/HttpParser.h"
/* And the router */
#include "../src/HttpRouter.h"
struct StaticData {
struct RouterData {
};
uWS::HttpRouter<RouterData> router;
... |
<commit_before>/*
* compile both driver code and kernel code with nvcc, as in:
* nvcc simple.c simple.cu
*/
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <vector>
#include <cmath>
#include <ctime>
extern "C" void gpu_sobel(int *source_array, int *result_array,
... |
<commit_before>#include "setupwizard_register.h"
#include "warnings-disable.h"
WARNINGS_DISABLE
#include <QDateTime>
#include <QFileDialog>
// This is used for QHostInfo::localHostName(). It could be replaced with
// QSysInfo::machineHostName() to remove the dependency on the Qt network
// library, but only if we r... |
<commit_before>#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#else
#include <dirent.h>
#include <unistd.h>
#endif
#include <cstring>
#include <string>
#include <set>
#include <algorithm>
#include <stdio.h>
#include <sys/stat.h>
#include <ctype.h>
#include "base/logging.h"
#include "base/basictypes.h"
... |
<commit_before>/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of signon
*
* Copyright (C) 2009-2010 Nokia Corporation.
*
* Contact: Aurel Popirtac <mailto:ext-Aurel.Popirtac@nokia.com>
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
*
* This library is free sof... |
<commit_before>/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of signon
*
* Copyright (C) 2009-2010 Nokia Corporation.
*
* Contact: Aurel Popirtac <mailto:ext-Aurel.Popirtac@nokia.com>
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
*
* This library is free sof... |
<commit_before>/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of signon
*
* Copyright (C) 2009-2010 Nokia Corporation.
*
* Contact: Aurel Popirtac <mailto:ext-Aurel.Popirtac@nokia.com>
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
*
* This library is free sof... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestXMLDisplayOutputWindow.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for det... |
<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 <iostream>
//The following is needed if we don't want to link a Pizza & Chili index.
#define SEQAN_DEBUG_PIZZACHILI
#include <seqan/index.h>
using namespace std;
using namespace seqan;
int main() {
///The following code creates a Pizza & Chili index and assigns it the text
///$"t... |
<commit_before>/* Copyright 2015 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>// Setup.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "Setup.h"
#include "FxHelper.h"
#include "UpdateRunner.h"
#include "MachineInstaller.h"
#include <cstdio>
#include <string>
CAppModule* _Module;
typedef BOOL(WINAPI *SetDefaultDllDirectoriesFunction)(DWORD Dire... |
<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.
*/
/**
* Randomized malloc, for detecting memory-based non-determinisms in redex.
* To use, build redex-all-malloc-db... |
<commit_before>/* Copyright (c) 2015-present Advanced Micro Devices, 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
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>
// Copyright (c) 2012, 2013 Pierre MOULON.
// 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 distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <cstdlib>
#include "software/SfM/SfMIncremental... |
<commit_before>#include <chrono>
#include <algorithm>
#include <vector>
#include <cassert>
#include "foo.h"
#include "util.h"
static double
iterateTest(std::vector<Foo*> &foo_ptrs)
{
namespace c = std::chrono;
auto start = c::high_resolution_clock::now();
for (auto f : foo_ptrs) {
f->update();
}
auto ... |
<commit_before>/*
* Copyright (C) 2017 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>/*
* HyPerLayer.hpp
*
* Created on: Aug 3, 2008
* Author: dcoates
*/
#ifndef HYPERLAYER_HPP_
#define HYPERLAYER_HPP_
#include "../layers/PVLayer.h"
#include "../layers/LayerDataInterface.hpp"
#include "../layers/LIF2.h"
#include "../columns/DataStore.hpp"
#include "../columns/HyPerCol.hpp"
#... |
<commit_before>/***************************************************************************
* Copyright (C) 2004 by Stanislav Karchebny *
* Stanislav.Karchebny@kdemail.net *
* ... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/* Copyright 2016 Google Inc. 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 applicable law o... |
<commit_before>//
// This file is part of the Marble Desktop 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 2006-2007 Torsten Rahn <tackat@kde.org>"
// Copyright 2007 Inge Wall... |
<commit_before>#include "NumericPropertyTableBuilderStub.h"
#include <document-manager/Document.h>
#include <configuration-manager/GroupConfig.h>
#include <search-manager/NumericPropertyTable.h>
#include <glog/logging.h>
#include <cstring> // memcpy
namespace
{
using namespace sf1r;
template<typename T>
void* creat... |
<commit_before>/*****************************************************************************
* Licensed to Qualys, Inc. (QUALYS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* QUALYS licenses this fil... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include "SimpleCertificateManager.hpp"
using namespace std;
using namespace certificate;
int main() {
#ifdef TEST_PRIVATE_KEY_IDENTIFIER_FILE
try {
ifstream file("rootca.key", ios::binary | ios::ate);
streamsize size = file.tellg();
... |
<commit_before><commit_msg>WaE: class has virtual functions, but destructor is not virtual<commit_after><|endoftext|> |
<commit_before>// See Fossen 2011, chapter 12.3.2
#include "lagrange_allocator.h"
#include <iostream>
template<typename Derived>
inline bool is_fucked(const Eigen::MatrixBase<Derived>& x)
{
return !((x.array() == x.array())).all() && !( (x - x).array() == (x - x).array()).all();
}
// Worlds worst print function :... |
<commit_before>/**
* @file src/ThreadManager.cpp
* @date Mar 2016
* @author PhRG - opticalp.fr
*/
/*
Copyright (c) 2016 Ph. Renaud-Goud / Opticalp
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 S... |
<commit_before>/// \author A0112054Y
#include "stdafx.h"
#include "internal/controller.h"
#include "internal/action/add_task.h"
#include "internal/action/update_task.h"
#include "internal/action/delete_task.h"
#include "internal/action/get_task.h"
#include "internal/action/delete_task.h"
#include "internal/action/upda... |
<commit_before>/* Tower-Defence
*
* Author: Jukka Vatjus-Anttila <jukka.vatjusanttila@gmail.com>
*
* For conditions of distribution and use, see copyright notice in LICENSE.txt
*/
#include <iostream>
#include <cstdlib>
#include <sstream>
#include "GameLogic/cGameEntity.h"
#include "GameLogic/cMapper.h"
#include ... |
<commit_before>#include "UniquePathsII.hpp"
int UniquePathsII::uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid)
{
int m = obstacleGrid.size();
if (m == 0)
return 0;
int n = obstacleGrid[0].size();
if (n == 0)
return 0;
vector<int> dp(n, 1);
dp[0] = (obstacleGrid[0][0] == 1) ? 0 : 1;
... |
<commit_before>#include <mitkClaronInterface.h>
#include <string>
#include <MTC.h>
#include <math.h>
#include <mitkVector.h>
mitk::ClaronInterface::ClaronInterface(std::string calibrationDir, std::string toolFilesDir)
{
sprintf(this->calibrationDir, calibrationDir.c_str());
sprintf(this->markerDir,toolFilesDir.c_s... |
<commit_before>//
// This file is part of khmer, http://github.com/ged-lab/khmer/, and is
// Copyright (C) Michigan State University, 2009-2013. It is licensed under
// the three-clause BSD license; see doc/LICENSE.txt. Contact: ctb@msu.edu
//
#include "hllcounter.hh"
#include <math.h>
#include <algorithm>
#include <... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.