text
stringlengths
54
60.6k
<commit_before>// Copyright 2012 the V8 project authors. 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...
<commit_before> #include "viewer.h" nanogui::Screen *screen = nullptr; Control control; Loader loader; float width = 800; float height = 800; bool mouseDown = false; bool orthographic = false; bool wireframe = false; float cameraViewAngle = 45.0; float cameraNear = 1.0; float cameraFar = 100.0; float lineWidth = 0.5...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2011. All rights reserved */ #include "../StroikaPreComp.h" #include "Sleep.h" #include "ThreadPool.h" using namespace Stroika::Foundation; using namespace Stroika::Foundation::Execution; class ThreadPool::MyRunnable_ : public IRunnable { public...
<commit_before>/*========================================================================= * * Copyright Leiden University Medical Center, Erasmus University Medical * Center and contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
<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-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge,...
<commit_before>// Copyright (c) 2013-2016, Matt Godbolt // 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>/****************************************************************************** * Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com) * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions a...
<commit_before>/* See other files here for the LICENCE that applies here. */ /* Template for new files, replace word "template" and later delete this line here. */ #ifndef INCLUDE_OT_NEWCLI_template #define INCLUDE_OT_NEWCLI_template #include "lib_common1.hpp" namespace nOT { INJECT_OT_COMMON_USING_NAMESPACE_COMMON...
<commit_before>/* This file is part of the UniSet project * Copyright (c) 2009 Free Software Foundation, Inc. * Copyright (c) 2009 Ivan Donchevskiy * * 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 Fo...
<commit_before>#include "stdafx.h" TexMan texMan; #ifndef _MSC_VER static GLuint LoadTextureViaOS(const char* name) { jclass myview = jniEnv->FindClass(boundJavaClass); jmethodID method = method = jniEnv->GetStaticMethodID(myview, "loadTexture", "(Ljava/lang/String;)I"); if (method == 0) { return 0; ...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 3 of the License, or (a...
<commit_before>#ifndef PERCEPTRON_H #define PERCEPTRON_H #include <sstream> #include <vector> #include <numeric> // inner_product #include <algorithm> // transform #include <functional> // plus, minus #include <assert.h> #include <cmath> // sqrt #include <initializer_list> #include "randomgen.hh" #include "...
<commit_before>/* * A filtered_socket class that offloads the actual filtering to a * worker thread. * * author: Max Kellermann <mk@cm4all.com> */ #ifndef BENG_PROXY_THREAD_SOCKET_FILTER_HXX #define BENG_PROXY_THREAD_SOCKET_FILTER_HXX #include "thread_job.hxx" #include "event/DeferEvent.hxx" #include "event/Time...
<commit_before>/* * jcom.oscinstance * External for Jamoma: retrieve instance numbers or ids from osc messages * By Trond Lossius, Copyright 2005 * * License: This code is licensed under the terms of the GNU LGPL * http://www.gnu.org/licenses/lgpl.html */ #include "Jamoma.h" #define MAX_MESS_SIZE 2048 typ...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lice...
<commit_before>#include <dlfcn.h> #include <cstdio> #include <cstring> #include <unistd.h> #include <cstdlib> #include <termios.h> #include <sys/ioctl.h> #include <iostream> #include <fstream> #include <vector> #include <array> #include <string> #include <map> #include <functional> #include <experimental/optional> #i...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkBayesianClassifierImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights...
<commit_before>#pragma once #ifndef REPLACER_HPP #define REPLACER_HPP #include <QString> #include "tags/textwidget.hpp" #include "tags/report.hpp" namespace qtreports { namespace detail { /*! @~russian @brief Класс, заменяющий параметры на реальные значения. Класс, заменяющий параметр...
<commit_before>// // WinAPI // #define WIN32_LEAN_AND_MEAN #define NOMINMAX #include <Windows.h> #include <SetupAPI.h> #include <Shlwapi.h> #include <initguid.h> #include <winioctl.h> #include "XUSB.h" // // STL // #include <string> #include <codecvt> #include <locale> #include <map> #include <iostream> #include <fs...
<commit_before>#include "group_shared.hpp" #include <cassert> #include <fcntl.h> #include <sys/stat.h> #include <sys/mman.h> using namespace tightdb; // Pre-declare local functions char* concat_strings(const char* str1, const char* str2); struct tightdb::ReadCount { uint32_t version; uint32_t count; }; str...
<commit_before><commit_msg>Modified output of filters-test.cxx to CSV<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: filedlg2.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 15:13:20 $ * * The Contents of this file are made ...
<commit_before><commit_msg>sw: dump ruby text in nodes dump<commit_after><|endoftext|>
<commit_before>/*************************************************************************/ /* message_queue.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>// Gridding algoithm, adopted from bilateral_grid demo app. // There's nothing left from bilateral_grid except ideas and typical Halide idioms. #include "Halide.h" #include <stdio.h> using namespace Halide; int main(int argc, char **argv) { ImageParam UVW(Float(64), 4); // second dimension is u...
<commit_before><commit_msg>Page Break: Make the line control thicker to ease fade in/out<commit_after><|endoftext|>
<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 "native_client/src/include/portability.h" #if NACL_OSX #include <crt_externs.h> #endif #ifdef _WIN64 /* TODO(gregoryd): rem...
<commit_before>/* This file is part of Magnum. Original authors — credit is appreciated but not required: 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 — Vladimír Vondruš <mosra@centrum.cz> 2021 — Pablo Escobar <mail@rvrs.in> This is free and unencumb...
<commit_before>/* ** SelfPortrait API ** See Copyright Notice in lua_utils.h */ #include "test_utils.h" #include <stdexcept> #include "str_conversion.h" #include <cxxtest/TestSuite.h> //#include <dlfcn.h> using namespace std; namespace LuaUtils { void addTestFunctionsAndPaths(lua_State* L) { lua_atpa...
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved. #include "errors.hpp" #include <boost/make_shared.hpp> #include "buffer_cache/buffer_cache.hpp" #include "containers/iterators.hpp" #include "memcached/protocol.hpp" #include "rdb_protocol/protocol.hpp" #include "serializer/config.hpp" #include "ser...
<commit_before><commit_msg>Removed unused cpp file<commit_after><|endoftext|>
<commit_before>//////////////////////////////////////////////////////////////////////////// // // Copyright 2020 Realm 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://ww...
<commit_before><commit_msg>Pipe cmd-z back to browser.<commit_after><|endoftext|>
<commit_before>#include "../bitmap.h" #include "../trans-bitmap.h" #include "scroll-list.h" #include "../font.h" #include <math.h> #include "../debug.h" namespace Gui{ static const double FONT_SPACER = 1.3; static const int GradientMax = 50; double SCROLL_STEP = 20; double SCROLL_MOTION = 2; const int SCROLL_WAIT = ...
<commit_before>/* * Copyright (C) 2009 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>// 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 "config.h" #include "testing/gtest/include/gtest/gtest.h" #include "base/file_util.h" #include "base/message_loop.h" #i...
<commit_before>/* * Copyright 2014 Jules Cléro * * 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 la...
<commit_before>#include "BufferUtilsPvp.hpp" #include "utils/conversions.h" namespace PV { namespace BufferUtils { WeightHeader buildWeightHeader( bool shared, int preLayerNx, int preLayerNy, int preLayerNf, int preLayerNxExt, int preLayerNyExt, int numArbors, double t...
<commit_before>#include "../Include/CTransitionVisitor.h" #include "../Include/CSceneNode.h" #include "../Include/CSequenceNode.h" #include "../Include/CKernel.h" #include "../../Modules/Util/Include/CStats.h" #include "cocos2d.h" using namespace cocos2d; namespace LM { CTransitionVisitor::CTransitionVisitor(CKern...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPictureUtils.h" #include "SkCanvas.h" #include "SkData.h" #include "SkDevice.h" #include "SkPixelRef.h" #include "SkShader.h" class PixelRefSet { p...
<commit_before>#include "Variant.h" #include "split.h" #include <string> #include <list> #include <iostream> using namespace std; using namespace vcf; void annotateWithBlankGenotypes(Variant& var, string& annotationTag) { var.addFormatField(annotationTag); map<string, map<string, vector<string> > >::iterato...
<commit_before>/* * Copyright 2007-2019 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>// Copyright 2018 The Amber 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 applicabl...
<commit_before>// // yas_audio_rendering_connection.cpp // #include "yas_audio_rendering_connection.h" #include "yas_audio_rendering_node.h" using namespace yas; audio::rendering_connection::rendering_connection(uint32_t const src_bus_idx, rendering_node const *const src_node, ...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>/************************************************************************* * * $RCSfile: expftext.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-08-23 09:34:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#ifndef _FDSB_NID_ #define _FDSB_NID_ namespace fdsb { /** * Node Identifier Plain Old Data type. */ struct Nid { enum struct Type : unsigned char { special, integer, real, character, allocated, }; enum struct Special : unsigned long long { null, bool_true, bool_false, }; Ty...
<commit_before>/************************************************************************* * * $RCSfile: shtabdlg.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: dr $ $Date: 2002-10-02 14:59:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: undobase.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: nn $ $Date: 2002-10-09 10:58:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <X11/cursorfont.h> #include <X11/Xcursor/Xcursor.h> #include "CursorResourceLinux.h" #include "core/Engine.h" #include "core/linux/WindowLinux.h" #include "utils/Log.h" namespace ouzel { namespace input { ...
<commit_before>// Copyright (c) 2010 The WebM 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 in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All...
<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 "webkit/glue/plugins/pepper_audio.h" #include "base/logging.h" #include "third_party/ppapi/c/dev/ppb_audio_dev.h" #include "t...
<commit_before>// Copyright (c) 2019 ASMlover. 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 o...
<commit_before>/** * This file is part of the CernVM File System. */ #include "dirtab.h" #include <fstream> #include <sstream> #include "util.h" using namespace catalog; Dirtab::Dirtab() : valid_(true) {} Dirtab::Dirtab(const std::string &dirtab_path) { if (! FileExists(dirtab_path)) { LogCvmfs(kLogCatal...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Lice...
<commit_before>#include "commands.h" #include "sim/except.h" #include <iostream> using namespace std; void PrintException(Simulator::MGSystem *sys, ostream& out, const exception& e) { out << endl << e.what() << endl; auto se = dynamic_cast<const Simulator::SimulationException*>(&e); if (se != NULL) {...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2015 vmolsa <ville.molsa@gmail.com> (http://github.com/vmolsa) * * 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 restrictio...
<commit_before>/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
<commit_before>/* ======================================================================= Copyright (c) 2011, Institute for Microelectronics, TU Wien http://www.iue.tuwien.ac.at ----------------- ViennaFVM - The Vienna Finite Volume Method Library ...
<commit_before>/** @file tutorialAdaptiveCDR.cpp @brief Tutorial on how to use G+Smo to solve a convection-diffusion-reaction problem. This file is part of the G+Smo library. 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>/* <x0/HttpListener.cpp> * * This file is part of the x0 web server project and is released under LGPL-3. * * (c) 2009 Chrisitan Parpart <trapni@gentoo.org> */ #include <x0/http/HttpListener.h> #include <x0/http/HttpConnection.h> #include <x0/http/HttpServer.h> #include <x0/SocketDriver.h> #includ...
<commit_before>/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.1 Module * ------------------------------------------------- * * Copyright 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>#include "execHelperOptions.h" #include <iostream> #include <string> #include <assert.h> #include "log/log.h" #include "yaml/yaml.h" #include "config/settingsNode.h" #include "executorInterface.h" #include "pattern.h" #include "patternsHandler.h" using std::cout; using std::endl; using std::string; us...
<commit_before><commit_msg>perception:io_util add range check<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2015 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementati...
<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>#include "spec_helper.h" #include "helpers/load_language.h" #include <unistd.h> #include <dlfcn.h> #include <sys/types.h> #include <sys/wait.h> #include <string> #include <fstream> #include "tree_sitter/compiler.h" using std::string; using std::ofstream; static std::string run_cmd(const char *cmd, cons...
<commit_before>#include "bloomierHash.h" BloomierHash::BloomierHash(const size_t pModulo, const size_t pNumberOfElements, const size_t pBitVectorSize, const size_t pHashSeed) { mModulo = pModulo; mNumberOfElements = pNumberOfElements; mHash = new Hash(); mBitVectorSize = pBitVectorSize; mHashSeed = pHashSeed; }; B...
<commit_before>// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. #pragma once #if !defined(CPPRX_RX_INCLUDES_HPP) #define CPPRX_RX_INCLUDES_HPP #pragma push_macro("min") #pragma push_macro("max") #undef min #undef max #include <excep...
<commit_before>#include "runtime/debugger.h" #include "runtime/helpers/spy_debugger.h" #include "runtime/runtime_spec_helper.h" extern "C" const TSLanguage * ts_language_json(); START_TEST describe("Document", [&]() { TSDocument *doc; before_each([&]() { doc = ts_document_make(); }); after_each([&]() {...
<commit_before>#include "TestCommon.hh" using namespace SDLut::video; class AssertEngine; Logger testlog("TestPixelFormat"); Color bgc(128,128,128); Color red(255,0,0); Color green(0,255,0); Color blue(0,0,255); Color alpha(255,255,255,128); class MyEngine : public TestEngine { Image * imgred,*imggreen,*imgbl...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: dirctrl.cpp // Purpose: Implementation of class wxExGenericDirCtrl // Author: Anton van Wezenbeek // Copyright: (c) 2013 Anton van Wezenbeek ////////////////////////////////////////////////////////////////...
<commit_before>/* * Copyright 2011-2016 Blender Foundation * * 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 appli...
<commit_before>/** A portable OpenAL audio subsystem implementation Based on https://github.com/corporateshark/Android-NDK-Game-Development-Cookbook/tree/master/Chapter5 **/ #include <atomic> #include <thread> #include "AudioSubsystem_OpenAL.h" #include "OpenAL/LAL.h" class clAudioSource_OpenAL: public iAudioSour...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) Module: itkImageToImageAffineMutualInformationGradientDescentRegistrationTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 20...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sdfilter.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: obo $ $Date: 2006-09-16 18:19:23 $ * * The Contents of this file are mad...
<commit_before>/************************************************************************* * * $RCSfile: BreakDlg.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2004-01-20 11:29:55 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include <string> #include <cassert> #include <cstdarg> #include <libport/cstdlib> #include <iostream> #include <stdexcept> #include <sdk/config.h> #include <libport/cli.hh> #include <libport/containers.hh> #include <libport/file-system.hh> #include <libport/foreach.hh> #include <libport/path.hh> #incl...
<commit_before>#include "messages.h" qint64 Messages::FileSendingContext::transferID; QMap<qint64, std::shared_ptr<Messages::FileSendingContext>> Messages::FileSendingContext::transfers; qint64 Messages::FileReceivingContext::transferID; QMap<qint64, std::shared_ptr<Messages::FileReceivingContext>> Messages::...
<commit_before>/* * Copyright (c) 2004-present, 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 directo...
<commit_before>/* * Copyright 2020 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 la...
<commit_before><?hh // strict namespace hhpack\process; final class Pipe { private BufferedOutput $bufferedOutput; public function __construct( private resource $handle ) { $this->bufferedOutput = new BufferedOutput(); } public function eof() : bool { return feof...
<commit_before>/* MIT License Copyright (c) 2017 CPirc 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, merge, pu...
<commit_before>// Copyright (c) 2015 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-CHROMIUM file. #include "atom/browser/notifications/platform_notification_service.h" #include "atom/browser/atom_browser_client.h" #include ...
<commit_before><commit_msg>Update visitor_test.cpp<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>//////////////////////////////////////////////////////////////////////////////// // taskwarrior - a command line task list manager. // // Copyright 2010 - 2011, Johannes Schlatow. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documen...
<commit_before>/******************************************************************** * Author: Carlos Moreno * Created: 2015-06-04 * * Description: * * This is the file used for question 2 of assignment 1. You * may also use it as sample / starting point to create the * server for question 1...
<commit_before>#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <sys/time.h> #include <string.h> #include <iostream> #include <fstream> #include <boost/lexical_cast.hpp> #include "packet.h" #define USAGE "Usage:\r\nc \r\n[tux machine number] \r\n[probability of packet...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before> #ifdef CAD #include "cad.h" moab::DagMC* DAGMC; void load_cad_geometry_c() { if(!DAGMC) { DAGMC = new moab::DagMC(); } moab::ErrorCode rval = DAGMC->load_file("dagmc.h5m"); MB_CHK_ERR_CONT(rval); rval = DAGMC->init_OBBTree(); MB_CHK_ERR_CONT(rval); int32_t cad_univ_id = 0; // uni...
<commit_before>#include <boost/python.hpp> #include <boost/optional/optional.hpp> #include <nix.hpp> #include <transmorgify.hpp> #include <accessors.hpp> #include <PyEntity.hpp> using namespace boost::python; using namespace nix; using namespace base; using namespace nixpy; BOOST_PYTHON_MODULE(core) { PyFile...
<commit_before>/* * Copyright 2008, 2009 Google Inc. * Copyright 2007 Nintendo Co., Ltd. * * 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...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017 Couchbase, 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 a...
<commit_before>#include "CppUnitTest.h" #include <string> #include <vector> #include <array> using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace std; namespace algo { template<class Traits> class tokens { typedef vector<typename Traits::type> token_vector; token_...
<commit_before>/* * Copyright 2020 Tom van Dijk * * 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 l...
<commit_before>/// /// @file CpuInfo.cpp /// @brief Get the CPUs cache sizes in bytes. /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primesieve/CpuInfo.hpp> #include <cstddef...
<commit_before>// RenderObject.cpp // nativeGraphics #include "RenderObject.h" #include "glsl_helper.h" #include "obj_parser.h" #include "transform.h" #include "common.h" #include "log.h" RenderObject::RenderObject(const char *objFilename, const char *vertexShaderFilename, const char *fragmentShaderFilename) { ...