text
stringlengths
54
60.6k
<commit_before>#include "mbedcrypto/random.hpp" #include "mbedcrypto/types.hpp" #include "mbedtls/entropy.h" #include "mbedtls/ctr_drbg.h" /////////////////////////////////////////////////////////////////////////////// namespace mbedcrypto { namespace { /////////////////////////////////////////////////////////////////...
<commit_before>/* * BarabasiAlbertGenerator.cpp * * Created on: May 28, 2013 * Author: forigem */ #include "../auxiliary/Random.h" #include "BarabasiAlbertGenerator.h" #include <set> namespace NetworKit { BarabasiAlbertGenerator::BarabasiAlbertGenerator() { } BarabasiAlbertGenerator::BarabasiAlbertGe...
<commit_before><commit_msg>MArray::permute() and MArray::window() can now operate on the same object they're called from<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the fi...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestRandomPContingencyStatisticsMPI.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.ht...
<commit_before><commit_msg>dumpStatistics when an error in writeFrame occures<commit_after><|endoftext|>
<commit_before>/* * This code is based off Adam Nielsen's cfgpath C header found at * https://github.com/Malvineous/cfgpath * * Following his code being public domain I have licensed this using the * unlicense http://unlicense.org/. Full license text is available in * the LICENSE file */ #include "cfgpath.hpp" ...
<commit_before>/* * This code is based off Adam Nielsen's cfgpath C header found at * https://github.com/Malvineous/cfgpath * * Following his code being public domain I have licensed this using the * unlicense http://unlicense.org/. Full license text is available in * the LICENSE file */ #include "cfgpath.hpp" ...
<commit_before><commit_msg>`EntityFactory` factory functions set global name and local name.<commit_after><|endoftext|>
<commit_before> // A few useful routines which are used in CGI programs. // // ReZa 9/30/94 // $Log: cgi_util.cc,v $ // Revision 1.4 1995/03/16 16:29:24 reza // Fixed bugs in ErrMsgT and mime type. // // Revision 1.3 1995/02/22 21:03:59 reza // Added version number capability using CGI status_line. // // Revisio...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2005 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLI...
<commit_before>/* * ForwardChainer.cc * * Copyright (C) 2014,2015 Misgana Bayetta * * Author: Misgana Bayetta <misgana.bayetta@gmail.com> * * 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 "calculator_thread.hh" #include "sdl/event.hh" #include "sdl/img.hh" #include <chrono> #include <cstdio> #include <thread> #include "entity.hh" #include "key_state.hh" #include "key_handler.hh" #include "constants.hh" namespace czipperz { std::atomic<const czipperz::frame*> frame_to_render(n...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002-2003 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. Red...
<commit_before>/******************************************************************************\ This file is part of the C! library. A.K.A the cbang library. Copyright (c) 2003-2019, Cauldron Development LLC Copyright (c) 2003-2017, Stanford University ...
<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. * * Written (W) 2012 Fernando José Iglesias Garc...
<commit_before>/* -*- Mode: C -*- $Id$ Copyright (C) 2001 by Klarlvdalens Datakonsult AB GPGMEPLUG is free software; you can redistribute it and/or modify it under the terms of GNU General Public License as published by the Free Software Foundation; version 2 of the License. GPGMEPLUG is distributed in ...
<commit_before>#define _USE_MATH_DEFINES #include <cmath> #include "consts.h" #include "circuits/element.h" #include "matrix/matrix.h" #include <sstream> #include <cstdlib> #include <set> #include <math.h> //TODO: not to use cout inside Element class #include <iostream> // Element::Element() { } Element::Element(st...
<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 "watchman/CommandRegistry.h" #include "watchman/Logging.h" #include "watchman/Shutdown.h" #include "watchma...
<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 * ...
<commit_before> // Copyright (c) 2012, 2013 Pierre MOULON. // 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/. #include <cstdlib> #include "openMVG/sfm/sfm.hpp" #inclu...
<commit_before>#include <MainApplication/Viewer/TrackballCamera.hpp> #include <iostream> #include <QMessageBox> #include <Core/Math/Math.hpp> #include <Core/Event/MouseEvent.hpp> #include <Core/Event/KeyEvent.hpp> #include <Engine/Renderer/Camera/Camera.hpp> namespace Ra { using Core::Math::Pi; ...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2009 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
<commit_before>//---------------------------------------------------------------------------- // // "Copyright Centre National d'Etudes Spatiales" // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // //---------------------------------------------------------------------------...
<commit_before>/* * HyPerCol.cpp * * Created on: Jul 30, 2008 * Author: rasmussn */ #undef TIMER_ON #include "HyPerCol.hpp" #include "InterColComm.hpp" #include "../connections/PVConnection.h" #include "../io/clock.h" #include "../io/imageio.hpp" #include "../io/io.h" #include <assert.h> #include <math.h>...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkTypes.h" #if defined(SK_BUILD_FOR_WIN) #include "include/core/SkTypes.h" #include "include/private/SkTFitsIn.h" #include "include/priva...
<commit_before>/* * This file is a part of Xpiks - cross platform application for * keywording and uploading images for microstocks * Copyright (C) 2014-2015 Taras Kushnir <kushnirTV@gmail.com> * * Xpiks is distributed under the GNU General Public License, version 3.0 * * This program is free software: yo...
<commit_before>// // // MIT License // // Copyright (c) 2017 Stellacore Corporation. // // 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...
<commit_before>/* * Copyright 2022 Google LLC * * 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...
<commit_before>#ifndef ITER_ZIP_HPP_ #define ITER_ZIP_HPP_ #include "iterbase.hpp" #include <iterator> #include <tuple> #include <utility> namespace iter { template <typename... RestContainers> class Zipped; template <typename... Containers> Zipped<Containers...> zip(Containers&&...); // speci...
<commit_before>//Copyright (c) 2007-2008, Marton Anka // //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, modify...
<commit_before>// Copyright 2015 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 "flutter/lib/ui/compositing/scene_builder.h" #include "flutter/flow/layers/backdrop_filter_layer.h" #if defined(OS_FUCHSIA) #incl...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2009-2012, Willow Garage, Inc. * Copyright (c) 2012-, Open Perception, Inc. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modificatio...
<commit_before><commit_msg>No need to go via floating-point calculations<commit_after><|endoftext|>
<commit_before>#include "page_manager.h" #include "../utils/utils.h" #include "page.h" #include "../utils/fs.h" #include "../utils/locker.h" #include <cstring> #include <queue> #include <thread> using namespace dariadb::storage; dariadb::storage::PageManager* PageManager::_instance = nullptr; class PageManager::Priv...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include "remoteobject_p.hpp" #include "src/object_p.hpp" #include "src/metasignal_p.hpp" #include <qimessaging/message.hpp> #include <qimessaging/transportsocket.hpp> #include <qi/log.hpp> #include <boost/thread/mutex.hpp> ...
<commit_before>#include <eosio/se-helpers/se-helpers.hpp> #include <fc/fwd_impl.hpp> #include <Security/Security.h> namespace eosio::secure_enclave { static std::string string_for_cferror(CFErrorRef error) { CFStringRef errorString = CFCopyDescription(error); char buff[CFStringGetLength(errorString) + 1]; ...
<commit_before>/* Copyright (C) LinBox * * Author: Zhendong Wan * * * ========LICENCE======== * This file is part of the library LinBox. * * LinBox 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 Founda...
<commit_before>// Copyright Daniel Wallin 2008. Use, modification and distribution is // subject to the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef LUABIND_FORMAT_SIGNATURE_081014_HPP # define LUABIND_FORMAT_SIGNATURE_081014_HP...
<commit_before>#ifndef CLIENT_HPP #define CLIENT_HPP #include <map> #include <rclcpp/rclcpp.hpp> #include <rclcpp/node/node.hpp> #include <rclcpp/publisher/publisher.hpp> #include <future> #include <memory> #include <chrono> #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> #include <boost/lexi...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2015. All rights reserved */ #include "../../StroikaPreComp.h" #include <cstdio> #include <random> #if qPlatform_POSIX #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <net/if...
<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>#include <cppunit/Portability.h> #include <cppunit/Test.h> #include <cppunit/TestPath.h> #include <stdexcept> CPPUNIT_NS_BEGIN TestPath::TestPath() { } TestPath::TestPath( Test *root ) { add( root ); } TestPath::TestPath( const TestPath &other, int indexFirst, ...
<commit_before>// @(#)root/graf:$Id$ // Author: Rene Brun 12/05/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/** * @file pointer.hpp * * @brief A wrapper class for host and/or device pointers, allowing * easy access to CUDA's pointer attributes. * * @note at the moment, this class is not used by other sections of the API * wrappers; specifically, freestanding functions and methods returning * pointers r...
<commit_before>/************************************************************************** * Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: documentlockfile.cxx,v $ * * $R...
<commit_before>#include <iostream> #include <unistd.h> #include <string> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <errno.h> #include <vector> #include <stdlib.h> using namespace std; void parse(char * line, vector<string> & input) { char * pch; pch = st...
<commit_before>#include <iostream> #include <string> #include <boost/program_options.hpp> namespace po = boost::program_options; using namespace std; /* Usage: hadoop fs [generic options] [-appendToFile <localsrc> ... <dst>] [-cat [-ignoreCrc] <src> ...] [-checksum <src> ...] [-chgrp ...
<commit_before>#ifndef RPT_XMLCONTROLPROPERTY_HXX #define RPT_XMLCONTROLPROPERTY_HXX /************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlControlProperty.hxx,v $ * * $Revision: 1.2 $ * * last change: $Auth...
<commit_before>/* Rapicorn * Copyright (C) 2008 Tim Janik * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later versio...
<commit_before>#include <trace_client/profile.h> #if defined WIN32 || defined WIN64 # define WIN32_LEAN_AND_MEAN # include <windows.h> namespace { template<size_t N> struct ThreadPool { enum { e_thread_count = N }; DWORD m_tids[e_thread_count]; HANDLE m_handles[e_thread_count]; ThreadPool () { memset(this...
<commit_before>/*- * Copyright 2009 Colin Percival, 2011 ArtForz, 2011 pooler, 2013 Balthazar * 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. Redistributions of source code must reta...
<commit_before>#include "map/map2d.hpp" #include "network/defaults.hpp" #include "network/gameconnection.hpp" #include "network/gameconnectionfactory.hpp" #include <iostream> using namespace Botventure; int main(int argc, char* argv[]){ Map::Map2D map(10,10); Poco::Net::TCPServer server(new Network::GameConnectio...
<commit_before>#include "Body.h" Body::Body() { m_center = Vec2<double>(0.0, 0.0); m_max_radius = 0.0; } Body::Body(const Vec2<double> p_body...) : Body() { /*va_list args; va_start(args, p_body); do{ m_body.push_back(va_arg(args, Vec2<double>)); }while();*/ calculat...
<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. Redi...
<commit_before>#include "encode_jpeg.h" #include "common_png.h" namespace vision { namespace image { #if !PNG_FOUND torch::Tensor encode_png(const torch::Tensor& data, int64_t compression_level) { TORCH_CHECK( false, "encode_png: torchvision not compiled with libpng support"); } #else namespace { struct ...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <map> #include <qi/atomic.hpp> #include <boost/thread/recursive_mutex.hpp> #include <boost/make_shared.hpp> #include <qitype/signal.hpp> #include <qitype/genericvalue.hpp> #include <qitype/genericobject.hpp> #incl...
<commit_before>//============================================================================= //File Name: OurRobot.cpp //Description: Main robot class in which all robot sensors and devices are // declared //Author: FRC Team 3512, Spartatroniks //===========================================================...
<commit_before>#include <iostream> // std::cin, std::cout #include <sstream> #include <tuple> #include <string> #include <regex> #include <cmath> #include "PEG.hpp" using namespace std; using namespace peg; // regex parser builder auto operator ""_r(const char* s, std::size_t) { string str = s; regex ...
<commit_before>/* * Copyright (c) 2017 Trail of Bits, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
<commit_before> #include <hx/CFFI.h> #include "common/ByteArray.h" #include "snow_core.h" #include "snow_io.h" #include <string> namespace snow { // --- ByteArray ----------------------------------------------------- AutoGCRoot *gByteArrayCreate = 0; AutoGCRoot *gByteArrayLen = 0; AutoGCRoot *gBy...
<commit_before>#line 2 "togo/core/parser/types.hpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. @file @brief Parser types. @ingroup lib_core_types @ingroup lib_core_parser */ #pragma once #include <togo/core/config.hpp> #include <togo/core/types.hpp> #include <togo/core/utility/types...
<commit_before>/* This is free and unencumbered software released into the public domain. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "local_socket.h" #include "pathname.h" #include <array> /* for std::array */ #include <cassert> /* for assert() */ #include <cerrno> /* for errno */...
<commit_before>/// Synchronization mechanism used to signal one or more other threads. // Usually, one thread signals an event, while one or more other threads wait for an event to become signaled. // Note: event userdata are copyable/sharable between threads. // @module event #include "Event.h" #include "Poco/Excepti...
<commit_before>#include "lusolving.h" namespace BuiltInFunctions { namespace EquationSolving { namespace { LuSolving instance; } RpnOperand LuSolving::calculate(Function::FunctionCalculator *calculator, QList<RpnOperand> actualArguments) { m_calculator = calculator; QList<QList<Number> > coefficients = RpnVector...
<commit_before>//===------------------------- string.cpp ---------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#ifndef MJOLNIR_CORE_MSGPACK_OBSERVER_HPP #define MJOLNIR_CORE_MSGPACK_OBSERVER_HPP #include <mjolnir/util/macro.hpp> #include <mjolnir/core/ObserverBase.hpp> #include <mjolnir/core/BoundaryCondition.hpp> #include <mjolnir/core/System.hpp> #include <mjolnir/core/Unit.hpp> #include <fstream> #include <iom...
<commit_before>#include <node.h> #include <./gpio_functions.h> using namespace v8; void Method(const FunctionCallbackInfo<Value>& args) { Isolate* isolate = Isolate::GetCurrent(); HandleScope scope(isolate); int result = lightLED(); args.GetReturnValue().Set(String::NewFromUtf8(isolate, "world" + result)); ...
<commit_before>/*************************************************************************** system.cpp - class System ------------------- begin : 2003/07/11 copyright : (C) 2003 by Michael CATANZARITI email : m...
<commit_before>#include <QDir> #include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include "functions.h" #include "main-screen.h" #include "models/profile.h" #include "syntax-highlighter-helper.h" int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiSc...
<commit_before>// JSON private #include "json/json_serialize.h" // public #include <disir/disir.h> // standard #include <iostream> #include <stdint.h> #include <stdlib.h> #include <string> using namespace dio; ConfigWriter::ConfigWriter (struct disir_instance *disir) : JsonIO (disir) { m_contextConfig = NUL...
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/util/util.hpp>...
<commit_before>/* * cpptest libcaca++ rendering test * Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> * All Rights Reserved * * $Id$ * * This program is free software; you can redistribute it and/or * modify it under the terms of the Do What The Fuck You Want To * Public...
<commit_before>#include "ghost/timing.h" #include "ghost/util.h" #include <map> #include <vector> #include <sstream> #include <iostream> #include <iomanip> #include <numeric> #include <algorithm> using namespace std; typedef struct { /** * @brief User-defined callback function to compute a region's performa...
<commit_before>///////////////////////////////////////////////////////////////////////// // $Id: logical8.cc,v 1.17 2002/10/07 22:51:57 kevinlawton Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. // // MandrakeSoft S.A. // 43, rue d'Abou...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "CoreDefines.h" #include "OgreRenderingModule.h" #include "Renderer.h" #include "LoggingFunctions.h" #include "CAVEStereoModule.h" #include "CAVEManager.h" #...
<commit_before>/* * Copyright (C) 2014 Andrew Duggan * Copyright (C) 2014 Synaptics Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
<commit_before>/* Copyright (c) 2006, MassaRoddel, Arvid Norberg 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 ...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>#include "vo_features.h" #include <iomanip> #include <fstream> #include <ostream> #include <string> #include "readBNO.h" using namespace cv; using namespace std; #define MAX_FRAME 1001 //#define MIN_NUM_FEAT 200 #define PLOT_COLOR CV_RGB(0, 0, 0) #define PL std::setprecision(3) double scale = 1.00; c...
<commit_before>// Copyright (c) 2012 The Chromium Embedded Framework Authors. // Portions 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 "libcef/browser/browser_host_impl.h" #include <dwmapi...
<commit_before>/* Copyright libCellML Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
<commit_before>#include "zipper.hpp" // stl #include <sstream> #include <vector> #include <cstring> #include <algorithm> //#include <iostream> #include <node_buffer.h> #include <node_version.h> #define TOSTR(obj) (*String::Utf8Value((obj)->ToString())) Persistent<FunctionTemplate> Zipper::constructor; void Zipper...
<commit_before>// (C) 2013 Cybozu. #include "util.hpp" #include <cxxabi.h> #include <cstddef> #include <cstdlib> #include <ctime> #include <execinfo.h> #include <sstream> #include <string.h> #include <stdexcept> #include <unistd.h> namespace cybozu { demangler::demangler(const char* name) { int status; char...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2014. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================================...
<commit_before>#include "data-course.hpp" using namespace std; void Course::init(string identifier) { // cout << identifier << endl; copy(getCourse(identifier)); } void Course::copy(const Course& c) { id = c.id; number = c.number; title = c.title; description = c.description; section = c.section; majors = c.m...
<commit_before>/* Copyright (c) 2015 Cornell University * * 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, mod...
<commit_before>#include <iostream> using namespace std; typedef int DataType; struct tree_node { DataType data; tree_node* left=NULL; tree_node* right=NULL; }; class binary_search_tree{ private: tree_node* root; int num; public: binary_search_tree() :num(0) { root = new tree_node; ro...
<commit_before>// crbarker@google.com // // Implements JoystickNavigator. #include "joystick_navigator.h" #include <time.h> #include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <algorithm> #include <cmath> #include "camera_buffer.h" #include "slinky_nav/SlinkyPose.h" static const double kPi = 3.141592653...
<commit_before>// @(#)root/test:$Name: $:$Id: Event.cxx,v 1.14 2001/11/22 15:12:25 brun Exp $ // Author: Rene Brun 19/08/96 //////////////////////////////////////////////////////////////////////// // // Event and Track classes // ======================= // // The Event c...
<commit_before>/******************************************************************************\ * File: app.cpp * Purpose: Implementation of classes for syncodbcquery * Author: Anton van Wezenbeek * RCS-ID: $Id$ * * Copyright (c) 2008-2009, Anton van Wezenbeek * All rights are reserved. Rep...
<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/background_view.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "app/x...
<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/debugger/inspectable_tab_proxy.h" #include "base/json_reader.h" #include "base/string_util.h" #include "base/...
<commit_before>#include <silicium/config.hpp> #include <silicium/bounded_int.hpp> #include <silicium/variant.hpp> #include <silicium/arithmetic/add.hpp> #include <boost/test/unit_test.hpp> #if SILICIUM_COMPILER_HAS_USING namespace Si { namespace m2 { using std::size_t; using std::move; struct empty_t { };...
<commit_before>#include <gtest/gtest.h> #include <cpuinfo.h> #include <cpuinfo-mock.h> TEST(PROCESSORS, count) { ASSERT_EQ(2, cpuinfo_processors_count); } TEST(PROCESSORS, non_null) { ASSERT_TRUE(cpuinfo_processors); } TEST(PROCESSORS, vendor) { for (uint32_t i = 0; i < cpuinfo_processors_count; i++) { ASSERT...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before>#include "../googletest/include/gtest/gtest.h" #include "../include/easylogging++.h" #include "../include/llg.hpp" INITIALIZE_EASYLOGGINGPP TEST(llg, drift) { double deriv[3]; double state[3] = {2, 3, 4}; double field[3] = {1, 2, 3}; double time=0, damping=3; llg::drift( deriv, stat...