text
stringlengths
54
60.6k
<commit_before> #ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif #ifdef LINUX #include <unistd.h> #endif #ifdef WINDOWS #include <windows.h> #endif void sleep(int sleepMs) { #ifdef LINUX usleep(sleepMs * 1000); // usleep takes sleep time in us (1 millionth of a second) #endif #ifdef WINDOWS Sleep(sleepMs); ...
<commit_before>// // ASTDeclarationBlockNode.cpp // lut-lang // // Created by Robin Ricard on 20/03/15. // Copyright (c) 2015 INSA Lyon. All rights reserved. // #include "ASTDeclarationBlockNode.h" #include <tuple> #include <iostream> using std::cout; using std::endl; ASTDeclarationBlockNode::ASTDeclarationBloc...
<commit_before>/* * avs2wav main.cpp * extract audio data as RIFF WAV format, from avs file * * Copyright (C) 2010 janus_wel<janus.wel.3@gmail.com> * see LICENSE for redistributing, modifying, and so on. * */ #include "avs2wav.hpp" #include "main.hpp" #include "../../include/avsutil.hpp" #include "../../hel...
<commit_before>/* -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*- * * $Id: library.cpp,v 1.1 2006/10/09 07:07:59 Paul Pedersen Exp $ * * Copyright 2006-2007 FLWOR Foundation. * Author: John Cowan,Paul Pedersen */ #include "library.h" #include "function.h" #include "signature.h" #include "Numerics.h" #i...
<commit_before>#include "Halide.h" using namespace Halide; using namespace Halide::ConciseCasts; class MatMul : public Generator<MatMul> { public: // We take 2 8-bit matrices as input. Input<Buffer<uint8_t>> A{"A", 2}; Input<Buffer<uint8_t>> B{"B", 2}; // We produce a 32 bit matrix result. Output...
<commit_before>#include "mpdas.h" #define HOST "http://post.audioscrobbler.com" #define VERSION "1.2.1" #define CLIENT "mp5" #define CVERSION "0.1" CAudioScrobbler* AudioScrobbler = 0; #define CLEANUP() _response.clear() size_t writecb(void* ptr, size_t size, size_t nmemb, void *stream) { AudioScrobbler->Report...
<commit_before>#include <cstdlib> #include <cmath> #include "benchmark/benchmark_api.h" #include "test_configs.h" #include "test_utils.h" // Values between -1 and +1 #define BM_atrig(Name) template<typename T> \ void BM_##Name(benchmark::State& state) {\ int N = state.range(0);\ c_alloc<T> a(N);\ fill_random(a....
<commit_before>/* * Copyright (C) 2015-2017 Nagisa Sekiguchi * * 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 app...
<commit_before>/* * compile both driver code and kernel code with nvcc, as in: * nvcc simple.c simple.cu */ #include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <vector> #include <cmath> #include <ctime> using namespace std; extern "C" void gpu_sobel(int *l_source_array, int *l_re...
<commit_before>#include "otc/otcli.h" using namespace otc; typedef RootedTree<RTNodeNoData, RTreeNoData> Tree_t; struct PerTreeStats { OttIdSet leafSet; // full leaf set OttIdSet leavesInIngroupSet; // leaves whose parents are not the root std::size_t numInformativeGroups; }; struct PerSubproblemStats { ...
<commit_before>/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SlideDir.h" #include "SkAnimTimer.h" #include "SkCanvas.h" #include "SkMakeUnique.h" #include "SkSGColor.h" #include "SkSGDraw.h" #include "SkSGGroup...
<commit_before>/* editorwindow.cpp * implementation fle for the main editor window */ #include <stdio.h> #include <QMouseEvent> #include <QMessageBox> #include <QFileDialog> #include "editorwindow.h" #include "newdialog.h" #include "ui_mainwindow.h" #include "ui_newmap.h" /* shows a generic popup message */ void pop...
<commit_before>/******************************************************************************* * c7a/api/sort.hpp * * Part of Project c7a. * * Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com> * * This file has no license. Only Chuck Norris can compile it. **************************************************...
<commit_before>// // calcPWP.cpp // // // Created by Evan McCartney-Melstad on 1/10/15. // // #include "calcPWP.h" #include <iostream> #include <vector> #include <fstream> #include <thread> #include <string> int calcPWPfromBinaryFile (std::string binaryFile, unsigned long long int numLoci, const int numIndividua...
<commit_before>/* * Copyright 2011, 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 applic...
<commit_before>/* * Main routine and function for the startd. */ #include "condor_common.h" /* * System include files. */ #include <netdb.h> #include <ctype.h> #include <sys/socket.h> #include <sys/param.h> #include <sys/file.h> #include <sys/time.h> #include <sys/wait.h> #include <sys/stat.h> #include <netinet/...
<commit_before>#include "precomp.hpp" #include <iostream> #include <iomanip> using namespace std; using namespace cv; void helpParser() { printf("\nThe CommandLineParser class is designed for command line arguments parsing\n" "Keys map: \n" "Before you start to work with CommandLineParser ...
<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 "skia/ext/bitmap_platform_device_linux.h" #include "skia/ext/bitmap_platform_device_data.h" #include <cairo/cairo.h> namesp...
<commit_before>#include "ResourceList.hpp" #include <Engine/Geometry/Model.hpp> #include <Engine/Texture/TextureAsset.hpp> #include <Engine/Audio/SoundBuffer.hpp> #include <Engine/Script/ScriptFile.hpp> #include <Engine/Util/FileSystem.hpp> #include <Editor/Util/EditorSettings.hpp> #include <Engine/Hymn.hpp> #include ...
<commit_before>/* Kopete Latex Plugin Copyright (c) 2004 by Duncan Mac-Vicar Prett <duncan@kde.org> Copyright (c) 2004-2005 by Olivier Goffart <ogoffart@kde. org> Kopete (c) 2001-2004 by the Kopete developers <kopete-devel@kde.org> **********************************************************...
<commit_before>#include "Vision/RTSVisionManager.h" #include "EngineUtils.h" #include "Engine/World.h" #include "Kismet/GameplayStatics.h" #include "RTSGameMode.h" #include "RTSLog.h" #include "RTSOwnerComponent.h" #include "RTSPlayerState.h" #include "RTSTeamInfo.h" #include "Vision/RTSFogOfWarActor.h" #include "Vis...
<commit_before>/* * D-Bus AT-SPI, Qt Adaptor * * Copyright 2008, 2009 Nokia. * Copyright 2008, 2009 Codethink Ltd. * * 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; eit...
<commit_before>/*========================================================================= * * Copyright RTK Consortium * * 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>/*========================================================================= * * Copyright RTK Consortium * * 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 "config.h" // boost #include <boost/filesystem.hpp> // dune-common #include <dune/common/exceptions.hh> #include <dune/common/mpihelper.hh> #include <dune/common/timer.hh> // dune-fem #include <dune/fem/misc/mpimanager.hh> // dune-grid-multiscale #include <dune/grid/part/leaf.hh> // dune-s...
<commit_before>#include <cstdlib> #include <cstring> #include <algorithm> #include <set> #include <memory> #include <tuple> #include <iomanip> #if __APPLE__ #include <sys/time.h> #endif #include "machines.hh" #include "shared.hh" #include "pathlocks.hh" #include "globals.hh" #include "serialise.hh" #include "store-api...
<commit_before>// Copyright 2019-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #include <gtest/gtest.h> #include "embree3/rtcore.h" #include "openvkl/openvkl.h" #include "ospray/OSPEnums.h" TEST(Enums, VKLLogLevel) { ASSERT_LE(sizeof(OSPLogLevel), sizeof(VKLLogLevel)); ASSERT_EQ(OSP_LOG_DEBUG, VKL...
<commit_before>//===--- TerminalReaderUnix.cpp - Input From UNIX Terminal ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// This file is part of playd. // playd is licensed under the MIT licence: see LICENSE.txt. /** * @file * Implementation of the Mp3AudioSource class. * @see audio/sources/mp3.hpp */ #include <cassert> #include <cstdint> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #includ...
<commit_before>/** * @file server_2.cpp * @author shae, CS5201 Section A * @date Apr 27, 2016 * @brief Description: * @details Details: */ #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> /* define socket */ #include <netinet/in.h> /* define inter...
<commit_before>// The MIT License (MIT) // Copyright (c) 2016, Microsoft // 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 // t...
<commit_before>#include <ncurses.h> #include <iostream> #include <unistd.h> #include <algorithm> #include "display/Screen.h" #include "display/Window.h" #include "display/WindowManager.h" #include "map/Level.h" #include "map/filters/DrunkardsWalkFilter.h" #include "actor/Actor.h" #include "core/Rand.h" void pause_cur...
<commit_before>/* Copyright (c) 2011, Alexandre Abadie <Alexandre.Abadie@irisa.fr> 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>// 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 <stdio.h> #include "base/stl_util.h" #include "chrome/browser/chromeos/disks/mock_disk_mount_manager.h" #include "chrome/brow...
<commit_before>#include "binary_tree.h" #include <stdlib.h> #include <time.h> int main() { cout << "Let's do some binary tree tests!" << endl; srand( time(NULL) ) ; int num_keys = 5 ; int dummy_key ; binary_tree<int> mytree ; for(int i=0; i < num_keys; ++i) { dummy_key = rand() % 100 + 1 ; cout << "settin...
<commit_before> // // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2018 Kevin Masson, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any p...
<commit_before>#include <Ogre.h> #include <utility> #include "core/engine.h" #include "core/entity.h" #include "core/system_loader.h" #include "ogrerender.h" using namespace Ogre; Ygg::OgreRenderSystem::OgreRenderSystem(unsigned long window, SystemLoader *loader) :m_parentwindow(window), m_loader(loader) {...
<commit_before>#pragma once /* * Covariant Script Runtime Extension * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later vers...
<commit_before>// Copyright 2022 The Google Research Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by...
<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>#pragma once #include "attribute.hpp" #include "filter.hpp" #define DECLARE_KEYWORD_IMPL(Name, Scope, T) \ namespace keyword { \ namespace tag { \ struct Name##_t { \ typedef T type; \ static const char* name() { return #Name; } \ }; \ } \ static ...
<commit_before>/* <x0/plugins/proxy.cpp> * * This file is part of the x0 web server project and is released under LGPL-3. * http://www.xzero.ws/ * * (c) 2009-2010 Christian Parpart <trapni@gentoo.org> */ #include <x0/http/HttpPlugin.h> #include <x0/http/HttpServer.h> #include <x0/http/HttpRequest.h> #include <x0...
<commit_before>/*************************************************************************** * Copyright (c) 2014 Luke Parry <l.parry@warwick.ac.uk> * * Copyright (c) Jürgen Riegel (juergen.riegel@web.de) 2002 * * ...
<commit_before>// Copyright (c) 2020 The Orbit 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 "OrbitCaptureClient/CaptureClient.h" #include <absl/container/flat_hash_set.h> #include <absl/flags/declare.h> #include <absl/ti...
<commit_before>#include "common.h" #include <v8.h> #include <Psapi.h> #include <vector> using namespace std; namespace NodeJudger { string GetLastErrorAsString() { //Get the error message, if any. DWORD error_message_id = GetLastError(); // No error message has been recorded if(error_me...
<commit_before>// // RemotePhotoTool - remote camera control software // Copyright (C) 2008-2014 Michael Fink // /// \file PhotoModeManager.cpp Photo mode manager classes // // includes #include "stdafx.h" #include "PhotoModeManager.hpp" #include "IPhotoModeViewHost.hpp" #include "PhotomatixInterface.hpp" #include "Im...
<commit_before>#pragma once #include "gui/controllers/metasprite-common.h" #include "gui/view/common/namedlist.h" #include "gui/view/common/orderedlist.h" namespace UnTech { namespace View { namespace MSC = UnTech::MetaSpriteCommon; // ANIMATIONS // ========== template <> void NamedListCtrl<MSC::Animation>::CreateC...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/fir/check.H $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/utils/pos.H $ ...
<commit_before>#include <cstdio> #include <cstring> #include <cstdlib> #include <cstdarg> #include <cerrno> #include <vector> #include <map> #include <string> #include <unistd.h> #include "riscv-types.h" #include "riscv-endian.h" #include "riscv-regs.h" #include "riscv-processor.h" #include "riscv-format.h" #include ...
<commit_before> #include "Globals.h" #include "FireworksSerializer.h" #include "WorldStorage/FastNBT.h" void cFireworkItem::WriteToNBTCompound(const cFireworkItem & a_FireworkItem, cFastNBTWriter & a_Writer, const ENUM_ITEM_ID a_Type) { switch (a_Type) { case E_ITEM_FIREWORK_ROCKET: { a_Writer.BeginCompo...
<commit_before>/* * Certificate Store * (C) 1999-2019 Jack Lloyd * (C) 2018-2019 Patrik Fiedler, Tim Oesterreich * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/certstor_windows.h> #include <botan/pkix_types.h> #include <functional> #include <array> #include <vector> #defi...
<commit_before>#include <gtest/gtest.h> #include "array_merge.h" void arrays_match(int size, int a[], int b[]) { int i; for (i=0; i<size; ++i) { ASSERT_EQ(b[i], a[i]); } } TEST(ArrayMerge, Handle_empty_list) { int* a[] = { }; int sizes[] = { }; int expected[] = { 0 }; int* result; result = arra...
<commit_before>#ifndef MOLP_HPP #define MOLP_HPP #include <list> #include "BVect.hpp" #include "BEdge.hpp" #include "DominanceStatus.hpp" class MOLP { private: std::list<BEdge> set; public: MOLP(); MOLP(std::list<BEdge>); std::list<BEdge> edges() const; std::list<BEdge>::iterator begin(); std::list<BEdg...
<commit_before><commit_msg>Update cost.hpp<commit_after>#ifndef COST_HPP_ #defin COST_HPP_ #include <vector> #include <iostream> #include <cstdlib> #include "math_fucntions.hpp" #include "graph_functions.hpp" #include "solver_functions.hpp" #include "Model.hpp" #include "MarkovChannel.pb.h" double cos...
<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-2012 Francois Beaune, Jupiter Jazz Limited // // Permission is hereby granted, free of charge, to any pe...
<commit_before>#pragma once #include <agency/detail/config.hpp> #include <agency/execution_policy.hpp> #include <agency/flattened_executor.hpp> #include <agency/cuda/execution_agent.hpp> #include <agency/cuda/grid_executor.hpp> #include <agency/cuda/parallel_executor.hpp> #include <agency/cuda/concurrent_executor.hpp>...
<commit_before>/* * * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
<commit_before>#include <gobject-introspection-1.0/girepository.h> #include <node.h> #include <nan.h> #include "boxed.h" #include "debug.h" #include "function.h" #include "gi.h" #include "gobject.h" #include "loop.h" #include "type.h" #include "util.h" #include "value.h" using namespace v8; using GNodeJS::BaseInfo; ...
<commit_before>/* * article.cpp * * Copyright (c) 2001, 2002, 2003, 2004 Frerich Raabe <raabe@kde.org> * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. For licensing and dist...
<commit_before>#pragma once #include <math.h> namespace rack { //////////////////// // integer functions //////////////////// inline int mini(int a, int b) { return a < b ? a : b; } inline int maxi(int a, int b) { return a > b ? a : b; } /** Limits a value between a minimum and maximum */ inline int clampi(int...
<commit_before>/** * * \file main.cpp * \brief test/demo program * \author Arthur Brainville * * Annwvyn test program http://annwvyn.org/ * */ #include "stdafx.h" //Annwvyn #include <Annwvyn.h> #include <Ann3DTextPlane.hpp> #include "TestLevel.hpp" #include "DemoLevel.hpp" using namespace std; using namespace Annwvy...
<commit_before>#include "app/SimpleApp.h" #include "sys/AbstractThread.h" #include "sys/StopWatch.h" #include "trace/log.h" #include "trace/UdpBackEnd.h" namespace { class Th1 : public ::sys::AbstractThread { public: explicit Th1( const uint32_t id ) : ::sys::AbstractThread( ::std::to_s...
<commit_before>/* ----------------------------------------------------------------------------- Copyright 2017 Google 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/...
<commit_before>namespace mant { namespace bbob2009 { class CompositeGriewankRosenbrockFunctionF8F2 : public BlackBoxOptimisationBenchmark2009 { public: inline explicit CompositeGriewankRosenbrockFunctionF8F2( const unsigned int numberOfDimensions) noexcept; inline std::string to...
<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>#include "qapplicationlauncher.h" #include "debughelper.h" QApplicationLauncher::QApplicationLauncher(QObject *parent) : AbstractServiceImplementation(parent), m_subscribeUri(""), m_commandUri(""), m_commandIdentity("launcher"), m_heartbeatPeriod(3000), m_connected(false), m_...
<commit_before>#ifndef VIEW_HPP #define VIEW_HPP #ifndef _USE_MATH_DEFINES #define _USE_MATH_DEFINES #endif //#include <atomic> //#include <iostream> #include <iosfwd> #include <functional> #include <GL/gl3w.h> #include <GL/glcorearb.h> #include <GLFW/glfw3.h> #include <GL/gl.h> namespace View { void printErrors(c...
<commit_before>#include "cp-neural.h" #include <iomanip> // Manual build: // g++ -g -ggdb -I ../cpneural -I /usr/local/include/eigen3 testneural.cpp -L ../Build/cpneural/ -lcpneural -lpthread -o test using std::cout; using std::endl; using std::setprecision; using std::setw; using std::fixed; bool matComp(MatrixN& m...
<commit_before>/* * Copyright (c) 2016 Fastly, Inc. * * 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, modify...
<commit_before>/* * Copyright (c) 2016 Fastly, Inc. * * 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, modify...
<commit_before>/* * nwconv.hpp * a class to convert between std::string and std::wstring * * written by janus_wel<janus.wel.3@gmail.com> * This source code is in the public domain, and has NO WARRANTY. * */ #ifndef NWCONV_HPP #define NWCONV_HPP #include <locale> #include <string> #include <vector> #include <...
<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/thread_local_storage.h" #include <windows.h> #include "base/logging.h" // In order to make TLS destructors work,...
<commit_before>/* * Copyright (c) 2015 The Jackson Laboratory * * This software was developed by Gary Churchill's Lab at The Jackson * Laboratory (see http://research.jax.org/faculty/churchill). * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
<commit_before>/*************************************************************************** * @file RedBlackTree.hpp * @author Yue Wang * @date 02 July 2014 * @remark Algorithims implementation for CLRS, using C++ templates. *****************************************************************...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) Module: itkPointSetToImageTranslationNormalizedCorrelationRegularStepGradientDescentRegistrationTest.cxx Language: C++ Date: $Date$ Version: $Revi...
<commit_before>/** * This file is part of the "libfnord" project * Copyright (c) 2015 Paul Asmuth * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public License along with th...
<commit_before>/* TCP: (PF_INET, PF_INET6), (SOCK_STREAM), (IPPROTO_TCP) TCP Server: 1) Create a TCP socket 2) Bind socket to the listen port, with a call to bind() 3) Prepare socket to listen for connections with a call to listen() 4) Accepting incoming connections, via a call to accept() 5) Communicate with remote ho...
<commit_before>/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkCanvas.h" #include "include/core/SkColor.h" #include "include/core/SkFont.h" #include "include/core/SkFontMetrics.h"...
<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. */ /* Tests text rendering with LCD and subpixel rendering turned on and off. */ #include "gm.h" #include "SkCanvas.h" #include "SkPicture.h" #include "SkPictur...
<commit_before>#include <stdio.h> // cout, cerr #include <string> #include <cstring> // strcpy #include <sys/stat.h> //stat #include <mist/json.h> #include <mist/config.h> #include <mist/procs.h> #include <mist/timing.h> #include <mist/tinythread.h> #include <mist/defines.h> #include "controller_storage.h" #include ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Lic...
<commit_before>#include <state.hpp> State::State():quitRequested{false},bg{Sprite("../resources/img/ocean.jpg")}{ loadAssets(); } bool State::QuitRequested(){ return quitRequested; } void State::loadAssets(){} void State::render(){ bg.render(0,0); } void State::update(){ if(SDL_QuitRequested()==SDL_TRUE)quitReq...
<commit_before>/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * yo...
<commit_before>/******************************************************************************* Copyright (c) 2014, Jan Koester jan.koester@gmx.net All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * R...
<commit_before> #include <osgAnimation/RigTransformHardware> #include <osgAnimation/RigTransformSoftware> #include <osgAnimation/MorphTransformSoftware> #include <osgDB/ObjectWrapper> #include <osgDB/InputStream> #include <osgDB/OutputStream> namespace wrap_osgAnimationRigTransform{ REGISTER_OBJECT_WRAPPER( osgAnima...
<commit_before>#include "editor/platform_interface.h" #include "engine/hash_map.h" #include "engine/mt/task.h" #include "engine/profiler.h" #include "engine/string.h" #include "file_system_watcher.h" #include <sys/inotify.h> #include <unistd.h> struct FileSystemWatcherImpl; struct FileSystemWatcherTask : public Lu...
<commit_before>// Copyright 2019 Google LLC // // 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...
<commit_before>#include <configure/bind.hpp> #include <configure/Rule.hpp> #include <configure/lua/State.hpp> #include <configure/lua/Type.hpp> #include <boost/filesystem/path.hpp> namespace fs = boost::filesystem; namespace configure { static int Rule_new(lua_State* state) { lua::Converter<Rule>::push(state);...
<commit_before>// graph500/grappa/ // XXX shouldn't have to include this first: common.h and oned_csr.h have cyclic dependency #include "../graph500/grappa/common.h" #include "../graph500/grappa/oned_csr.h" #include "../graph500/grappa/graph.hpp" #include <Grappa.hpp> #include <iostream> struct weighted_csr_graph { ...
<commit_before>#include "gtest.h" #include "any_with_traits.h" #include <array> #include <map> #include <memory> #include <functional> #include <unordered_set> TEST(any, all) { { any_t<any_trait::destructible> v(123); EXPECT_TRUE(v.type() == typeid (int)); EXPECT_EQ(123, *any_cast<int> (&v)); EXPECT...
<commit_before>#include "easypr/chars_identify.h" #include "easypr/core_func.h" /*! \namespace easypr Namespace where all the C++ EasyPR functionality resides */ namespace easypr { #define NDEBUG //й const char strCharacters[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ...
<commit_before> #include "FemusInit.hpp" #include "MultiLevelProblem.hpp" #include "VTKWriter.hpp" #include "TransientSystem.hpp" #include "NonLinearImplicitSystem.hpp" #include "Marker.hpp" #include "Line.hpp" #include "Fluid.hpp" #include "Solid.hpp" #include "Parameter.hpp" #include "NumericVector.hpp" #include "a...
<commit_before>/*! * \file gpu_dirty_state.hpp * \brief file gpu_dirty_state.hpp * * Copyright 2018 by Intel. * * Contact: kevin.rogovin@intel.com * * 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 ob...
<commit_before>// -*- Mode:C++ -*- /**************************************************************************************************/ /* */ /* Copyright (C) 2016 University of Hull ...
<commit_before>#ifndef INCLUDE_AL_SYSTEM_PRINTING_H #define INCLUDE_AL_SYSTEM_PRINTING_H /* * AlloSphere Research Group / Media Arts & Technology, UCSB, 2009 */ /* Copyright (C) 2006-2008. The Regents of the University of California (REGENTS). All Rights Reserved. Permission to use, copy, modify, distribute, ...
<commit_before>#include "cvm.h" #include "defaults_shared.h" DabClass &DabVM::define_builtin_class(const std::string &name, dab_class_t class_index, dab_class_t superclass_index) { DabClass klass; klass.index = class_index; klass.name = name; ...
<commit_before>//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>/* SWARM Copyright (C) 2012-2022 Torbjorn Rognes and Frederic Mahe This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (...
<commit_before>#include "helloworld.h" using namespace samp; static HelloWorld theGameMode; void HelloWorld::OnGameModeInit() { SetGameModeText("Hello, World!"); AddPlayerClass(0, 1958.3783f, 1343.1572f, 15.3746f, 269.1425f, 0, 0, 0, 0, 0, 0); logprintf("------------------------------------------\n"); ...