text
stringlengths
54
60.6k
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>//MIT License // //Copyright(c) 2016 Matthias Moeller // //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...
<commit_before>/* indivudal.cpp - CS 472 Project #2: Genetic Programming * Copyright 2014 Andrew Schwartzmeyer * * Source file for individual namespace */ #include <algorithm> #include <cassert> #include <cmath> #include <iostream> #include <memory> #include <tuple> #include <vector> #include "individual.hpp" #in...
<commit_before>#include "unittest.h" #include "rapidjson/document.h" #include "rapidjson/reader.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" using namespace rapidjson; TEST(Writer, Compact) { StringStream s("{ \"hello\" : \"world\", \"t\" : true , \"f\" : false, \"n\": null, \"i\":12...
<commit_before>#import <v8.h> #import <node.h> #import <AudioToolbox/AudioToolbox.h> #import <UIKit/UIKit.h> #import "graphicServices.h" #import "notifications.h" #import "telephony.h" #import "compatibility.h" // ...meh using namespace node; using namespace v8; class Binding { public: static void Init(v8::Handl...
<commit_before>#include "bitmap.h" #include "except.h" Bitmap::Bitmap(std::string filepath) : _filepath(filepath) , _data(nullptr) , _width(0) , _height(0) { FILE * fptr = fopen(_filepath.c_str(), "rb"); if (fptr == nullptr) throw FileError(); uint8_t bmp_header[54]; fre...
<commit_before>/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
<commit_before>/** * @file Severity.hpp * @brief Severity class prototype. * @author zer0 * @date 2016-07-09 */ #ifndef __INCLUDE_LIBTBAG__LIBTBAG_LOG_DETAILS_SEVERITY_HPP__ #define __INCLUDE_LIBTBAG__LIBTBAG_LOG_DETAILS_SEVERITY_HPP__ // MS compatible compilers support #pragma once #if defined(_MSC_VER) &&...
<commit_before>/** * @file SignalHandler.hpp * @brief SignalHandler class prototype. * @author zer0 * @date 2016-12-24 */ #ifndef __INCLUDE_LIBTBAG__LIBTBAG_SIGNAL_SIGNALHANDLER_HPP__ #define __INCLUDE_LIBTBAG__LIBTBAG_SIGNAL_SIGNALHANDLER_HPP__ // MS compatible compilers support #pragma once #if defined(_M...
<commit_before>/**************************************************************************** atom.hpp - support file for writing LV2 plugins in C++ Copyright (C) 2012 Michael Fisher <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of the GN...
<commit_before> /*! \file \author Igor Mironchik (igor.mironchik at gmail dot com). Copyright (c) 2014 Igor Mironchik 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 re...
<commit_before>#include <stan/math/prim/mat.hpp> #include <stan/math/prim/arr.hpp> #include <gtest/gtest.h> TEST(ErrorHandlingOpenCL, checkThrows) { const char* function = "test_func"; const char* msg = "test"; EXPECT_THROW(stan::math::throw_openCL(function, msg), std::domain_error); } <commit_msg>ignore opencl ...
<commit_before>/* Copyright 2017 Thomas Krause <[email protected]> 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 requ...
<commit_before>#ifndef VEXCL_UTIL_HPP #define VEXCL_UTIL_HPP /* The MIT License Copyright (c) 2012-2014 Denis Demidov <[email protected]> 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 w...
<commit_before>/* * Copyright (C) 2010-2011 Dmitry Marakasov * * This file is part of glosm. * * glosm 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 opt...
<commit_before>/* Copyright (C) 2016 Volker Krause <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) a...
<commit_before>/* * A Remote Debugger for SpiderMonkey Java Script engine. * Copyright (C) 2014-2015 Sławomir Wojtasiak * * 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 * v...
<commit_before>#include <glib.h> #include <nan.h> #include "closure.h" #include "macros.h" #include "loop.h" #include "type.h" #include "value.h" using v8::Context; using v8::Function; using v8::HandleScope; using v8::Isolate; using v8::Local; using v8::Object; using v8::Value; using Nan::Persistent; namespace GNode...
<commit_before>#include <tests/lib/test.h> #include <tests/lib/glib-helpers/test-conn-helper.h> #include <tests/lib/glib/contacts-conn.h> #include <TelepathyQt4/Connection> #include <TelepathyQt4/Contact> #include <TelepathyQt4/ContactManager> #include <TelepathyQt4/PendingContacts> #include <TelepathyQt4/PendingCon...
<commit_before>/* Copyright (c) 2015-2017 Advanced Micro Devices, Inc. All rights reserved. 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 rig...
<commit_before>/* vi:set ts=8 sts=8 sw=8: * * Practical Music Search * Copyright (c) 2006-2011 Kim Tore Jensen * * 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 L...
<commit_before><commit_msg>pre-select name filter in import/export file dialog<commit_after><|endoftext|>
<commit_before> typedef float vec16f __attribute__((__vector_size__(16 * sizeof(int)))); typedef int vec16i __attribute__((__vector_size__(16 * sizeof(int)))); #define PI 3.141579 vec16f fmodv(vec16f val1, vec16f val2) { vec16f multiple = __builtin_vp_vitof(__builtin_vp_vftoi(val1 / val2)); return val1 - (multiple ...
<commit_before>#include <v8.h> #include <node.h> #include <node_version.h> #if !(NODE_MAJOR_VERSION == 0 && NODE_MINOR_VERSION < 8) #include "context.h" using namespace node; using namespace v8; static struct gcontext g_context; static uv_prepare_t prepare_handle; static uv_check_t check_handle; GContext::GContext...
<commit_before>#include <iostream> #include <fstream> #include <memory> #include "HexagonOffload.h" #include "IRMutator.h" #include "Substitute.h" #include "Closure.h" #include "Param.h" #include "Image.h" #include "LLVM_Output.h" #include "RemoveTrivialForLoops.h" namespace Halide { namespace Internal { using std::...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2012-2020 Couchbase, 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 Lic...
<commit_before>#include "test.hpp" #include "../compiler_macro.hpp" namespace frea { namespace test { // template <class T> // using SMatrix = RMatrix<T>; // using SqTypes_t = seq::ExpandTypes_t2< // types::SquareMat_t, // std::tuple< // types::Reg_t, // seq::Range_t<2,5>, // std::tuple<BConst...
<commit_before>extern "C" { #include "packet_queue.h" #include "error.h" #include "nrf51.h" #include "nrf51_bitfields.h" } #include "CppUTest/TestHarness.h" #include <limits.h> #include <string.h> extern "C" { void error_handler(uint32_t err_code, uint32_t line_num, char * file_name) { ...
<commit_before>/// /// @file IteratorHelper.cpp /// Functions used to calculate the next start and stop /// numbers for primesieve::iterator. /// /// Copyright (C) 2019 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level d...
<commit_before> #include <unistd.h> #include <sstream> #include "tclap/CmdLine.h" #include "beanstalk.hpp" #include "alpr.h" #include "openalpr/simpleini/simpleini.h" #include "openalpr/cjson.h" #include "support/tinythread.h" #include "videobuffer.h" #include "uuid.h" #include <curl/curl.h> // prototypes void strea...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: liFilterConsole2D.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCop...
<commit_before>#include <gtest/gtest.h> #include <dart/dynamics/dynamics.h> #include <dart/common/StlHelpers.h> #include <aikido/constraint/dart.hpp> #include <aikido/statespace/dart/RealVectorJointStateSpace.hpp> #include <aikido/statespace/dart/SO2JointStateSpace.hpp> using Vector0d = Eigen::Matrix<double, 0, 1>; us...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>#include "clustering/administration/namespace_interface_repository.hpp" #include "errors.hpp" #include <boost/bind.hpp> #include <boost/ptr_container/ptr_map.hpp> #include "concurrency/cross_thread_signal.hpp" #include "concurrency/cross_thread_watchable.hpp" #define NAMESPACE_INTERFACE_EXPIRATION_MS ...
<commit_before> #ifndef FIXED_FIXED_HPP_INCLUDED #define FIXED_FIXED_HPP_INCLUDED // Copyright Joel Riendeau 2008 // Jean-Philippe Gravel 2008 // Jean-Olivier Racine 2008 // // Distributed under the New BSD License. // (See accompanying file NewBSDLicense.txt or copy at // http:...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: flbytes.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-19 21:19:58 $ * * The Contents of this file are made a...
<commit_before>// // ex7_13.cpp // Exercise 7.13 // // Created by pezy on 11/9/14. // #include "ex7_12.h" int main() { Sales_data total(std::cin); if (!total.isbn().empty()) { std::istream &is = std::cin; while (is) { Sales_data trans(is); if (total.isbn() == tra...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: editobj2.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-08 22:28:19 $ * * The Contents of this file are made ...
<commit_before>/*############################################################################################ Garden System Wireless controller for watering electropumps Author: Daniele Colanardi License: BSD, see LICENSE file ########################################################################################...
<commit_before>/************************************************************************* * * $RCSfile: caption.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: os $ $Date: 2002-12-05 13:00:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * $RCSfile: grfshex.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hjs $ $Date: 2003-08-19 12:00:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: textdrw.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2003-03-27 15:44:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>// // Created by Mingkai Chen on 2017-03-10. // #include "util_test.h" #include "fuzz.h" #ifdef UTIL_TEST_H bool tensorshape_equal ( const tensorshape& ts1, const tensorshape& ts2) { std::vector<size_t> vs = ts1.as_list(); std::vector<size_t> vs2 = ts2.as_list(); if (vs.size() != vs2.size()) re...
<commit_before>#ifndef _SDD_MEM_PTR_HH_ #define _SDD_MEM_PTR_HH_ #include <cassert> #include <functional> // hash, function #include <type_traits> // remove_const #include "sdd/mem/unique_table.hh" namespace sdd { namespace mem { /*-----------------------------------------------------------------------------------...
<commit_before>#include "GeoCoordinate.hpp" #include "entities/Element.hpp" #include "entities/Node.hpp" #include "entities/Way.hpp" #include "entities/Area.hpp" #include "entities/Relation.hpp" #include "index/ElementStore.hpp" #include "mapcss/StyleProvider.hpp" #include "test_utils/ElementUtils.hpp" #include "test_u...
<commit_before>#include "test-helpers.h" #include <sstream> #include "text-buffer.h" #include "text-slice.h" using std::move; using std::string; using std::stringstream; TEST_CASE("TextBuffer::build - can build a TextBuffer from a UTF8 stream") { string input = "abγdefg\nhijklmnop"; stringstream stream(input, std...
<commit_before>//===----------------------------------------------------------------------===// // // Peloton // // typelimit_sql_test.cpp // // Identification: test/sql/typelimit_sql_test.cpp // // Copyright (c) 2015-17, Carnegie Mellon University Database Group // //===------------------------...
<commit_before>// Copyright 2018 The gVisor 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>/*************************************************** Lighting Controller Richard Huish 2016 ESP8266 based with local home-assistant.io GUI, 433Mhz transmitter for lighting control and DHT22 temperature-humidity sensor ---------- Key Libraries: ESP8266WiFi.h> https://github.com/esp8...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestPolarAxes.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. T...
<commit_before>//===--- SILExtract.cpp - SIL function extraction utility -----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>#include <ROOT/RDataFrame.hxx> #include <ROOT/RTrivialDS.hxx> #include <TChain.h> #include <TSystem.h> #include <TTree.h> #include <gtest/gtest.h> #include <atomic> #include <memory> #include <thread> // std::thread::hardware_concurrency // fixture for all tests in this file struct DefinePerSample : :...
<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>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/format_macros.h" #include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "chrome/browser/autoco...
<commit_before>// Copyright (c) 2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <vector> #include "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/path_service.h...
<commit_before>// Copyright (c) 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/in_process_webkit/dom_storage_context.h" #include <algorithm> #include "base/file_path.h" #include "base/fil...
<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/password_manager/login_database.h" #include "base/utf_string_conversions.h" // TODO: Actually encrypt passwo...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2009-2012, 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>/* * Copyright (c) 2012-2015 Daniele Bartolini and individual contributors. * License: https://github.com/taylor001/crown/blob/master/LICENSE */ #include "config.h" #include "debug_line.h" #include "device.h" #include "log.h" #include "lua_environment.h" #include "material_manager.h" #include "resour...
<commit_before>// Copyright (c) 2013 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/test/chromedriver/chrome/devtools_http_client.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base...
<commit_before>/* * master.cpp - master program for Team PI * * Wire(0) -> capTouch -> pixies -> SRF08s -> slave2 -> slave3 * Wire1 -> slave1 * by Brian Chen * (C) Team PI 2015 */ #include <WProgram.h> #include <i2c_t3.h> #include <SPI.h> #include <slaves.h> #include <piCommon.h> #include <PixyI2C.h> // modi...
<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>//@ {"targets":[{"name":"serializer.hpp","type":"include"}]} #ifndef TEMPLE_SERIALIZER_HPP #define TEMPLE_SERIALIZER_HPP #include "item.hpp" #include "treenode.hpp" #include <stack> namespace Temple { namespace { template<class Callback> class VisitorBase { public: virtual bool atEnd...
<commit_before>/** * @file * @brief Implementation of detector histogramming module * @copyright MIT License */ #include "DetectorHistogrammerModule.hpp" #include <algorithm> #include <memory> #include <string> #include <utility> #include "core/geometry/HybridPixelDetectorModel.hpp" #include "core/messenger/Mess...
<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/chrome_thread.h" #include "chrome/browser/speech/speech_input_bubble_controller.h" #include "gfx/rect.h" #incl...
<commit_before>// Copyright 2014 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/extensions/extension_action_view_controller.h" #include "base/logging.h" #include "base/strings/utf_string_con...
<commit_before>#ifndef KMC_KLANG_EITHER_HPP #define KMC_KLANG_EITHER_HPP #include <cassert> namespace klang { struct LeftTag {}; struct RightTag {}; constexpr LeftTag left_tag; constexpr RightTag right_tag; template <typename L, typename R> class Either { public: Either(LeftTag, const L& left) : is_right_...
<commit_before>#include "ovpCBoxAlgorithmStimulationListener.h" using namespace OpenViBE; using namespace OpenViBE::Kernel; using namespace OpenViBE::Plugins; using namespace OpenViBEPlugins; using namespace OpenViBEPlugins::Tools; boolean CBoxAlgorithmStimulationListener::initialize(void) { IBox& l_rStaticBoxConte...
<commit_before>#include "engine.h" #include "random.h" #include "gameEntity.h" #include "Updatable.h" #include "collisionable.h" #ifdef __linux__ #include <fenv.h> #endif #ifdef __WIN32__ #include <float.h> #endif #ifdef DEBUG #include <typeinfo> int DEBUG_PobjCount; PObject* DEBUG_PobjListStart; #endif #ifdef ENABL...
<commit_before>// Module: Log4CPLUS // File: filter.cxx // Created: 5/2003 // Author: Tad E. Smith // // // Copyright 2003-2015 Tad E. Smith // // 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 Lice...
<commit_before>#include "filters.hh" #include "buffer.hh" #include "selection.hh" namespace Kakoune { void preserve_indent(Buffer& buffer, Selection& selection, String& content) { if (content == "\n") { BufferIterator line_begin = buffer.iterator_at_line_begin(selection.last() - 1); BufferIte...
<commit_before>/* * Copyright 2001, 2002, 2006, 2011 Adrian Thurston <[email protected]> */ /* * Setting conditions and merging states with conditions are similar activities * when expressed in code. The critical difference is that a merge is a union * of multiple paths. We have to take both paths. Setting a...
<commit_before>// Copyright 2013-2015 Eric Schkufza, Rahul Sharma, Berkeley Churchill, Stefan Heule // // 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/license...
<commit_before>// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2018 Intel Corporation. All Rights Reserved. #include <iostream> #include "librealsense2/rs.hpp" #include "tclap/CmdLine.h" #include "converters/converter-csv.hpp" #include "converters/converter-png.hpp" #include "converters/...
<commit_before>// fontnik #include <node_fontnik/glyphs.hpp> // node #include <node_buffer.h> #include <nan.h> namespace node_fontnik { struct RangeBaton { v8::Persistent<v8::Function> callback; Glyphs *glyphs; std::string fontstack; std::string range; std::vector<std::uint32_t> chars; bool e...
<commit_before> #include "function.h" #include "value.h" #include "closure.h" #include "gi.h" #include "gobject.h" #include "debug.h" using namespace v8; namespace GNodeJS { static G_DEFINE_QUARK(gnode_js_object, gnode_js_object); static G_DEFINE_QUARK(gnode_js_template, gnode_js_template); static bool InitGParamet...
<commit_before>/****************************************************************************** * Copyright 2018 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>#include <string> #include <ostream> #include <fstream> #include <sstream> #include <SDL.h> #include "../include/logger.h" Util::Logger::Logger(const std::string &file) : fileOut(file.c_str()), output(fileOut) { } Util::Logger::Logger(std::ostream &os) : output(os) { } void Util::Logger::log(const std...
<commit_before>// Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: [email protected] #include "logging.h" #include <assert.h> #include <boost/bind.hpp> #include <queue> #include <stdarg.h...
<commit_before>// Copyright 2013 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 <queue> #include "base/command_line.h" #include "base/path_service.h" #include "base/thread_task_runner_handle.h" #include "chrom...
<commit_before> /**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:L...
<commit_before>/* Copyright 2017 QReal Research Group * * 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 applica...
<commit_before>/* * Copyright (C) 2008 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>/* ** © 2014 by Philipp Dunkel <[email protected]> ** Licensed under MIT License. */ void FSEvents::emitEvent(const char *path, UInt32 flags, UInt64 id) { if (!handler) return; NanScope(); v8::Local<v8::Value> argv[] = { NanNew<v8::String>(path), NanNew<v8::Number>(flags), NanNew<v8::...
<commit_before>#ifndef __MINEAR_HPP__ #define __MINEAR_HPP__ #include <memory> #include <iostream> namespace minear { template <class T> class Matrix { public: unsigned int n_rows; unsigned int n_cols; /* constructors and destructors */ Matrix<T>() : n_rows(0), n_c...
<commit_before>#include "nixfile.h" #include "mex.h" #include <nix.hpp> #include "handle.h" #include "arguments.h" #include "struct.h" namespace nixfile { void open(const extractor &input, infusor &output) { std::string name = input.str(1); uint8_t omode = input.num<uint8_t>(2); nix::FileMode mode; ...
<commit_before>/* * Send notifications from a worker thread to the main thread. * * author: Max Kellermann <[email protected]> */ #include "notify.hxx" #include "gerrno.h" #include <inline/compiler.h> #include <event.h> #include <atomic> #include <assert.h> #include <unistd.h> #include <sys/eventfd.h> class Notif...
<commit_before>/************************************************************************* * * $RCSfile: MDatabaseMetaDataHelper.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hjs $ $Date: 2004-06-25 18:31:40 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>#include "output.hpp" #include <cmath> #include <cstdint> #include <vector> #include <ctime> #include <cstdio> #include "math/vec.hpp" #include "stb_image_write.h" #include "util.hpp" #include "./srgb.hpp" namespace yks { static std::vector<uint8_t> encode_srgb(const std::vector<yks::vec3> fdata) { st...
<commit_before> #include "util.hpp" #include "DiscoveryVisitor.hpp" #include "Export.hpp" #include <clang/Frontend/FrontendPluginRegistry.h> using namespace autobind; class AutobindPluginAction: public clang::PluginASTAction { protected: clang::ASTConsumer *CreateASTConsumer(clang::CompilerInstance &ci, ...
<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 2006-2007 Torsten Rahn <[email protected]> // Copyright 2007 Inge Walli...
<commit_before>#include <iostream> /* allows to perform standard input and output operations */ #include <fstream> #include <stdio.h> /* Standard input/output definitions */ #include <stdint.h> /* St...
<commit_before>/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2019, Marcus Rowe <[email protected]>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #include "cartridge.h" #include <array> #include <cassert> #include <climits> #include <fstream> #include...
<commit_before>/* * LinearAverageProbe.cpp * * Created on: Apr 22, 2009 * Author: rasmussn */ #include "LinearAverageProbe.hpp" #include "io.h" #include <assert.h> #include <string.h> // strdup namespace PV { /** * @hc * @dim * @f * @gifFile */ LinearAverageProbe::LinearAverageProbe(HyPerCol * hc, P...
<commit_before>#include "HSBoundarySpecifiedTemperature.h" #include "HeatConductionModel.h" registerMooseObject("THMApp", HSBoundarySpecifiedTemperature); InputParameters HSBoundarySpecifiedTemperature::validParams() { InputParameters params = HSBoundary::validParams(); params.addRequiredParam<FunctionName>("T",...
<commit_before>// // Created by Sam on 11/18/2017. // #include "../../../build/catch-src/include/catch.hpp" #include "../../../include/Game/Python/Factory.h" TEST_CASE("Create factory") { auto* factory = new Factory(); delete factory; // // SECTION("Verify creation") // { // REQUIRE_FALSE(factory...
<commit_before>/** * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free...
<commit_before>#include "NodeAlbum.h" #include "NodeTrack.h" #include "NodeArtist.h" #include "../spotify/Track.h" NodeAlbum::NodeAlbum(std::unique_ptr<Album> _album) : album(std::move(_album)) { album->nodeObject = this; }; NodeAlbum::~NodeAlbum() { if(album->nodeObject == this) { album->nodeObject = nullptr...
<commit_before>#include <hop_bits/optimisationAlgorithm.hpp> #include <limits> namespace hop { OptimisationAlgorithm::OptimisationAlgorithm(const std::shared_ptr<OptimisationProblem> optimisationProblem) : optimisationProblem_(optimisationProblem) { setMaximalNumberOfIterations(1000); } void Optimisati...