text
stringlengths
54
60.6k
<commit_before>/** * \file * \brief Definitions of clocks for STM32L0 * * \author Copyright (C) 2017 Cezary Gapinski cezary.gapinski@gmail.com * * \par License * 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 ca...
<commit_before>//===- AnalysisOrderChecker - Print callbacks called ------------*- 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) 2020, Timothy Stack * * 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>//////////////////////////////////////////////////////////// // // DAGON - An Adventure Game Engine // Copyright (c) 2011-2014 Senscape s.r.l. // All rights reserved. // // 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 ...
<commit_before>#include <iostream> #include <string> #include "Target.h" #include "Debug.h" #include "Error.h" #include "LLVM_Headers.h" #include "Util.h" namespace Halide { using std::string; using std::vector; namespace { #ifndef __arm__ #ifdef _MSC_VER static void cpuid(int info[4], int infoType, int extra) { ...
<commit_before> #include <libclientserver.h> void Timers::Start() { m_run = true; Thread::Start(); } void Timers::Stop() { if (m_timers.size() != 0) abort(); //We still have active timers m_run = false; m_mutex.WakeUp(); //Tell thread to wakeup and exit Thread::Stop(); } void Timers::Add(ITimer *timer) { Sc...
<commit_before>// Copyright 2011 Google Inc. All Rights Reserved. #include "calling_convention_arm.h" #include "logging.h" #include "managed_register_arm.h" namespace art { namespace arm { // Calling convention ManagedRegister ArmManagedRuntimeCallingConvention::InterproceduralScratchRegister() { return ArmManage...
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2006/03/14 // Author: Sriram Rao // // Copyright 2008 Quantcast Corp. // Copyright 2006-2008 Kosmix Corp. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Vers...
<commit_before>//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2006/03/14 // Author: Sriram Rao // // Copyright 2008 Quantcast Corp. // Copyright 2006-2008 Kosmix Corp. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Vers...
<commit_before><commit_msg>Dreamview: fix format string for unsigned int (#10134)<commit_after><|endoftext|>
<commit_before>/****************************************************************************** * Copyright 2017 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: document_statistic.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2007-09-06 14:23:59 $ * * The Contents of this file...
<commit_before>#include <stdio.h> #include <math.h> #include <lcm/lcm-cpp.hpp> #include "lcmtypes/drc_lcmtypes.hpp" inline void bot_quat_mult (double c[4], const double a[4], const double b[4]) { c[0] = a[0]*b[0] - a[1]*b[1] - a[2]*b[2] - a[3]*b[3]; c[1] = a[0]*b[1] + a[1]*b[0] + a[2]*b[3] - a[3]*b[2]; c[...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2020 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentat...
<commit_before>#include "DlgAddWatchEntry.h" #include <QDialogButtonBox> #include <QHBoxLayout> #include <QMessageBox> #include <QVBoxLayout> #include <sstream> #include "../../DolphinProcess/DolphinAccessor.h" #include "../GUICommon.h" DlgAddWatchEntry::DlgAddWatchEntry(MemWatchEntry* entry) : m_entry(entry) { m_...
<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>/// HEADER #include "import_ros.h" /// COMPONENT #include <csapex_ros/ros_handler.h> #include <csapex_ros/ros_message_conversion.h> /// PROJECT #include <csapex/msg/io.h> #include <csapex/factory/message_factory.h> #include <csapex/utility/stream_interceptor.h> #include <csapex/msg/message.h> #include ...
<commit_before><commit_msg>Fix XDK code so that it uses size_t instead of int.<commit_after><|endoftext|>
<commit_before>#include "agfsio.hpp" #include <endian.h> #include <unistd.h> int agfs_write_cmd(int fd, cmd_t cmd) { cmd = htobe16(cmd); return write(fd, &cmd, sizeof(cmd_t)); } int agfs_read_cmd(int fd, cmd_t& cmd) { int err = read(fd, &cmd, sizeof(cmd_t)); cmd = be16toh(cmd); return err; } struct agfs_stat { ...
<commit_before>#include "generated/cpp/ApplicationBase.h" #include "common/RhodesApp.h" #include "common/RhoConf.h" #include "common/RhoFilePath.h" #include "json/JSONIterator.h" #include "rubyext/WebView.h" #ifdef RHODES_EMULATOR #define RHO_APPS_DIR "" #else #define RHO_APPS_DIR "apps/" #endif extern "C" void rho_s...
<commit_before>//=====================================================================// /*! @file @brief player クラス @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include <iostream> #include <algorithm> #include <boost/lexical_cast.hpp> #inclu...
<commit_before>#include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include "parser/parser.hpp" #include "serializer/serializer.hpp" #include "serializerHtml/serializerHtml.hpp" using namespace std; using namespace webss; enum class ErrorType { NONE, FATAL, PARSE, SERIALIZE,...
<commit_before>/* * BatteryTech * Copyright (c) 2010 Battery Powered Games LLC. * * This code is a component of BatteryTech and is subject to the 'BatteryTech * End User License Agreement'. Among other important provisions, this * license prohibits the distribution of source code to anyone other than * a...
<commit_before>/* base64.cpp and base64.h Copyright (C) 2004-2008 René Nyffenegger This source code is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this softwar...
<commit_before>/* $Id$ */ /* Author: Wolfgang Bangerth, University of Heidelberg, 2000 */ /* $Id$ */ /* Version: $Name$ */ /* */ /* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006 by the deal.II auth...
<commit_before>// Copyright 2008, Google Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list o...
<commit_before>//===-- MachineInstr.cpp --------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before>#include "pixelboost/graphics/camera/camera.h" #include "pixelboost/graphics/camera/viewport.h" #include "pixelboost/graphics/renderer/common/renderable.h" #include "pixelboost/graphics/renderer/common/renderer.h" #include "pixelboost/logic/system/graphics/render/distance.h" using namespace pb; Distanc...
<commit_before>AliAnalysisTask *AddTask_jbook_JPsi(TString config="1", Bool_t gridconf=kFALSE, Bool_t hasMC=kFALSE, ULong64_t triggers=AliVEvent::kCentral | AliVEvent::kSemiCentral | AliVEvent::kMB){ //get the current analysis manager AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysi...
<commit_before>/* * Copyright (c) 2016, 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> AliAnalysisPseudoRapidityDensityTemp* AddTaskTemp(const char* taskname, const char* option){ AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); if (!mgr) { return 0x0; } if (!mgr->GetInputEventHandler()) { return 0x0; } AliAnalysisPseudoRapidity...
<commit_before>//===--- InstructionUtils.cpp - Utilities for SIL instructions ------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief base class for input-output tasks from sockets /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under...
<commit_before>//===--- MemoryBuffer.cpp - Memory Buffer implementation ------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- TargetMachine.cpp - General Target Information ---------------------==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "GraphicsRendererSystem.h" #include <RenderInterface.h> #include "GraphicsBackendSystem.h" #include <GraphicsWrapper.h> #include <RenderStateEnums.h> #include "ShadowSystem.h" #include <GPUTimer.h> #include <AntTweakBarWrapper.h> #include "ParticleRenderSystem.h" #include "ClientStateSystem.h" #...
<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 Francois Beaune, The appleseedhq Organi...
<commit_before>/* * Copyright 2009-2018 The VOTCA Development Team (http://www.votca.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
<commit_before>/** * @file Mu0Poly.cpp * Definitions for a single-species standard state object derived * from \link Cantera::SpeciesThermoInterpType SpeciesThermoInterpType\endlink based * on a piecewise constant mu0 interpolation * (see \ref spthermo and class \link Cantera::Mu0Poly Mu0Poly\endlink). */ #...
<commit_before>/****************************************************************************** * Copyright 2017 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>/* * SessionConnectionsIndexer.cpp * * Copyright (C) 2009-16 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Af...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/ocmb/odyssey/common/include/ody_scom_mp.H $ ...
<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: * 1. Redistributions of source code must retain the above copyright * notice, this list...
<commit_before>#include "openmc/tallies/filter_mesh.h" #include <fmt/core.h> #include <gsl/gsl> #include "openmc/capi.h" #include "openmc/constants.h" #include "openmc/error.h" #include "openmc/mesh.h" #include "openmc/xml_interface.h" namespace openmc { void MeshFilter::from_xml(pugi::xml_node node) { auto bins_...
<commit_before>#include "amatrix.h" #include "checks.h" template <std::size_t TSize1, std::size_t TSize2> std::size_t TestSubMatrixAcess() { AMatrix::Matrix<double, TSize1, TSize2> a_matrix; for (std::size_t i = 0; i < a_matrix.size1(); i++) for (std::size_t j = 0; j < a_matrix.size2(); j++) ...
<commit_before>/* * Copyright 2017 deepstreamHub GmbH * * 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 applic...
<commit_before>// The Modified BSD License // // Copyright (c) 2015, Mikhail Balakhno // 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 abo...
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved. // // ______ __ ___ // /\__ _\ /\ \ /\_ \ // \/_/\ \/ __ \_\ \ _____ ___\//\ \ __ // \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\ // \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/...
<commit_before>// Filename: hdf2vertex.C // Created on 31 May 2007 by Boyce Griffith // // Copyright (c) 2002-2013, Boyce Griffith // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Re...
<commit_before>#include "acmacs-base/argv.hh" #include "acmacs-base/string.hh" #include "acmacs-base/string-split.hh" #include "acmacs-base/range.hh" #include "acmacs-base/stream.hh" #include "acmacs-chart-2/factory-import.hh" #include "acmacs-chart-2/chart.hh" #include "seqdb-3/seqdb.hh" #include "hidb-5/hidb.hh" #inc...
<commit_before>#include "external_task.h" #include "../sandbox/isolate_sandbox.h" #include "../helpers/string_utils.h" #include <fstream> #include <algorithm> #define BOOST_FILESYSTEM_NO_DEPRECATED #define BOOST_NO_CXX11_SCOPED_ENUMS #include <boost/filesystem.hpp> namespace fs = boost::filesystem; external_task::ext...
<commit_before>#include "cnn/expr.h" #include <initializer_list> #include "cnn/nodes.h" #include "cnn/conv.h" namespace cnn { namespace expr { Expression input(ComputationGraph& g, real s) { return Expression(&g, g.add_input(s)); } Expression input(ComputationGraph& g, const real *ps) { return Expression(&g, g.add_...
<commit_before>/* * Copyright © 2017 Mozilla Foundation * * This program is made available under an ISC-style license. See the * accompanying file LICENSE for details. */ #include "gtest/gtest.h" #if !defined(_XOPEN_SOURCE) #define _XOPEN_SOURCE 600 #endif #include <stdio.h> #include <stdlib.h> #include <math.h>...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtLocation module of the Qt Toolkit. ** ** $QT_BEG...
<commit_before>#include "storehouse/s3/s3_storage.h" #include <aws/s3/model/Bucket.h> #include <aws/s3/model/GetObjectRequest.h> #include <aws/s3/model/PutObjectRequest.h> #include <aws/s3/model/HeadObjectRequest.h> #include <aws/core/client/DefaultRetryStrategy.h> #include <aws/core/Aws.h> #include <fstream> #include...
<commit_before> // // =============================================================================== // clReflect // ------------------------------------------------------------------------------- // Copyright (c) 2011 Don Williamson // // Permission is hereby granted, free of charge, to any person obtaining a ...
<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/scoped_ptr.h" #include "base/task.h" #include "base/timer.h" #include "testing/gtest...
<commit_before>#include <QApplication> #include <QSettings> #include <QLabel> #include <QWSServer> #include <QProgressBar> #include "choiceview.h" #include "spawner.h" #include "footer.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); QRect max(0, 0, 600, 800 - 26); QWSServer::setMaxWindowRect(...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9n_mcs_scom.C $ ...
<commit_before>/**********************************************************\ This file is distributed under the MIT License. See accompanying file LICENSE for details. tests/SimpleTreeTester.cpp \**********************************************************/ #include "TestSettings.h" #ifdef TEST_SIMPL...
<commit_before>/** * @file * * @brief * * @copyright BSD License (see doc/COPYING or http://www.libelektra.org) */ #include <info.hpp> #include <cmdline.hpp> #include <kdb.hpp> #include <modules.hpp> #include <plugin.hpp> #include <iostream> using namespace std; using namespace kdb; using namespace kdb::tool...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fillpropertiesgroupcontext.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2008-01-17 08:05:45 $ * * The Contents of t...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioe_dl_sco...
<commit_before><commit_msg>endo prezi 100%<commit_after><|endoftext|>
<commit_before>// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s #include <pthread.h> #include <semaphore.h> #include <stdio.h> #include <unistd.h> struct A { A() { sem_init(&sem_, 0, 0); } virtual void F() { } void Done() { sem_post(&sem_); } virtual ~A() { sem_wait(&sem_); ...
<commit_before>/** \brief Utility for updating SQL schemata etc. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms o...
<commit_before>/************************************************************************* * libjson-rpc-cpp ************************************************************************* * @file test_client.cpp * @date 28.09.2013 * @author Peter Spiess-Knafl <peter.knafl@gmail.com> * @license See attached LICEN...
<commit_before>#include <iostream> #include <vector> using namespace std; struct Input { int r, c, l, h; vector<vector<bool>> tomatoes; }; struct Slice { int r1, c1, r2, c2; }; struct Output { vector<Slice> slices; }; void solveSimple(Input& input, Output& output) { //TODO add code here } void solveDP(Input&...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_occ_sram_init.C $ ...
<commit_before>/************************************************************************* * * $RCSfile: Legend.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: bm $ $Date: 2003-10-20 09:59:31 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkImageDifference.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyright...
<commit_before>// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include <memory> #include <vector> #include "core/fpdfapi/fpd...
<commit_before><commit_msg>Increase the % coverage for coalescing for paint rects.<commit_after><|endoftext|>
<commit_before>#include <atomic> static int test() { std::atomic<int> x; return x; } int main() { return test(); } <commit_msg>cmake: use 'long long' for atomic check<commit_after>#include <atomic> static int test() { std::atomic<long long> x; return x; } int main() { return test(); } <|endo...
<commit_before>#include "precompiled.h" // // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // VertexDeclarationCache.cpp: Implements a helper class to construct and cache vertex declarations...
<commit_before>// @(#)root/gui:$Id$ // Author: Fons Rademakers 15/07/98 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#include "pointLight.h" #include "glm/gtx/string_cast.hpp" #include "platform.h" #include "gl/shaderProgram.h" #include "view/view.h" namespace Tangram { std::string PointLight::s_classBlock; std::string PointLight::s_typeName = "PointLight"; PointLight::PointLight(const std::string& _name, bool _dyn...
<commit_before>#include "tileManager.h" #include "data/dataSource.h" #include "platform.h" #include "scene/scene.h" #include "tile/tile.h" #include "view/view.h" #include "tileCache.h" #include "glm/gtx/norm.hpp" #include <chrono> #include <algorithm> #define DBG(...) //logMsg(__VA_ARGS__) namespace Tangram { Til...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999 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. Redistri...
<commit_before>/*===================================================================== PIXHAWK Micro Air Vehicle Flying Robotics Toolkit (c) 2009, 2010 PIXHAWK PROJECT <http://pixhawk.ethz.ch> This file is part of the PIXHAWK project PIXHAWK is free software: you can redistribute it and/or modify it under ...
<commit_before>#include "multiverso/util/allocator.h" #include "multiverso/util/log.h" #include "multiverso/util/configure.h" namespace multiverso { MV_DEFINE_int(allocator_alignment, 16, "alignment for align malloc"); inline char* AlignMalloc(size_t size) { #ifdef _MSC_VER return (char*)_aligned_malloc(size, ...
<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 <unistd.h...
<commit_before>#include "cppunit/TestSuite.h" #include "cppunit/TestResult.h" namespace CppUnit { /// Deletes all tests in the suite. void TestSuite::deleteContents () { for (std::vector<Test *>::iterator it = m_tests.begin (); it != m_tests.end (); ++it) delete *it; m_tests.clear(); } /// Run...
<commit_before>//---------------------------------------------------------------------------- // Author: Martin Klemsa //---------------------------------------------------------------------------- #ifndef _ctoolhu_random_generator_included_ #define _ctoolhu_random_generator_included_ #include "engine.hpp" #include <...
<commit_before>#include "Benchmark.h" #include "SkPMFloat.h" #include "SkRandom.h" struct PMFloatBench : public Benchmark { explicit PMFloatBench(bool clamp) : fClamp(clamp) {} const char* onGetName() SK_OVERRIDE { return fClamp ? "SkPMFloat_clamp" : "SkPMFloat_get"; } bool isSuitableFor(Backend backend) ...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // mvcc_test.cpp // // Identification: tests/concurrency/mvcc_test.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===-------------------------------...
<commit_before>#include <boost/version.hpp> #include <boost/detail/lightweight_test.hpp> #include <iostream> #include <mapnik/params.hpp> #include <mapnik/boolean.hpp> int main( int, char*[] ) { mapnik::parameters params; // true //params["bool"] = true; //BOOST_TEST( (params.get<mapnik::boolean>("bo...
<commit_before>#include "instanciate.h" using namespace Yuni; namespace Nany { namespace Pass { namespace Instanciate { void SequenceBuilder::tryUnrefObject(uint32_t lvid) { auto& frame = atomStack.back(); if (not frame.verify(lvid)) return; auto& cdef = cdeftable.classdefFollowClassMember(CLID{fram...
<commit_before>/* Brainfuck interpreter using interpreter and composite patterns :) */ #include <exception> #include <iostream> #include <list> #include <vector> #include <map> #include <string> #include <algorithm> #include <memory> using namespace std; struct Data { vector<int> array; int ptr; }; class Ab...
<commit_before><commit_msg>doubly_linked_list<commit_after><|endoftext|>
<commit_before>#ifndef BFC_COMBINE_INC_VISITOR_HPP #define BFC_COMBINE_INC_VISITOR_HPP #include "ast/mod.hpp" #include "ast/base.hpp" #include "test_visitor.hpp" #include "types.h" namespace bfc { namespace ast { class combine_inc_visitor : public opt_seq_base_visitor { public: enum node_type { ADD = 0...
<commit_before>#include "TPAdapter.h" #include <fstream> #include <drag2d.h> namespace libcoco { void TPAdapter::Load(const char* filename) { Json::Value value; Json::Reader reader; std::locale::global(std::locale("")); std::ifstream fin(filename); std::locale::global(std::locale("C")); reader.parse(fin, valu...
<commit_before>#ifndef __CONCURRENCY_CORO_POOL_HPP__ #define __CONCURRENCY_CORO_POOL_HPP__ #include "errors.hpp" #include "concurrency/queue/passive_producer.hpp" #include "concurrency/drain_semaphore.hpp" /* coro_pool_t maintains a bunch of coroutines; when you give it tasks, it distributes them among the coroutines...
<commit_before>//======================================================================= // Copyright (c) 2015-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>// Copyright 2010-2012 RethinkDB, all rights reserved. #include "concurrency/watchable.hpp" #include <functional> #include "errors.hpp" #include <boost/bind.hpp> #include <boost/shared_ptr.hpp> #include "concurrency/cond_var.hpp" #include "concurrency/wait_any.hpp" template <class result_type, class ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cacheoptions.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-08 09:11:42 $ * * The Contents of this file are m...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include <vector> #include <algorithm> #include <chrono> #include <thread> #include <xmmintrin.h> #include "engine.hpp" #include "util.hpp" namespace rack { float sampleRate; float sampleTime; bool gPaused = false; static ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: e3ditem.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2006-06-19 16:11:15 $ * * The Contents of this file are made a...
<commit_before>#include "rune/engine.h" rune::Engine::Engine() { _basePath = "./"; } rune::Engine::~Engine() { close(); } void rune::Engine::init() { _init_entities(); _open = true; _glThread = NULL; } void rune::Engine::setBasePath(QString basePath) { if(!basePath.endsWith("/")) { ...
<commit_before>/******************************************************************************* * Copyright (c) 2015 Wojciech Migda * All rights reserved * Distributed under the terms of the GNU LGPL v3 ******************************************************************************* * * Filename: fmincg.hpp * * ...