text stringlengths 54 60.6k |
|---|
<commit_before>/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complian... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DllMain.cpp,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2006-09-25 13:16:02 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: ChartTypeTemplate.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: bm $ $Date: 2004-01-26 09:12:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the follow... |
<commit_before>// Copyright (c) 2010 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 "chrome/browser/chromeos/cros/cryptohome_library.h"
#include "base/hash_tables.h"
#include "base/message_loop.h"
#include "ch... |
<commit_before><commit_msg>Do not show network settings menu option for login. BUG=1683 TEST=none Review URL: http://codereview.chromium.org/793001<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2010 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 "chrome/browser/extensions/extension_tts_api.h"
#include <atlbase.h>
#include <atlcom.h>
#include <sapi.h>
#include "base/sc... |
<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 "chrome/browser/first_run/try_chrome_dialog_view.h"
#include <shellapi.h>
#include "base/logging.h"
#include "base/message_l... |
<commit_before><commit_msg>Make more things clickable in the bookmark bar menus:<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Copyright (c) 2010, Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/meegotouch/js_modal_dialog_qt.h"
#include "... |
<commit_before>// Copyright 2009, Squish Tech, LLC.
#include "libxmljs.h"
#include <v8.h>
#include <string>
#include "natives.h"
#include "object_wrap.h"
#include "document.h"
#include "element.h"
#include "attribute.h"
#include "namespace.h"
#include "parser.h"
#include "sax_parser.h"
namespace libxmljs {
namespac... |
<commit_before>/**
* makedot.cpp -
* @author: Jonathan Beard
* @version: Sun Oct 4 09:15:09 2020
*
* Copyright 2020 Jonathan Beard
*
* 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>/// \file liburbi/uclient.cc
#include <cstdlib>
#include <cerrno>
#include <locale.h>
#include <libport/unistd.h>
#include <libport/sys/time.h>
#if !defined WIN32
# include <time.h>
# include <signal.h>
#endif
#include <libport/cstdio>
#include <libport/sys/select.h>
#include <libport/arpa/inet.h>
#... |
<commit_before>
#include <string>
#include <list>
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <stdint.h>
using std::string;
using std::list;
using std::cout;
using std::cerr;
using std::endl;
#ifdef _MSC_VER
#pragma warning(disable: ... |
<commit_before>/*************************************************
* MP Misc Functions Source File *
* (C) 1999-2006 The Botan Project *
*************************************************/
#include <botan/mp_core.h>
#include <botan/mp_asm.h>
namespace Botan {
extern "C" {
/************... |
<commit_before>#include <sys/types.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <unistd.h>
//#include "atexit.h"
//#include "thread_private.h"
#include <iostream>
#include <vector>
#include <unordered_map>
#include <map>
#include <algorithm>
#include <sstream>
#include "xstring.h"
#define NO_ALLOC_MACRO_OVE... |
<commit_before>#include <iostream>
#include <vector>
#include "trie/double_array.h"
#include "trie/char_stream_vector.h"
const unsigned utf8_len_table[] = {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,... |
<commit_before>#include <fstream>
#include <exception>
#include <tclap/CmdLine.h>
#include "io.hpp"
namespace nest {
namespace mc {
namespace io {
/// read simulation options from json file with name fname
/// if file name is empty or if file is not a valid json file a default
/// set of parameters is returned :
//... |
<commit_before>#ifndef _options_hpp_INCLUDED
#define _options_hpp_INCLUDED
/*------------------------------------------------------------------------*/
// The 'check' option has by default '0' in optimized compilation, but for
// debugging and testing we want to set it to '1', by default. Setting
// 'check' to '1' f... |
<commit_before>/*
*
*/
#include "unix/constant.h"
#include "unix/log.hpp"
#include "menu.hpp"
// current track number
// mpc -f %position% current
namespace led_d
{
constexpr auto TRACK_ROTOR = ROTOR_1; // select track
constexpr auto VOLUME_ROTOR = ROTOR_2; // tune volume
constexpr auto MENU_ROTOR ... |
<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>#include "producer.h"
#include <nan.h>
#include <v8.h>
#include <errno.h>
#include <iostream>
using namespace v8;
using namespace std;
Producer::Producer(Local<Object> &options)
: Common(RD_KAFKA_PRODUCER, options)
{
}
Producer::~Producer()
{
}
Persistent<Function> Producer::constructor;
void
Pr... |
<commit_before>// $Id$
// vim::tabstop=2
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General ... |
<commit_before>/**
* oakmodelview - version 0.1.0
* --------------------------------------------------------
* Copyright (C) 2017, by Mikkel Nøhr Løvgreen (mikkel@oakmodelview.com)
* Report bugs and download new versions at http://oakmodelview.com/
*
* This library is distributed under the MIT License.
* See acc... |
<commit_before>#include <atomic>
#include <chrono>
#include <random>
#include <string>
#include <thread>
#include <TFile.h>
#include <TTree.h>
#include <TSystem.h>
#include <TTreeReader.h>
#include <TTreeReaderValue.h>
#include <ROOT/TTreeProcessorMT.hxx>
#include "gtest/gtest.h"
void WriteFiles(const std::string &t... |
<commit_before>// Time: O(logn)
// Space: O(1)
class Solution {
public:
/**
* @param dividend the dividend
* @param divisor the divisor
* @return the result
*/
int divide(int dividend, int divisor) {
// Handle corner case.
if (divisor == INT_MIN) {
return divide... |
<commit_before>// Time: O(k * n^2)
// Space: O(n^2)
class Solution {
public:
/**
* @param A an integer array
* @param k an integer
* @return an integer
*/
int postOffice(vector<int>& A, int k) {
const int n = A.size();
if (A.empty() || k >= n) {
return 0;
... |
<commit_before>#include "master.hpp"
namespace factor {
gc_event::gc_event(gc_op op, factor_vm* parent)
: op(op),
cards_scanned(0),
decks_scanned(0),
code_blocks_scanned(0),
start_time(nano_count()),
card_scan_time(0),
code_scan_time(0),
data_sweep_time(0),
code_swe... |
<commit_before>//===--- DefToYAMLConverterTest.cpp --------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https... |
<commit_before>// test function for increment, bulk operations
//Database functions
#include <ktremotedb.h>
using namespace std;
using namespace kyototycoon;
// main routine
int main(int argc, char** argv) {
// create the database object
RemoteDB *rdb = new RemoteDB();
// open the database
if (!rdb->open("... |
<commit_before>/** @file
*
* @ingroup modularLibrary
*
* @brief TTBlue Class for caching common symbols for speed
*
* @details
*
* @authors Théo de la Hogue
*
* @copyright Copyright © 2010, Théo de la Hogue @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecommons.org/l... |
<commit_before>#include "module_pressuresensor.h"
#include "pressure_form.h"
#include "module_uid.h"
#define REGISTER_CALIB 00 // 8 bytes
#define REGISTER_PRESSURE_RAW 8
#define REGISTER_TEMP_RAW 10
#define REGISTER_PRESSURE 12
#define REGISTER_TEMP 14
#define REGISTER_STATUS 17
// indicates problem between i2c-spi b... |
<commit_before>/*
* rtc-drv.cpp
*
* Copyright (c) 2017, 2018 Lix N. Paulian (lix@paulian.net)
*
* 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 withou... |
<commit_before>// Copyright (c) 2013 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 "ui/message_center/views/message_popup_collection.h"
#include <set>
#include "base/bind.h"
#include "base/timer.h"
#include ... |
<commit_before>/*
* MPITestLayer.cpp
*
* Created on: Sep 27, 2011
* Author: gkenyon
*/
#include "MPITestLayer.hpp"
#include "../PetaVision/src/utils/conversions.h"
namespace PV {
MPITestLayer::MPITestLayer(const char * name, HyPerCol * hc, int numChannels) : ANNLayer(name, hc, numChannels) {
initialize()... |
<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 "sandbox/win/src/service_resolver.h"
#include "base/memory/scoped_ptr.h"
#include "sandbox/win/src/sandbox_nt_util.h"
#includ... |
<commit_before>#include <ostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iterator>
#include "sevensegment.h"
namespace sevensegment {
const static std::vector< std::vector<std::string> > digits {
{ " - ", "| |", " ", "| |", " - " }, // 0
{ " ", " |", " ", " |", " " }, // 1
... |
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#ifndef _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#define _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS
#endif
// LotusRT
#include "core/framework/allocatormgr.h"
#include "core/common/logging/logging.h"
#include "... |
<commit_before>#include "CplusPlusExe.h"
//Exe6_51
void f()
{
cout << " f with null parameters\n";
}
void f(int ival)
{
cout << "f with one int parameter:" << ival << endl;
}
void f(int ival1, int ival2)
{
cout << "f with two int parameters :" << ival1 << " " << ival2 << endl;
}
void f(double dval1, double dval... |
<commit_before>/// \file
/// \ingroup tutorial_eve
/// Shows CMS geometry in stereo mode.
/// This requires quad-buffer support in the OpenGL hardware / driver,
/// otheriwse a fatal error occurs.
///
/// \image html eve_geom_cms_stereo.png
/// \macro_code
///
/// \author Matevz Tadel
void geom_cms_stereo(Bool_t quad_... |
<commit_before>#include <AST/visitors/IrtBuilderVisitor.h>
using namespace AstTree;
IRTree::TOperatorType CIrtBuilderVisitor::operatorFromAstToIr( TOperatorType type ) const {
IRTree::TOperatorType typeResult;
switch ( type ) {
case TOperatorType::OT_Plus: typeResult = IRTree::TOperatorType::OT_Plus;
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: txtparai.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-11-08 17:06:34 $
*
* The Contents of this file are made ... |
<commit_before>/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
==... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>/***************************************************************************/
/**
** @file
** @brief interface to Tipper triangulator
*/
/***************************************************************************/
#include <stdlib.h>
#include "TipperTriangulator.h"
/*********************************... |
<commit_before>/*************************************************************************
*
* $RCSfile: accessiblecontexthelper.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: fs $ $Date: 2002-04-26 07:25:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DriverManager.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2006-06-20 01:34:15 $
*
* The Contents of this file are... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: CDatabaseMetaData.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-08 06:59:19 $
*
* The Contents of this file ... |
<commit_before>#include <chrono>
#include <list>
#include <vector>
#include <random>
#include <iostream>
#include<conio.h>
using namespace std;
class Timer
{
public:
Timer() : beg_(clock_::now()) {}
void reset() { beg_ = clock_::now(); }
double elapsed() const {
return std::chrono::duration_cast... |
<commit_before>// This sets some hard-coded ACLs in the given drive
#include <stdio.h>
#include "kinetic/kinetic.h"
using kinetic::KineticConnectionFactory;
using kinetic::Status;
using kinetic::KineticRecord;
using kinetic::ACL;
using kinetic::Domain;
using std::list;
using std::make_shared;
using std::unique_ptr;... |
<commit_before>static void error ( int error , const char * description ) { fputs(description,stderr); }
static void resize ( GLFWwindow * window , int width , int height ) {
glViewport(0,0,width,height);
updateProjection(PROJECTION);
}
static void keyboard ( GLFWwindow * window , int key , int scancode , i... |
<commit_before>///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2011-01-15
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: PreviewRenderer.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: kz $ $Date: 2006-04-26 20:53:47 $
*
* The Contents of this file ar... |
<commit_before>/*! \file urbi/usyncclient.hh
****************************************************************************
*
* Definition of the URBI interface class
*
* Copyright (C) 2004, 2006, 2007, 2008, 2009 Jean-Christophe Baillie.
* All rights reserved.
*
* This program is free software; you can redistribu... |
<commit_before>AliJetReader *CreateJetReader(Char_t *jr); // Common config
AliJetFinder *CreateJetFinder(Char_t *jf,Float_t radius = -1);
AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf,Float_t radius = -1); // for the new AF
AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf, Float_t radius)
{
... |
<commit_before>#include <map>
#include <cmath>
#include <algorithm>
#include <fstream>
#include <ctime>
#include <memory>
#include "ChatBot.h"
struct userinfo
{
int smiles;
int lastReply;
};
vector<wstring> request;
vector<shared_ptr<vector<wstring> > > reply;
vector<vector<long long> > tf;
vector<pair<long ... |
<commit_before>#include "stdafx.h"
#include "Problem1.h"
/*
https://projecteuler.net/problem=1
Multiples of 3 and 5
Problem 1
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
*/
in... |
<commit_before>//
// CRC.hpp
// Clock Signal
//
// Created by Thomas Harte on 18/09/2016.
// Copyright 2016 Thomas Harte. All rights reserved.
//
#ifndef CRC_hpp
#define CRC_hpp
#include <cstdint>
#include <vector>
namespace CRC {
/*! Provides a class capable of generating a CRC from source data. */
template <t... |
<commit_before>#include <boost/test/unit_test.hpp>
#include "main.h"
#include "wallet.h"
#include "util.h"
BOOST_AUTO_TEST_SUITE(base64_tests)
BOOST_AUTO_TEST_CASE(base64_testvectors)
{
static const std::string vstrIn[] = {"","f","fo","foo","foob","fooba","foobar"};
static const std::string vstrOut[] = {"",... |
<commit_before>/* WordPerfectImportFilter: Sets up the filter, and calls DocumentCollector
* to do the actual filtering
*
* Copyright (C) 2000 by Sun Microsystems, Inc.
* Copyright (C) 2002-2004 William Lachance (wlach@interlog.com)
* Copyright (C) 2004 Net Integration Technologies (http://www.net-itech.com)
* Co... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: skeletonmaker.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: ihi $ $Date: 2006-12-20 12:43:27 $
*
* The Contents of this file are... |
<commit_before>#include "Key.h"
namespace OpenPGP {
namespace Packet {
Key::Key(uint8_t tag)
: Tag(tag),
time(),
pka(),
mpi(),
expire()
{}
Key::Key()
: Key(0)
{}
Key::Key(const Key & copy)
: Tag(copy),
time(copy.time),
pka(copy.pka),
mpi(copy.mpi),
expire(... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLIndexBibliographyEntryContext.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: dvo $ $Date: 2002-01-18 11:08:29 $
*
* The Contents of this file are made available subject to the terms of
* eith... |
<commit_before>// -*- c++ -*-
// $Id$
#include "unittest.hxx"
#include "vigra/multi_array.hxx"
#include "vigra/multi_pointoperators.hxx"
#include "vigra/multi_convolution.hxx"
#include "vigra/basicimageview.hxx"
#include "vigra/convolution.hxx"
#include "vigra/navigator.hxx"
#include "vigra/functorexpression.hxx"
us... |
<commit_before>#include <iostream>
#include "TString.h"
#include "TFile.h"
#include "TTree.h"
#include "TSystem.h"
#include "TMVA/Factory.h"
#include "TMVA/Reader.h"
#include "TMVA/DataLoader.h"
#include "TMVA/PyMethodBase.h"
int testPyTorchRegression(){
// Get data file
std::cout << "Get test data..." << std:... |
<commit_before>#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofBackground(0,0,0);
ofSetBackgroundAuto(false);
isFullScreen = false;
ofSetFrameRate(30);
masterCounter = 0;
direction = 1; //count up
// OSC STUFF
rece... |
<commit_before>#include <reconstructmesdk/reme.h>
#include <sstream>
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
using std::stringstream;
int main () {
reme_context_t context;
reme_context_create(&context);
reme_options_t options, options_sub;
reme_options_create(context, &options)... |
<commit_before>/*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2012] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* i... |
<commit_before>#include "scene.h"
#include "game.h"
#include "player_context.h"
#include "text_entity.h"
#include "welcome_state.h"
using namespace space_invaders;
inline std::string toScoreString(int score) {
auto result = std::to_string(score);
auto difference = (4 - result.size());
if (difference ... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_TEST_PRODUCTS_SWIPDGPENALTY_HH
#define DUNE_GDT_TEST_PRODUCTS_SWIPDGPEN... |
<commit_before>#include <gmock/gmock.h>
#include <set>
#include "oddlib/stream.hpp"
#include <jsonxx/jsonxx.h>
#include "logger.hpp"
using namespace ::testing;
size_t StringHash(const char* s)
{
// FNV hasher
size_t result = 2166136261U;
while (*s)
{
result = (16777619 * result) ^ static_cast<... |
<commit_before>#include "tileset.h"
#include "romfile.h"
#include "compress.h"
const romaddr_t ptrTilesetL = {0x12, 0x8a4f};
const romaddr_t ptrTilesetH = {0x12, 0x8a1e};
const romaddr_t ptrTilesetB = {0x12, 0x89ed};
const romaddr_t tileSubVals = {0x12, 0x9c5f};
metatile_t tilesets[NUM_TILESETS][0x100];
uint8_t ti... |
<commit_before>/* Cycript - Optimizing JavaScript Compiler/Runtime
* Copyright (C) 2009-2013 Jay Freeman (saurik)
*/
/* GNU General Public License, Version 3 {{{ */
/*
* Cycript is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Fre... |
<commit_before>// ReaderWriterSPT.cxx -- Provide a paged database for flightgear scenery.
//
// Copyright (C) 2010 - 2013 Mathias Froehlich
//
// 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>#include <cerrno>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <csignal>
#include <cassert>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <fcntl.h>
#include <unistd.h>
#define NOFD -1
int report_fd, walltimelimit;
volatile boo... |
<commit_before>/******************************************************************************/
/* */
/* b b c p . C */
/* ... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>#ifndef __INCLUDED_NET11_UTIL_HPP__
#define __INCLUDED_NET11_UTIL_HPP__
#pragma once
#include <stdint.h>
#include <functional>
#ifdef _MSC_VER
#include <windows.h>
#else
#include <unistd.h>
#endif
namespace net11 {
// a sink is a data receiver
class sink;
// buffer is a utility cl... |
<commit_before><commit_msg>bug fixes<commit_after><|endoftext|> |
<commit_before>/*
* RandomNumber.cc
*
* Copyright (C) 2015 Linas Vepstas
*
* Author: Linas Vepstas <linasvepstas@gmail.com> January 2009
*
* 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... |
<commit_before>#include "features.h"
#include <fstream>
// Variables for features computation
#define HIST_SIZE 100
Features &Features::getInstance()
{
static Features instance;
return instance;
}
Features::Features() :
sizeElementArray(0)
{
sizeElementArray += 3*HIST_SIZE; // Histogram size
siz... |
<commit_before>#define BOOST_TEST_MODULE VizTest
#include <boost/test/included/unit_test.hpp>
#include <Eigen/Geometry>
#include "StandaloneVisualizer.hpp"
#include <maps/grid/MLSMap.hpp>
#include "../tools/GeneratePointclouds.hpp"
using namespace ::maps::grid;
BOOST_AUTO_TEST_CASE(mls_simulate_LIDAR)
{
// ... |
<commit_before>#include "libadb.h"
#include "adb_prot.h"
#include "rxx.h"
str
dbrec_to_str (ptr<dbrec> dbr, int i)
{
//we aren't storing a null terminator.
// add it here or the conversion grabs trailing garbage
char buf[128];
int ncpy = (dbr->len > 127) ? 127 : dbr->len;
memcpy (buf, dbr->value, dbr->len);
... |
<commit_before>/*
* opencog/atomspace/AttentionBank.cc
*
* Copyright (C) 2013 Linas Vepstas <linasvepstas@gmail.com>
* All Rights Reserved
*
* Written by Joel Pitt
*
* 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
* pub... |
<commit_before>#include <stdio.h>
#include "sound.h"
#include "xcore/xcore.h"
#include <iostream>
#ifdef HAVESDL
#include <SDL.h>
#undef main
#endif
#ifdef _WIN32
#include <mmsystem.h>
#endif
#define SF_BUF 1
int sndFlag = 0;
unsigned char sndBufA[0x10000];
unsigned char sndBufB[0x10000];
unsigned char* sndBuf ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: listener.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 15:19:02 $
*
* The Contents of this file are made... |
<commit_before><commit_msg>Added Test for tdf#74363 auto correct of initial captials on start<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: feflyole.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: mib $ $Date: 2002-08-09 08:39:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include <string>
#include <iostream>
#include <codecvt>
#include <locale>
#include <stdexcept>
#include <iomanip>
#include <ctime>
#include <sstream>
#include <Winsock2.h>
#include <windows.h>
#include "utils_win.h"
#include "logger.h"
#include "aps_meter.h"
using namespace tracker::logger;
class Co... |
<commit_before>/*!
* \file stack.cpp
* \brief implementation of stack class
*
* \author sabertazimi, <sabertazimi@gmail.com>
* \version 1.0
* \date 2016-09-30
*/
#include <iostream>
#include "stack.h" // add include/ path to g++ flags
using namespace std;
/// \brief stack instructor
/// \param m stac... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/*
* trigger.cpp
*
* Created on: 02/01/2016
*
* =========================================================================
* Copyright (C) 2015-, Daniele De Sensi (d.desensi.software@gmail.com)
*
* This file is part of nornir.
*
* nornir is free software: you can redistribute it and/or
* mo... |
<commit_before>/**
* Copyright (c) 2007-2012, 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, t... |
<commit_before>// Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <emscripten.h>
#include "InputEm.h"
#include "core/Engine.h"
#include "core/Window.h"
#include "events/Event.h"
EM_BOOL emKeyCallback(int eventType, const EmscriptenKeyboardEvent* keyEvent, void* userData)
{
s... |
<commit_before>//===--- swift-demangle.cpp - Swift Demangler app -------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/* rescoring1D.C
*
* Copyright (C) 2011 Marcel Schumann
*
* This program 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 vers... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// A buffer class for temporarily storaging sound samples, operates as a
/// first-in-first-out pipe.
///
/// Samples are added to the end of the sample buffer with the 'putSamples'
/// function, and are receive... |
<commit_before>/******************************************************************
*
* Round for C++
*
* Copyright (C) Satoshi Konno 2014
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <boost/filesystem.hpp>
#include <boost... |
<commit_before>AliEmcalTRDTracking* AddTaskTRDTracking(const char *suffix = "")
{
return AliEmcalTRDTracking::AddTaskTRDTracking(suffix);
}
<commit_msg>Fixing task name in add macro<commit_after>AliEmcalTRDTrackingTask* AddTaskTRDTracking(const char *suffix = "")
{
return AliEmcalTRDTrackingTask::AddTaskTRDTracking... |
<commit_before>#include "image_png.h"
#include "ohno.h"
#include "png.h"
#include "util.h"
#include <cassert>
#include <csetjmp>
#include <functional>
#include <iostream>
namespace {
const int PNG_SIG_SIZE = 8;
void readPngStream(png_structp s, png_bytep data, png_size_t length) {
if(!s)
return;
s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.