text
stringlengths
54
60.6k
<commit_before>#ifndef STAN_MATH_PRIM_ERR_CHECK_FINITE_HPP #define STAN_MATH_PRIM_ERR_CHECK_FINITE_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err/is_scal_finite.hpp> #include <stan/math/prim/err/throw_domain_error.hpp> #include <stan/math/prim/err/throw_domain_error_vec.hpp> #include <stan/math/pr...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_recovery_ffdc_defi...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_st...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_st...
<commit_before>#pragma once #include "libkrbn/impl/libkrbn_complex_modifications_assets_manager.hpp" #include "libkrbn/impl/libkrbn_configuration_monitor.hpp" #include "libkrbn/impl/libkrbn_connected_devices_monitor.hpp" #include "libkrbn/impl/libkrbn_file_monitor.hpp" #include "libkrbn/impl/libkrbn_frontmost_applicat...
<commit_before>#include <uv.h> #include "../../../ui.h" #include "nbind/nbind.h" extern int uiConnectionNumber(); extern int uiEventsPending(); uv_poll_t * handle; static void onEventsPending(uv_poll_t* handle, int status, int events) { Nan::HandleScope scope; while(uiEventsPending()) { uiMainStep(0); } } b...
<commit_before>// Copyright 2017 Adam Smith // 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 agree...
<commit_before>#pragma once /* * Author(s): * - Chris Kilner <ckilner@aldebaran-robotics.com> * - Cedric Gestes <gestes@aldebaran-robotics.com> * * Copyright (C) 2010 Aldebaran Robotics */ #ifndef _QI_TRANSPORT_TRANSPORT_CONTEXT_HPP_ #define _QI_TRANSPORT_TRANSPORT_CONTEXT_HPP_ #include <string> #include <qi/tr...
<commit_before>#include "matrix.h" // // Public member functions // Matrix::Matrix() { // USAGE: Constructor for the matrix class lines = 0; score = 0; active_piece = nullptr; initGrid(); } void Matrix::printGrid(bool mode) { // USAGE: Prints out contents of cells in the grid if (mode) { ...
<commit_before>#include "memory.h" #include "cartridge.h" #include <assert.h> u8 Memory::read_byte(uint address) const { if (address < 0x8000 || (address >= 0xa000 && address < 0xc000)) { // ROM / external RAM return cart.get8(address); } else if (address >= 0x8000 && address < 0xa000) { // VRAM ...
<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 "base/command_line.h" #include "chrome/browser/devtools/devtools_window.h" #include "chrome/browser/ui/browser.h" #include "ch...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: prnsetup.cxx,v $ * $Revision: 1....
<commit_before>/* * Copyright (C) 2014 INRA * * 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...
<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>// 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 "app/l10n_util.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chromeos/login/account_screen.h" #inclu...
<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 (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 "base/files/file_path.h" #include "base/files/scoped_temp_dir.h" #include "base/threading/sequenced_worker_pool.h" #include "c...
<commit_before>// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - OpenGL Renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_OPENGLRENDERER_CONTEXTIMPL_HPP #define NAZARA_OPENGLRENDERER_CONTEXTIMPL_HPP #include <Nazara/Pr...
<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>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/notifications/extension_welcome_notification.h" #include "base/guid.h" #include "base/lazy_instance.h" #include "...
<commit_before>/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>#include <vector> #include <string> #include <iostream> #include <math.h> #include "matrix.h" #include "field2.h" #include "h5out.h" using namespace std; int get_direction(vector<int> p1, vector<int> p2) { if (p1[0] == p2[0]) return 1; else if (p1[1] == p2[1]) return 0; else...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the fi...
<commit_before>#ifndef HMLIB_ODEINT_INTERFERE_BOUNDARY_INC # namespace hmLib { namespace odeint { template<typename state_type_> struct sigmoid_boundary_diff{ template<typename functor> double sigmoid_zero_boundary(double x, functor dx, double boundary_error, double abs_error) { if (boundary_error < ...
<commit_before>#ifndef CELL_AUTOMATA_OPENGLWRAPPER_DRAWFIELD #define CELL_AUTOMATA_OPENGLWRAPPER_DRAWFIELD #include <string> #include <GL/glut.h> template<typename window_traits> void setWindow(int& argc, char** argv) { glutInit(&argc, argv); glutInitWindowSize(window_traits::window_x_size, window_tr...
<commit_before>#include <cstdlib> #include <ctime> #include <iostream> #include <algorithm> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> const char game_name[] = "barley-break"; const int screen_width = 640; const int screen_height = 480; const int tile_size = 64; const int font_size = 32; const int pole_size = 4...
<commit_before>#include <iostream> #include <vector> using std::vector; using std::cout; using std::endl; using std::cin; int main() { vector<int> ivec; for (int i; cin >> i; ivec.push_back(i)); if (ivec.empty()) { cout << "input at least one integer." << endl; return -1; } i...
<commit_before>// // @author @Yue Wang @shbling @Soyn @Yue Wang // // Exercise 10.24: // Use bind and check_size to find the first element in a vector of ints that has a value greater // than the length of a specified string value. // // Discussion over this exercise on StackOverflow // http://stackoverflow.com/quest...
<commit_before>// // ex11_38.cpp // Exercise 11.38 // // Created by pezy on 12/18/14. // Copyright (c) 2014 pezy. All rights reserved. // // Rewrite the word-counting (11.1, p. 421) and word-transformation (11.3.6, p. // 440) programs to use an unordered_map. #include <unordered_map> #include <set> #include <str...
<commit_before>#include "Arduino.h" #include "mt8880.h" void mt8880_init() { //Prepare chip select and register select pinMode(CS, OUTPUT); digitalWrite(CS, HIGH); pinMode(RS, OUTPUT); digitalWrite(RS, HIGH); //Wait until 100ms after power on while(millis() < 100); //Creepy initialization magic from...
<commit_before>#include <fftw3.h> #include <boost/timer/timer.hpp> #include <boost/chrono.hpp> #include <cmath> #include <iostream> #include <complex> #include <Eigen/Dense> #include <vector> #include <unsupported/Eigen/FFT> #include <fstream> #include "chirpz.h" using namespace Eigen; namespace chirpz { void hell...
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved. #include <glog/logging.h> #include "osquery/core.h" #include "osquery/flags.h" #include "osquery/filesystem.h" #include "osquery/registry.h" namespace osquery { #define __GFLAGS_NAMESPACE google const std::string kDescription = "your opera...
<commit_before>/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the Apache 2.0 license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tre...
<commit_before>// Copyright (c) 2013-2014 Flowgrammable.org // // 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 a...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3 * * (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS * * ...
<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 "net/websockets/websocket_handshake_stream_create_helper.h" #include <string> #include <vector> #include "net/base/completion_ca...
<commit_before>// // Copyright 2014 Team WALL-E // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
<commit_before>#include <string.h> #include <iostream> #include <fstream> #include <vector> #include <stdio.h> #include <sstream> #include <arpa/inet.h> #include <unistd.h> #include <sys/epoll.h> #include <errno.h> #include <openssl/ec.h> #include <openssl/bn.h> #include <openssl/objects.h> #include "rapidjson/docume...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WIT...
<commit_before>/* * Copyright (C) 2006, 2007 Apple Computer, Inc. * Copyright (c) 2006, 2007, 2008, 2009, 2012 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: * * * Redistr...
<commit_before>// Copyright 2014 BVLC and contributors. #include <algorithm> #include <vector> #include "cuda_runtime.h" #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/vision_layers.hpp" #include "caffe/test/test_gradient_check_util.hpp" #i...
<commit_before>/************************************************************************** * * Copyright 2010 VMware, Inc. * Copyright 2011 Intel corporation * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation fil...
<commit_before>// Copyright (c) 2019, 2021 by Robert Bosch GmbH, Apex.AI Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses...
<commit_before>/*! @file @copyright Edouard Alligand and Joel Falcou 2015-2017 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_BRIGAND_FUNCTIONS_BITWISE_SHIFT_LEFT_HPP #define BOOST_BRIGAND_FUNCTIONS_BITWISE_SHIFT_LEFT_HPP #include <brigand/types/integral_constant.hpp> ...
<commit_before>/// ///@Author PEZY ///@Date Aug. 2014 ///@Brief /// read a sequence of strings from cin and /// store those values in a vector. /// #include <iostream> #include <vector> #include <string> int main() { std::vector<std::string> vec; std::string str; while (std::cin >> str) vec.push_back(st...
<commit_before>// // ex7_07.cpp // Exercise 7.7 // // Created by pezy on 11/8/14. // Copyright (c) 2014 pezy. All rights reserved. // #include "ex7_06.h" int main() { Sales_data total; if (read(std::cin, total)) { Sales_data trans; while (read(std::cin, trans)) { if (total.isbn...
<commit_before>//! @file Exercise 9.27 //! @author pezy //! @date 2014-12-03 //! @Brief Write a program to find and remove the odd-valued elements in a forward_list<int>. #include<iostream> #include <forward_list> using namespace std; int main() { forward_list<int> flst{0,1,2,3,4,5,6,7,8,9}; for(auto prev=fls...
<commit_before>/* Ex 6.7: Write a grammar for bitwise logical expressions. A bitwise logical expression is much like an arithmetic expression except that the operators are ! (not), ~ (complement), & (and), | (or), and ^ (exclusive or). Each operator does its operation to each bit of its integer operands (see §25.5). ! ...
<commit_before>#include "types.h" #include "amd64.h" #include "kernel.hh" #include "cpu.hh" #include "gc.hh" #include "percpu.hh" #include "spinlock.h" #include "condvar.h" #include "proc.hh" #include "uwq.hh" #include "vm.hh" #include "kalloc.hh" #include "bits.hh" extern "C" { #include "kern_c.h" } bool uwq_trywork(...
<commit_before>#include "spacetyper/scalablesprite.h" #include <cassert> #include <iostream> #include <algorithm> #include "spacetyper/vao.h" #include "spacetyper/rect.h" #include "spacetyper/texture.h" #include "spacetyper/texturecache.h" #include "scalingsprite.pb.h" #include "spacetyper/proto.h" ////////////////...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_background_sc...
<commit_before>/* * Copyright (C) 2010-2014 Jeremy Lainé * Contact: https://github.com/jlaine/qdjango * * This file is part of the QDjango Library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free So...
<commit_before><commit_msg>Update p10152 - ShellSort.cpp<commit_after><|endoftext|>
<commit_before>/* * Chemharp, an efficient IO library for chemistry file formats * Copyright (C) 2015 Guillaume Fraux * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/ */...
<commit_before>/* This file is part of the KDE project. Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 o...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>#include <gmock/gmock.h> #include <gtest/gtest.h> #include <babylon/babylon_stl_util.h> #include <babylon/engines/null_engine.h> #include <babylon/engines/scene.h> #include <babylon/meshes/buffer.h> #include <babylon/meshes/geometry.h> #include <babylon/meshes/vertex_buffer.h> std::unique_ptr<BABYLON::...
<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 "SkBitmap.h" #include "SkErrorInternals.h" #include "SkValidatingReadBuffer.h" #include "SkStream.h" #include "SkTypeface.h" SkValidatingReadBuffer::S...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2013-2015 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>#include <cppunit/extensions/TestFactoryRegistry.h> #include <cppunit/portability/CppUnitMap.h> #include <cppunit/TestSuite.h> #include <assert.h> CPPUNIT_NS_BEGIN /*! \brief (INTERNAL) List of all TestFactoryRegistry. */ class TestFactoryRegistryList { private: typedef CppUnitMap<std::string, Test...
<commit_before>//=====================================================================// /*! @file @brief A/D 変換のサンプル @n P22/ANI2(54)、P23/ANI3(53) を変換して表示 @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include <cstdint> #include "common/port_utils.hpp...
<commit_before>//=====================================================================// /*! @file @brief A/D 変換のサンプル @n P22/ANI2(54)、P23/ANI3(53) を変換して表示 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2016 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45...
<commit_before>// ROS Building Operating System digital temperature and humidity // sensor driver based on: // How to access GPIO registers from C-code on the Raspberry-Pi // Example program // 15-January-2012 // Dom and Gert // // Access from ARM Running Linux #define BCM2708_PERI_BASE 0x20000000 #defi...
<commit_before>/* * ==================================================================== * Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved. * * 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 ...
<commit_before>#ifndef CLIENT_WS_HPP #define CLIENT_WS_HPP #include <boost/asio.hpp> #include <unordered_map> #include <iostream> #include <regex> #include <random> namespace SimpleWeb { template <class socket_type> class ClientBase { public: class Response { friend class ClientBase<s...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>#include "StorageBulkCursor.h" #include "StorageEnvironment.h" #include "StoragePageCache.h" StorageBulkCursor::StorageBulkCursor() : dataPage(NULL, 0) { chunkID = 0; shard = NULL; env = NULL; isLast = false; } StorageBulkCursor::~StorageBulkCursor() { env->numBulkCursors = env->nu...
<commit_before>//#define NO_IMPORT_ARRAY //#define PY_ARRAY_UNIQUE_SYMBOL 23847 //#define NPY_ENABLE_SEPARATE_COMPILATION #ifdef LINK_PYTHON_THREADS #include "gil_release.h" #endif #include "boilerplate.h" /*#include <infer_machine/distribution_map.h> #include <infer_machine/hier_infer_machine.h> //#include <datase...
<commit_before><commit_msg>Fixed symlink<commit_after><|endoftext|>
<commit_before>/* * datasetfibers.cpp * * Created on: Dec 12, 2012 * Author: Ralph Schurade */ #include "datasetfibers.h" #include "../../gui/gl/fiberrenderer.h" DatasetFibers::DatasetFibers( QString filename, QVector< QVector< float > > fibs, int numPoints, int numLines ) : Dataset( filename, Fn::Data...
<commit_before>#include <iostream> #include <set> #include <cassert> template <typename T> struct node { T data; node *left = nullptr, *right = nullptr; node(T data): data(data) {} }; template <typename T> class tree { node<T>* root = nullptr; public: bool contains(const T& data) { auto c...
<commit_before>#include <osmium/visitor.hpp> #include <osmium/index/map/all.hpp> #include <osmium/handler/node_locations_for_ways.hpp> #include <osmium/area/multipolygon_collector.hpp> #include <osmium/area/assembler.hpp> #include "generic_writer.hpp" #include "generic_handler.hpp" #include "merged_input.hpp" #include...
<commit_before>#include "Scaly.h" namespace scaly { // Some statistics static int oversizedPagesAllocated; static int oversizedBytesAllocated; static int oversizedPagesDeallocated; static int oversizedBytesDeallocated; static int pagesDisposed; static int extensionPagesAllocated; extern __thread _Task* __CurrentTask;...
<commit_before>////////////////////////////////////////////////////////////////////////// // // SneezyMUD - All rights reserved, SneezyMUD Coding Team // ////////////////////////////////////////////////////////////////////////// #include "stdsneezy.h" #include "obj_pool.h" void TPool::setDrinkUnits(int n) { setMax...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>/** * File : B.cpp * Author : Kazune Takahashi * Created : 2018-4-7 14:05:18 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // ...
<commit_before>#define DEBUG 1 /** * File : E2.cpp * Author : Kazune Takahashi * Created : 3/10/2019, 2:26:12 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector>...
<commit_before>/* Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4 --> 5 Credits: Special thanks to @mithmatt for adding this problem and creating all test cases. */ /** * Definition for singly-linked li...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<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, to an...
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces. * Copyright (C) 2005, 2006, 2007 Roman Schindlauer * Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner * Copyright (C) 2009, 2010 Peter Schüller * * This file is part of dlvhex. * * dlvhex is free software; you can redistr...
<commit_before>#pragma once #include <Physic/Utils/BtConversion.hpp> #include <Systems/System.h> #include <Components/RigidBody.hpp> #include <Physic/BulletDynamicManager.hpp> #include <Core/Engine.hh> #include <Entities/EntityFlags.hh> #include <future> namespace AGE { class BulletDynamicSystem : public System { ...
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* This WRM evaluator evaluates saturation of gas, liquid, and ice from capillary pressures for the ice-liquid and liquid-gas pairs. Authors: Ethan Coon (ecoon@lanl.gov) */ #include "wrm_permafrost_evaluator.hh" #include ...
<commit_before>#include <X11/Xlib.h> #include <X11/keysym.h> #include <irrlicht/Keycodes.h> #include <stdio.h> #include <unistd.h> #define RETURN 13 #define BS 8 #define SPACE 32 XKeyEvent createKeyEvent(Display *display, Window &win, Window &winRoot, ...
<commit_before>/// this file exists to remove C++11 from CUDA, to support outdated nvcc compilers #include "lkt.h" #include <time.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> //#include "mergesort.hh" #include "tbb/tbb.h" #include "quicksort.hh" /* std::ostream& operator<<(std::o...
<commit_before><commit_msg>stop uninitialized memory leaking into resource files.<commit_after><|endoftext|>
<commit_before>// Time: O(max(r, c) * wlogw) // Space: O(w^2) class Solution { public: int shortestDistance(vector<vector<int>>& maze, vector<int>& start, vector<int>& destination) { static const vector<vector<int>> dirs = {{-1, 0}, {0, 1}, {0, -1}, {1, 0}}; priority_queue<node, vector<node>, grea...
<commit_before>#include <bits/stdc++.h> #define MAXN 100002 #define X first #define Y second #define PB push_back #define MP make_pair #define INF -1 using namespace std; typedef pair<int, int> P; int N, M, K; vector<P> E[MAXN]; vector<int> S; bool isStorage[MAXN]; int ans = -1; int main() { int i, j, u, v, l, n; ...
<commit_before>/* * Copyright (c) 2020 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>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>/** * \file * \brief Semaphore C-API test cases * * \author Copyright (C) 2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \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 ...
<commit_before>#pragma once #include <stdexcept> #include <string> #include <vector> #include <initializer_list> #include <memory> // ---------------------------------------------------------------------- class argc_argv { public: class option_not_found : public std::runtime_error { public: using std::runtime_e...
<commit_before>#include "ProcessEvent.h" #include <specialized/eventbackend.h> #if defined(__linux__) #include <linux/version.h> #elif !defined(KERNEL_VERSION) #define LINUX_VERSION_CODE 0 #define KERNEL_VERSION(a, b, c) 0 #endif #if defined(__linux__) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15) /* Linux 2.6.15+...
<commit_before>#include <chrono> #include "ParallelAndNaive.h" #include "SequentialAnd.h" using Clock = std::chrono::high_resolution_clock; using std::chrono::duration_cast; using std::chrono::microseconds; void test(const char* info, MultipleAndInterface& ma, const std::vector<bitvector*> input) { assert(input...
<commit_before>/** * The MIT License (MIT) * * Copyright (c) 2016 Ruben Van Boxem * * 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 th...
<commit_before>/* * Copyright 2009-2019 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. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
<commit_before>/** * @file py_sql_well.cpp * @brief python wraper for well fracture storage * @author Oleg Borschuk * @version * @date 2011-07-29 */ #include "py_sql_well.h" #include "sql_well.h" #include "bs_serialize.h" #include "bs_prop_base.h" using namespace boost::python; #ifdef BSPY_EXPORTING_PLUGIN n...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to...
<commit_before>/// @author uentity /// @date 01.07.2019 /// @copyright /// 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 https://mozilla.org/MPL/2.0/ #include <bs/serialize/object_formatter.h> ...