text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 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 <vector>
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/path_service.h... |
<commit_before>// Copyright (c) 2011 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/ui/touch/tabs/touch_tab_strip_controller.h"
#include "chrome/browser/extensions/extension_tab_helper.h"
#incl... |
<commit_before>// Copyright (c) 2009 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 <errno.h>
#include <sys/file.h>
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/chromeos/e... |
<commit_before>// Copyright (c) 2009 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/gview_request_interceptor.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include ... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// ycsb_workload.cpp
//
// Identification: src/main/ycsb/ycsb_workload.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===-----------------------------... |
<commit_before>// Copyright (c) 2011 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 "base/string16.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/auto... |
<commit_before>#include "MessageBuilder.hpp"
#include "Application.hpp"
#include "common/LinkParser.hpp"
#include "messages/Image.hpp"
#include "messages/Message.hpp"
#include "messages/MessageElement.hpp"
#include "providers/LinkResolver.hpp"
#include "providers/twitch/PubsubActions.hpp"
#include "singletons/Emotes.h... |
<commit_before>/**************************************************************************
**
** This file is part of QMime
**
** Based on Qt Creator source code
**
** Qt Creator Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
**
** GNU Lesser General Public License Usage
**
** This file may be use... |
<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 "Lice... |
<commit_before><commit_msg>Surely we want closesocket() on Windows<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: PreviewValueSet.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-07-13 14:46:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>/*************************************************************************
*
* $RCSfile: PreviewValueSet.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-07-13 14:46:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the followin... |
<commit_before>// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 Dims dev-team
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "serialize.h"
#include "sync.h"
#include "util.h"
#include <... |
<commit_before>/*
QtCurve (C) Craig Drummond, 2007 - 2010 craig.p.drummond@gmail.com
----
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License version 2 as published by the Free Software Foundation.
This program is distributed in the ho... |
<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>#include <ros/ros.h>
#include <boost/math/constants/constants.hpp>
#include <pr2_controllers_msgs/JointTrajectoryAction.h>
#include <pr2_mechanism_msgs/ListControllers.h>
#include <actionlib/client/simple_action_client.h>
#include <boost/math/constants/constants.hpp>
using namespace std;
using namespace... |
<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>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Alexander Rössler
** License: LGPL version 2.1
**
** This file is part of QtQuickVcp.
**
** All rights reserved. This program and the accompanying materials
** are made available under the terms of the ... |
<commit_before><commit_msg>resampling nodata -9999<commit_after><|endoftext|> |
<commit_before>/*
* PyClaw.cpp
*
* Created on: Feb 18, 2012
* Author: kristof
*/
#include <Python.h>
#include <numpy/arrayobject.h>
#include "peanoclaw/pyclaw/PyClaw.h"
#include "peanoclaw/pyclaw/PyClawState.h"
#include "peanoclaw/Patch.h"
#include "peano/utils/Loop.h"
#include "tarch/timing/Watch.h"
#inc... |
<commit_before>#include "HmmSet.hh"
#include "conf.hh"
#include "io.hh"
#include "str.hh"
#include "FeatureGenerator.hh"
#include "FeatureModules.hh"
#include "Recipe.hh"
#include "SpeakerConfig.hh"
#include "MllrTrainer.hh"
#include "RegClassTree.hh"
#include <iostream>
#include <fstream>
using namespace aku;
int in... |
<commit_before>/**
* @file ns_model.hpp
* @author Ryan Curtin
*
* This is a model for nearest or furthest neighbor search. It is useful in
* that it provides an easy way to serialize a model, abstracts away the
* different types of trees, and also reflects the NeighborSearch API and
* automatically directs to t... |
<commit_before>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
*
* based on the Null Theme Engine for Gtk+.
* Copyright (c) 2008 Robert Staudinger <robert.staudinger@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modif... |
<commit_before>/*
* Arduino Solar Controller
*
* by karldm, March 2016
*
* ascdata.cpp
*
* Data management & memory accesses (EEPROM&FLASH)
*
* TODO:
* - check access in getParVal() and setParVal()
* - modif _indextype[] to include type (byte-int-ulong) + format + units? byte[3]
* e.g. TEMP will define ... |
<commit_before>/****************************************************************************
**
** CommonFunctions.cpp
**
** Copyright (C) February 2016 Hotride
**
** 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 ... |
<commit_before>#ifndef K3_UNIQPOLYBUF
#define K3_UNIQPOLYBUF
#include <unordered_set>
#if HAS_LIBDYNAMIC
#include <boost/serialization/array.hpp>
#include <boost/serialization/string.hpp>
#include <boost/functional/hash.hpp>
#include <yaml-cpp/yaml.h>
#include <rapidjson/document.h>
#include <csvpp/csv.h>
#include ... |
<commit_before>#ifndef VEXCL_TEMPORARY_HPP
#define VEXCL_TEMPORARY_HPP
/*
The MIT License
Copyright (c) 2012-2013 Denis Demidov <ddemidov@ksu.ru>
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>#pragma once
#include <iostream>
#include <gecode/minimodel.hh>
namespace gameai {
namespace gecode {
class lab4 : public Gecode::Space {
private:
const int count = 2;
Gecode::IntVarArray xy;
public:
lab4() : xy(*this, count, -5, 4) {
Gecode::IntVar x(xy[0]), y(xy[1]);
Gecode::re... |
<commit_before>/**
* @file distribution_test.cpp
* @author Ryan Curtin
*
* Test for the mlpack::distribution::DiscreteDistribution class.
*/
#include <mlpack/core.h>
#include <mlpack/methods/hmm/distributions/discrete_distribution.hpp>
#include <boost/test/unit_test.hpp>
using namespace mlpack;
using namespace m... |
<commit_before>#include "GameData.h"
#include <string>
#include <sstream>
#include <algorithm>
#include <map>
#include <zlib/zlib.h>
#include "bparse.h"
#include "DatCat.h"
#include "File.h"
namespace
{
// Relation between category number and category name
// These names are taken straight from the exe, it ... |
<commit_before><commit_msg>Update FONLL5andMCatSHQoverLHC20g2b high-pt weights<commit_after><|endoftext|> |
<commit_before>#ifndef MENU_HPP
#define MENU_HPP
#include <QMainWindow>
#include <QApplication>
class Menu : public QMainWindow
{
public:
Menu(QWidget *parent = 0);
};
#endif
<commit_msg>Delete menu.hpp<commit_after><|endoftext|> |
<commit_before>#pragma once
#include "common.hpp"
namespace cp
{
class CP_EXPORT gnuplot
{
FILE* fp;
public:
gnuplot(std::string gnuplotpath);
void cmd(std::string name);
~gnuplot();
};
class CP_EXPORT Plot
{
protected:
std::string font = "Times New Roman";//"Consolas"
int fontSize = 20;
int fon... |
<commit_before>// Ylikuutio - A 3D game and simulation engine.
//
// Copyright (C) 2015-2021 Antti Nuortimo.
//
// This program 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
... |
<commit_before>
#include <gtest/gtest.h>
#include <zinc/zincconfigure.h>
#include <zinc/context.h>
#include <zinc/core.h>
#include <zinc/field.h>
#include <zinc/fieldcache.h>
#include <zinc/fieldcomposite.h>
#include <zinc/fieldconstant.h>
#include <zinc/fieldimage.h>
#include <zinc/fieldimageprocessing.h>
#include <z... |
<commit_before>#include <plasp/sas/TranslatorASP.h>
#include <plasp/sas/TranslatorException.h>
#include <plasp/utils/Parsing.h>
namespace plasp
{
namespace sas
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TranslatorASP
//
///////////////////////////////... |
<commit_before>/* See Project chip LICENSE file for licensing information. */
#include <platform/logging/LogV.h>
#include <support/logging/Constants.h>
#include <core/CHIPConfig.h>
#include <support/logging/Constants.h>
#include <os/log.h>
#include <inttypes.h>
#include <pthread.h>
#include <stdarg.h>
#include <std... |
<commit_before>// Copyright (c) 2013-2016 mogemimi. Distributed under the MIT license.
#include <Pomdog/Utility/StringHelper.hpp>
#include <gtest/iutest_switch.hpp>
using Pomdog::StringHelper;
TEST(StringHelper, FirstCase)
{
EXPECT_EQ("1 + 2 = 3", StringHelper::Format("%d + %d = %d", 1, 2, 1+2));
EXPECT_EQ("... |
<commit_before>#ifndef K3_RUNTIME_BUILTINS_H
#define K3_RUNTIME_BUILTINS_H
#include <ctime>
#include <chrono>
#include <climits>
#include <fstream>
#include <sstream>
#include <string>
#include <functional>
#include "BaseTypes.hpp"
namespace K3 {
//class Builtins: public __k3_context {
// public:
// Built... |
<commit_before>#ifndef K3_RUNTIME_LISTENER_H
#define K3_RUNTIME_LISTENER_H
#include <atomic>
#include <memory>
#include <unordered_set>
#include <boost/array.hpp>
#include <boost/thread/condition_variable.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/lock_types.hpp>
#include <boost/thread/mutex.hpp>
... |
<commit_before>#include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
int main()
{
vector<int> vec1{0, 1, 1, 2};
vector<int> vec2{0, 1, 1, 2, 3, 5, 8};
auto size = vec1.size() < vec2.size() ? vec1.size() : vec2.size();
for (decltype(vec1.size()) i = 0; i != size; +... |
<commit_before><commit_msg>account for zero radius in parallel plane check<commit_after><|endoftext|> |
<commit_before>
#include <gloperate-qt/viewer/UpdateManager.h>
#include <QTime>
#include <gloperate/viewer/ViewerContext.h>
#include <globjects/base/baselogging.h>
namespace gloperate_qt
{
UpdateManager::UpdateManager(gloperate::ViewerContext * viewerContext)
: m_viewerContext(viewerContext)
{
// Connect upd... |
<commit_before>#include "PositionModule.hpp"
#include <assert.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#include <string>
#include <algorithm>
#include <iostream>
#include <ros/console.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include "sensor_msgs/Image.h... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SlsCacheCompactor.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 06:09:56 $
*
* The Contents of this file ... |
<commit_before>#include "road_graph_builder.hpp"
#include "../../base/logging.hpp"
#include "../../std/algorithm.hpp"
using namespace routing;
namespace routing_test
{
void RoadInfo::Swap(RoadInfo & r)
{
m_points.swap(r.m_points);
std::swap(m_speedMS, r.m_speedMS);
std::swap(m_bidirectional, r.m_bidirectional... |
<commit_before>
// Note - python_bindings_common.h must be included before condor_common to avoid
// re-definition warnings.
#include "python_bindings_common.h"
#include "condor_common.h"
#include "daemon.h"
#include "daemon_types.h"
#include "condor_commands.h"
#include "condor_attributes.h"
#include "compat_classad.... |
<commit_before>/*
* ctapdev.cc
*
* Created on: 24.06.2013
* Author: andreas
*/
#include "ctapdev.hpp"
using namespace rofcore;
extern int errno;
ctapdev::ctapdev(
cnetdev_owner *netdev_owner,
const rofl::cdpid& dpid,
std::string const& devname,
uint16_t pvid,
rofl::cmacaddr const& hwaddr,
pt... |
<commit_before>#include "BulletsConverter.h"
#include "StylesWriter.h"
using namespace PPT_FORMAT;
BulletsConverter::BulletsConverter(CRelsGenerator* pRels) : m_pRels(pRels) {}
void BulletsConverter::FillPPr(PPTX::Logic::TextParagraphPr &oPPr, CParagraph ¶graph)
{
oPPr.lvl = paragraph.m_lTextLevel;
auto... |
<commit_before>/* Copyright (C) 2010-present, Zhenkai Zhu <zhenkai@cs.ucla.edu>
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 cop... |
<commit_before>// formatxx - C++ string formatting library.
//
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial... |
<commit_before>/*
Copyright (C) 2003-2008 Grame
Grame Research Laboratory, 9 rue du Garet, 69001 Lyon - France
research@grame.fr
This file is provided as an example of the MusicXML Library use.
*/
#ifdef VC6
# pragma warning (disable : 4786)
#endif
#include <iomanip> // setw()), set::precision(), ...
... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "UIManager.h"
#include <react/core/ShadowNodeFragment.h>
#include <react/debug/SystraceSection.h>
#include... |
<commit_before>#include "clang/Basic/FileManager.h"
#include "clang/Index/IndexUnitReader.h"
#include "clang/Index/IndexUnitWriter.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdlib>
#include <regex>
#incl... |
<commit_before>#include <rtos.h>
#include <vector>
#include <memory>
#include <CommModule.hpp>
#include <CommPort.hpp>
#include <CC1201Radio.hpp>
#include <helper-funcs.hpp>
#include <logger.hpp>
#include <assert.hpp>
#include "robot-devices.hpp"
#include "task-signals.hpp"
#include "task-globals.hpp"
#include "io-e... |
<commit_before>/*************************************************************************
*
* $RCSfile: table.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: fs $ $Date: 2000-10-18 16:08:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2013-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
<commit_before>/*
* Copyright 2014 (c) Lei Xu <eddyxu@gmail.com>
*
* 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... |
<commit_before>// Copyright (c) 2015 cpichard.
//
// 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/.
#if HAVE_ALEMBIC
#include "AlembicImporter.hpp"
#include <Alembic... |
<commit_before>/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of... |
<commit_before>#include "genetico.cpp"
#include <gnuplot-iostream.h>
int main()
{
arma_rng::set_seed_random();
Gnuplot gp;
// -------------------------------
// Inciso a
// -------------------------------
{
const array<double, 2> limites = {{-512, 512}};
auto fitness = [](arra... |
<commit_before>/*
* This file is part of Poedit (https://poedit.net)
*
* Copyright (C) 2014-2022 Vaclav Slavik
*
* 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 restrictio... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief ST7565(R) LCD ドライバー
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
namespace chip {
//++++++++++++++++++++++++++++... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 app... |
<commit_before>#include <osgGA/AnimationPathManipulator>
#include <fstream>
using namespace osgGA;
AnimationPathManipulator::AnimationPathManipulator(osg::AnimationPath* animationPath)
{
_printOutTimingInfo = true;
_animationPath = animationPath;
_timeOffset = 0.0;
_timeScale = 1.0;
_isPaused =... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 2007 Cedric Pinson
*
* This application is open source and may be redistributed and/or modified
* freely and without restriction, both in commercial and non commercial
* applications, as long as this copyright notice is maintained.
*
* This application is... |
<commit_before><commit_msg>Nothing much<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>#include "aio_private.h"
#define AIO_DEPTH 128
void aio_callback(io_context_t ctx, struct iocb* iocb,
struct io_callback_s *cb, long res, long res2) {
thread_callback_s *tcb = (thread_callback_s *) cb;
memcpy(cb->buf, ((char *) iocb->u.c.buf)
+ (cb->offset - ROUND_PAGE(cb->offset)), cb->size);
... |
<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 "bin/builtin.h"
#include "bin/dartutils.h"
#include "include/dart_api.h"
nam... |
<commit_before>// Copyright (c) 2018 PaddlePaddle 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
//
// ... |
<commit_before>#include <cstdint>
#include "immintrin.h"
#include "/home/christoph/intel/iaca/include/iacaMarks.h"
inline void _permute_and_store(std::uint32_t* dst, __m512i k, __m512i a, __m512i b) {
_mm512_storeu_si512(dst, _mm512_permutex2var_epi32(a, k, b));
}
inline __m512i _rank_get(__m512i bits, __m512i r... |
<commit_before>// Win32Lib.cpp
// This file is part of the EScript programming language (https://github.com/EScript)
//
// Copyright (C) 2011-2013 Claudius Jähn <ClaudiusJ@live.de>
// Copyright (C) 2012 Benjamin Eikel <benjamin@eikel.org>
//
// Licensed under the MIT License. See LICENSE file for details.
// ----------... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>// Copyright (c) 2020-2021 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 <addrdb.h>
#include <addrman.h>
#include <addrman_impl.h>
#include <chainparams.h>
#include <merklebl... |
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... |
<commit_before>/*
Copyright (c) 2012, Paul Houx
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 list of conditions a... |
<commit_before>#include "cinder/app/AppBasic.h"
#include "cinder/app/RendererGl.h"
#include "cinder/Path2d.h"
#include "cinder/gl/gl.h"
#include <vector>
using namespace ci;
using namespace ci::app;
using namespace std;
class Path2dApp : public AppBasic {
public:
Path2dApp() : mTrackedPoint( -1 ) {}
void mouseD... |
<commit_before>/*
Copyright 2016 Andreas Bjerkeholt
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 wri... |
<commit_before>#include "headers.h"
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(P40, P39, P38, P37, P36, P35);
int main()
{
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
whi... |
<commit_before>#include <jpl-tags/fiducial_stereo.h>
#include <opencv2/opencv.hpp>
#include <drc_utils/LcmWrapper.hpp>
#include <drc_utils/BotWrapper.hpp>
#include <lcm/lcm-cpp.hpp>
#include <lcmtypes/multisense/images_t.hpp>
#include <lcmtypes/bot_core/image_t.hpp>
#include <lcmtypes/drc/tag_detection_t.hpp>
#includ... |
<commit_before>#include "qif"
using std::cout;
using std::vector;
using std::string;
using namespace qif;
void compute_optimal(string method) {
lp::Defaults::method = lp::method_t::simplex_dual;
lp::Defaults::glp_msg_level = lp::msg_level_t::all;
lp::Defaults::glp_presolve = true;
double unit = 1;
double eps ... |
<commit_before>#ifndef STAN__MATH__ERROR_HANDLING_CHECK_POSITIVE_HPP
#define STAN__MATH__ERROR_HANDLING_CHECK_POSITIVE_HPP
#include <stan/math/error_handling/dom_err.hpp>
#include <stan/math/error_handling/dom_err_vec.hpp>
#include <boost/type_traits/is_unsigned.hpp>
#include <stan/meta/traits.hpp>
namespace stan {
... |
<commit_before>#ifndef STAN_SERVICES_UTIL_GENERATE_TRANSITIONS_HPP
#define STAN_SERVICES_UTIL_GENERATE_TRANSITIONS_HPP
#include <stan/interface_callbacks/writer/base_writer.hpp>
#include <stan/interface_callbacks/interrupt/base_interrupt.hpp>
#include <stan/mcmc/base_mcmc.hpp>
#include <stan/services/util/mcmc_writer.... |
<commit_before>
#include "Shader.h"
#include "Utilities.h"
#include <GL/glew.h>
namespace ion
{
namespace GL
{
////////////
// Shader //
////////////
void Shader::Source(std::vector<std::string> const & Source)
{
c8 const ** Lines = new c8 const *[Source.size()];
for (u32 i = 0; i ... |
<commit_before>#include "Mocks.hpp"
using namespace blackhole;
TEST(logger_base_t, CanBeEnabled) {
logger_base_t log;
log.enable();
EXPECT_TRUE(log.enabled());
}
TEST(logger_base_t, CanBeDisabled) {
logger_base_t log;
log.disable();
EXPECT_FALSE(log.enabled());
}
TEST(logger_base_t, EnabledB... |
<commit_before>/* Copyright © 2001-2019, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open public ... |
<commit_before>//=====================================================================//
/*! @file
@brief R8C ADC メイン
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "main.hpp"
#include "system.hpp"
#include "clock.hpp"
#include "port.hpp"
#includ... |
<commit_before>/* Begin CVS Header
$Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/utilities/COutputHandler.cpp,v $
$Revision: 1.19 $
$Name: $
$Author: shoops $
$Date: 2006/08/07 19:27:10 $
End CVS Header */
// Copyright 2005 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc.... |
<commit_before>#include <set>
#include <errno.h>
#include <string.h>
#include "ModuleConfig.hh"
#include "str.hh"
#include "FeatureGenerator.hh"
namespace aku {
FeatureGenerator::FeatureGenerator(void) :
m_base_module(NULL),
m_last_module(NULL),
m_file(NULL),
m_dont_fclose(false),
m_eof_on_last_frame(false... |
<commit_before>#include "constant.h"
#include "function.h"
#include "module.h"
#include "module_p.h"
#include "modulemap_p.h"
static void moduleNotFound(int number)
{
zend_error(
E_WARNING,
"Unable to find the module by number %d. Probably phpcxx::Module instance has been destroyed too early",
... |
<commit_before>/* This file is part of the KDE libraries
Copyright (C) 2001-2004 Christoph Cullmann <cullmann@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
... |
<commit_before><commit_msg>fix switches (--) and typos<commit_after><|endoftext|> |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Claire Xenia Wolf <claire@yosyshq.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pages.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2008-01-29 16:30:51 $
*
* The Contents of this file are made av... |
<commit_before><commit_msg>This is not needed.<commit_after><|endoftext|> |
<commit_before>#include <stdlib.h>
#include <string.h>
#include <string>
#include <realm/util/features.h>
#include <realm/util/basic_system_errors.hpp>
using namespace realm::util;
namespace {
class system_category: public std::error_category {
const char* name() const REALM_NOEXCEPT override;
std::string ... |
<commit_before><commit_msg>Don't output idiotic comments in the generated OpenCL<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2006-2011 The FLWOR Foundation.
*
* 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 ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.