text
stringlengths
54
60.6k
<commit_before>/* * Copyright (c) 2004 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyri...
<commit_before>/** @example user_touche.cpp Touche example. */ #include <ESP.h> BinaryIntArraySerialStream stream(0, 115200, 160); GestureRecognitionPipeline pipeline; void setup() { useInputStream(stream); pipeline.addFeatureExtractionModule(TimeseriesBuffer(1, 160)); pipeline.setClassifier(SVM(S...
<commit_before>/* * ext.cc * * Copyright (C) 2013 Diamond Light Source * * Author: James Parkhurst * * This code is distributed under the BSD license, a copy of which is * included in the root directory of this package. */ #include <boost/python.hpp> #include <boost/python/def.hpp> #include <dials/algorith...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <algorithm> #include <cassert> #include <cctype> #include <cstddef> #include <cstdint> #include <fstream> #include <iostream> #include <ostream> #include <string> #include <vector> #include <boost/algorithm...
<commit_before>//---------------------------- trilinos_vector_equality_4.cc --------------------------- // $Id: vector_equality_4.cc 17992 2008-12-18 03:03:20Z bangerth $ // Version: $Name$ // // Copyright (C) 2004, 2005, 2008, 2010 by the deal.II authors // // This file is subject to QPL and may not be ...
<commit_before>#include "Arduino.h" #include "String.h" #include <SoftwareSerial.h> #include <ESP8266WiFi.h> #include "configs.h" #ifdef ONLINE_MODE //#include <ESP8266WebServer.h> //#include <ESP8266mDNS.h> #include "Ambient7Wifi.h" #endif #include <DHT.h> #include <MHZ19_uart.h> #ifdef SEND_TO_INFLUXDB #inclu...
<commit_before>#ifndef ITER_FILTER_H_ #define ITER_FILTER_H_ #include "internal/iterator_wrapper.hpp" #include "internal/iterbase.hpp" #include <initializer_list> #include <iterator> #include <utility> namespace iter { namespace impl { template <typename FilterFunc, typename Container> class Filtered; ...
<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 "remoting/protocol/jingle_session.h" #include "base/bind.h" #include "base/message_loop.h" #include "base/time.h" #include "b...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tcommuni.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2006-09-17 00:39:39 $ * * The Contents of this file are made...
<commit_before>/* * DIPlib 3.0 viewer * This file contains source for all classes need to use the DIPviewer. * * (c)2017, Wouter Caarls * * 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>#include "caffe2/operators/half_float_ops.h" namespace caffe2 { OPERATOR_SCHEMA(FloatToHalf).NumInputs(1).NumOutputs(1); OPERATOR_SCHEMA(HalfToFloat).NumInputs(1).NumOutputs(1); OPERATOR_SCHEMA(Float16ConstantFill) .NumInputs(0) .NumOutputs(1) .TensorInferenceFunction(Float16FillerTensorInfe...
<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: hwpreader.hxx,v $ * $Revision: 1...
<commit_before>// $Id$ // Author: Akira Okumura 2007/09/24 /****************************************************************************** * Copyright (C) 2006-, Akira Okumura * * All rights reserved. * *******************...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: GridWrapper.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2007-05-22 17:18:14 $ * * The Contents of this file are ma...
<commit_before>#include "../scheduled_task.hpp" #include "../thread.hpp" #include "../../testing/testing.hpp" #include "../../std/bind.hpp" namespace { void add_int(int & val, int a) { val += a; } void mul_int(int & val, int b) { val *= b; } } UNIT_TEST(ScheduledTask_Smoke) { int val = 0; S...
<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/dom_ui/shown_sections_handler.h" #include "base/file_path.h" #include "base/scoped_ptr.h" #include "chrome/br...
<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 "base/logging.h" #include "base/path_service.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/comm...
<commit_before> #include <NDBT.hpp> #include <NdbApi.hpp> #include <NdbRestarter.hpp> #include <HugoOperations.hpp> #include <UtilTransactions.hpp> #include <signaldata/DumpStateOrd.hpp> struct CASE { bool start_row; bool end_row; bool curr_row; const char * op1; const char * op2; int val; }; static CASE...
<commit_before>// @(#)root/ged:$Id: TStyleDialog.cxx,v 1.0 2005/09/08 // Author: Denis Favre-Miville 08/09/05 /************************************************************************* * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>/* The simple ByteArray class, used to implement String. */ #include <stdint.h> #include "vm.hpp" #include "objectmemory.hpp" #include "primitives.hpp" #include "builtin/bytearray.hpp" #include "builtin/class.hpp" #include "builtin/exception.hpp" #include "builtin/fixnum.hpp" #include "builtin/string.h...
<commit_before>#include "Course.h" #include <string> using namespace std; Course::Course(unsigned int _startTime, unsigned int _endTime, string _days, string _courseName, string _courseLoc, unsigned int _courseId){ startTime = _startTime; endTime = _endTime; days = _days; courseName = _courseName; courseLoc = _co...
<commit_before>// // Iteration_test.cpp // // Created by David Wicks on 9/13/15. // Copyright (c) 2015 David Wicks. All rights reserved. // #include "catch.hpp" #include "pockets/CollectionViews.h" #include <vector> #include <unordered_set> #include <iostream> using namespace std; TEST_CASE("Iteration_test") { ...
<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/api/prefs/pref_member.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/sync/profile_...
<commit_before>/*ckwg +5 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include <test_common.h> #include <vistk/pipeline/utils.h> #include <stdexce...
<commit_before>//===-- lldb-log.cpp --------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before><commit_msg>Implement dot and cross product<commit_after><|endoftext|>
<commit_before><commit_msg>Forgot aliasupdate patch<commit_after><|endoftext|>
<commit_before>// Copyright (C) 2011, Luis Pedro Coelho <luis@luispedro.org> // License: MIT #include <iostream> #include <memory> #include <cmath> #include <cassert> extern "C" { #include <Python.h> #include <numpy/ndarrayobject.h> } namespace { template <typename T> int perceptron(PyArrayObject* data_arr,...
<commit_before>#include <catch.hpp> #include "../physics/vec2.h" namespace test_vec2 { SCENARIO( "assignment" ) { GIVEN("empty vector") { vec2 v; REQUIRE(v.x() == 0); REQUIRE(v.y() == 0); WHEN("assign x") { v.x(8); THEN("only x changed") { REQUIRE(v.x() > 0); REQUIRE(v.x() == Approx(...
<commit_before>#include <common/log.h> #include <common/pty.h> #include <common/string.h> #include <common/file.h> #include <common/list.h> #include <gui/gui.h> #include <gdb/gdb.h> #include <gdb/frame.h> #include <gdb/parser.tab.h> #include <user_cmd/cmd.hash.h> #include <user_cmd/subcmd.hash.h> #include <stdlib.h> #i...
<commit_before>#include "PointLocation.h" #include <math/random.h> #include <set> using namespace std; PointLocationBase::PointLocationBase(vector<Vector>& _points) :points(_points) {} NaivePointLocation::NaivePointLocation(vector<Vector>& points,CSpace* _space) :PointLocationBase(points),space(_space) {} bool ...
<commit_before>#include "pinger" #include <paku/builder/icmp> #include <paku/layer> namespace wd { const uint32_t GRANULARITY = 100; struct stats { uint32_t sent; uint32_t recv; uint32_t min; uint32_t max; double avg; }; static void _stats(msgpack::packer<std::ostream>& packer, struct stats* stat...
<commit_before>#include "filter.h" namespace qqsfpm { Filter::Filter(QObject *parent) : QObject(parent) { connect(this, &Filter::filterChanged, this, &Filter::onFilterChanged); } bool Filter::enabled() const { return m_enabled; } void Filter::setEnabled(bool enabled) { if (m_enabled == enabled) ...
<commit_before>#include "Graphics.h" #include "sfwindow.h" #include <SFML/Graphics.hpp> #include "utility/misc.h" #include "imgui.h" #include "imgui-events-SFML.h" #include "imgui-rendering-SFML.h" using namespace WalrusRPG; /*::Graphics*/ using WalrusRPG::Utils::Rect; sf::RenderWindow window; sf::View view; sf::Rend...
<commit_before>/***************************************************************************** * video.cpp : wxWindows plugin for vlc ***************************************************************************** * Copyright (C) 2000-2004, 2003 VideoLAN * $Id: interface.cpp 6961 2004-03-05 17:34:23Z sam $ * * Autho...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_BASEFUNCTIONSET_PDELAB_HH #define DUNE_GDT_BASEFUNCTIONSET_PDELAB_HH #...
<commit_before>#include "log4qt/dailyfileappender.h" #include "log4qt/loggingevent.h" #include "log4qt/simplelayout.h" #include <QDate> #include <QSharedPointer> #include <QTemporaryDir> #include <QtTest/QtTest> using Log4Qt::DailyFileAppender; namespace { class DateRetrieverMock final : public Log4Qt::IDateRetrie...
<commit_before>#include "ctrcommon/common.hpp" #include <sys/unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <3ds.h> static bool amInitialized = false; static bool nsInitialized = false; bool am_prepare() { if(!amInitialized && amInit() == 0) { amInitialized = true; } ...
<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/upgrade_detector.h" #include "base/file_version_info.h" #include "base/scoped_ptr.h" #include "base/time.h" #...
<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/common/chrome_plugin_lib.h" #include "base/command_line.h" #include "base/hash_tables.h" #include "base/histogra...
<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 "base/message_loop.h" #include "base/thread.h" #include "chrome/common/ipc_channel_proxy.h" #include "chrome/common/ipc_l...
<commit_before>/* docker-script: run script files inside Docker containers Copyright (c) 2017, Adam Rehn 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 withou...
<commit_before><commit_msg>input size added to benchmark<commit_after><|endoftext|>
<commit_before> #include <algorithm> #include <iostream> #include <string> #include <vector> #include "pid.h" #include "process.h" #include "swap.h" using namespace std; int main(int argc, char* argv[]) { vector<ProcessInfo> procs; if (argc == 1) { // no pid: collect all processes procs = get_process_info();...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction...
<commit_before><commit_msg>More loplugin:simplifybool<commit_after><|endoftext|>
<commit_before>#pragma once #include "../util.h" #include <glm/glm.hpp> #include <vector> #include "imgui.h" namespace mtao { namespace opengl { class Camera { public: virtual glm::mat4 m() const {return m_model; } glm::mat4& m() { return m_model; } //MTAO_ACCESSORS(glm::mat4,m,m_model)...
<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. // Tests for the top plugins to catch regressions in our plugin host code, as // well as in the out of process code. Currently this te...
<commit_before>#ifndef NANO_SIGNAL_SLOT_HPP #define NANO_SIGNAL_SLOT_HPP #include "nano_function.hpp" #include "nano_observer.hpp" namespace Nano { template <typename RT> class Signal; template <typename RT, typename... Args> class Signal<RT(Args...)> : private Observer { template <typename T> void insert_sf...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under 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) //======================================...
<commit_before>AliMultSelectionTask *AddTaskMultSelection( Bool_t lCalibration = kFALSE, TString lExtraOptions = "", Int_t lNDebugEstimators = 1, const TString lMasterJobSessionFlag = "") { // Creates, configures and attaches to the train a Multiplicity Selection Task // Get the pointer to the existing analysis...
<commit_before>#pragma once #include <utility> #include <vector> #include <algorithm> #include "reflection_info.hpp" #include "info_iterator.hpp" #include "api_info_types.hpp" namespace shadow { class reflection_manager { public: template <class Derived> friend class get_type_policy; template <class D...
<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>/* * 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>/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software ...
<commit_before>/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software ...
<commit_before>// -*- C++ -*- // Unit Tests for: ???? // // Copyright (C) 2011 by John Weiss // This program is free software; you can redistribute it and/or modify // it under the terms of the Artistic License, included as the file // "LICENSE" in the source code archive. // // This program is distributed in the hope ...
<commit_before>/* Copyright (c) 2020 PaddlePaddle 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 applicabl...
<commit_before>#include <ctype.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "parser.h" static paramtype paramtypes[] = { { "float", PARAM_FLOAT }, { "float2", PARAM_FLOAT2 }, { "float3", PARAM_FLOAT3 }, { "float4", PARAM_FLOAT4 }, { "float4x4", PARAM_FLOAT4x4 }, { "sampler1D", PARAM_SA...
<commit_before>#include <Arduino.h> #include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino //needed for library #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager #include <ESP8266HTTPClient.h> #include <LinkedList.h> #include ...
<commit_before>/* * cl++.cpp * * Created by eholk on 12/3/10. * */ #include "cl++.h" #include <iostream> #include <sstream> #include <cassert> #include <stdlib.h> #include <unistd.h> extern cl::device_list g_devices; using namespace std; using namespace cl; // in builtin.cpp uint64_t nanotime(); std::string...
<commit_before>#include "testing/testing.hpp" #include "partners_api/booking_api.hpp" #include "base/scope_guard.hpp" namespace { UNIT_TEST(Booking_GetHotelAvailability) { string const kHotelId = "98251"; // Booking hotel id for testing. string result; TEST(booking::RawApi::GetHotelAvailability(kHotelId, "", ...
<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>#include "pb_utils.h" #include <google/protobuf/descriptor.h> #include <boost/foreach.hpp> std::string pb2xml(const google::protobuf::Message* response){ std::stringstream buffer; std::stringstream child_buffer; const google::protobuf::Reflection* reflection = response->GetReflection(); ...
<commit_before>// // MIT License // // Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon // // 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 l...
<commit_before>#include "opencv2/highgui/highgui.hpp" #include "opencv2/calib3d/calib3d.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/features2d/features2d.hpp" #include <iostream> using namespace cv; using namespace std; void help(char** argv) { cout << "\nThis program demonstrats keypoint findi...
<commit_before>#include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <thread> #include <sys/stat.h> /*for getting file size using stat()*/ #include <sys/sendfile.h> /*for sendfile()*/ #include <fcntl.h> /*for O_RDONLY*/ #include "...
<commit_before>//===-- ELFDump.cpp - ELF-specific dumper -----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#ifndef PROTON_CPP_ENDPOINT_H #define PROTON_CPP_ENDPOINT_H /* * * 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 thi...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>// // $Id$ // #include "AVGJSScript.h" #include <iostream> using namespace std; AVGJSScript::AVGJSScript(const std::string& code, const std::string& filename, int lineno, JSContext * pJSContext) : m_code(code), m_filename(filename), m_lineno(lineno), m_pJSContext(pJSCo...
<commit_before>#ifndef ALPHA_ARRAYVOXMAP_HEADER #define ALPHA_ARRAYVOXMAP_HEADER #include "Vector3.hpp" #include <vector> namespace nt { template <class Voxel> class ArrayVoxmap { std::vector<Voxel> _voxmap; Vector3<int> _size; public: ArrayVoxmap() : _voxmap(), _size() {} ArrayVo...
<commit_before><commit_msg>If the HTTP response code is -1, don't call OCSPSetResponse because the request failed and there is no response. This fixes the crashes in OCSPTrySendAndReceive.<commit_after><|endoftext|>
<commit_before>/* * RBBallCamera.cpp * golf * * Created by Robert Rose on 9/14/08. * Copyright 2008 Bork 3D LLC. All rights reserved. * */ #include "RBBallCamera.h" RBBallCamera::RBBallCamera() : m_ball(0) , m_terrain(0) , m_height(0.0f) , m_guide(0.0f, 0.0f, 0.0f) , m_desiredGuide(0.0f, 0.0f, 0.0f) , m_de...
<commit_before>#include "glcore.hpp" #include <GL/gl3w.h> #include <string> #include <Scene/scene.hpp> #include <Utilities/exceptions.hpp> #include <Utilities/log.hpp> // TODO Find a way to list all available scenes (./Resources/Scenes/[These folders are scenes]) GLCore::GLCore(int width, int height, std::string sc...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkListSampleTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright.txt...
<commit_before>#ifndef MISC_UI_HPP #define MISC_UI_HPP #include <wx/wxprec.h> #ifndef WX_PRECOMP #include <wx/wx.h> #endif #include <wx/filename.h> #include <wx/stdpaths.h> #include <map> #include <utility> #include "Settings.hpp" #include "Log.hpp" /// Macro to build std::wstring that slic3r::log expects usi...
<commit_before>#include <iostream> #include <time.h> #include <array> #include "Brick.h" #include "GameManager.h" #include "Log.h" #include "Menu.h" #include "Timer.h" #include "levelLoader.h" GameManager::GameManager(Window* window): window(window) { currentState = STATE_MENU; _quit = false; srand(tim...
<commit_before> #include "ImageSource.h" #include "tis_logging.h" using namespace tis_imaging; ImageSource::ImageSource () : current_status(PIPELINE_UNDEFINED), n_buffers(10) {} ImageSource::~ImageSource () { device->release_buffers(); } bool ImageSource::setStatus (const PIPELINE_STATUS& status) { c...
<commit_before>#include <cmath> #include <cstdio> #include <vector> #include <list> #include <iostream> #include <algorithm> #include <memory> using namespace std; // https://www.hackerrank.com/challenges/merging-communities using people_vec_t = vector<list<int>*>; void merge(people_vec_t &people, int ii, int jj) { ...
<commit_before>#include "LLVM_Headers.h" #include "LLVM_Output.h" #include "LLVM_Runtime_Linker.h" #include "CodeGen_LLVM.h" #include "CodeGen_C.h" #include "CodeGen_Internal.h" #include <iostream> #include <fstream> #ifdef _WIN32 #ifndef NOMINMAX #define NOMINMAX #endif #include <windows.h> #else #include <stdio.h> ...
<commit_before> /* poedit, a wxWindows i18n catalogs editor --------------- transmemupd.cpp Translation memory database updater (c) Vaclav Slavik, 2001 */ #ifdef __GNUG__ #pragma implementation #endif #include <wx/wxprec.h> #ifdef USE_TRANSMEM #include <wx/string.h> #include ...
<commit_before>#ifdef USE_MEM_CHECK #include <mcheck.h> #endif #include <osg/Group> #include <osg/Notify> #include <osgDB/Registry> #include <osgDB/ReadFile> #include <osgProducer/Viewer> #include <osg/Quat> #if defined (WIN32) && !defined(__CYGWIN__) #include <winsock.h> #endif #include "receiver.h" #include "br...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include <stdlib.h...
<commit_before>#include "Default.h" #include "../Options.h" #include "../Variables/Variable.h" #include "../Value.h" QcDefault::QcDefault(const Options& iOptions, const Data& iData) : Qc(iOptions, iData) {} bool QcDefault::checkCore(const Value& iValue) const { const Variable* var = Variable::get(iValue.getVariabl...
<commit_before> #include "Program.h" #include "HeeksCNC.h" #include "RawMaterial.h" #include "interface/Property.h" #include "interface/PropertyChoice.h" #include "interface/PropertyDouble.h" #include "interface/HeeksObj.h" #include "ProgramCanvas.h" #include <wx/string.h> #include <sstream> #include <map> #include <...
<commit_before>// This file was generated by Rcpp::compileAttributes // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include <RcppArmadillo.h> #include <Rcpp.h> using namespace Rcpp; using namespace arma; // pn double pn(mat y, mat mu, mat sigma); RcppExport SEXP mcif_pn(SEXP ySEXP, SEXP muSEXP, SEXP sigma...
<commit_before>#include "instruction_list.h" #include "instruction_structs.h" #include <istream> #include <sstream> #include <memory> #include <algorithm> #include <iterator> #include <bitset> using namespace std; InstructionList::InstructionList(const InstructionManager & im) { build_assembly_table(im); bu...
<commit_before>/* * The Biomechanical ToolKit * Copyright (c) 2009-2011, Arnaud Barré * 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 re...
<commit_before>#pragma once #ifdef __APPLE__ namespace cgc1 { /** * \brief Scoped variable for locking lock. **/ template <typename T> using lock_guard_t = ::std::lock_guard<T>; /** * \brief Lockable that is a pthread mutex. **/ class pthread_mutex_t { public: /** * \brief Constructor...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2016 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<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/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/st...
<commit_before>#include "native/UriTemplate.hpp" #include "native/UriTemplateFormat.hpp" #include "native/UriTemplateValue.hpp" #include "native/helper/trace.hpp" #if NNATIVE_USE_RE2 == 1 #include <re2/re2.h> #elif NNATIVE_USE_STDREGEX == 1 #include <regex> #else #endif // elif NNATIVE_USE_STDREGEX == 1 #include <s...
<commit_before>#include "costs.hpp" #include "typo.hpp" #include <iostream> // auto reduce_typos(const std::vector<Typo> &t) -> int { // auto result = 0; // for (const auto &v : t) { // result += v.cost; // } // return result; // } // auto do_stuff(const std::string &correct, const std::string &typo) // ...
<commit_before><commit_msg>Coverity was complaining about the result of getenv not being null checked, but when I look at the code and confer with mal it looks like the offending code can just be removed (and some de-linting applied).<commit_after><|endoftext|>
<commit_before><?hh /** * Labrys * * 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><commit_msg>Fix linker error on Linux & Mac by stubbing out a function. Review URL: http://codereview.chromium.org/20100<commit_after><|endoftext|>
<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 "SkBitmap.h" #include "SkCanvas.h" #include "SkDevice.h" #include "SkMath.h" #include "SkOSFile.h" #include "SkPicture.h" #include "SkStream.h" #includ...
<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>#define BOOST_TEST_MODULE trace_data_extraction #include <boost/test/included/unit_test.hpp> #include <eosio/chain/trace.hpp> #include <eosio/chain/transaction.hpp> #include <eosio/chain/block.hpp> #include <eosio/chain/block_state.hpp> #include <eosio/trace_api_plugin/test_common.hpp> #include <eosio/...