text stringlengths 54 60.6k |
|---|
<commit_before>#include "Halide.h"
#include <stdio.h>
#include <math.h>
using std::vector;
using namespace Halide;
using namespace Halide::Internal;
class CountInterleaves : public IRVisitor {
public:
int result;
CountInterleaves() : result(0) {}
using IRVisitor::visit;
void visit(const Call *op) {
... |
<commit_before>//===- ConstantProp.cpp - Code to perform Constant Propogation ------------===//
//
// This file implements constant propogation and merging:
//
// Specifically, this:
// * Folds multiple identical constants in the constant pool together
// Note that if one is named and the other is not, that the r... |
<commit_before>//===- LoopDeletion.cpp - Dead Loop Deletion Pass ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------... |
<commit_before>//===- LoopDeletion.cpp - Dead Loop Deletion Pass ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------... |
<commit_before>#include "netlink.hpp"
#define mnl_attr_for_each_cpp(attr, nlh, offset) \
for ((attr) = (struct nlattr*) mnl_nlmsg_get_payload_offset((nlh), (offset)); \
mnl_attr_ok((attr), (char *)mnl_nlmsg_get_payload_tail(nlh) - (char *)(attr)); \
(attr) = mnl_attr_next(attr))
using namespace std;
// Adapted ... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
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 th... |
<commit_before>#include "command.hh"
#include "hash.hh"
#include "legacy.hh"
#include "shared.hh"
#include "references.hh"
#include "archive.hh"
using namespace nix;
struct CmdHash : Command
{
enum Mode { mFile, mPath };
Mode mode;
Base base = SRI;
bool truncate = false;
HashType ht = htSHA256;
... |
<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 "gpu/command_buffer/service/memory_program_cache.h"
#include "base/command_line.h"
#include "base/metrics/histogram.h"
#inclu... |
<commit_before>#include "MuAffineTransform.h"
#include <cmath>
namespace mural
{
MuAffineTransform MuAffineTransformMake(float a, float b, float c, float d, float tx, float ty) {
MuAffineTransform t;
t.a = a; t.b = b; t.c = c; t.d = d; t.tx = tx; t.ty = ty;
return t;
}
MuPoint MuPointApplyAffineTransform(... |
<commit_before>// Copyright (c) 2017 The Khronos Group Inc.
// Copyright (c) 2017 Valve Corporation
// Copyright (c) 2017 LunarG, 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
//
/... |
<commit_before>/***************************************************************************
jabbercontact.cpp - description
-------------------
begin : Fri Apr 12 2002
copyright : (C) 2002 by Daniel Stone
email ... |
<commit_before>/*
* $Id$
*
* Copyright(C) 1998-2006 Satoshi Nakamura
* All rights reserved.
*
*/
#include <qmaccount.h>
#include <qmmacro.h>
#include <qmmessageholder.h>
#include <qmrecents.h>
#include <qsthread.h>
#include <boost/bind.hpp>
#include "uri.h"
using namespace qm;
using names... |
<commit_before>#include "startd.h"
static char *_FileName_ = __FILE__;
ResState::ResState( Resource* rip )
{
r_load_q = new LoadQueue(60);
r_state = owner_state;
r_act = idle_act;
atime = (int)time(NULL);
stime = atime;
this->rip = rip;
}
ResState::~ResState()
{
delete r_load_q;
}
void
ResState::update( Cla... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// QUESO - a library to support the Quantification of Uncertainty
// for Estimation, Simulation and Optimization
//
// Copyright (C) 2008,2009,2010,... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rdboptions.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2006-06-20 04:10:27 $
*
* The Contents of this file are mad... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Contact: Raine Makelainen <raine.makelainen@jollamobile.com>
**
****************************************************************************/
#include "declarativewebcontainer.h"
#includ... |
<commit_before>///
/// @file S2_easy.cpp
/// @brief Calculate the contribution of the clustered easy leaves
/// and the sparse easy leaves in parallel using OpenMP
/// (Deleglise-Rivat algorithm).
///
/// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the B... |
<commit_before>/// @file AesopPredicates.cpp
/// @brief Implementation of Predicatess class as defined in AesopPredicates.h
#include "AesopPredicates.h"
namespace ae {
/// @class Predicates
///
///
Predicates::Predicates(const Requirements &reqs, const Types &types)
: mRequirements(reqs... |
<commit_before>/*
* Copyright (C) 2014 INRA
*
* 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,
* this... |
<commit_before>/*
* kPPP: A pppd front end for the KDE project
*
*
*
*
* Copyright (C) 2004 Simone Gotti
* <simone.gotti@email.it>
*
* based on EzPPP:
* Copyright (C) 1997 Jay Painter
*
* This program is free software; you can redistribute it and/or
* modify it under the... |
<commit_before>//
// test_janus.cpp
// sophos
//
// Created by Raphael Bost on 14/05/2017.
// Copyright © 2017 Raphael Bost. All rights reserved.
//
#include <iostream>
#include <ostream>
#include <fstream>
#include <sse/crypto/puncturable_enc.hpp>
#include <sse/crypto/random.hpp>
#include <sse/crypto/utils.hpp>
... |
<commit_before>#include <matrix.hpp>
#include <catch.hpp>
SCENARIO("copy constructor")
{
Matrix matrix;
Matrix copy(matrix);
REQUIRE(copy.strings_() == 2);
REQUIRE(copy.columns_() == 2);
}
SCENARIO("operator +")
{
Matrix matrix (2, 2);
Matrix matrix1 = Matrix (2, 2);
std::ifstream("text.txt") >... |
<commit_before>#include "stack.hpp"
#include <catch.hpp>
#include <iostream>
using namespace std;
SCENARIO("count", "[count]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
}
SCENARIO("push", "[push]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
REQUIRE(s.top()==1);
}
SCENARIO("pop", "[pop]"){
... |
<commit_before>/*
This file is part of Anabel
Anabel 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.
Anabel is dis... |
<commit_before>#include <CCeilL.h>
#include <COSSignal.h>
static void
ClLanguageSignalHandler(int sig)
{
ClSignalMgrInst->handleSignal(sig);
}
//------------------------
void
ClSignalMgr::
init()
{
signal_command_map_[SIGSYNTAX] = nullptr;
signal_command_map_[SIGEXPR ] = nullptr;
signal_command_map_[SIGINT ... |
<commit_before>#include "ClientHelper.hpp"
namespace Network {
SocketClientHelper::SocketClientHelper(const std::shared_ptr<Network::ABasicSocket>& sock, size_t readSize)
: _readSize(readSize), _connected(true), _socket(sock)
{
_socket->setReadeableCallback(std::bind(&SocketClientHelper::onReadeable, this));
_s... |
<commit_before>#include <cassert>
#include "CodeGen_Bash.h"
using namespace Bish;
void CodeGen_Bash::indent() {
for (unsigned i = 0; i < indent_level; i++) {
stream << " ";
}
}
// Return true if the given node is a statement that should be
// emitted. This excludes side-effecting statements like '... |
<commit_before>/* OpenSceneGraph example, osgshaders2
*
* 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, modify... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>/*
* MIT License
*
* Copyright (c) 2016-2019 xiongziliang <771730766@qq.com>
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (th... |
<commit_before>#include "ContextCairo.h"
#include <cassert>
#include <cmath>
#include <iostream>
using namespace canvas;
using namespace std;
CairoSurface::CairoSurface(unsigned int _logical_width, unsigned int _logical_height, unsigned int _actual_width, unsigned int _actual_height, bool _has_alpha)
: Surface(_lo... |
<commit_before>#include <AlpinoCorpus/CorpusReader.hh>
#include <AlpinoCorpus/DbCorpusReader.hh>
#include <AlpinoCorpus/DirectoryCorpusReader.hh>
#include <AlpinoCorpus/Error.hh>
#include <AlpinoCorpus/IndexedCorpusReader.hh>
#include <QString>
#include <typeinfo>
#include <libxml/parser.h>
#include <QDebug>
namespa... |
<commit_before>#include "DepthSensor.h"
#include "OpenNI.h"
#include "cinder/app/app.h"
#include "cinder/Log.h"
#pragma comment (lib, "OpenNI2.lib")
using namespace ci;
using namespace ci::app;
using namespace std;
namespace ds
{
struct DeviceOpenNI : public Device
{
static const int... |
<commit_before>
/*
* param.cpp for MSIsensor
* Copyright (c) 2013 Beifang Niu && Kai Ye WUGSC 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
* restricti... |
<commit_before>#include <iostream>
#include <iomanip>
#include "../Global.h"
#include "../Options.h"
#include "../Data.h"
#include "../Scheme.h"
#include "../Inputs/Input.h"
#include "../Loggers/Logger.h"
#include "../Loggers/Default.h"
#include "../Location.h"
#include "../Member.h"
#include <cstring>
bool mShowAll;
b... |
<commit_before>#include "stdafx.h"
#include "OnInput.h"
#include <cmath>
#include <SA2ModLoader.h>
#include "Networking.h"
#include "AdventurePacketOverloads.h"
#include "globals.h"
#include "AddressList.h"
#include "nop.h"
#include "CommonEnums.h"
static const ushort ANALOG_THRESHOLD = 16;
static const uint ANAL... |
<commit_before>// Time: O(logn)
// Space: O(1)
class Solution {
public:
/**
* @param n: An integers.
* @return: An integer which is the first bad version.
*/
int findFirstBadVersion(int n) {
int left = 1, right = n + 1;
VersionControl vc;
while (left < ... |
<commit_before>// Time: O(m + n), m is length of pattern, n is length of string
// Space: O(1)
// Iteration with greedy
class Solution {
public:
/**
* @param s: A string
* @param p: A string includes "?" and "*"
* @return: A boolean
*/
bool isMatch(const char *s, const char *p) {
i... |
<commit_before>/*
* Copyright (C) 2015 Mario Alviano (mario@alviano.net)
*
* 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
*
* U... |
<commit_before>#include "Genes/Genome.h"
#include "Game/Board.h"
#include "Game/Color.h"
#include "Utility.h"
#include "Genes/Gene.h"
#include "Genes/Total_Force_Gene.h"
#include "Genes/Freedom_To_Move_Gene.h"
#include "Genes/Pawn_Advancement_Gene.h"
#include "Genes/Opponent_Pieces_Targeted_Gene.h"
#include "Genes/S... |
<commit_before>#include "Genes/Genome.h"
#include <limits>
#include "Game/Color.h"
#include "Utility.h"
#include "Genes/Gene.h"
#include "Genes/Total_Force_Gene.h"
#include "Genes/Freedom_To_Move_Gene.h"
#include "Genes/Pawn_Advancement_Gene.h"
#include "Genes/Opponent_Pieces_Targeted_Gene.h"
#include "Genes/Sphere... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrPathRendererChain.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/GrRecordingContext.h"
#include "src/gpu/GrCaps.h"
#inc... |
<commit_before>#include "graph/node_initializers.h"
#include "layers/word2vec_reader.h"
#include "tensors/tensor_operators.h"
#include <stdint.h>
#include <algorithm>
#include <iterator>
#include <random>
namespace marian {
namespace inits {
float xor128() {
static uint64_t x = 123456789;
static uint64_t y = 36... |
<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 QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LI... |
<commit_before>//
// Matrix/macro.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2014 Rick Yang (rick68 at gmail dot 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 distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0... |
<commit_before>#include "edit.h"
#include "gusanos/allegro.h" //TEMP!!!!!!!!!!!
#include <algorithm>
#include <iostream>
using std::cerr;
using std::endl;
namespace OmfgGUI
{
LuaReference Edit::metaTable;
bool Edit::render()
{
Renderer* renderer = context()->renderer();
if(m_formatting.background.skin)
{
re... |
<commit_before>/*
Copyright 2008 Larry Gritz and the other authors and contributors.
All Rights Reserved.
Based on BSD-licensed software Copyright 2004 NVIDIA Corp.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:... |
<commit_before>/*************************************************************************
*
* $RCSfile: rschash.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: pl $ $Date: 2001-10-10 11:51:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/benchmark_test.h"
#include "bin/file.h"
#include "platform/assert.h"
#in... |
<commit_before><commit_msg>fixed a typo<commit_after><|endoftext|> |
<commit_before>#include "master.hpp"
namespace factor {
profiling_sample_count profiling_sample_count::record_counts() volatile {
atomic::fence();
profiling_sample_count returned(sample_count, gc_sample_count,
jit_sample_count, foreign_sample_count,
... |
<commit_before>// Copyright (c) 2009 - Mozy, Inc.
#include "mordor/pch.h"
#include "log.h"
#include <iostream>
#include <boost/bind.hpp>
#include <boost/regex.hpp>
#include "assert.h"
#include "config.h"
#include "fiber.h"
#include "mordor/streams/file.h"
#include "mordor/string.h"
#include "timer.h"
namespace Mo... |
<commit_before>/* MicroFlo - Flow-Based Programming for microcontrollers
* Copyright (c) 2013 Jon Nordby <jononor@gmail.com>
* MicroFlo may be freely distributed under the MIT license
*
* Note: Arduino is under the LGPL license.
*/
#include "microflo.h"
#include <string>
#include <algorithm>
#include <fstream>
#... |
<commit_before>
#include "../libmmdpi/mmdpi.h"
#include "../libmmdpix/mmdpix.h"
//#include "../gl_xfile/gl_xfile.h"
#if defined( _WIN32 )
# if defined( _DEBUG )
# pragma comment( lib, "../Debug/libmmdpi.lib" )
# pragma comment( lib, "../Debug/libmmdpix.lib" )
# else
# pragma comment( lib, "../Release/l... |
<commit_before>#include "ofApp.h"
#include "control.h"
namespace Software2552 {
#define MAXSEND (1024*1024)
shared_ptr<ofxJSON> OSCMessage::toJson(shared_ptr<ofxOscMessage> m) {
if (m) {
// bugbug data comes from one of http/s, string or local file but for now just a string
shared_ptr<ofxJSON> p = std::make_... |
<commit_before>#include <cassert>
#include <cmath>
#include <iostream>
#include <iomanip>
#include "disassembler.h"
namespace ceos {
Disassembler::Disassembler(std::stringstream &&bytecode):
m_bytecode(std::move(bytecode))
{
auto size = m_bytecode.str().length();
m_width = std::ceil(std::log10(size + ... |
<commit_before><commit_msg>Adding Simplex algorithm and short description<commit_after><|endoftext|> |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* helloDataManWriter.cpp
*
* Created on: Feb 16, 2017
* Author: Jason Wang
*/
#include <iostream>
#include <vector>
#include <adios2.h>
int main(int argc, char *argv... |
<commit_before>/**
* @file ctml.cpp
*
* Functions to read and write CTML.
*
*/
/* $Author$
* $Revision$
* $Date$
*/
// Copyright 2002 California Institute of Technology
// turn off warnings under Windows
#ifdef WIN32
#pragma warning(disable:4786)
#pragma warning(disable:4503)
#endif
#include "ctml.h"
#de... |
<commit_before>/*
* P2
* benchtree.cpp
* Author: Jay Dey cs100vaj
* Author: Joshua Yuen cs100vbc
*/
#include "RST.hpp"
#include "BST.hpp"
#include "countint.hpp"
#include "string.h"
#include <cmath>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
using namespace std;
/**
* A simple be... |
<commit_before>//------------------------------------------------------------------------------------------
// Name Jeremy Driesler & Candelario "Daniel" Eguia
// Course CMPS-455
// Project No. 8
// Part No. 1
// Due date Mar. 15, 2015
// Professor Ray Ahmadnia
... |
<commit_before>#include <iostream>
#include <string>
#include "STRTK/strtk.hpp"
#include "SFML/System.hpp"
#include "SFML/Graphics/Sprite.hpp"
#include "SFML/Graphics/Text.hpp"
#include "SFML/Graphics.hpp"
#include "painter.h"
#define WINDOW_WIDTH 1024
#define WINDOW_HEIGHT 768
Painter::Painter(RenderNode *node)
{
... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*
*/
#ifndef ARP_HH_
#define ARP_HH_
#include "net.hh"
#include "core/reactor.hh"
#include "byteorder.hh"
#include "ethernet.hh"
#include "core/print.hh"
#include <unordered_map>
namespace net {
class arp;
class arp_for_protocol;
template <typename L3... |
<commit_before>/* Copyright (c) 2010-2012, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QtCore>
#include <QSysInfo>
#include <TWebApplication>
#include <TSystemGlobal>
#... |
<commit_before>// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-mandrake.com/
// http://www.mandrakesoft.com/
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Les... |
<commit_before>#include "test_http_services.h"
using namespace std;
using namespace Datacratic;
HttpService::
HttpService(const shared_ptr<ServiceProxies> & proxies)
: ServiceBase("http-test-service", proxies),
HttpEndpoint("http-test-service-ep"),
portToUse(0), numReqs(0)
{
HttpEndpoint::setPoll... |
<commit_before>/**
* \file
* \remark This file is part of VITA.
*
* \copyright Copyright (C) 2014-2015 EOS di Manlio Morini.
*
* \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 distributed with this file,
* You can obtain one... |
<commit_before>#include "JeuxState.h"
using namespace Ogre;
JeuxState::JeuxState()
: m_Loader(0),
m_TerrainImported(true),
m_SceneFile(Ogre::StringUtil::BLANK),
// m_HelpInfo(Ogre::StringUtil::BLANK),
m_Fly(false),
m_FallVelocity(0)
{
m_MoveSpeed = 0.1f;
m_RotateSpeed = 0.3f;
... |
<commit_before>inline bool cmp(line a, line b){
if(a == b){
return false;
}
if(ccw(origin, a.first, b.first) && !ccw(origin, a.second, b.first)){
return ccw(a.first, a.second, b.first) != ccw(a.first, a.second, origin);
}
else if(ccw(origin, a.first, b.second) && !ccw(origin,a.second, b.second)){... |
<commit_before>//=====================================================================//
/*! @file
@brief RX24T ファースト・サンプル @n
・P00(4) ピンに赤色LED(VF:1.9V)を吸い込みで接続する
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>#include "IR.h"
#include "ParallelRVar.h"
#include "IRMutator.h"
#include "Debug.h"
#include "CSE.h"
#include "Simplify.h"
#include "IROperator.h"
namespace Halide {
namespace Internal {
using std::string;
using std::vector;
using std::map;
/** Find all calls arguments to the given function. Note that... |
<commit_before>///
/// \file AliFemtoCorrFctn3DLCMSSym.cxx
///
#include "AliFemtoCorrFctn3DLCMSSym.h"
#include "AliFemtoPairCut.h"
#include <TH3F.h>
#ifdef __ROOT__
/// \cond CLASSIMP
ClassImp(AliFemtoCorrFctn3DLCMSSym);
/// \endcond
#endif
//____________________________
AliFemtoCorrFctn3DLCMSSym::AliFemtoCo... |
<commit_before><commit_msg>Attempt at fixing reported GCC 3.4 bugs due to increased pedantry. Not tested since I don't have a machine with GCC 3.4 yet, but it doesn't break on 3.2, so....<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2006-2008 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 "webkit/glue/webcursor.h"
#include "webkit/glue/webkit_resources.h"
#if defined(OS_WIN)
#include "base/gfx/gdi_util.h"
#... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Institute for Artificial Intelligence,
* Universität Bremen.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ComponentDefinition.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: obo $ $Date: 2006-07-13 15:20:10 $
*
* The Contents of this fi... |
<commit_before>/*
* Copyright (c) 2015, 2016, Intel Corporation
*
* 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 lis... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by FThauer FHammer *
* f.thauer@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
*... |
<commit_before>/**
event.hpp - Support file for writing LV2 plugins in C++
Copyright (C) 2012 Michael Fisher <mfisher31@gmail.com>
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;... |
<commit_before>/******************************************************************************
Copyright 2013 Scientific Computation Research Center,
Rensselaer Polytechnic Institute. All rights reserved.
The LICENSE file included with this distribution describes the terms
of the SCOREC Non-Commercial... |
<commit_before>#include "game.hpp"
#define SCORE_MAX 3
// helper functions
static void
draw();
static void
resetBall();
// game state functions
static void
menuTitle();
static void
gameSetup();
static void
gameMain();
static void
gamePause();
static void
menuWin();
static void
menuLose();
void (*gameTick)()... |
<commit_before>#include "SolarPayload.h"
#include "Payload.h"
//using namespace theapi;
namespace theapi {
SolarPayload::SolarPayload() {
setMsgType();
_payload.DeviceId = 0;
_payload.MessageId = 0;
_payload.Flags = 0;
_payload.VCC = 0;
_payload.ChargeMv = 0;
_payload.ChargeMa = 0;
... |
<commit_before>// Copyright 2016 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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... |
<commit_before>/* kv */
static int proc_get(Server *serv, Link *link, const Request &req, Response *resp){
if(req.size() < 2){
resp->push_back("client_error");
}else{
std::string val;
int ret = serv->ssdb->get(req[1], &val);
if(ret == 1){
resp->push_back("ok");
resp->push_back(val);
}else if(ret == 0... |
<commit_before>#include "magic.h"
using namespace cv;
Point point1, point2; /* vertical points of the bounding box */
bool drag = false;
bool select_flag = false;
Rect rect; /* bounding box */
Mat img, roiImg; /* roiImg - the part of the image in the bounding box */
void mouseHandler(int event, int x, int y, int fla... |
<commit_before>/*
* cgtprelay.cpp
*
* Created on: 21.08.2014
* Author: andreas
*/
#include "cgtprelay.hpp"
#include "cgtpcore.hpp"
using namespace rofgtp;
/*static*/std::map<rofl::cdpid, cgtprelay*> cgtprelay::gtprelays;
void
cgtprelay::handle_read(
rofl::csocket& socket)
{
unsigned int pkts_rcvd_in_r... |
<commit_before>#include "process.h"
#include <stdexcept>
#include <cerrno>
#include <cstring>
#include <unistd.h>
#include <sys/wait.h>
#include "unidirectional_pipe.h"
string Process::binary_path_only(const string &argv0, const string &this_program_name) {
if (argv0.length() > this_program_name.length() &&
argv0... |
<commit_before>#include "robobo.h"
int main(int argc, char** argv) {
std::string confDir = "."; // look in current directory by default
std::string confName = "robobo.conf"; // look for robobo.conf by default
unsigned short debug = 0;
if (argc > 1) { // analyze arguments
bool exitAfter = false;
for (int i = 1;... |
<commit_before>// Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Hei... |
<commit_before>/* Generated from orogen/lib/orogen/templates/typekit/Types.hpp */
#ifndef __OROGEN_GENERATED_<%= typekit.name.upcase %>_TYPES_HPP
#define __OROGEN_GENERATED_<%= typekit.name.upcase %>_TYPES_HPP
<%= typekit.opaques.map { |opaque_def| opaque_def.includes }.
flatten.map { |p| "#include <#{p}>" }.join... |
<commit_before>
#include "CReportDefinition.h"
#include "CReportBody.h"
#include "CReport.h"
#include "CCopasiContainer.h"
//////////////////////////////////////////////////
//
//class CReport
//
//////////////////////////////////////////////////
CReport::CReport():
CCopasiObject("Report", NULL, "Report", CCopasiO... |
<commit_before>#include "rtkfdk_ggo.h"
#include "rtkGgoFunctions.h"
#include "rtkConfiguration.h"
#include "itkThreeDCircularProjectionGeometryXMLFile.h"
#include "itkProjectionsReader.h"
#include "itkFFTRampImageFilter.h"
#include "itkFDKWeightProjectionFilter.h"
#include "itkFDKBackProjectionImageFilter.h"
#if CUDA... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <Axel.Naumann@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU ... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/*
kopeteplugindataobject.cpp - Kopete Plugin Data Object
Copyright (c) 2003-2005 by Olivier Goffart <ogoffart @ kde.org>
Copyright (c) 2003 by Martijn Klingens <klingens@kde.org>
Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
Kopete (c) 2002-... |
<commit_before>#pragma once
#include <algorithm>
#include "linesearch.h"
#include "linesearch_step.hpp"
#include "linesearch_cubic.hpp"
namespace ncv
{
namespace optimize
{
///
/// \brief zoom-in in the bracketed interval,
/// see "Numerical optimiza... |
<commit_before>/**
* @file reader.hpp
* @author Robin Dietrich <me (at) invokr (dot) org>
* @version 1.0
*
* @par License
* Alice Replay Parser
* Copyright 2014 Robin Dietrich
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... |
<commit_before>/**
* Copyright (c) 2013, Timothy Stack
*
* 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
... |
<commit_before>/*************************************************************************
*
* $RCSfile: indexentrysupplier_default.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: vg $ $Date: 2005-02-25 10:08:50 $
*
* The Contents of this file are made available subject to the terms of
* either of t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.