text
stringlengths
54
60.6k
<commit_before><commit_msg>Replace size_t -> LexStateId in LexTableBuilder::remove_duplicate_states<commit_after><|endoftext|>
<commit_before>//======================================================================= // Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include "levelset.h" #include <algorithm> #include <math.h> #include <QApplication> #include <QDir> #include <QFileDialog> #include <QGraphicsScene> #include <QImage> #include <QLabel> #include <QPixmap> #include <QString> MainWindow::MainWindow(QWid...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "datasetcollection.h" #include "fnet_dataset.h" #include <vespa/searchcore/fdispatch/common/search.h> #include <vespa/fnet/fnet.h> #include <vespa/log/log.h> LOG_SETUP(".searc...
<commit_before>#pragma once #include <unordered_map> #include <memory> #include <type_traits> #include <tuple> namespace kgr { template<typename... Types> struct Dependency { using DependenciesTypes = std::tuple<Types...>; }; using NoDependencies = Dependency<>; struct Single { using ParentTypes = std::tuple<>; ...
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "summaryengine.h" #include <vespa/vespalib/util/exceptions.h> #include <vespa/log/log.h> LOG_SETUP(".proton.summaryengine.summaryengine"); using namespace search::engine; usin...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLPageExport.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: rt $ $Date: 2005-09-09 14:35:25 $ * * The Contents of this file are...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hfi_typetext.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-07 17:49:26 $ * * The Contents of this file are m...
<commit_before>#include "TwitterApp.h" #include "ofxXmlSettings.h" ofEvent<TwitterAppEvent> twitter_app_dispatcher; // Init // ------------------------------------- TwitterApp::TwitterApp() :stream(twitter) ,uploader(*this) ,image_writer(*this) ,initialized(false) { } TwitterApp::~TwitterApp() { onTwitterStre...
<commit_before>/* This file is part of kdepim. Copyright (c) 2004 Tobias Koenig <tokoe@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 th...
<commit_before>#pragma once #include <cc/node.hpp> namespace pip { // The kinds of types. enum type_kind : int { tk_int, tk_range, tk_wild, tk_miss, tk_port, tk_loc, }; /// Represents a type. struct type : cc::node { type(type_kind k) : cc::node(k, {}) { } }; ...
<commit_before>#include "pch.h" #include "Monster.h" bool Arthas::Monster::init() { if (!Component::init()) { return false; } return true; } void Arthas::Monster::update(float dTime) { } void Arthas::Monster::enter() { } void Arthas::Monster::exit() { } <commit_msg>Monster 타입 추가<commit_after>#include "pch.h...
<commit_before>// Scalable cached reference counts // // This implements space-efficient, scalable reference counting using // per-core reference delta caches. Increment and decrement // operations are expected to be core-local, especially for workloads // with good locality. In contrast with most scalable reference ...
<commit_before>/* This source file is part of the Tomviz project, https://tomviz.org/. It is released under the 3-Clause BSD License, see "LICENSE". */ #include "ctvlib.h" #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include "eigenConversion.h" namespace py = pybind11; PYBIND11_PLUGIN(ctvlib) { py...
<commit_before>#if defined(_WIN64) || defined(__MINGW32__) #include "callingconvention.h" #include "../compiler/callingconvention.h" #include "../compiler/jit.h" #include "../core/function.h" #include "../type/type.h" #include <iostream> namespace { //The maximum number of register for argument passing const int NUM...
<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. // A general interface for filtering and only acting on classes in Chromium C++ // code. #include "ChromeClassTester.h" #include <sys...
<commit_before>/** * @file typedef.hpp * @brief COSSB Type definitions * @author Byunghun Hwang<bhhwang@nsynapse.com> * @date 2015. 6. 21 * @details */ #ifndef _COSSB_TYPEDEF_HPP_ #define _COSSB_TYPEDEF_HPP_ #include <boost/thread.hpp> #include <boost/shared_ptr.hpp> using namespace boost; namespace cos...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkFEMSolverCrankNicolson.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. Se...
<commit_before><commit_msg>cppcheck: variableScope<commit_after><|endoftext|>
<commit_before>/** * @file Cosa/IOBuffer.hh * @version 1.0 * * @section License * Copyright (C) 2013, Mikael Patel * * 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 * ver...
<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 "quic/tools/quic_memory_cache_backend.h" #include <vector> #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #in...
<commit_before>/****** Run RDataFrame tests both with and without IMT enabled *******/ #include <gtest/gtest.h> #include <ROOT/RDataFrame.hxx> using namespace ROOT; using namespace ROOT::RDF; using namespace ROOT::VecOps; static const std::string DisplayPrintDefaultRows( "b1 | b2 | b3 | \n0 | 1 | 2.0000...
<commit_before>#include "ROOT/RDataFrame.hxx" #include "ROOT/TSeq.hxx" #include "TROOT.h" #include "TSystem.h" #include "TFile.h" #include "TChain.h" #include "TTree.h" #include "gtest/gtest.h" // fixture that creates two files with two trees of 10 events each. One has branch `x`, the other branch `y`, both ints. clas...
<commit_before>#include "game.hpp" int Game::startGame() { std::string str; uciHandler("position startpos"); while(true) { std::getline(std::cin, str); if(!uciHandler(str)) { return 0; }; } } int64_t Game::mtdf(int64_t f, int depth) { int64_t bound[2] = {-WHITE_WIN, +WHITE_WIN}; ...
<commit_before>#include "dataset.h" #include <cmath> #include <vector> #include <Eigen/Dense> #include "eigen_wrappers.h" namespace InSituFTCalibration { /** * Structure representing a joint ft * and accelerometer measurement. */ struct ForceTorqueAccelerometerMeasurement { Eigen::Matrix<double,6,1> ft...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2006 Torus Knot Software Ltd Also see acknowledgements in Readme.html This pro...
<commit_before>#include <map> #include <iostream> #include "Shell.h" #include "PadCommand.h" #include "joystick/Joystick.h" #include <json/json.h> static std::string file_get_contents(std::string path) { std::ifstream ifs(path.c_str()); std::string content((std::istreambuf_iterator<char>(ifs)), (st...
<commit_before>/* 使用蒙特卡罗算法计算出的π的值 */ #include <stdlib.h> #include <stdio.h> #define BITS 2000 int a=10000,b,c=BITS*7/2,d,e,f[BITS*7/2+1],g; int main() { for(;b-c;) f[b++]=a/5; for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a) for(b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b); //getchar(); return 0;...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2017 Francois Beaune, The appleseedhq O...
<commit_before>//----------------------------------------------------------------------------// // _ _ ____ ___ ____ // // | \ | |___ \ / _ \| __ ) ___ _ _ ____ // // | \| | __) | | | | _ \ / _ \| | | |_ / ...
<commit_before>/* Copyright (c) 2016, oasi-adamay 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 of conditions and the...
<commit_before>#ifndef TCL_EXECUTE_HPP #define TCL_EXECUTE_HPP #include <typeinfo> #include "CLInformation.hpp" #include "CLSourceArray.hpp" #include "CLExecuteProperty.hpp" #include "CLDeviceInformation.hpp" #include "CLWorkGroupSettings.hpp" #include "CLBuffer.hpp" namespace tcl { class CLExecute { private: C...
<commit_before>/* * WIN32 Events for POSIX * Author: Mahmoud Al-Qudsi <mqudsi@neosmart.net> * Copyright (C) 2011 by NeoSmart Technologies * This code is released under the terms of the MIT License */ #include "pevents.h" #include <sys/time.h> #ifdef WFMO #include <vector> #endif namespace neosmart { #ifdef WFMO ...
<commit_before>#ifdef WITH_BASISU #ifdef __clang__ #pragma GCC diagnostic ignored "-Wunknown-warning-option" #pragma GCC diagnostic ignored "-Wuninitialized-const-reference" #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wclass-memaccess" #pragma GCC diagnostic ignored "-Wdeprecated-copy" #pragma GCC diagnos...
<commit_before>#ifndef POWERSET_HPP_ #define POWERSET_HPP_ #include "iterbase.hpp" #include "combinations.hpp" #include <vector> #include <initializer_list> #include <utility> #include <iterator> namespace iter { template <typename Container, typename CombinatorType= decltype(comb...
<commit_before>/* * WIN32 Events for POSIX * Author: Mahmoud Al-Qudsi <mqudsi@neosmart.net> * Copyright (C) 2011 - 2012 by NeoSmart Technologies * This code is released under the terms of the MIT License */ #include "pevents.h" #include <assert.h> #include <errno.h> #include <sys/time.h> #ifdef WFMO #include <vec...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" #include "SkPath.h" #include "SkRegion.h" #include "SkShader.h" sta...
<commit_before>// $Id$ // // Copyright (C) 2003-2010 Greg Landrum and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. ...
<commit_before>// Natron // /* 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/. */ /* *Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012. *contact: immarespond at gmail ...
<commit_before>#ifndef __AIRSCHED_BOM_SEGMENTPATHPERIODKEY_HPP #define __AIRSCHED_BOM_SEGMENTPATHPERIODKEY_HPP // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <iosfwd> #include <string>...
<commit_before>#include "types.h" #include "stat.h" #include "fcntl.h" #include "user.h" #include "lib.h" #include "amd64.h" #include "ipc.h" // XXX(sbw) add a memlayout.h? #define KSHARED 0xFFFFF00000000000ull #define FSIZE (64 << 10) #define BSIZE 4096 #define PSIZE (4*BSIZE) static char buf[BSIZE]; struct ipcctl...
<commit_before><commit_msg>Fix wrong variable name in Smooth filter parameters class.<commit_after><|endoftext|>
<commit_before>/* * Copyright 2004-2015 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 L...
<commit_before>/******************************************************************************* * CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps * * Copyright (C) 2015, IGG Group, ICube, University of Strasbourg, France * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unotunnelhelper.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-09 09:40:10 $ * * The Contents of this file ar...
<commit_before>/////////////////////////////////////////////////////////////////////////// // // NAME // FeatureAlign.cpp -- image registration using feature matching // // SEE ALSO // FeatureAlign.h longer description // // Based on code by Richard Szeliski, 2001. // (modified for CSE576 Spring 2005, and for CS...
<commit_before><commit_msg>One line docu to save me code reading the next time ;-)<commit_after><|endoftext|>
<commit_before>// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2016 Intel Corporation. All Rights Reserved. #include "rs_sdk_version.h" #include "rs/utils/log_utils.h" #include "rs/core/status.h" #include "fstream" #include "stdio.h" #include <string> #include <iostream> #include <string.h> ...
<commit_before>#include "LinuxContainer.h" void LinuxContainer::mainContainer(int argc, char** argv) { Singleton<ObserverDirector>::get().init(); WindowGL* glWindow = new WindowGL(argc, argv); RendererGL* glRenderer = new RendererGL(); InputGL* input = new InputGL(); CameraGL* camGL = new CameraGL( (float)F_O...
<commit_before>#include "xchainer/routines/creation.h" #include <algorithm> #include <cmath> #include <cstddef> #include <cstdint> #include <memory> #include <type_traits> #include <utility> #include "xchainer/array.h" #include "xchainer/device.h" #include "xchainer/dtype.h" #include "xchainer/scalar.h" #include "xch...
<commit_before>/* Copyright 2008 Brain Research Institute, Melbourne, Australia Written by J-Donald Tournier, 27/06/08. This file is part of MRtrix. MRtrix 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 Sof...
<commit_before>/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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 ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: componentdefn.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 04:13:55 $ * * The Contents of this file are ...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2008 Thomas Thrainer <tom_t@gmx.at> 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 2 of the License, or (...
<commit_before>#pragma once //=====================================================================// /*! @file @brief ファイル書き込みクラス@n Copyright 2017 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include <cstdio> #inc...
<commit_before>/* Copyright (C) 2004-2006 MySQL AB 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; version 2 of the License. This program is distributed in the hope that it will be usefu...
<commit_before>//=- ClangSACheckersEmitter.cpp - Generate Clang SA checkers tables -*- 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>The ODG should have office:drawing after office:body, not office:graphics<commit_after><|endoftext|>
<commit_before>#include <stdint.h> #include <stdlib.h> #include <unwind.h> #include <string.h> #include <stdio.h> #include "llvm/Support/Dwarf.h" #include "RuntimeType.h" struct ExceptionType { RuntimeTypeInfo* runtimeTypeInfo; struct _Unwind_Exception unwindException; }; int64_t exceptionBaseFromUnwindOffset = (...
<commit_before> #include <togo/core/error/assert.hpp> #include <togo/core/utility/utility.hpp> #include <togo/core/log/log.hpp> #include <togo/core/collection/array.hpp> #include <togo/core/string/string.hpp> #include <togo/core/io/memory_stream.hpp> #include <togo/core/io/io.hpp> #include <quanta/core/object/object.h...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkProgressAccumulator.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See I...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xtextedt.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: obo $ $Date: 2006-09-17 14:49:23 $ * * The Contents of this file are mad...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: borderconn.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2007-06-27 16:50:10 $ * * The Contents of this file are mad...
<commit_before>/** @file A brief file description @section license License 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 fi...
<commit_before>#define _USE_MATH_DEFINES // for math constants in C++ #include <opencv2\calib3d\calib3d.hpp> #include "DepthToPointTranslator1.h" DepthToPointTranslator1::DepthToPointTranslator1(void) { } DepthToPointTranslator1::~DepthToPointTranslator1(void) { } oclMat DepthToPointTranslator1::translateDepthToP...
<commit_before>/* Conrad 'Condzi' Kubacki 2017 https://github.com/condzi */ #pragma once #include <algorithm> #include <cmath> #include <cinttypes> // std::move #include <utility> // For fancy AsString method. #include <string> // Conversion to SFML type vector. #include <SFML/System/Vector2.hpp> namespace con { ...
<commit_before>#include <iostream> #include <string> #include <stdexcept> #include "grammar.hpp" void gen_seq(Grammar &g, unsigned k, const std::string& str); int main(int argc, char **argv) { int n; if (argc < 3 || (n = std::stoi(argv[1])) < 0) { std::cerr << "Usage: " << argv[0] << " number_of_itera...
<commit_before>#include "ModI2CHost.h" CModI2CHost::CModI2CHost(void) { // nothing } void CModI2CHost::Begin(void) { CModTemplate::Begin(); ModGUID = 8; // GUID of this sspecific mod if (Global.HasUSB) // i2c host only activates if this device is plugged into the PC { Wire.begin(); } } void CModI2CH...
<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/autofill/autofill_metrics.h" #include "base/logging.h" #include "base/metrics/histogram.h" AutofillMetrics::...
<commit_before>#include "xchainer/python/array.h" #include <algorithm> #include <cstdint> #include <string> #include <vector> #include <pybind11/numpy.h> #include <pybind11/operators.h> #include <nonstd/optional.hpp> #include "xchainer/array.h" #include "xchainer/array_index.h" #include "xchainer/backward.h" #includ...
<commit_before>/* FILE INFORMATION File: register.cpp Authors: Matthew Cole <mcole8@binghamton.edu> Brian Gracin <bgracin1@binghamton.edu> Description: Contains the Registers class, which simulates operation of a register file. */ #include "register.h" Registers::Registers(){ this->initialize(); } /...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>// Copyright 2016 <Morgan Rockett> #include <stdio.h> #include <stdlib.h> #include <iostream> #include "Eigen/Dense" #include "gtest/gtest.h" #include "include/cpu_operations.h" #include "include/matrix.h" TEST(Mutilply, ScalarMatrixMult) { int scalar; scalar = 3; Eigen::MatrixXi a(3, 3); a << 0,...
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/debugger/devtools_manager.h" #include "base/message_loop.h" #include "chrome/browser/debugger/devtools_window...
<commit_before>#include <common/buffer.h> #include <common/endian.h> #include <xcodec/xcodec.h> #include <xcodec/xcodec_cache.h> #include <xcodec/xcodec_encoder.h> #include <xcodec/xcodec_hash.h> struct candidate_symbol { bool set_; unsigned offset_; uint64_t symbol_; }; XCodecEncoder::XCodecEncoder(XCodecCache *...
<commit_before>// -*- coding: utf-8 -*- /** \example mujinmovetool.cpp Shows how to move tool to a specified position and orientation in two ways. example1: mujinmovetool --controller_hostname=yourhost --robotname=yourrobot --goals=700 600 500 0 0 180 example2: mujinmovetool --controller_hostname=yourhost ...
<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/location_bar_view_gtk.h" #include <string> #include "app/resource_bundle.h" #include "base/basictypes.h"...
<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><commit_msg>coverity#1266486 Untrusted loop bound<commit_after><|endoftext|>
<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/webdata/web_intents_table.h" #include "base/logging.h" #include "base/utf_string_conversions.h" #include "goo...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: docstdlg.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: obo $ $Date: 2006-09-16 22:49:09 $ * * The Contents of this file are mad...
<commit_before>#include "v_avl.h" #ifndef VOS_OK #define VOS_OK (0) #endif #ifdef __cplusplus #if __cplusplus extern "C" { #endif /* __cpluscplus */ #endif /* __cpluscplus */ /*lint -save -e818*/ /* OSE-684 y00165807 */ unsigned int VOS_V_AVLInit(const char *pscKey) { (void)pscKey; return VOS_OK; } unsign...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #include "cling/In...
<commit_before>/* * log.cpp - enable the log system * * Copyright (C) 2011-2014 Intel Corporation * Author: Xin Tang <xin.t.tang@intel.com> * * 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 So...
<commit_before>#include <QObject> #include <QTest> #include <QDebug> #include "../Generator.hpp" const QString c_typesSection = QStringLiteral("---types---"); const QString c_functionsSection = QStringLiteral("---functions---"); static QByteArray generateTextSpec(const QStringList &types, const QStringList &function...
<commit_before><commit_msg>gpu: Removed unused class declaration.<commit_after><|endoftext|>
<commit_before>/* This file is part of the KDE libraries Copyright (C) 2007 Laurent Montel <montel@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 ...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2018 Nathan Osman * * 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 *...
<commit_before>/* * Copyright (C) 2013 midnightBITS * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * mod...
<commit_before>#include "KernelJsonImporter.h" #include <glkernel/Kernel.h> #include <cppassist/logging/logging.h> void forEachCell(cppexpose::VariantArray * depthArray, std::function<void(const cppexpose::Variant&)> lambda) { if (!depthArray) { cppassist::error() << "Malformed kernel input."; } ...
<commit_before>// Copyright 2011 Google Inc. All Rights Reserved. #include <stdio.h> #include "UniquePtr.h" #include "class_linker.h" #include "dex_verifier.h" #include "object.h" #include "jni.h" namespace art { #define REG(method, reg_bitmap, reg) \ ( ((reg) < (method)->NumRegisters()) && ...
<commit_before>// This file is part of hdf5_handler: an HDF5 file handler for the OPeNDAP // data server. // Copyright (c) 2011-2016 The HDF Group, Inc. and OPeNDAP, Inc. // // This is free software; you can redistribute it and/or modify it under the // terms of the GNU Lesser General Public License as published by th...
<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 "net/third_party/quiche/src/quic/test_tools/simulator/quic_endpoint.h" #include "net/third_party/quiche/src/quic/platform/api...
<commit_before>#include <Halide.h> #include <stdio.h> using namespace Halide; int main(int argc, char **argv) { Func f, g, h, j; Var x, y; f(x, y) = x + y; g(x, y) = cast<float>(f(x, y) + f(x+1, y)); h(x, y) = f(x, y) + g(x, y); j(x, y) = h(x, y) * 2; f.compute_root(); g.comput...
<commit_before>/* Software License Agreement (BSD License) * * Copyright (c) 2014, Robotiq, 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 ...
<commit_before>#include <iostream.h> #include <pwd.h> #include "condor_common.h" #include "_condor_fix_resource.h" #include "condor_config.h" #include "condor_q.h" #include "proc_obj.h" #include "condor_attributes.h" #include "files.h" extern "C" SetSyscalls(){} extern "C" int float_to_rusage (float, struct rusage *);...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File ErrorUtil.hpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronautics, Imp...
<commit_before>/************************************************************************* * * $RCSfile: dependencies.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2004-09-08 16:27:10 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<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/command_line.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/string_util.h" #include "...