text
stringlengths
54
60.6k
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "generic_reduce.h" #include <vespa/eval/eval/value.h> #include <vespa/eval/eval/wrap_param.h> #include <vespa/eval/eval/array_array_map.h> #include <vespa/vespalib/util/stash.h> #inc...
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "generic_reduce.h" #include <vespa/eval/eval/value.h> #include <vespa/eval/eval/wrap_param.h> #include <vespa/eval/eval/array_array_map.h> #include <vespa/vespalib/util/stash.h> #inc...
<commit_before>/** * 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 writing, software...
<commit_before>#include "stdafx.h" #include "AudioSessionEventsSink.h" HRESULT GetAudioSessionEnumerator(IAudioSessionEnumerator **ppSessionEnumerator) { if (ppSessionEnumerator == nullptr) return E_POINTER; CComPtr<IMMDeviceEnumerator> spEnumerator; IF_FAIL_RET_HR(spEnumerator.CoCreateInstance(__uuidof(...
<commit_before>// Copyright 2015, Christopher J. Foster and the other displaz contributors. // Use of this code is governed by the BSD-style license found in LICENSE.txt #include "geometry.h" #include "hcloudview.h" #include "mesh.h" #include "ply_io.h" #include "pointarray.h" #include <rply/rply.h> /// Determine wh...
<commit_before>#include <fstream> #include <sstream> #include <iostream> #include <cstdlib> #include <stdint.h> #include <cstring> #include <list> #include <cmath> std::stringstream *linestream; std::string token = ""; const char *filename; // return float from linestream inline float getFloat() { if (!getline(*lin...
<commit_before>#include "rand.hpp" #include "ui/menu.hpp" #include "ui/event.hpp" #include "ui/window.hpp" #include "ui/keyboard/keyid.h" #include "ui/keyboard/keytable.h" #include "sys/resource.hpp" #include "sys/config.hpp" #include "sys/path.hpp" #include <gtk/gtk.h> #include <gtk/gtkgl.h> #include <stdlib.h> class...
<commit_before>/// /// @file LoadBalancerP2.cpp /// @brief This load balancer assigns work to the threads in the /// computation of the 2nd partial sieve function. /// It is used by the P2(x, a) and B(x, y) functions. /// /// Copyright (C) 2021 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is di...
<commit_before>#include "Application.h" #include <cstdio> Application::Application() : Application("Untitled Window") { } Application::Application(std::string title) : Application(title, 640, 480, false) { } Application::Application(std::string title, unsigned int width, unsigned int height) : Application(ti...
<commit_before>#include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include <pcl_ros/point_cloud.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/visualization/pcl_visualizer.h> #include <boost/thread/thread.hpp> #include "mongodb_store/SetParam.h" #include <actionlib/server/simple_action...
<commit_before>#include "jni_util.h" extern "C" { void helloworld(JNIEnv *env, jobject clazz, jstring jni_str) { const char *str_utf8 = env->GetStringUTFChars(jni_str, nullptr); //LOGI(str_utf8); env->ReleaseStringUTFChars(jni_str, str_utf8); } } JNINativeMethod g_helloworld_methods[] = { {"s...
<commit_before> {{#global}} #include <Servo.h> {{/global}} /* A wrapper around the stock Servo object because we need to keep some details which the original object hides in private fields. This over-protection leads to increased RAM usage to duplicate the data. A pull request to the original library asking to...
<commit_before>/* * * Copyright (c) 2021 Project CHIP 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 * * ...
<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 "athena/home/public/home_card.h" #include "athena/activity/public/activity_factory.h" #include "athena/activity/public/activity_m...
<commit_before>// $Id$ // // Copyright (c) 2001-2006 greg Landrum and Rational Discovery LLC // // @@ All Rights Reserved @@ // #include <iostream> #include <RDBoost/Exceptions.h> #include "ExplicitBitVect.h" #include <RDGeneral/StreamOps.h> #include "base64.h" #include <sstream> #include <limits> #ifdef WIN32 #includ...
<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>// $Id$ // // Copyright (C) 2003-2006 greg Landrum and Rational Discovery LLC // // @@ All Rights Reserved @@ // #include <DataStructs/BitVects.h> #include <DataStructs/BitVectUtils.h> #include <RDBoost/Wrap.h> namespace python = boost::python; ExplicitBitVect *createFromBitString(const std::string &b...
<commit_before>/* * Copyright (C) 2003 Unai Garro <ugarro@users.sourceforge.net> */ #include "pref.h" #include "krecipes.h" #include "krecipesview.h" #include "dialogs/recipeviewdialog.h" #include "dialogs/recipeinputdialog.h" #include "dialogs/selectrecipedialog.h" #include "dialogs/ingredientsdialog.h" #include "d...
<commit_before>#include <headers/pbkdf2.h> #include <iostream> Pbkdf2::Pbkdf2(CryptoPP::HashTransformation* h):Hash(h){} void Pbkdf2::compute(unsigned int iterations = 20000) { CryptoPP::PKCS5_PBKDF2_HMAC<CryptoPP::SHA1> pbkdf2; int passlen = plaintext.size(); int slen = salt.size(); byte password[...
<commit_before>#include <iostream> #include <string> #include <algorithm> #include <vector> #include <unordered_set> using namespace std; namespace leetcode { // Task: https://leetcode.com/problems/two-sum/ // Time to first submit: 20 // Time to last submit: 120 // Number of submits: 10 (did several optimi...
<commit_before>// $Id$ // // Copyright (C) 2003-2008 Greg Landrum and Rational Discovery LLC // // @@ All Rights Reserved @@ // #include <GraphMol/RDKitBase.h> #include <GraphMol/SmilesParse/SmilesParse.h> #include <GraphMol/SmilesParse/SmilesWrite.h> #include <GraphMol/Fingerprints/Fingerprints.h> #include <DataS...
<commit_before>/*============================================================================= Library: CppMicroServices Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ex...
<commit_before>#pragma once #include <tuple> #include <utility> #include <type_traits> #include <agency/coordinate.hpp> #include <agency/detail/tuple_utility.hpp> #include <agency/detail/point_size.hpp> #include <agency/detail/tuple.hpp> namespace agency { namespace detail { namespace shape_cast_detail { template<c...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cairo_spritecanvas.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2007-07-17 14:21:38 $ * * The Contents of this fil...
<commit_before>/* * Copyright 2017-2019 Baidu 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 applicabl...
<commit_before>#include <vector> #include <string> #include <fstream> #include <iostream> #include <sstream> #include <map> #include <stdlib.h> #include <cmath> #include <iomanip> //typedefs typedef std::vector<std::vector<std::string> > STR_DOUBLE_VEC; //for the parsing typedef std::map<std::string, int> STR_INT_MAP;...
<commit_before>// Copyright 2016 The SwiftShader 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 // // Un...
<commit_before>/*! * \odom_covariance_converter.cpp * \brief Adds covariance matrix to odometry message * * odom_covariance_converter adds a covariance matrix to odometry messages so they are compatible with robot_pose_efk. * * \author Steven Kordell, WPI - spkordell@wpi.edu * \date June 16, 2014 */ #include <...
<commit_before>// Barst.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "cpl defs.h" #include "named pipes.h" #include "Log buffer.h" #include "mem pool.h" #include "ftdi device.h" #include "rtv device.h" #include "serial device.h" CMainManager::CMainManager() : CDevice(_T...
<commit_before>//===- ExecutionEngineTest.cpp - Unit tests for ExecutionEngine -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "AudioRecorder.h" #include <Tools/ThreadUtil.h> #include "Tools/NaoTime.h" #include <chrono> #include <pulse/error.h> using namespace std; namespace naoth { AudioRecorder::AudioRecorder() : audioReadBuffer(BUFFER_SIZE_RX, 0), recordingTimestamp(0), capture(false), run...
<commit_before>/* Basic Server code for CMPT 276, Spring 2016. */ #include <exception> #include <iostream> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector> #include <string> #include <cpprest/base_uri.h> #include <cpprest/http_listener.h> #include <cpprest/json.h> #...
<commit_before>/* ======================================================================= Copyright (c) 2011-2014, Institute for Microelectronics, TU Wien http://www.iue.tuwien.ac.at ----------------- ViennaMini - The Vienna Device Simulator ...
<commit_before>#include <gtest/gtest.h> TEST(SimpleTest, TrueIsAlwaysAndForeverWillBeTrue) { EXPECT_EQ(true, true); } int main(int ac, char* av[]) { testing::InitGoogleTest(&ac, av); return RUN_ALL_TESTS(); }<commit_msg>Build should fail<commit_after>#include <gtest/gtest.h> TEST(SimpleTest, TrueIsAlwaysAndForeve...
<commit_before>// 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. // // This library is distributed in the hope that it will be useful // but WITH...
<commit_before>/* Copyright (c) 2016 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. Indicesou may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required...
<commit_before>#include <iostream> #include <fstream> #include <cctype> #include <string> #include <vector> using namespace std; int main(int argc, char *argv[]) { if(argc==1) //quit if no argument { cerr<<"Usage: "<<argv[0]<<" filename[s]\n"; exit(EXIT_FAILURE); } string str; for(int file=1;file<argc;f...
<commit_before>/* * Copyright (c) 2014, Ford Motor Company * 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>/* * qihdr.cpp * * Created by Tobias Wood on 11/06/2015. * Copyright (c) 2015 Tobias Wood. * * 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/....
<commit_before>/* * 2014+ Copyright (c) Andrey Kashin <kashin.andrej@gmail.com> * All rights reserved. * * This program 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 of the License, o...
<commit_before>/* * Copyright(c) Records For Living, Inc. 2004-2011. All rights reserved */ #include "Stroika/Foundation/StroikaPreComp.h" #include <iostream> #include <sstream> #include "Stroika/Foundation/Debug/Assertions.h" #include "Stroika/Foundation/Debug/Trace.h" #include "Stroika/Foundation/Execution/Sleep...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2020. All rights reserved */ #include "../StroikaPreComp.h" #include <algorithm> #include <cstdlib> #include <sstream> #include "../../Foundation/Characters/CString/Utilities.h" #include "../../Foundation/Characters/Format.h" #include "../../Foundation/...
<commit_before>/* This file is part of the KDE project * * Copyright (C) 2014 Dominik Haumann <dhauumann@kde.org> * * This library 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...
<commit_before>/* ------------------------------------------------------------------------ */ /* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); y...
<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>/* * Copyright (c) 2019 Pedro Falcato * This file is part of Onyx, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ #include <stdio.h> #include <cpuid.h> #include <onyx/cpu.h> #include <onyx/x86/kvm.h> #include <onyx/x86/msr.h> #include <on...
<commit_before>#include "scanscalar.h" #include "scanner.h" #include "exp.h" #include "exceptions.h" #include "token.h" namespace YAML { // ScanScalar // . This is where the scalar magic happens. // // . We do the scanning in three phases: // 1. Scan until newline // 2. Eat newline // 3. Sca...
<commit_before>#include <shoveler.h> #include <improbable/standard_library.h> #include <iostream> #include <unordered_map> using shoveler::Client; using shoveler::Color; using shoveler::Drawable; using shoveler::DrawableType; using shoveler::Material; using shoveler::MaterialType; using shoveler::Model; using shoveler...
<commit_before>#include "BetaPrimeRand.h" BetaPrimeRand::BetaPrimeRand(double shape1, double shape2) { SetParameters(shape1, shape2); } std::string BetaPrimeRand::Name() const { return "Beta Prime(" + toStringWithPrecision(GetAlpha()) + ", " + toStringWithPrecision(GetBeta()) + ")"; } void BetaPrimeRand::Set...
<commit_before>/*! * \file * \brief Adds/builds and checks a Cyclic Redundancy Check (CRC) for a set of information bits. * * \section LICENSE * This file is under MIT license (https://opensource.org/licenses/MIT). */ #ifndef CRC_HPP_ #define CRC_HPP_ #include <string> #include <vector> #include <stdexcept> #in...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_recovery_ffdc_pgpe...
<commit_before>#include "SpatiaLiteDB.h" #include <iostream> #include <algorithm> //////////////////////////////////////////////////////////////////// SpatiaLiteDB::Point::Point(double x, double y, std::string label): _x(x), _y(y), _label(label) { } ////////////////////////////////////////////////////////////////////...
<commit_before>#include "workerCL.hpp" #define __CL_DEFINE_EXCEPTIONS #include <CL/cl.hpp> #include <vector> #include <string> #include <iostream> #include "log.hpp" #include "reads.hpp" using namespace std; WorkerCL::WorkerCL(size_t platform_id, size_t device_id){ /* GPU environment preparation */ //Get plat...
<commit_before>#include "itkImage.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkImageRegionIterator.h" #include "itkRGBPixel.h" #include "itkRGBAPixel.h" #include "itkRedColormapFunctor.h" #include "itkGreenColormapFunctor.h" #include "itkBlueColormapFunctor.h" #include "itkGreyColorm...
<commit_before>/* Copyright 2009 Thomas McGuire <mcguire@kde.org> This library 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 ) version 3 o...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: b2dtuple.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: obo $ $Date: 2006-09-17 08:06:26 $ * * The Contents of this file are mad...
<commit_before>/* KPilot ** ** Copyright (C) 1998-2001 by Dan Pilone ** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> ** ** This defines the "ActionQueue", which is the pile of actions ** that will occur during a HotSync. */ /* ** This program is free software; you can redistribute it and/or modi...
<commit_before>#include <iostream> #include <unistd.h> #include "benchmark.h" #include "simdjson.h" SIMDJSON_PUSH_DISABLE_ALL_WARNINGS // #define RAPIDJSON_SSE2 // bad // #define RAPIDJSON_SSE42 // bad #include "rapidjson/document.h" #include "rapidjson/reader.h" // you have to check in the submodule #include "rapid...
<commit_before>#include <iostream> #include <unistd.h> #include "benchmark.h" #include "simdjson.h" SIMDJSON_PUSH_DISABLE_ALL_WARNINGS // #define RAPIDJSON_SSE2 // bad // #define RAPIDJSON_SSE42 // bad #include "rapidjson/document.h" #include "rapidjson/reader.h" // you have to check in the submodule #include "rapid...
<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 "base/command_line.h" #include "base/json/json_writer.h" #include "base/string_number_conversions.h" #include "base/utf_string...
<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/net/metadata_url_request.h" #include "base/file_path.h" #include "base/message_loop.h" #include "build/build_...
<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/task_manager.h" #include "app/l10n_util.h" #include "base/file_path.h" #include "chrome/browser/browser.h" #i...
<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 "chrome/browser/ui/webui/inline_login_ui.h" #include "base/bind.h" #include "base/command_line.h" #include "base/memory/scoped_pt...
<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/views/browser_bubble.h" #include "app/l10n_util_win.h" #include "chrome/browser/views/frame/browser_view.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 "jingle/notifier/communicator/gaia_token_pre_xmpp_auth.h" #include <algorithm> #include "talk/base/socketaddress.h" #include...
<commit_before>/** \addtogroup examples * @{ * \defgroup btwn_central betweenness centrality * @{ * \brief betweenness centrality computation */ #include <ctf.hpp> #include <float.h> using namespace CTF; //structure for regular path that keeps track of the multiplicity of paths class path { public: i...
<commit_before>#include <fstream> #include <iostream> #include <string> using namespace std; int **createTable() { ifstream fileWithTable("table.txt"); int **table = new int*[3]; for (int i = 0; i < 3; i++) { table[i] = new int[4]{0}; } for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { fileW...
<commit_before>/* Скопировать один файл в другой. Имена файлов передаются из командной строки. Пример использования: 8_2.exe source_file1.txt file2.txt */ #include <iostream> #include <cstdlib> #include <fstream> using namespace std; void error(const char *s, const char *s2 = "") { cerr << s << "...
<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>#include "our_list.h" //Insert function void insert(Our_list* &l1,int ID_value) //Not tested { Our_list *add = new Our_list; add->next = l1; add->ID = ID_value; } void insert(Our_list* &l1,Our_list * el) //Not tested { el->next = l1; } int insert(Our_list* &l1,int ID_value,int itm_nr...
<commit_before>// ---------------------------------------------------------------------------- // PSP Player Emulation Suite // Copyright (C) 2006 Ben Vanik (noxa) // Licensed under the LGPL - see License.txt in the project root for details // ------------------------------------------------------------------------...
<commit_before>//===-- ProcessFreeBSD.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>// 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 "base/command_line.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/st...
<commit_before><?hh abstract class BaseStore { protected $class; protected $db; public function __construct(string $collection = null, string $class = null) { if (defined('static::COLLECTION') && defined('static::MODEL')) { $collection = static::COLLECTION; $class = static::MODEL; } inva...
<commit_before>#include <xpcc/architecture/platform.hpp> #include "../stm32f4_discovery.hpp" #include <xpcc/processing/timeout.hpp> #include <xpcc/processing/protothread.hpp> #include <xpcc/driver/temperature/tmp102.hpp> #include <xpcc/io/iostream.hpp> xpcc::IODeviceWrapper< Usart2, xpcc::IOBuffer::BlockIfFull > dev...
<commit_before>/* * Copyright (C) 2013 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 l...
<commit_before>#include <iostream> #include <unordered_map> #include <tuple> #include <exception> #include <vector> namespace TM { enum SHIFT { LEFT = -1, RIGHT = 1, HOLD = 0 }; bool operator==(const std::tuple<int, char> &a, const std::tuple<int, char> &b) { return std::get<0>(a) ==...
<commit_before>/*********************************************************************************** ** MIT License ** ** ** ** Copyright (c) 2018 Victor DENIS (victordenis01...
<commit_before>//===-------- ExponentialGrowthAppendingBinaryByteStream.cpp --------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/* * Copyright 2010-2012 Esrille 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 applica...
<commit_before>#include "Time.h" #include "Singleton.h" #if _WIN32 #include <Windows.h> #else // _WIN32 #include <time.h> #endif // _WIN32 namespace saba { namespace { #if _WIN32 class Time { public: Time() { QueryPerformanceFrequency(&m_freq); } double GetTime() const { LARGE_INTEGE...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * CompressMGARD.cpp : * * Created on: Aug 3, 2018 * Author: William F Godoy godoywf@ornl.gov */ #include "CompressMGARD.h" #include <cstring> //std::memcpy extern "C...
<commit_before>/* * Jamoma OSC Receiver * Copyright © 2011, Théo de la Hogue * * License: This code is licensed under the terms of the "New BSD License" * http://creativecommons.org/licenses/BSD/ */ #include "TTOscSocket.h" TTPtr TTOscSocketListener(TTPtr anArgument) { TTOscSocketPtr anOscSocket= (TTOscSock...
<commit_before>/* * Copyright 2004 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the * U.S. Government. Redistribution and use in source and binary forms, with * or without modification, are permitted provided that th...
<commit_before>#include "SparkFunCCS811.hpp" #include "cox.h" CCS811Core::CCS811Core( uint8_t inputArg ) : I2CAddress(inputArg){} CCS811Core::status CCS811Core::readRegister(uint8_t offset, uint8_t* outputPointer){ //Return value uint8_t result=0; uint8_t numBytes = 1; Wire.beginTransmission(I2CAddress); Wire.w...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestCubeAxes3.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>// Copyright (c) 2014, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // Copyrig...
<commit_before>// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2010, Knut Reinert, FU Berlin // All rights reserved. // // Redist...
<commit_before>// @(#) $Id$ /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * ALICE Experiment at CERN, All rights reserved. * * ...
<commit_before>//===--- Comment.cpp - Comment AST node implementation --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "StorageFolding.h" #include "IROperator.h" #include "IRMutator.h" #include "Simplify.h" #include "Bounds.h" #include "IRPrinter.h" #include "Debug.h" #include "Derivative.h" namespace Halide { namespace Internal { using std::string; using std::vector; using std::map; // Fold the storage of a ...
<commit_before>// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2010, Knut Reinert, FU Berlin // All rights reserved. // // Redist...
<commit_before>// $Id$ //************************************************************************** //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* ...
<commit_before>/* Copyright (C) 2014-2017 Alexandr Akulich <akulichalexander@gmail.com> This file is a part of TelegramQt library. 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 Foundatio...
<commit_before>// // TIA.hpp // Clock Signal // // Created by Thomas Harte on 28/01/2017. // Copyright © 2017 Thomas Harte. All rights reserved. // #ifndef TIA_hpp #define TIA_hpp #include <cstdint> #include "../CRTMachine.hpp" namespace Atari2600 { class TIA { public: TIA(); ~TIA(); enum class OutputMo...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestMySQLDatabase.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#include "RaZ/RaZ.hpp" using namespace std::literals; constexpr unsigned int sceneWidth = 1280; constexpr unsigned int sceneHeight = 720; constexpr std::string_view geomFragSource = R"( struct Material { vec3 baseColor; vec3 emissive; float metallicFactor; float roughnessFactor; ...
<commit_before>#include <cstdio> #include <cstring> #include <iostream> #include <memory> #include "block.hpp" #include "functors.hpp" #include "hash.hpp" #include "slice.hpp" #include "threadpool.hpp" int main (int argc, char** argv) { std::unique_ptr<processFunctor_t> delegate; size_t memoryAlloc = 200 * 1024 * 1...
<commit_before>//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------...
<commit_before>#ifndef __Z2H_PARSER__ #define __Z2H_PARSER__ = 1 #include <cmath> #include <string> #include <vector> #include <fstream> #include <iostream> #include <stddef.h> #include <sys/stat.h> #include <functional> #include "token.hpp" #include "symbol.hpp" #include "binder.hpp" using namespace std::placeholde...