text
stringlengths
54
60.6k
<commit_before>#include <cstdio> #include <cstdlib> #include <locale> #include <string> #include <vector> #include <algorithm> #include <iostream> // NOLINT #include <algorithm> #include <tr1/array> #include "config/config.h" #include "stringpiece.h" #include "ustringpiece.h" #include "cmdline.h" #include "ast.h" #...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/common/include/p9_xbus_scom_addresses_fixe...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SwXTextDefaults.cxx,v $ * * $Revision: 1.21 $ * * last change: $Author: rt $ $Date: 2008-03-12 12:26:28 $ * * The Contents of this file a...
<commit_before>// Copyright (c) 2011-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <mapport.h> #include <clientve...
<commit_before>#ifndef TURBO_MEMORY_BLOCK_HPP #define TURBO_MEMORY_BLOCK_HPP #include <cstdint> #include <memory> #include <stdexcept> #include <turbo/container/mpmc_ring_queue.hpp> namespace turbo { namespace memory { class out_of_memory_error : public std::runtime_error { public: explicit out_of_memory_error(c...
<commit_before>/* * * Copyright 2018 gRPC 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 applicab...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/eff_config/timin...
<commit_before>// includes & usings {{{ #include "peerdfs.hh" #include "../network/asyncnetwork.hh" #include "../network/p2p.hh" #include "../common/settings.hh" #include "../common/definitions.hh" #include "../messages/factory.hh" #include "../messages/boost_impl.hh" #include <boost/range/adaptor/map.hpp> #include <b...
<commit_before>/** ** \file object/object.cc ** \brief Implementation of object::Object. */ #include <algorithm> #include <boost/bind.hpp> #include <boost/lexical_cast.hpp> #include <boost/lambda/lambda.hpp> #include <libport/containers.hh> #include <libport/foreach.hh> #include "object/object.hh" #include "obje...
<commit_before>/** ** \file object/object.cc ** \brief Implementation of object::Object. */ #include <algorithm> #include <boost/assign.hpp> // for 'list_of' #include <boost/bind.hpp> #include <boost/lexical_cast.hpp> #include <boost/lambda/lambda.hpp> using namespace boost::assign; // bring 'list_of' into scope ...
<commit_before>#include "omnicore/sto.h" #include "omnicore/log.h" #include "omnicore/omnicore.h" #include "omnicore/tally.h" #include "sync.h" #include <boost/multiprecision/cpp_int.hpp> #include <assert.h> #include <stdint.h> #include <map> #include <set> #include <string> #include <utility> using boost::multipr...
<commit_before>/****************************************************************************** * Copyright (c) 2015 Jamis Hoo * Distributed under the MIT license * (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) * * Project: * Filename: option_parser.cc * Version: 1.0 * ...
<commit_before>// Copyright 2019 The Marl 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
<commit_before>#include <utki/config.hpp> #include <utki/types.hpp> #if M_OS == M_OS_WINDOWS # include <utki/windows.hpp> #elif M_OS == M_OS_LINUX || M_OS == M_OS_MACOSX # include <dirent.h> # include <sys/stat.h> # include <cerrno> # include <cstring> #endif #include <vector> #include <cstdlib> #include <sstream> ...
<commit_before>#include <clang-c/Index.h> #include <cstdio> #include <iostream> #include <vector> namespace { const unsigned int indent_spaces = 4; } CXCursor tu_cursor; struct client_data { CXTranslationUnit tu; std::vector<CXCursor> current_namespaces; CXCursor current_struct; }; std::pair<CXTok...
<commit_before>/* Elcano_Serial.cpp Tyler Folsom Sept 7, 2015 The routines writeSerial and readSerial transfer the information in a SerialData structure over serial lines connecting Arduino microcontrollers. The contents of the messages are specified in SerialCmd.html. Note that messages are limited to 64 character...
<commit_before>/* * Copyright (C) 2022 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>/// /// @file phi_sum.cpp /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primesum-internal.hpp> #include <primesum.hpp> #include <generate.hpp> #include <fast_div....
<commit_before>/** * @file posix/wait.cpp * @brief POSIX event/timeout handling * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set for...
<commit_before>#include "disassembler.h" #include "util.h" using namespace std; struct program { char name[7]; //TODO program() { for ( int i = 0 ; i < 7 ; i++ ) { name[i] = 0; } //TODO } }; bool read_record(ifstream &ifile, string &record); void record_to_memory(const string record, program &p); void w...
<commit_before>/** * @file nearest_neighbor_rules_impl.hpp * @author Ryan Curtin * * Implementation of NearestNeighborRules. */ #ifndef __MLPACK_METHODS_NEIGHBOR_SEARCH_NEAREST_NEIGHBOR_RULES_IMPL_HPP #define __MLPACK_METHODS_NEIGHBOR_SEARCH_NEAREST_NEIGHBOR_RULES_IMPL_HPP // In case it hasn't been included yet. ...
<commit_before>/** * @file nearest_neighbor_rules_impl.hpp * @author Ryan Curtin * * Implementation of NearestNeighborRules. */ #ifndef __MLPACK_METHODS_NEIGHBOR_SEARCH_NEAREST_NEIGHBOR_RULES_IMPL_HPP #define __MLPACK_METHODS_NEIGHBOR_SEARCH_NEAREST_NEIGHBOR_RULES_IMPL_HPP // In case it hasn't been included yet. ...
<commit_before>#include "operator.hpp" #include <boost/python.hpp> #include <Box2D/Dynamics/b2Body.h> #include <Box2D/Dynamics/Joints/b2DistanceJoint.h> #include <Box2D/Dynamics/Joints/b2FrictionJoint.h> #include <Box2D/Dynamics/Joints/b2GearJoint.h> #include <Box2D/Dynamics/Joints/b2Joint.h> #include <Box2D/Dynamics/...
<commit_before>/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Copyright (C) 2012 Sergey Lisitsyn */ #inc...
<commit_before>/* * qmqtt_socket.cpp - qmqtt socket * * Copyright (c) 2013 Ery Lee <ery.lee at gmail dot 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 s...
<commit_before> /** * PyOtherSide: Asynchronous Python 3 Bindings for Qt 5 * Copyright (c) 2011, 2013, Thomas Perl <m@thp.io> * * 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>/**************************************************************************** * * Copyright (c) 2016 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 met: * ...
<commit_before>#include "queuemanager.h" #include <fstream> #include <libxml/uri.h> #include "configpaths.h" #include "fmtstrformatter.h" #include "rssfeed.h" #include "stflpp.h" #include "utils.h" namespace newsboat { QueueManager::QueueManager(ConfigContainer* cfg_, ConfigPaths* paths_) : cfg(cfg_) , paths(path...
<commit_before> #include <bits/stdc++.h> using namespace std; class IntList { private: const int * head; const IntList * tail; IntList(const int * head) { this->head = head; tail = NULL;} IntList(const int * X, const IntList * Xs) { head = X; tail = Xs; } }; <commit_msg>Update...
<commit_before>/******************************************************************************* Module: FGLGear.cpp Author: Jon S. Berndt Date started: 11/18/99 Purpose: Encapsulates the landing gear elements Called by: FGAircraft ------------- Copyright (C) 1999 Jon S. Berndt (jsb@hal-pc.o...
<commit_before>#include "FPSRole.h" #include "Engine.h" CFPSRole::CFPSRole(void) { m_nFire = 0; m_fAniCoolingTime = 0; m_fAniNowCoolingTime = 0; m_fSudCoolingTime = 0; m_fEmitCoolingTime = 0; } CFPSRole::~CFPSRole(void) { g_Engine.pGame->RemoveNode(m_pMuzzleEffect); }<commit_msg>Signed-off-by: mrlitong <litongt...
<commit_before>#include "FastLED.h" #if defined(__SAM3X8E__) volatile uint32_t fuckit; #endif CFastLED LEDS; CFastLED & FastSPI_LED = LEDS; CFastLED & FastSPI_LED2 = LEDS; CFastLED & FastLED = LEDS; CLEDController *CLEDController::m_pHead = NULL; CLEDController *CLEDController::m_pTail = NULL; // uint32_t CRGB::Squ...
<commit_before>/* Firmata.cpp - Firmata library Copyright (C) 2006-2008 Hans-Christoph Steiner. All rights reserved. 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 versio...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/isteps/istep08/call_proc_check_slave_sbe_seeprom_compl...
<commit_before>/* Copyright 2019 The TensorFlow 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 Unless required by appl...
<commit_before>/* Copyright 2021 The TensorFlow 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 Unless required by appl...
<commit_before>// // replace.cpp // // replaces one or many strings that match a given regular expression in any // files that match the file regular expression. // // Created by Daniel Kozitza // #include <csignal> #include <cstdlib> #include <dirent.h> #include <fstream> #include <iomanip> #include <iostream> #inclu...
<commit_before>#include "camera.h" #include <iostream> #include "glm/gtc/type_ptr.hpp" #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/rotate_vector.hpp> #include "glm/gtx/matrix_decompose.hpp" #include <cfloat> Camera::Camera() : m_rotation( 0.0, 0.0, 0.0 ), m_scal...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>#include "sea5kgSudoku.h" #include <wsjcpp_core.h> #include <math.h> #include <algorithm> //---------------------------------------------------------------------------- // sea5kgSudokuCell sea5kgSudokuCell::sea5kgSudokuCell(int nPosX, int nPosY, char cValue) { m_nPosX = nPosX; m_nPosY = nPosY; ...
<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 "net/socket/dns_cert_provenance_checker.h" #if !defined(USE_OPENSSL) #include <nspr.h> #include <hasht.h> #include <keyhi.h...
<commit_before>// Copyright 2015-2019 Elviss Strazdins. All rights reserved. #include "core/Setup.h" #if OUZEL_COMPILE_DIRECT3D11 #include <stdexcept> #include "D3D11Shader.hpp" #include "D3D11RenderDevice.hpp" namespace ouzel { namespace graphics { namespace d3d11 { namespace ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// /// \file control.cpp /// \brief Control the Pidar /// Author: Jonathan Ulrich, Andrew Watson /// Created: 3/1/14 /// Email: jongulrich@gmail.com, watsontandrew@gmail.com /// /////////////////////////////////////////////...
<commit_before>/* * File: Cell.cpp * Author: Ozan YILDIZ * * Created on November 25, 2015, 4:06 PM */ #ifndef REVERSI_H #define REVERSI_H #include <vector> #include <string> #include "Cell.h" using namespace std; class Reversi { public: Reversi(); Reversi(const Reversi& orig); // Play Functions ...
<commit_before>// Copyright (c) 2013, Razvan Petru // 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 ...
<commit_before>//***************************************************************************** // Copyright 2017-2019 Intel 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 // ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 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>#include <algorithm> #include <cmath> #include <cctype> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define FOR(i,a,b) for (int i = a; i <= b; i++) #define FORN(i,N) for (int i = 0; i < N; i++) #define FORD(i...
<commit_before>/*++ Module Name: FASTQ.cpp Abstract: Fast FASTQ genome "query" reader. Authors: Bill Bolosky, August, 2011 Environment: User mode service. This class is NOT thread safe. It's the caller's responsibility to ensure that at most one thread uses an instance at any time. Re...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>// Copyright (C) 2019 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 req...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: registrationdlg.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2007-06-27 21:58:34 $ * * The Contents of this file ar...
<commit_before>#include <Riostream.h> #ifndef WIN32 # define stupre stupre_ #else # define stupre STUPRE #endif // // Fluka include #include "Fdimpar.h" //(DIMPAR) fluka include // Fluka commons #include "Fdblprc.h" //(DBLPRC) fluka common #include "Femfstk.h" //(EMFSTK) fluka common #include "Fevtflg.h" //(EVTFLG...
<commit_before>/* * Copyright(c) Sophist Solutions Inc. 1990-2013. All rights reserved */ // TEST Foundation::Math #include "Stroika/Foundation/StroikaPreComp.h" #include "Stroika/Foundation/Debug/Assertions.h" #include "Stroika/Foundation/Debug/Trace.h" #include "Stroika/Foundation/Math/Angle.h" #...
<commit_before>#include "VGroup.h" #include "VGlobal.h" using std::vector; VBase* VGroup::Add(VBase* object) { if (object == nullptr) { VLog("Cannot add nullptr to a VGroup"); return nullptr; } if (object == this) { VLogError("Cannot add itself to it's own list"); return nullptr; } if (GetIndexOfItem...
<commit_before>// Check that --gc-sections does not throw away (or localize) parts of sanitizer // interface. // RUN: %clang_asan -m64 %s -Wl,--gc-sections -o %t // RUN: %clang_asan -m64 %s -DBUILD_SO -fPIC -o %t-so.so -shared // RUN: %t 2>&1 #ifndef BUILD_SO #include <assert.h> #include <dlfcn.h> #include <stdio.h> #...
<commit_before>// @(#)root/base:$Name: $:$Id: TVirtualStreamerInfo.cxx,v 1.1 2007/02/05 18:06:25 brun Exp $ // Author: Rene Brun 05/02/2007 /************************************************************************* * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before> #pragma once #include <cstddef> #include <giecs/memory/reference.hpp> #include <giecs/memory/accessor.hpp> #include <giecs/memory/accessors/linear.hpp> #include <functional> #include <boost/type_index.hpp> namespace giecs { namespace memory { namespace accessors { template <std::size_t page_size, t...
<commit_before>// Copyright 2010 Google Inc. All Rights Reserved. // Author: jacobsa@google.com (Aaron Jacobs) // // 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....
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library. * Copyright (C) 2001 Jason Winnebeck (gillius@mail.rit.edu) * Project website: http://www.rit.edu/~jpw9607/ * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
<commit_before>// Copyright (c) 2017 ASMlover. 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 o...
<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>// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #include "../precomp.hpp" #include "opencv_data_config.hpp" #include <vector> #include <fstream> #include <...
<commit_before>// ======================================================================== // // Copyright 2009-2014 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "MaterialBinder.h" #include "../../RenderCore/Metal/InputLayout.h" #include "../../RenderCore/Metal/DeviceContext.h" #...
<commit_before> #include "condor_file_buffer.h" #include "condor_error.h" #include "file_state.h" /* A CondorChunk records a variable-sized piece of data in a buffer. A linked list of CondorChunks is kept as the recently-used data. */ class CondorChunk { public: CondorChunk( int b, int s ) { begin = b; size = s;...
<commit_before>// @(#)root/gpad:$Id$ // Author: Rene Brun 01/07/96 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/*========================================================================= Program: KWSys - Kitware System Library Module: DynamicLoader.cxx Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>/* * ProcessTests.cpp * * Copyright (C) 2017 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General Pub...
<commit_before>/* -*-c++-*- $Id: osgaudioocclude.cpp */ /** * osgAudio - OpenSceneGraph Audio Library * (C) Copyright 2009-2011 by Kenneth Mark Bryden * (programming by Chris 'Xenon' Hanson, AlphaPixel, LLC xenon at alphapixel.com) * based on a fork of: * Osg AL - OpenSceneGraph Audio Library * Copyright (C) 2004...
<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>// // This macro attaches to a PROOF session, possibly at the indicated URL. // In the case non existing PROOF session is found and no URL is given, the macro // tries to start a local PROOF session. #include "Getline.h" #include "TEnv.h" #include "TProof.h" #include "TString.h" #include "TSystem.h" In...
<commit_before>//===- Local.cpp - Compute a local data structure graph for a function ----===// // // Compute the local version of the data structure graph for a function. The // external interface to this file is the DSGraph constructor. // //===----------------------------------------------------------------------==...
<commit_before>// // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // // bench.cpp : spdlog benchmarks // #include <atomic> #include <cstdlib> // EXIT_FAILURE #include <iostream> #include <memory> #include <string> #include <thread> #include "spdlog/spdlog....
<commit_before>#include <iostream> #include "vtrc-server/vtrc-application.h" #include "vtrc-server/vtrc-listener-tcp.h" #include "vtrc-server/vtrc-listener-local.h" #include "vtrc-common/vtrc-connection-iface.h" #include "vtrc-common/vtrc-pool-pair.h" #include "vtrc-common/vtrc-rpc-service-wrapper.h" #include "prot...
<commit_before>#include <Ancona/Framework/Config/Config.hpp> #include <Ancona/Framework/Serializing/Serializing.hpp> using namespace ild; MapSerializer::MapSerializer( std::string key, ScreenSystemsContainer & systems, std::shared_ptr<RequestList> request, bool loading, bool sn...
<commit_before>#include <stan/math/prim.hpp> #include <gtest/gtest.h> #include <boost/random/mersenne_twister.hpp> #include <boost/math/special_functions/digamma.hpp> #include <boost/math/distributions.hpp> TEST(ProbDistributionsWishartCholesky, wishart_symmetry) { using Eigen::Dynamic; using Eigen::Matrix; usin...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Manasij Mukherjee <manasij7479@gmail.com> // author: Vassil Vassilev <vvasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the Uni...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>//===- ValueMapper.cpp - Interface shared by lib/Transforms/Utils ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * Copyright 2006-2008 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 a...
<commit_before>// -*-c++-*- #include <osgProducer/Viewer> #include <osgDB/ReadFile> #include <osg/Geode> #include <osg/Geometry> #include <osg/StateSet> #include <osg/Material> #include <osg/Texture2D> #include <osg/TextureRectangle> #include <osg/TexMat> #include <osg/CullFace> #include <osg/ImageStream> #include ...
<commit_before>/* * SDL Hello World example for Gui-chan */ // Include all necessary headers. #include <iostream> #include <guichan.hpp> #include <guichan/sdl.hpp> #include <SDL/SDL.h> /* * Common stuff we need */ bool running = true; /* *SDL Stuff we need */ SDL_Surface* screen; SDL_Event event; /* * Gui-c...
<commit_before>#include "catch.hpp" #include "util.h" #include <grammar_registry.h> using namespace shl; using namespace std; class TestSource : public GrammarSource { public: TestSource(); virtual const std::string load_data(const std::string& grammar_name) const; virtual const std::vector<std::string> l...
<commit_before>#include <iostream> #include <cmath> #include "glow.h" using namespace std; void display(unsigned long t, unsigned int dt, glow *gl); void idle(glow *gl); void timeout(unsigned int id, glow *gl); void resize(unsigned int wW, unsigned int wH, unsigned int rW, unsigned int rH, glow *gl); void onMouseDo...
<commit_before>#include "board.h" #include <aery32/all.h> using namespace aery; #define TWI_MASK ((1 << 29) | (1 << 30)) int main(void) { bool twi_slave_found = false; uint8_t twi_slave_address = 0; uint8_t read_data = 0; init_board(); /* Setup LED pin and CPU clock to 66 MHz */ gpio_init_pins(porta, TWI_MASK,...
<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 "net/base/tcp_client_socket.h" #include "base/memory_debug.h" #include "base/string_util.h" #include "base/sys_info.h" #...
<commit_before>// ------------------------------------------------------------------ // pion-net: a C++ framework for building lightweight HTTP interfaces // ------------------------------------------------------------------ // Copyright (C) 2007-2008 Atomic Labs, Inc. (http://www.atomiclabs.com) // // Distributed und...
<commit_before>/* Copyright 2019 Benjamin Worpitz, Matthias Werner * * This file is part of Alpaka. * * 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/. */ #pragma ...
<commit_before>#include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/objdetect/objdetect.hpp" #include <opencv2/opencv.hpp> #include <iostream> #include <stdio.h> #include "imagedetect.hpp" #include "videoin_c920.hpp" #include "track.hpp" using namespace std; using namespace...
<commit_before>#include <iostream> #include <fstream> #include "Limonp/ArgvContext.hpp" #include "MPSegment.hpp" #include "HMMSegment.hpp" #include "MixSegment.hpp" using namespace CppJieba; void cut(const ISegment * seg, const char * const filePath) { ifstream ifile(filePath); vector<string> res; string ...
<commit_before>#include "V4LCameraSettingsManager.h" extern "C" { #include <linux/videodev2.h> #include <linux/uvcvideo.h> #include <sys/ioctl.h> #include <unistd.h> #include <linux/usb/video.h> } #define LOG "[CameraHandler:" << __LINE__ << ", Camera: " << cameraName << "] " V4LCameraSettingsManager::V4LCameraSetti...
<commit_before>#include <chrono> #include <iostream> void if_else_benchmark() { std::cout << "If Else Bench\n"; int array[] = {1, 3, 5, 7, 9, 11, 13, 17, 18}; for (auto x : array) { if (x == 1) { std::cout << "The number is 1: " << x << "\n"; } else if (x == 3) { st...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <osmesa.h> #include <conio.h> // For kbhit, getch, textmode (console access) #include <dpmi.h> // For __dpmi_int (mouse access) #include <go32.h> // For _dos_ds (VRAM access) #include <sys/movedata.h> // For movedata (VRAM access) #i...
<commit_before>//@author A0097630B #include "stdafx.h" #include <boost/date_time/gregorian/gregorian.hpp> #include <boost/format.hpp> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> #include "task_field.h" #include "edit_query.h" using You::NLP::EDIT_QUERY; namespace You { namespace NLP { nam...
<commit_before>#include "utility.h" /** * @brief Gets time used in logs * @return string representation of current date * Format: [7.3.2016 21:54:59:382] */ std::string getTime(void) { timeval now; gettimeofday(&now, 0); tm *curr_time = localtime(&now.tv_sec); std::ostringstream buff; buff <<...
<commit_before>#include "io/synth.h" #include "ts/ts.h" #include "core/exception.h" #include <opencv2/highgui.hpp> using namespace std; class SynthBarsTest : public testing::Test { protected: virtual void SetUp() { to_ = SynthBars(); } SynthBars to_; ///< test object }; TEST_F(SynthBarsT...
<commit_before><?hh // strict /** * This file is part of hhpack\process package. * * (c) Noritaka Horio <holy.shared.design@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace HHPack\Process; use RuntimeException; async funct...
<commit_before>/* * Copyright 2009-2011 The VOTCA Development Team (http://www.votca.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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...