text
stringlengths
54
60.6k
<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/browser_shutdown.h" #include "base/file_util.h" #include "base/histogram.h" #include "base/path_service....
<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/gtk/find_bar_gtk.h" #include <gdk/gdkkeysyms.h> #include "app/l10n_util.h" #include "base/gfx/gtk_util.h" #i...
<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/sync/util/nigori.h" #if defined(OS_WIN) #include <winsock2.h> // for htonl #else #include <arpa/inet.h> #end...
<commit_before>// Copyright 2008, Google Inc. // 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 ...
<commit_before>// Created on November 19, 2013 by Lu, Wangshan. #include <diffusion/factory.hpp> #include <boost/asio.hpp> namespace diffusion { class NetWriter : public Writer { public: NetWriter(std::string const & listening_ip_address, std::uint16_t listening_port); virtual void write(ByteBuffer const & data...
<commit_before>/* Copyright © 2001-2014, 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>#include "Character.h" #include "Ship.h" #include "Gang.h" #include "Engine.h" #include "Area.h" #include "Skill.h" #include "Attribute.h" #include "Modifier.h" #include "LocationGroupModifier.h" #include "LocationRequiredSkillModifier.h" #include "Implant.h" #include "Booster.h" #include <algorithm> #in...
<commit_before>// // UniformBuffer.cpp // Epsilon // // Created by Scott Porter on 21/04/2014. // Copyright (c) 2014 Scott Porter. All rights reserved. // // For OGL includes #include "EpsilonCore.h" #include "render/RenderUtilities.h" #include "render/material/UniformBuffer.h" namespace epsilon { UniformBuff...
<commit_before>#include <geometry_msgs/PoseStamped.h> #include "util.h" #include "wall_markers.h" WallMarkers::WallMarkers(ros::NodeHandle handle) : nh(handle), markerPublisher(handle.advertise<visualization_msgs::Marker>("localization/viz/wall_markers", 1000)), positionSubscriber(handle.subscribe("positi...
<commit_before>#include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <vector> #include "factorencoder.hh" #include "io.hh" int main(int argc, char* argv[]) { if (argc != 4) { std::cerr << "usage: " << argv[0] << " <vocabulary> <infile> <outfile>" << st...
<commit_before>#include <boost/filesystem.hpp> #include <util/parser.hpp> #include <util/string.hpp> #include <util/ninja.hpp> #include <algorithm> #include <iostream> namespace fs = boost::filesystem; void make_default_shinobi() { std::ofstream out("Shinobi"); out << "# The default Shinobi file. S...
<commit_before>/* flappy.cc --- ncurses flappy bird clone * This is free and unencumbered software released into the public domain. */ #include <algorithm> #include <thread> #include <deque> #include <ctime> #include <cmath> #include <cstring> #include <ncurses.h> #include <unistd.h> #include "sqlite3.h" #include "h...
<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>#ifndef ARABICA_XSLT_COMPILED_STYLESHEET_HPP #define ARABICA_XSLT_COMPILED_STYLESHEET_HPP #include <vector> #include <iostream> #include <XPath/XPath.hpp> #include "xslt_execution_context.hpp" #include "xslt_template.hpp" #include "xslt_top_level_param.hpp" #include "xslt_key.hpp" #include "...
<commit_before>#ifndef ARABICA_XSLT_STYLESHEETCONSTANT_HPP #define ARABICA_XSLT_STYLESHEETCONSTANT_HPP #include <XML/XMLCharacterClasses.hpp> #include <XPath/impl/xpath_namespace_context.hpp> #include <memory> #include "xslt_stylesheet_parser.hpp" #include "xslt_compiled_stylesheet.hpp" #include "xslt_compilation_con...
<commit_before>/* -*- C++ -*- */ /** * @file GraphBuilder.cpp * @author Roman Schindlauer * @date Wed Jan 18 17:43:14 CET 2006 * * @brief Abstract strategy class for finding the dependency edges of a program. * * */ #include "dlvhex/GraphBuilder.h" #include "dlvhex/Component.h" #include "dlvhex/globals.h" #in...
<commit_before>#include <QSqlQuery> #include <QSqlError> #include <QUrl> #include <QSqlRecord> #include "kernel.h" #include "identity.h" #include "resource.h" #include "mastercatalog.h" #include "connectorinterface.h" #include "containerconnector.h" #include "catalogconnector.h" #include "internalcatalogconnector.h" u...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>//Adapted from sites.google.com/site/stevenhalim/home/material //or cpbook.net #include <cmath> #include <vector> #define EPS 0.000000001; #define COLLINEAR 0 #define LEFT 1 #define RIGHT -1 #define polygon vector<point> using namespace std; bool equal(double a, double b) { return fabs(a-b) < EPS; } ...
<commit_before>#ifndef __LSH_HASHSET_HPP__ #define __LSH_HASHSET_HPP__ #include <functional> #include <limits> #include "../Containers/Array.hpp" #include "../Containers/StaticHashMap.hpp" #include "../MetricSpace/Generic/HashFunction.hpp" #include "../MetricSpace/Generic/DistanceFunction.hpp" #include "../MetricSpac...
<commit_before>#include <opencv2/opencv.hpp> int main (int argc, char **argv) { IplImage *src_img = 0; IplImage *dst_img_1, *dst_img_2, *dst_img_3; // (1)画像を読み込み,同じサイズの出力画像を用意する if (argc >= 2) src_img = cvLoadImage (argv[1], CV_LOAD_IMAGE_COLOR); if (src_img == 0) return -1; dst_img_1 = cvCloneIm...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2014 Paul Asmuth, Google Inc. * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public Licen...
<commit_before>/* Copyright (C) 2005-2008 Damien Stehle. Copyright (C) 2007 David Cade. Copyright (C) 2011 Xavier Pujol. This file is part of fplll. fplll 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...
<commit_before>//========================================================= // //A C++ program to implement the mRMR selection using mutual information // written by Hanchuan Peng. // //Disclaimer: The author of program is Hanchuan Peng // at <penghanchuan@yahoo.com>. // //The CopyRight is reserved by the author.#i...
<commit_before>long fib(long n) { if (n < 2) { return n; } else { return fib(n - 1) + fib(n - 2); }; }; <commit_msg>remove .cc file in root directory<commit_after><|endoftext|>
<commit_before>#include <stdio.h> #include <math.h> #include <string> #include <sstream> template <class T> T from_str(const std::string & str){ std::istringstream sin(str); T ret; sin >> ret; return ret; } void print(double a){ printf("%.20f, %llX\n", a, *((unsigned long long *) &a)); } int main(int argc, cha...
<commit_before>// This file (SampleCode.cpp) was converted from SampleCode.Bas // with uCalc Transform 2.5 on 1/15/2014 4:37:12 PM using the Open Source // PowerBASIC to C++ converter found at https://github.com/uCalc/powerbasic-to-cpp #include <string> using namespace std; // File name: SampleCode.Bas // To conve...
<commit_before>#include <iostream> #include "unittest.h" #include "vigra/error.hxx" struct ErrorTest { void testPrecondition() { bool caughtIt = false; try { precondition(0, "Intentional error"); } catch(vigra::ContractViolation & c) { caughtIt = true; std::cout << "Testing error reporting: "...
<commit_before>#include "../include/event_queue.hh" #include "../include/file_descriptor.hh" #include <chrono> #include <cstdint> #include <fcntl.h> #include <gtest/gtest.h> #include <memory> #include <optional> #include <thread> #include <unistd.h> using std::array; using std::chrono::milliseconds; using std::chrono...
<commit_before>// Copyright 2020 Global Phasing Ltd. #include "common.h" #include "gemmi/elem.hpp" #include "gemmi/resinfo.hpp" #include "gemmi/it92.hpp" #include "gemmi/c4322.hpp" #include <pybind11/stl.h> namespace py = pybind11; using namespace gemmi; static std::vector<std::string> expand_protein_one_letter_stri...
<commit_before>#include <catch/catch.hpp> #include <cmath> #include <limits> #include <RaPsCallion/serializer.h> namespace rapscallion { namespace test { struct byte_view { constexpr byte_view() = default; byte_view(const Deserializer& d) : first(reinterpret_cast<const char*>(d.ptr)) , last (reinterpret_...
<commit_before>//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>// This file is part of gltfpack; see gltfpack.h for version/license details #include "gltfpack.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif static const char* kMimeTypes[][2] = { {"image/jpeg", ".jpg"}, {"image/jpeg", ".jpe...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>/************************************************************************* * * $RCSfile: pages.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: vg $ $Date: 2005-03-11 10:49:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>#include <exp/datapump.h> #include <coap/encoder.h> #include <coap/decoder/netbuf.h> #include <coap/decoder/subject.h> namespace moducom { namespace coap { template <class TMessageObserver, class TNetBuf> void process_messageobserver_helper(DecoderSubjectBase<TMessageObserver>& ds, TNetBuf& netbuf, ...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2012 Anton Chernov <chernov.anton.mail@gmail.com> // Copyright 2012 ...
<commit_before>#include "writer/verilog/axi/master_controller.h" #include "iroha/i_design.h" #include "writer/verilog/axi/master_port.h" #include "writer/verilog/module.h" #include "writer/verilog/ports.h" #include "writer/verilog/table.h" namespace iroha { namespace writer { namespace verilog { namespace axi { Mast...
<commit_before>//============================================================================== // CellML file class //============================================================================== //---GRY--- NOTE THAT OUR CURRENT USE OF THE CellML API IS *WRONG*. INDEED, WE // ARE ASSUMING THAT THE BINAR...
<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 "include/dart_api.h" #include "platform/assert.h" #include "vm/globals.h" #incl...
<commit_before>/************************************************************************* * * $RCSfile: cmdargs.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: mhu $ $Date: 2002-07-23 12:41:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include "microflo.h" Packet::Packet() : buf('0') , boolean(false) , msg(MsgInvalid) {} Packet::Packet(char c) : buf(c) , boolean(false) , msg(MsgCharacter) {} Packet::Packet(bool b) : buf('0') , boolean(b) , msg(MsgBoolean) {} Packet::Packet(Msg _msg) : buf('0...
<commit_before>/* * Copyright (C) 2018 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>// Copyright (C) 2016 Jérôme Leclercq // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Graphics/MaterialPipeline.hpp> #ifndef NAZARA_RENDERER_OPENGL #define NAZARA_RENDERER_OPENGL // Mandatory to...
<commit_before>#include <vector> #include "caffe/layers/affinity_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void AffinityLossLayer<Dtype>::Reshape( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { LossLayer<Dtype>::Reshape(bottom, to...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: setnodeaccess.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: ihi $ $Date: 2007-11-23 14:24:44 $ * * The Contents of this file are...
<commit_before>#include "Connection.h" #include "MySqlBase.h" #include "Statement.h" #include <vector> #include <boost/scoped_array.hpp> Core::Db::Connection::Connection( MySqlBase * pBase, const std::string& hostName, const std::string& userName, ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: idlcproduce.cxx,v $ * * $Revision: 1.14 $ * * last change: $Author: vg $ $Date: 2007-09-20 15:01:32 $ * * The Contents of this file are m...
<commit_before>#include <iostream> #include <string> using std::string; using std::cout; using std::endl; int main() { string str("a simple string"); // while int i = 0; while (i < str.size()) str[i++] = 'X'; cout << str << endl; // for for (i = 0; i<str.size(); ++i) str[i] = 'Y'; cout...
<commit_before>#include <catch.hpp> #include <map> #include <string> #include <boost/variant/get.hpp> #include "../../src/HTMLParser/HTMLParser.hpp" #include "../../src/HTMLParser/tokens/StartToken.hpp" #include "../../src/HTMLParser/tokens/DoctypeToken.hpp" #include "../../src/HTMLParser/tokens/EndToken.hpp" TEST_C...
<commit_before>#include <list> #include <string> #include "uvpp_tcp.hpp" int main() { uvpp::Loop uvloop; uvpp::Signal sigtrap(uvloop); sigtrap.set_callback([&uvloop](){ uvloop.stop(); }); sigtrap.start(SIGINT); uvpp::Tcp server(uvloop); std::list<uvpp::Tcp> clients; struct ...
<commit_before>// // Copyright (c) 2017 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // EGLSurfacelessContextTest.cpp: // Tests for the EGL_KHR_surfaceless_context and GL_OES_surfaceless_context #include <g...
<commit_before>/* This is a tool shipped by 'Aleph - A Library for Exploring Persistent Homology'. Given a set of persistence diagrams, the tool calculates a histogram glyph. The glyph uses persistence indicator functions, a summarizing function of a persistence diagram. This tool follows the publication:...
<commit_before>#include "P3dSprBuilder.h" #include "IPackNode.h" #include "PackNodeFactory.h" #include <ee/std_functor.h> #include <ee/Visitor.h> #include <easyparticle3d.h> #include <algorithm> namespace erespacker { P3dSprBuilder::P3dSprBuilder(ExportNameSet& export_set) : m_export_set(export_set) { } P3dSprBu...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/pldm/responses/pldm_fru_data_responders.C $ ...
<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 "content/renderer/p2p/port_allocator.h" #include "base/bind.h" #include "base/string_number_conversions.h" #include "base/str...
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "addr_to_symbol.h" #include <vespa/vespalib/util/classname.h> #include <dlfcn.h> #include <llvm/Object/ObjectFile.h> using vespalib::demangle; using llvm::object::ObjectFile; name...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 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. Redistrib...
<commit_before>#ifndef STAN_MATH_PRIM_ARR_FUNCTOR_INTEGRATE_1D_HPP #define STAN_MATH_PRIM_ARR_FUNCTOR_INTEGRATE_1D_HPP #include <stan/math/prim/mat/fun/value_of.hpp> #include <stan/math/rev/scal/fun/value_of.hpp> #include <stan/math/rev/scal/fun/to_var.hpp> #include <stan/math/rev/mat/fun/to_var.hpp> #include <stan/ma...
<commit_before>#include "halley/tools/assets/import_assets_database.h" #include "halley/file/byte_serializer.h" #include "halley/resources/resource_data.h" #include "halley/tools/file/filesystem.h" using namespace Halley; void ImportAssetsDatabaseEntry::serialize(Serializer& s) const { s << assetId; s << srcDir; s...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/sbml-testsuite/wrapper.cpp,v $ // $Revision: 1.5 $ // $Name: $ // $Author: shoops $ // $Date: 2009/07/23 19:53:48 $ // End CVS Header // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc....
<commit_before>// -*- Mode:C++ -*- /**************************************************************************************************/ /* */ /* Copyright (C) 2014 University of Hull ...
<commit_before>//---------------------------------------------------------------------------// /* Copyright (c) 2012, Stuart R. Slattery All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *: Re...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is added by mcw. */ #include <sal/config.h> #include <unotest/filters-test.hxx> #include <test/bootstrapfixture.hxx> #include <rtl/strbuf.hxx> #include <osl/file.hxx> #include "scdll.hxx" #include <sfx2/app...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layoutUI/CQLayoutMainWindow.cpp,v $ // $Revision: 1.13 $ // $Name: $ // $Author: urost $ // $Date: 2007/06/01 10:40:16 $ // End CVS Header // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual // Prop...
<commit_before> #pragma once #include <cinatra/http_server.hpp> #include <cinatra/http_router.hpp> #include <cinatra/request.hpp> #include <cinatra/response.hpp> #include <cinatra/logging.hpp> #include <cinatra/aop.hpp> #include <cinatra/body_parser.hpp> #include <boost/lexical_cast.hpp> #include <strin...
<commit_before>#pragma once #include <utility> #include <vector> #include <cmath> #include <fstream> #include <iomanip> namespace fp { template<typename Func, typename Float> std::tuple<std::vector<Float>, int, std::vector<Float>> fixed_point(const Func& g, Float x0, Float abstol) { // vector to ...
<commit_before>/* * image_preprocessor.hpp * * Created on: Apr 3, 2015 * Author: Fabian Tschopp */ #ifndef IMAGE_PROCESSOR_HPP_ #define IMAGE_PROCESSOR_HPP_ #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <functional> namespace caffe_...
<commit_before> //snippet-sourcedescription:[put_item.cpp demonstrates how to put an item into an Amazon DynamoDB table.] //snippet-keyword:[C++] //snippet-keyword:[Code Sample] //snippet-keyword:[Amazon DynamoDB] //snippet-service:[dynamodb] //snippet-sourcetype:[full-example] //snippet-sourcedate:[] //snippe...
<commit_before>#include <gtest/gtest.h> #include "../../main/models/factor/SvdppModel.h" #include "../../main/models/factor/SvdppModelUpdater.h" #include "../../main/models/factor/SvdppModelGradientUpdater.h" #define DIMENSION 10 #define MAXUSER 13 #define MAXITEM 9 namespace { class TestSvdppModel : public ::testing:...
<commit_before>#include "Qt5DebugSession.h" #include "Qt5DebuggerThread.h" #include "Qt5CodeEditor.h" #include "Qt5CallStack.h" #include "Qt5Locals.h" #include <QThread> #ifndef _WIN32 #include <unistd.h> #endif ///////////////////////////////////////////////////////////////////////////////////////////////////////////...
<commit_before>#include <gtest/gtest.h> #include "gameboy_impl.hpp" using namespace mjkgb; namespace { class AccessorsTest : public testing::Test { protected: GameboyImpl gb; }; TEST_F(AccessorsTest, ByteRegister) { EXPECT_EQ(0, gb.get(ByteRegister::A)); gb.set(ByteRegister::A, 0xde); EXPECT_EQ(0x...
<commit_before>// Frame.cpp #include "Frame.h" #include "Application.h" #include "Puzzle.h" #include "Canvas.h" #include <wx/menu.h> #include <wx/aboutdlg.h> #include <wx/msgdlg.h> #include <wx/sizer.h> Frame::Frame( void ) : wxFrame( 0, wxID_ANY, "Symmetry Group Madness" ), timer( this, ID_Timer ) { wxMenu* gameMen...
<commit_before>// Copyright 2019 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>#include "boost/filesystem.hpp" #include "boost/program_options.hpp" #include <assert.h> #include "itkCenteredSimilarity2DTransform.h" // my files #include "Stack.hpp" #include "NormalizeImages.hpp" #include "StackInitializers.hpp" #include "RegistrationBuilder.hpp" #include "StackAligner.hpp" #include...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: proplinelistener.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: vg $ $Date: 2006-03-14 11:31:45 $ * * The Contents of this file a...
<commit_before>/* * Copyright 2021 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 la...
<commit_before>/************************************************************************* * * $RCSfile: addonstoolbarmanager.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: kz $ $Date: 2005-03-01 19:28:08 $ * * The Contents of this file are made available subject to the terms of * either of the fol...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Comme...
<commit_before>// Copyright (c) 2010 - 2013 Leap Motion. All rights reserved. Proprietary and confidential. #include "stdafx.h" #include "CoreThread.h" #include "CoreContext.h" #include <boost/thread.hpp> CoreThread::CoreThread(const char* pName): ContextMember(pName), m_priority(ThreadPriority::Default), m_stat...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2016 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>/*********************************************************************** filename: ShaderWrapper.cpp created: 9th December 2013 author: Lukas Meindl *************************************************************************/ /***********************************************************...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/extension_devtools_bridge.h" #include "base/json/json_writer.h" #include "base/message_loop.h" #in...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/managed_mode/managed_mode_url_filter.h" #include "base/files/file_path.h" #include "base/hash_tables.h" #incl...
<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/webui/media/media_internals_proxy.h" #include "base/bind.h" #include "chrome/browser/browser_process.h" #i...
<commit_before>// Copyright (c) 2016 The WebM project authors. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All cont...
<commit_before>#include "config.h" #include "vm.hpp" #include "state.hpp" #include "on_stack.hpp" #include "memory.hpp" #include "call_frame.hpp" #include "metrics.hpp" #include "exception_point.hpp" #include "thread_phase.hpp" #include "builtin/array.hpp" #include "builtin/class.hpp" #include "builtin/module.hpp" #in...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkSLCReader.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Th...
<commit_before>/** * @file forward_index.cpp * @author Sean Massung */ #include <iostream> #include <memory> #include <unordered_set> #include "index/forward_index.h" #include "index/chunk.h" using std::cerr; using std::endl; namespace meta { namespace index { forward_index::forward_index(const cpptoml::toml_gr...
<commit_before>/* * An istream which duplicates data. * * author: Max Kellermann <mk@cm4all.com> */ #include "istream_tee.hxx" #include "istream_oo.hxx" #include "pool.hxx" #include "util/Cast.hxx" #include <assert.h> struct TeeIstream { struct { struct istream istream; /** * A weak...
<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>/* -*- 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 ...