text stringlengths 54 60.6k |
|---|
<commit_before>/**
* @file BackProject_Demo2.cpp
* @brief Sample code for backproject function usage ( a bit more elaborated )
* @author OpenCV team
*/
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
using namespace cv;
using namespace std;
/// Global Variables
... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQExpressionWidget.cpp,v $
// $Revision: 1.32 $
// $Name: $
// $Author: shoops $
// $Date: 2009/01/08 16:07:44 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Propertie... |
<commit_before>/* AFE Firmware for smart home devices
LICENSE: https://github.com/tschaban/AFE-Firmware/blob/master/LICENSE
DOC: http://smart-house.adrian.czabanowski.com/afe-firmware-pl/ */
#include "AFE-Web-Server.h"
AFEWebServer::AFEWebServer() {}
void AFEWebServer::begin() {
httpUpdater.setup(&server);
s... |
<commit_before>#include <osrm/coordinate.hpp>
#include <boost/test/unit_test.hpp>
// Regression test for bug captured in #1347
BOOST_AUTO_TEST_CASE(regression_test_1347)
{
FixedPointCoordinate u(10 * COORDINATE_PRECISION, -100 * COORDINATE_PRECISION);
FixedPointCoordinate v(10.001 * COORDINATE_PRECISION, -100... |
<commit_before>#pragma once
#include "kernel.hh"
#include "refcache.hh"
#include "chainhash.hh"
#include "radix_array.hh"
#include "page_info.hh"
#include "kalloc.hh"
#include "fs.h"
class mdir;
class mfile;
class mdev;
class msock;
class mnode : public refcache::weak_referenced
{
public:
struct types {
enum {... |
<commit_before>#include <cv.h>
#include <highgui.h>
#include <iostream>
using namespace cv;
using namespace std;
void help(){
cout << "This is Crative Commons work, do what you like... " << endl;
cout << "Usage: ./binary <image_name> " << endl;
cout << "Hot keys: \n"
"\tr/R toggle croping ... |
<commit_before>#include "connection_manager.hpp"
#include "karabiner_version.h"
#include "logger.hpp"
int main(int argc, const char* argv[]) {
signal(SIGUSR1, SIG_IGN);
signal(SIGUSR2, SIG_IGN);
logger::get_logger().info("version {0}", karabiner_version);
connection_manager manager;
CFRunLoopRun();
retu... |
<commit_before>#include <iostream>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <utils/LibCvTools/random_generator.hpp>
#include <vector>
#include <set>
namespace files {
inline bool create_on_check(const std::string &path)
{
if(!boost::filesystem3::exists(path)) {
std::cout << "Dir... |
<commit_before>//===-- X86TargetMachine.cpp - Define TargetMachine for the X86 -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>/*
* This file is part of TelepathyQt4
*
* Copyright (C) 2009-2010 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2009-2010 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... |
<commit_before>//===- JITTest.cpp - Unit tests for the JIT -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <iostream>
class Fracao {
private:
int num;
int den;
friend std::ostream &operator<<( std::ostream &saida, const Fracao &a );
friend std::istream &operator>>( std::istream &entrada, Fracao &a );
public:
void imprimir( void ) const {
std::cout << *this << '\n';
... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>/**
* @file sparse_autoencoder_test.cpp
* @author Siddharth Agrawal
*
* Test the SparseAutoencoder class.
*/
#include <mlpack/methods/sparse_autoencoder/sparse_autoencoder.hpp>
#include <mlpack/methods/sparse_autoencoder/sparse_autoencoder_function.hpp>
#include <mlpack/methods/sparse_autoencoder/ac... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2009, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2017 Nathan Osman
*
* 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
*... |
<commit_before>#include <netdb.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include "client.h"
#include "duckchat.h"
// Variables
struct sockaddr_in client_addr;
struct sockaddr_in server_addr;
int client_socket;
struct addrinfo *server_info;
char *channel;
// Prints an error message and exits the program.
void E... |
<commit_before>#ifndef _UNTOOLS_UCBSTREAMHELPER_HXX
#define _UNTOOLS_UCBSTREAMHELPER_HXX
#ifndef _COM_SUN_STAR_UNO_REFERENCE_HXX_
#include <com/sun/star/uno/Reference.hxx>
#endif
#include <tools/stream.hxx>
namespace com
{
namespace sun
{
namespace star
{
namespace task
... |
<commit_before>#include "include/Node.hpp"
#include "include/Tree.hpp"
#include <cstddef>
#include <iostream>
int main() {
Node< std::string >* node = new Node< std::string >( 1, "Lorhan", nullptr, nullptr );
std::cout << node->getValue() << std::endl;
std::cout << node->left << std::endl;
std::cout <<... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int MDC(int n, int m);
int MDC(int n, int m){
int a;
int b;
int resultado;
temp_bool_1 = n > m;
temp_bool_1= !temp_bool_1;
if( temp_bool_1 ) goto L_if_end_1;
a = n;
b = m;
L_if_end_1:
a = m;
b = n;
L_if_chain_end_1:
tem... |
<commit_before><commit_msg>pass first AXI communication in multi-thread simulation<commit_after><|endoftext|> |
<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 "android_webview/browser/aw_browser_main_parts.h"
#include "android_webview/browser/aw_browser_context.h"
#include "android_w... |
<commit_before>#include <stdio.h>
#include <inttypes.h>
#include <lcm/lcm.h>
#include <iostream>
#include <limits>
#include "joints2frames.hpp"
#include <ConciseArgs>
using namespace std;
using namespace boost;
using namespace boost::assign;
// false usually, set true to disable the limiting:
#define DONT_LIMIT_FREQ... |
<commit_before>#include "rosplan_planning_system/PlanDispatcher.h"
#include <map>
namespace KCL_rosplan {
int PlanDispatcher::getCurrentAction() {
return current_action;
}
void PlanDispatcher::reset() {
dispatch_paused = false;
current_action = 0;
action_received.clear();
action_completed.clear();
rep... |
<commit_before>
#include <stdlib.h> /* srand, rand */
#include <chrono>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include "bpmf.h"
using namespace std;
using namespace Eigen;
typedef SparseMatrix<double> SparseMatrixD;
const int num_feat = 32;
unsigned num_p = 0;
unsigned n... |
<commit_before>#include "ChLcpSolverParallel.h"
#include "math/ChThrustLinearAlgebra.h"
using namespace chrono;
//// TODO: For now, this is hard-coded for Hunt-Crossley with Simple Sliding Friction.
__host__ __device__
void function_CalcContactForces(int& index, // index of this contact pair
... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>// Used for testing, do not use it as an example
#include <qpp.h>
#include <experimental/test.h>
// #include <MATLAB/matlab.h>
using namespace qpp;
using std::cout;
using std::endl;
int main()
{
int i = 42;
std::cout << i++ << std::endl;
std::cout << i << std::endl;
}
<commit_msg>commit<comm... |
<commit_before>// Source: http://www.daniweb.com/software-development/cpp/code/427500/calculator-using-shunting-yard-algorithm#
// Author: Jesse Brown
// Modifications: Brandon Amos
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include "shunting-yard.h"
int ShuntingYard::precedence(... |
<commit_before>//===-- BitWriter.cpp -----------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// License Agreement:
//
// The following are Copyright 2008, Daniel nnerby
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provid... |
<commit_before>
#pragma once
#include <reflectionzeug/property/PropertyGroup.h>
namespace reflectionzeug
{
template <typename Type, typename... Args>
Property<Type> * PropertyGroup::addProperty(const std::string & name, Args&&... args)
{
// Create new property
auto property = new Property<Type>(name, std:... |
<commit_before>#ifndef LUABIND_CRTP_ITERATOR_HPP_INCLUDED
#define LUABIND_CRTP_ITERATOR_HPP_INCLUDED
#include <iterator>
namespace luabind {
namespace detail {
template< typename CRTP, typename Category, typename ValueType, typename ReferenceType = ValueType&, typename DifferenceType = ptrdiff_t >
class crtp_ite... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2016 - 2017 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... |
<commit_before>// ================================================================================================
// Shadowrect.cpp
//
// Copyright (C) 2001 Herf Consulting LLC. All rights reserved.
//
// Please do not redistribute this source code.
//
// This source is provided "as-is," and Herf Consulting LLC ... |
<commit_before>// Authors: Axel Naumann, Philippe Canal, Danilo Piparo
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before><commit_msg>fixed note off velocity<commit_after><|endoftext|> |
<commit_before>#include "Camera2DTargetedComponent.h"
#include "Entities/Components/Transform3DComponent.h"
#include "Entities/ComponentTypeEnum.h"
#include "Game/Game.h"
namespace CasaEngine
{
Camera2DTargetedComponent::Camera2DTargetedComponent(BaseEntity *entity) :
Camera2DComponent(entity, CAMERA_2D_TARGETED),... |
<commit_before>/*
* Reader of /dev/random and company
* (C) 1999-2009,2013 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/internal/dev_random.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
namespac... |
<commit_before>/*
* Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
* License: https://github.com/taylor001/crown/blob/master/LICENSE
*/
#include "path.h"
#include <ctype.h> // isalpha
#include <string.h> // strlen, strrchr
namespace crown
{
namespace path
{
bool is_absolute(const char* pat... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. 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. Redistr... |
<commit_before>/******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted... |
<commit_before>//
// Copyright (C) 2013 Mateusz Łoskot <mateusz@loskot.net>
// Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
//
// This file is part of Qt Creator Boost.Build plugin project.
//
// This is free software; you can redistribute and/or modify it under
// the terms of the GNU Lesser General Publ... |
<commit_before>#include "bochs.h"
bx_iodebug_c bx_iodebug;
bx_iodebug_c *bx_iodebug_ptr;
struct bx_iodebug_s_type {
Boolean enabled;
unsigned int register_select;
Bit32u registers[2];
Bit32u monitored_mem_areas_start[BX_IODEBUG_MAX_AREAS];
Bit32u monitored_mem_areas_end[BX_IODEBUG_MAX_AREAS];
... |
<commit_before><commit_msg>Planning: remove dup code<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2003-2006 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php... |
<commit_before>/*
* Copyright (c) 2016, Nils Asmussen
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in bin... |
<commit_before>#pragma once
// ----------------------------------------------------------------------
// std::vector<std::string> split(const std::string& s, const std::string& delim, bool keep_empty = Split::KeepEmpty)
// Split string by delimiter into array of substrings
// std::vector<std::string> split(const std::... |
<commit_before>/*
* Copyright (c) 2004-2006 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include "KeyIDClient.h"
#include <cpprest/filestream.h>
#include <chrono>
using namespace std;
using namespace web;
using namespace web::http;
using namespace web::http::client;
using namespace concurrency::streams;
/// <summary>
/// KeyID services client.
/// </summary>
/// <param name="settings"> Ke... |
<commit_before>/*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2017 Taras Kushnir <kushnirTV@gmail.com>
*
* Xpiks is distributed under the GNU General Public License, version 3.0
*
* This program is free software: you can r... |
<commit_before>#include "cnn/nodes.h"
#include "cnn/cnn.h"
#include "cnn/training.h"
#include "cnn/timing.h"
#include "cnn/rnn.h"
#include "cnn/gru.h"
#include "cnn/lstm.h"
#include "cnn/dglstm.h"
#include "cnn/dict.h"
#include "cnn/expr.h"
#include "cnn/cnn-helper.h"
#include <iostream>
#include <fstream>
#include <ss... |
<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 "chrome/browser/tab_contents/web_contents_view.h"
#include "chrome/browser/renderer_host/render_process_host.h"
#include... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_CORR_MATRIX_CONSTRAIN_HPP
#define STAN_MATH_PRIM_MAT_FUN_CORR_MATRIX_CONSTRAIN_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/meta/index_type.hpp>
#include <stan/math/prim/scal/err/check_size_match.hpp>
#include <stan/math/prim/scal/fun/corr_c... |
<commit_before>/*
* Copyright (C) 2008 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
*... |
<commit_before>/** \file MediaTypeUtil.cc
* \brief Implementation of Media Type utility functions.
* \author Dr. Gordon W. Paynter
* \author Dr. Johannes Ruscheinski
*/
/*
* Copyright 2004-2008 Project iVia.
* Copyright 2004-2008 The Regents of The University of California.
* Copyright 2016 Univers... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source Licens... |
<commit_before>/*
* Copyright (c) 1999-2004 Sourceforge JACOB Project.
* All rights reserved. Originator: Dan Adler (http://danadler.com).
* Get more information about JACOB at http://sourceforge.net/projects/jacob-project
*
* This library is free software; you can redistribute it and/or
* modify it under the ter... |
<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/login/user_view.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "chrome/brow... |
<commit_before>/*************************************************************************
*
* $RCSfile: unourl.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: sb $ $Date: 2002-10-02 15:31:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/*
***********************************************************************************************************************
*
* Copyright (c) 2019-2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this soft... |
<commit_before>#include "raven_sqlite.h"
#include <cstdio>
#include <stdarg.h>
#include <cstring>
using std::string;
using std::vector;
using std::wstring;
#ifdef _mingw_
#include <cstring>
#define vswprintf_s vsnwprintf
#define vsprintf_s vsnprintf
#pragma GCC diagnostic ignored "-Wwrite-strings"
#endif
namespace ... |
<commit_before><?hh
abstract class BaseStore {
protected $class;
protected $db;
public function __construct(string $collection = null, string $class = null) {
if (defined('static::COLLECTION') && defined('static::MODEL')) {
$collection = static::COLLECTION;
$class = static::MODEL;
}
inva... |
<commit_before>//===- lib/ReaderWriter/FileArchive.cpp -----------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>//
// IORemoteCommand.cpp
// libio
//
// Created by Sidney Just
// Copyright (c) 2012 by Sidney Just
// 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,... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2011 Francois Beaune
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... |
<commit_before>//===- lib/ReaderWriter/FileArchive.cpp -----------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>// This is the main DLL file.
#include "liblzma_wrapper.h"
/// Information about a .xz file
typedef struct {
/// Combined Index of all Streams in the file
lzma_index *idx;
/// Total amount of Stream Padding
uint64_t stream_padding;
/// Highest memory usage so far
uint64_t memusage_max;
/// T... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImagePipe.cxx
Copyright (c) John Baxter, Robarts Research Institute
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the impl... |
<commit_before><commit_msg>Don't consider a certificate revoked if we don't have fresh revocation status of the certificate.<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2014 GitHub, Inc. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/ui/views/menu_bar.h"
#if defined(USE_X11)
#include "gtk/gtk.h"
#endif
#include "atom/browser/ui/views/menu_delegate.h"
#inc... |
<commit_before>#include <iostream>
#include <unordered_map>
#include <string>
class Node{
public:
std::unordered_map<char, Node*> values;
bool end_word;
Node():end_word{true}{}
};
class Trie{
private:
Node root;
Node * current;
public:
void add_word(const std::string & s){
... |
<commit_before>/*
* Copyright (c) 2007 Digital Bazaar, Inc. All rights reserved.
*/
#include "AsymmetricKey.h"
using namespace std;
using namespace db::crypto;
AsymmetricKey::AsymmetricKey(EVP_PKEY* pkey)
{
// set the public/private key structure
mKey = pkey;
mAlgorithm = NULL;
}
Asymmetri... |
<commit_before>#ifndef PYTHONIC_NUMPY_CONCATENATE_HPP
#define PYTHONIC_NUMPY_CONCATENATE_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/ndarray.hpp"
namespace pythonic {
namespace numpy {
template<class T, size_t N, size_t M>
types::ndarray<T,N> concatenate(types::array<type... |
<commit_before>// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/ui/views/menu_bar.h"
#if defined(USE_X11)
#include "gtk/gtk.h"
#endif
#include "atom/browser/ui/views/menu_delegate.h"
#include "atom/browser/ui... |
<commit_before>/*
* Copyright (C) 2013 Marcin Zdun
*
* 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,
* modi... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014 Francois Beaune, The appleseedhq Organi... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2015 ARM Limited
*
* 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>//===--- Backend.cpp - Interface to LLVM backend technologies -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <avalon/physics/loadercallbacks.h>
#include "Box2D/Box2D.h"
#include <avalon/physics/Box2dContainer.h>
#include <boost/any.hpp>
namespace avalon {
namespace physics {
namespace loadercallbacks {
avalon::io::TiledMapLoader::Callback createShapes(int filterCategory, bool isSensor)
{
return [... |
<commit_before>//===- lib/Linker/LinkItems.cpp - Link LLVM objects and libraries ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===---... |
<commit_before>#pragma once
#include <vector>
#include "acmacs-base/fmt.hh"
#include "acmacs-base/range-v3.hh"
// ----------------------------------------------------------------------
namespace acmacs
{
namespace detail
{
template <typename Key, typename Value> class map_base_t
{
... |
<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 "config.h"
#include <string>
#include "Document.h"
#include "EventListener.h"
#include "InspectorController.h"
#include "Ins... |
<commit_before>#pragma once
#include "acmacs-base/fmt.hh"
#include "acmacs-base/rjson.hh"
#include "acmacs-base/flat-map.hh"
// ----------------------------------------------------------------------
namespace acmacs::settings::inline v2
{
class error : public std::runtime_error
{
using std::runtime_e... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//------------------------------------------------------------------------------
#include "cling/In... |
<commit_before>// Time: O(n)
// Space: O(logn)
/**
* Definition of SegmentTreeNode:
* class SegmentTreeNode {
* public:
* int start, end;
* SegmentTreeNode *left, *right;
* SegmentTreeNode(int start, int end) {
* this->start = start, this->end = end;
* this->left = this->right = NU... |
<commit_before>/*****************************************************************************
* Help.cpp : Help and About dialogs
****************************************************************************
* Copyright (C) 2007 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb (at) videolan.org>
* ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... |
<commit_before>/*****************************************************************************
* sout.cpp : Stream output dialog ( old-style )
****************************************************************************
* Copyright (C) 2007-2009 the VideoLAN team
*
* $Id$
*
* Authors: Clément Stenac <zorglub@vide... |
<commit_before>#include "Smartcar.h"
ESCMotor::ESCMotor(unsigned short pin) {
_pin = pin;
setFreqsAndSpeeds();
setAllowedSpeedLimits();
}
void ESCMotor::setFreqsAndSpeeds(){
FULL_FORWARD = 50;
FULL_BACKWARD = 80;
IDLE_RAW_SPEED = 1500;
MAX_FRONT_RAW_SPEED = 2000;
MAX_BACK_RAW_SPEED = 1000;
_speed = ID... |
<commit_before>/*
Filename: EngineUI.cpp
Purpose: Draws the EngineUI and console on top of rendering
Part of Engine2D
Copyright (C) 2014 Vbitz
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 o... |
<commit_before>// Font.cc
// Copyright (c) 2002 - 2005 Henrik Kinnunen (fluxgen at fluxbox dot org)
//
// 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 witho... |
<commit_before>
#include <cstring>
#include <algorithm>
#include "Furigana.h"
#include "Utf8.h"
std::unordered_map<uint32_t, uint32_t> Furigana::KataToHiraTable;
const char Furigana::katakanas[][4] = {
"ァ","ア","ィ","イ","ゥ","ウ","ェ","エ","ォ","オ",
"カ","ガ","キ","ギ","ク","グ","ケ","ゲ","コ","ゴ",
"サ","ザ","シ","ジ","ス","... |
<commit_before>#include "Geometry.h"
#include <math.h>
#include "Logger.h"
/*static*/ std::unique_ptr<Geometry>
Geometry::Sphere(int sectors, int rings, float radius, bool genNormals, bool genTangents, bool genTexCoords)
{
if (genTangents)
{
Logger::Log("Error: tried to generate a sphere with tangents, which is ... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "core/CompileConfig.h"
#if OUZEL_PLATFORM_RASPBIAN && OUZEL_SUPPORTS_OPENGL
#include "RendererOGLRasp.h"
#include "core/Engine.h"
#include "core/raspbian/WindowRasp.h"
#include "utils/Log.h"
namespace ouzel
{
... |
<commit_before>// Copyright 2021 MozoLM Authors.
//
// 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>/*=========================================================================
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>/*-----------------------------------------------------------------------------
This source file is part of Hopsan NG
Copyright (c) 2011
Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson,
Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack
This file is provided "as is", w... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include "TChain.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TList.h"
#include "AliAnalysisTask.h"
#include "AliAnalysisManager.h"
#include "AliAODEvent.h"
#include "AliAODInputHandler.h"
#include "AliAnalysisTaskParticleYieldRatioCorrelationsEfficiency.h"
#include "AliAODMCParticle.h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.