text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>/**
* Member selection
* ================
*
* Member variables declared like a bitset. F**k you SFINAE.
*
* Note: Compile with -std=c++17.
*/
#include <iostream>
enum class cmd_t : uint32_t {
A,
B,
};
// NOTE: 4 options => 2^4 (=16) specialized templates.
enum class opt_t : uint32... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>#include <algorithm>
#include <map>
#include <math.h>
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <fj_tool/fapp.h>
#include <fjcoll.h>
using namespace std;
#include "pearson-3d.h"
int T_MAX;
int T_MONITOR;
int mpi_my_rank;
const double PI=3... |
<commit_before>#include "neural_network_trainer.hpp"
#include "InputData/sentence.hpp"
#include "Learning/learning_method.hpp"
#include "InputData/image.hpp"
#include "Layer/fully_connected_neural_network.hpp"
#include "Layer/filters.hpp"
using namespace Convolutional;
enum class Categories {
Cat,
NotCat,
Catego... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: popupmenudispatcher.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2006-12-13 15:05:51 $
*
* The Contents of this fil... |
<commit_before>/*
* DIPlib 3.0
* This file contains basic binary morphology functions: dilation, erosion, opening, closing.
*
* (c)2017, Erik Schuitema.
* Based on original DIPlib code: (c)1995-2014, Delft University of Technology.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no... |
<commit_before>/*
Proxy for the crypto project. Simply creates a new thread for each incoming connection and forwards its data
Derived from code at http://www.cs.rpi.edu/~goldsd/docs/spring2015-csci4210/server.c.txt
*/
#include <sys/socket.h>
#include <iostream>
#include <thread>
#include <cstdlib>
#include <cstdio>
#... |
<commit_before>/*
Copyright 2016 Fixstars Corporation
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 ... |
<commit_before>/*
* Copyright (C) 2011 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
* Copyright (C) 1999 Preston Brown <pbrown@kde.org>
*
* 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 F... |
<commit_before>
#pragma once
#include <proxc.hpp>
#include <stdlib.h> // posix_memalign
#include <new>
#include <type_traits>
PROXC_NAMESPACE_BEGIN
void* aligned_alloc(std::size_t size, std::size_t align)
{
#ifdef _WIN32
void *ptr = _aligned_malloc(size, align);
if (!ptr) {
throw std::bad_alloc();
... |
<commit_before>#include "prune.hpp"
namespace vg {
constexpr size_t PRUNE_THREAD_BUFFER_SIZE = 128 * 1024;
pair_hash_set<edge_t> find_edges_to_prune(const HandleGraph& graph, size_t k, size_t edge_max) {
// Each thread collects edges to be deleted into a separate buffer. When the buffer grows
// large enoug... |
<commit_before><commit_msg>coverity#1194898 Logically dead code<commit_after><|endoftext|> |
<commit_before>// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
#include <vector>
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR... |
<commit_before>//============================================================================
// Name : jaco_arm.cpp
// Author : WPI, Clearpath Robotics
// Version : 0.5
// Copyright : BSD
// Description : A ROS driver for controlling the Kinova Jaco robotic manipulator arm
//=========================... |
<commit_before>#include "ros/ros.h"
#include "arm_controller/arm_controller.h"
#include "controllers/armMove.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include "arm_controller/arduino-serial-lib.h"
Arm_Controller::Arm_Controller() {}
void Arm_Controller::run(... |
<commit_before>// (C) Copyright John Maddock 2000.
// Use, modification and distribution are subject to 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)
// See http://www.boost.org/libs/static_assert for documentation.
... |
<commit_before>#include <catch.hpp>
#include <rapidcheck-catch.h>
#include "rapidcheck/detail/RandomEngine.h"
using namespace rc;
using namespace rc::detail;
#define ENOUGH 10000
TEST_CASE("RandomEngine") {
SECTION("nextAtom") {
prop("same seeds yields same sequences of numbers",
[] (Random... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, 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 a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: confsvccomponent.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 14:17:45 $
*
* The Contents of this file ... |
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2012/08/22
// Author: Mike Ovsiannikov
//
// Copyright 2012,2016 Quantcast Corporation. All rights reserved.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, V... |
<commit_before>#include "auto-wrap.h"
#include "text-buffer.h"
#include <emscripten/bind.h>
using std::string;
using std::u16string;
static TextBuffer *construct(const std::string &text) {
return new TextBuffer(u16string(text.begin(), text.end()));
}
static emscripten::val search_sync(TextBuffer &buffer, std::stri... |
<commit_before>#pragma once
#include <mutex>
#include <boost/thread.hpp>
#include "blackhole/forwards.hpp"
#include "blackhole/logger.hpp"
namespace blackhole {
template<class Logger, class Mutex>
class synchronized {
public:
typedef Logger logger_type;
typedef Mutex mutex_type;
private:
logger_type l... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AView.cxx,v $
*
* $Revision: 1.16 $
*
* last change: $Author: vg $ $Date: 2007-03-26 13:58:49 $
*
* The Contents of this file are made av... |
<commit_before>#include "meshoptimizer.h"
#include <cassert>
#include <vector>
namespace meshopt
{
static unsigned int findStripFirst(const unsigned int buffer[][3], unsigned int buffer_size, const unsigned int* valence)
{
unsigned int index = 0;
unsigned int iv = ~0u;
for (unsigned int i = 0; i <... |
<commit_before>#include "ruby.h"
#include <Rpc.h>
#pragma comment(lib, "Rpcrt4.lib")
VALUE method_generate(VALUE self) {
UUID uuid = {0};
char * uuid_string;
::UuidCreate(&uuid);
RPC_CSTR szUuid = NULL;
if (::UuidToStringA(&uuid, &szUuid) == RPC_S_OK)
{
uuid_string = (char*) szUuid;
::RpcStringFr... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief Fixed FIFO (first in first out) テンプレート
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017, 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hira... |
<commit_before>/*
* Copyright (c) 2014—2016 David Wicks, sansumbrella.com
* 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 copyrig... |
<commit_before>/****************************************************************************
**
** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercia... |
<commit_before>/*
* Copyright 2008-2010 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
<commit_before>/* StartingGateMission.cpp -- Implementation of StartingGateMission class
Copyright (C) 2014 Tushar Pankaj
This file is part of San Diego Robotics 101 Robosub.
San Diego Robotics 101 Robosub is free software: you can redistribute it
and/or modify it under the terms of the GNU General... |
<commit_before>/*
Used to calculate the m-dimension submatrices used in the Four Russians algorithm.
Each submatrix is calculated like a Wagner-Fischer edit matrix with cells as follows:
- (i-1, j-1) to (i, j) with 0 cost added if the characters at (i, j) match, replaceCost otherwise
- (i-1, j) to (i, j) with deleteCos... |
<commit_before>/*************************************************************************
*
* $RCSfile: dlgpage.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: thb $ $Date: 2001-06-06 15:13:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: futhes.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: dl $ $Date: 2000-10-25 10:27:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include <iostream>
#include <fstream>
#include <limits>
#include <stdexcept>
#include <math.h>
#include "supercubic.h"
using namespace std;
Supercubic::Supercubic():dimen(0),n(nullptr),L(0) {}
Supercubic::Supercubic(int Dc, const int* Nc)
{
dimen=Dc;
n=new int[dimen]; std::copy(Nc,Nc+dimen,n)... |
<commit_before>#include "WProgram.h"
#define encoderPinA 4
#define encoderPinB 6
#define encoderOutputI 5
int counter=0;
int stateA;
int stateB;
int lastStateA=LOW;
int lastStateB=LOW;
void loopTest();
int main()
{
init();
pinMode(encoderPinA,INPUT);
pinMode(encoderPinB,INPUT);
loopTest();
return 0;
}
void loopTes... |
<commit_before>/* File: lcds.cpp
* Synchronous lcd hd44780 interface.
*/
/* Copyright (c) 2012-2013 Domen Ipavec (domen.ipavec@z-v.si)
*
* 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 ... |
<commit_before>#include <fstream>
#include <sstream>
#include <queue>
#include "pugixml/pugixml.hpp"
#include "pixelboost/data/resources/svgResource.h"
#include "pixelboost/file/fileSystem.h"
using namespace pb;
PB_DEFINE_RESOURCE(pb::SvgResource)
class PathTokenizer
{
public:
PathTokenizer(const std::string& ... |
<commit_before>// Copyright(c) 2016 Jounayd Id Salah
// Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT).
#include "app/pch.h"
#include "app/coApp.h"
coResult coApp::ProcessEvents()
{
MSG msg;
if (::GetMessageW(&msg, NULL, 0, 0))
{
::Translate... |
<commit_before> #include <gtest/gtest.h>
#include <exception>
#include <algorithm>
#include <vector>
using std::vector ;
#include <fstream>
using std::ofstream ;
#include <string>
using std::string ;
#include <sofa/helper/system/FileMonitor.h>
using sofa::helper::system::FileEventListener ;
using sofa::helper::syst... |
<commit_before>#include <gtest\gtest.h>
#include "vm.h"
using namespace elsa::vm;
class StructTest : public testing::Test {
protected:
virtual void SetUp()
{
int ep = 0;
vm_.add_constant_entry(new FunctionInfo("main", 0, 2, ep, FunctionType::Static));
vm_.set_entry_point(ep);
auto si = new StructInfo("my_... |
<commit_before>/*===- Integrator.cpp - libSimulation -=========================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#... |
<commit_before>/*
Copyright (c) 2013 Timothy Reaves treaves@silverfieldstech.com
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 y... |
<commit_before>#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string>
#include <cstring>
#include <iostream>
#include <sstream>
#include <vector>
//Include available regex headers
#ifdef HAVE_PCRE_H
#include <pcre.h>
#endif
#ifdef HAVE_REGEX_H
#include <regex.h>
#endif
#include "regex.hxx"
//Determine su... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before><commit_msg>remove unused struct<commit_after><|endoftext|> |
<commit_before>#include "DialogoEditarConcepto.h"
#include "ui_DialogoEditarConcepto.h"
// utiles
#include <utiles/include/FuncionesString.h>
DialogoEditarConcepto::DialogoEditarConcepto(visualizador::modelo::Concepto * concepto_a_editar, visualizador::aplicacion::GestorEntidades * gestor_terminos, QWidget *par... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: indexentrysupplier_common.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2006-01-31 18:37:38 $
*
* The Contents of th... |
<commit_before>
#include "clay.hpp"
#include "llvm/PassManager.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/CodeGen/LinkAllAsmWriterComponents.h"
#include "llvm/CodeGen/LinkAllCodegenComponents.h"
#include "llvm/LinkAllVMCore.h"
#inclu... |
<commit_before>#include <algorithm>
#include <fstream>
#include <iostream>
#include <iterator>
#include <set>
#include <string>
#include <sstream>
#include <cmath>
#include "filtrations/Data.hh"
#include "geometry/RipsExpander.hh"
#include "persistentHomology/ConnectedComponents.hh"
#include "topology/CliqueGraph.... |
<commit_before>#pragma once
#include <cstdint>
#ifdef HOST_PYTHON_MODULE
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
namespace py = pybind11;
#endif
#define MAX_OBJECTS (20)
enum TrackingStatus
{
NEW = 0, /**< The object is newly added. */
TRACKED, /**< The object is being tracke... |
<commit_before>#include "dockmanagermodel.h"
#include <QString>
#include <QMainWindow>
#include "dockmanager.h"
#include "dock.h"
DockManagerModel::DockManagerModel (DockManager & mgr, QObject * parent, tree_data_t * data)
: TreeModel<DockedInfo>(parent, data)
, m_manager(mgr)
{
qDebug("%s", __FUNCTION__);
}
DockM... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fstat.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-09 14:16:16 $
*
* The Contents of this file are made ava... |
<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>#include "renderer-pre.hpp"
namespace col {
PixFont FontTiny;
using ResMap = std::unordered_map<ResKey, Texture>;
ResMap res_map;
ResKey make_reskey(ResCat cat, ResNum num) {
return (ResKey(cat) << 16) | ResKey(num);
}
ResCat get_rescat(ResKey k) {
return k >> 16;
}
ResNum get_resnu... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkFEMLoadImplementationsRegister.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserv... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2006 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLI... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <util/timer.h>
#include <httpclient/httpclient.h>
#include <util/filereader.h>
#include "client.h"
Client::Client(ClientArguments *args)
: _args(args),
_status(new ClientS... |
<commit_before>#include <Servo.h>
#include "Msg.h"
#include "Device.h"
#include "MrlServo.h"
MrlServo::MrlServo(int deviceId) : Device(deviceId, DEVICE_TYPE_SERVO) {
isMoving = false;
isSweeping = false;
// create the servo
servo = new Servo();
lastUpdate = 0;
currentPosUs = 0.0;
targetPosUs = 0;
veloc... |
<commit_before>/*
Copyright (c) 2020 ANON authors, see AUTHORS file.
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... |
<commit_before>#include <ros/ros.h>
//ROS libraries
#include <tf/transform_datatypes.h>
//ROS messages
#include <std_msgs/Float32.h>
#include <std_msgs/String.h>
#include <geometry_msgs/Quaternion.h>
#include <geometry_msgs/QuaternionStamped.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include ... |
<commit_before>#include "pacman.hh"
#include <fnmatch.h>
#include <glob.h>
#include <algorithm>
#include <fstream>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
namespace std {
template <>
struct default_delete<glob_t> {
void operator()(glob_t* globbuf) {
globfree(globbuf);
de... |
<commit_before>#include "playsong.h"
//#include "mary.mid.h"
//byte dir = HIGH;
void playSong(const uint32_t *const *song)
{
if (!song) return;
WaitTime wt[4] = { };
uint32_t indx[4] = { 0 };
uint32_t freq[] = {
song[0] ? getElement(song[0], 0) : DONE,
song[1] ? getElement(song[1], 0) : DONE,
... |
<commit_before>#include "guard.h"
#include "core/level.h"
#include "core/environment.h"
#include "core/keyboardevent.h"
#include <iostream>
using namespace std;
Guard::Guard(Object *parent, ObjectID id, double x, double y, int mass, bool walkable, string t, int dir)
: Object(parent, id, x, y), m_animation (new ... |
<commit_before>/**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#pragma once
#include <appbase/application.hpp>
#include <eosio/chain/asset.hpp>
#include <eosio/chain/authority.hpp>
#include <eosio/chain/account_object.hpp>
#include <eosio/chain/block.hpp>
#include <eosio/chain/chain_controller.hpp>
#include... |
<commit_before>// Copyright 2015 Matt Heard
// http://mattheard.net
// matt@mattheard.net
// @mattheard
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
int main(int argc, char **argv) {
using std::string;
const int expectedNumArgs = 2;
if (argc != expectedNumArgs) {
const strin... |
<commit_before>// Copyright 2015 Matt Heard
// http://mattheard.net
// matt@mattheard.net
// @mattheard
#include <opencv2/opencv.hpp>
#include <iostream>
#include <string>
using cv::Mat;
Mat buildLookUpTable(const int divideWith) {
const int rows = 1;
const int cols = 256;
const int type = CV_8U;
con... |
<commit_before>/*
** Copyright 2012 Centreon
**
** 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>/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 ... |
<commit_before>/*
* Copyright (c) 2013 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>/*
* Copyright (c) 2014 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 <cmath>
#include <Eigen/Eigenvalues>
#include <esn/create_network_nsli.h>
#include <network_nsli.h>
namespace ESN {
std::unique_ptr< Network > CreateNetwork(
const NetworkParamsNSLI & params )
{
return std::unique_ptr< NetworkNSLI >( new NetworkNSLI( params ) );
}
... |
<commit_before>bool onSegment(Point p, Point q, Point r)
{
if (cross(toVec(p,r),toVec(p,q)) == 0 &&
q.x <= max(p.x, r.x) && q.x >= min(p.x, r.x) &&
q.y <= max(p.y, r.y) && q.y >= min(p.y, r.y))
return true;
return false;
}
<commit_msg>arrumando identacao<commit_after>bool onSegment(Point p, ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkMutexFunctionLock.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrig... |
<commit_before>/**communications clients avec les sockets TCP en C.
* AUTHORS:
*/
//Si nous sommes sous Windows
#include <winsock2.h>
typedef int socklen_t;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
//#include <conio.h>
#define PORT 20019
void envoie(char *msg, SOCKET sock){
i... |
<commit_before>/*************************************************************************
*
* $RCSfile: export2.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: nf $ $Date: 2000-11-27 07:10:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*
* Copyright 2014 Jose Fonseca
*
* 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 distributed in the hope ... |
<commit_before>//=============================================================================
// File: px4muorb_KraitRpcWrapper.hpp
//
// @@-COPYRIGHT-START-@@
//
// Copyright 2015 Qualcomm Technologies, Inc. All rights reserved.
// Confidential & Proprietary - Qualcomm Technologies, Inc. ("QTI")
//
// The party rece... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "..\uti.hpp"
#include <fstream>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
template __declspec( dllexport ) class uti::UTF8String< >;
typedef uti::UTF8String< > String;
//template<> std::wstring Microsoft::VisualStud... |
<commit_before>///
/// @file S2_hard_mpi_LoadBalancer.cpp
/// @brief The S2_hard_mpi_LoadBalancer evenly distributes the
/// computation of the hard special leaves onto cluster nodes.
///
/// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See t... |
<commit_before>#include "GlyphContainer.hpp"
#include <stdio.h>
GlyphContainer::GlyphContainer(int size, sf::Vector2i layout, const sf::Texture& bg_text) :
_background(bg_text)
{
_nglyphs = size;
_glyphs = std::vector<Glyph>();
_layout = layout;
}
GlyphContainer::~GlyphContainer() {}
void GlyphContainer::dra... |
<commit_before>#include "VCardParser.h"
#include <assert.h>
#include <QIODevice>
#include <QByteArray>
#include <QDebug>
#include "Exceptions.h"
#include "Contact.h"
/** Provides the actual parsing implementation. */
class VCardParserImpl
{
public:
/** Creates a new parser instance and binds it to the specified d... |
<commit_before>#ifndef CMDSTAN_WRITE_DATETIME_HPP
#define CMDSTAN_WRITE_DATETIME_HPP
#include <stan/callbacks/writer.hpp>
#include <stan/version.hpp>
#include <chrono>
#include <iomanip>
#include <string>
namespace cmdstan {
void write_datetime(stan::callbacks::writer &writer) {
const std::time_t current_datetime
... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013-2014 winlin
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, m... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/* algorithm.cpp - CS 472 Project #2: Genetic Programming
* Copyright 2014 Andrew Schwartzmeyer
*
* Source file for algorithm namespace
*/
#include <ctime>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <thread>
#include "algorithm.hpp"
#include "../individual... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public License along with th... |
<commit_before>/*************************************************************************
*
* $RCSfile: SlsSelectionFunction.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-01-28 15:42:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage, 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... |
<commit_before>#include "minishift.h"
#include "glcdfont.h"
Minishift::Minishift(int data_pin, int clock_pin, int latch_pin) {
this->data_pin = data_pin;
this->clock_pin = clock_pin;
this->latch_pin = latch_pin;
this->latch_state = HIGH;
pinMode(data_pin, OUTPUT);
pinMode(clock_pin, OUTPUT);
digitalWrite(latc... |
<commit_before>#include <cstdio>
#include <iostream>
#include "../include/spica.h"
using namespace spica;
int main(int argc, char** argv) {
std::cout << "*** spica: Subsurface scattering (SPPM) ***" << std::endl;
const int width = argc >= 2 ? atoi(argv[1]) : 320;
const int height = argc >= 3 ? ... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Ruben Dörfel <ruben.doerfel@tu-ilmenau.de>;
* @version dev
* @date January, 2020
*
* @section LICENSE
*
* Copyright (C) 2020, Ruben Dörfel. Al... |
<commit_before>// Tests of Linux-specific functionality
#ifdef __linux__
#include <sys/types.h>
#include <sys/timerfd.h>
#include <sys/signalfd.h>
#include <poll.h>
#include <signal.h>
#include "capsicum.h"
#include "syscalls.h"
#include "capsicum-test.h"
TEST(Linux, TimerFD) {
int fd = timerfd_create(CLOCK_MONOTO... |
<commit_before>// Copyright (c) 2017 Jackal Engine, MIT License.
#pragma once
#include "Core/Platform/JTypes.hpp"
#include "Core/Platform/Platform.hpp"
#include "Core/Structure/JString.hpp"
#include <string>
#include <type_traits>
// TODO(): Figure out a better way than to include unecessary headers
// just for wind... |
<commit_before>/**************************************************************************
**
** This file is part of the Qt Build Suite
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** Thi... |
<commit_before>#include "core/narukami.h"
#include "core/geometry.h"
#include "core/transform.h"
#include "core/mesh.h"
#include "core/imageio.h"
using namespace narukami;
int main(){
Point3f vertices[4]={Point3f(0,1,1),Point3f(0,0,1),Point3f(1,0,1),Point3f(1,1,1)};
Point2f uvs[4] = {Point2f(0,1),Po... |
<commit_before>#include "ManipulationConstraint.h"
#include "PointContactRelation.h"
using namespace action_authoring;
using namespace affordance;
using namespace boost;
ManipulationConstraint::
ManipulationConstraint(AffConstPtr affordance,
ManipulatorStateConstPtr manipulator,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.