text
stringlengths
54
60.6k
<commit_before>/* Copyright 2020 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>/* Copyright 2021 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 "stdafx.h" #include "ProcessAsUser.h" #include "Settings.h" #include "ErrorUtilities.h" #include "ProcessTracker.h" #include "Result.h" #include "ExitCode.h" #include "Environment.h" #include "Trace.h" #include "Job.h" #include "IntegrityLevelManager.h" class Trace; class ProcessTracker; Result...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 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. Redi...
<commit_before>#ifndef BNI_LEARNING_STEPWISE_STRUCTURE_HC_HPP #define BNI_LEARNING_STEPWISE_STRUCTURE_HC_HPP #include <array> #include <string> #include <random> #include <bayesian/graph.hpp> #include <bayesian/sampler.hpp> #include <bayesian/hash.hpp> #include <bayesian/evaluation/transinformation.hpp> #include <baye...
<commit_before>#include "tiramisu/tiramisu.h" #include "wrapper_optical_flow.h" // This code is the Tiramisu implementation of the following Matlab code // https://www.mathworks.com/examples/computer-vision/community/35625-lucas-kanade-method-example-2?s_tid=examples_p1_BOTH using namespace tiramisu; int main(int a...
<commit_before><commit_msg>Fix clang build?<commit_after><|endoftext|>
<commit_before>#include "thin-stack.h" using namespace std; namespace k = kernels; ThinStack::ThinStack(ModelSpec spec, ThinStackParameters params, cublasHandle_t handle) : spec(spec), params(params), stack_size(spec.seq_length), handle(handle) { stack_total_size = (stack_size * spec.batch_size) * spec.model_...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.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 th...
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<commit_before><commit_msg>dpl: coverity fixes<commit_after><|endoftext|>
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published ...
<commit_before>/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <utility> #include <chrono> #include <string> #include "util/sstream.h" #include "util/interrupt.h" #include "util/lazy_list_fn.h" #...
<commit_before>/*********************************************************************** created: 7th December 2013 author: Lukas Meindl *************************************************************************/ /*************************************************************************** * Copyright (C...
<commit_before>/*********************************************************************** filename: FalButton.cpp created: Wed Jun 22 2005 author: Paul D Turner <paul@cegui.org.uk> *************************************************************************/ /********************************************...
<commit_before>// Query binary phrase tables. // Christian Hardmeier, 16 May 2010 #include <cstdlib> #include <cstring> #include <string> #include <vector> #include "PhraseDictionaryTree.h" #include "Util.h" void usage(); typedef unsigned int uint; int main(int argc, char **argv) { int nscores = 5; std::string...
<commit_before>/** * Copyright (c) 2016 DeepCortex GmbH <legal@eventql.io> * Authors: * - Paul Asmuth <paul@eventql.io> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license") as * published by the Free Software Foun...
<commit_before>/* * test1.cpp * * Created on: 2012-9-21 * Author: yanghuan */ #include <cstdlib> #include <cstring> #include <iostream> #include <tuple> #include <type_traits> #include <functional> #include <boost/mpl/at.hpp> #include <boost/mpl/vector.hpp> #include <boost/mpl/sort.hpp> #include "refecti...
<commit_before>#include <utki/config.hpp> #include "init_guard.hpp" #include "dns_resolver.hpp" #if M_OS == M_OS_WINDOWS # include <winsock2.h> # include <utki/windows.hpp> #elif M_OS == M_OS_LINUX || M_OS == M_OS_UNIX || M_OS == M_OS_MACOSX # include <signal.h> #else # error "Unsupported OS" #endif ...
<commit_before>#include <QtCore/QFileInfo> #include <QtCore/QDir> #include <QtWidgets/QApplication> #include <QtWidgets/QMessageBox> #include <qrkernel/settingsManager.h> #include "mainWindow/projectManager/projectManager.h" #include "mainWindow/projectManager/autosaver.h" using namespace qReal; Autosaver::Autosave...
<commit_before>/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Leonardo de Moura, Sebastian Ullrich */ #if defined(LEAN_JSON) #include <algorithm> #include <string> #include <vector> #include "util/lean_path.h...
<commit_before>// Copyright (c) 2015, Ming Wen #include "fys_algorithms.hpp" using namespace std; using namespace cv; namespace fys { // -------- FEATURE DETECTOR -------- FysFeatureDetector::FysFeatureDetector(string name) { if (name == "SIFT") { this->detector = new SIFT(); } else if (name == ...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2013 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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; eit...
<commit_before>// glfw3_skeleton.cpp #ifdef _WIN32 # define WINDOWS_LEAN_AND_MEAN # define NOMINMAX # include <windows.h> #endif #include <sstream> #include <GL/glew.h> #include <GLFW/glfw3.h> #ifdef USE_CUDA #else # include "vector_make_helpers.h" #endif #include "GL/ShaderFunctions.h" #include "MatrixMath.h...
<commit_before>/** @file @brief Implementation @date 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2016 Sensics, 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 ...
<commit_before>// // function.cpp // integral // // Copyright (C) 2017 André Pereira Henriques // aphenriques (at) outlook (dot) com // // This file is part of integral. // // integral is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by...
<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 <algorith...
<commit_before>#include "sceneview.h" #include "editor/world_editor.h" #include "core/crc32.h" #include "editor/ieditor_command.h" #include "editor/measure_tool.h" #include "engine/engine.h" #include "engine/iplugin.h" #include "graphics/pipeline.h" #include "graphics/render_scene.h" #include "insert_mesh_command.h" #i...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef ATOMIC_HH #define ATOMIC_HH #include <pthread.h> #include <queue> #include <sched.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include "callbacks.hh" #include "locks.hh" #define MAX_THREADS 100 #i...
<commit_before>/*************************************************************************** * Copyright (C) 2006 by Jeroen Broekhuizen * * jengine.sse@live.nl * * ...
<commit_before>#include "sprite.h" #include "gfx.h" #include "CodeAttributes.h" #ifndef DEDICATED_ONLY #include "blitters/context.h" #endif #include "gusanos/allegro.h" #include <iostream> #include <algorithm> using namespace std; // LIGHTHAX!! #include "CVec.h" Sprite* genLight( int radius ) { ALLEGRO_BITMAP* li...
<commit_before>#ifndef INSANITY_SYSTEM_HPP #define INSANITY_SYSTEM_HPP #include "game.hpp" #include "game_config.hpp" #include "components/velocity.hpp" #include "entityx/entityx.h" #include "glm/common.hpp" #include <iostream> #ifdef __EMSCRIPTEN__ #include <SDL/SDL_mixer.h> #else #include <SDL_mixer.h> #endif class...
<commit_before>#include <cassert> #include <cstdlib> #include <cstdio> #include <cstring> #include <vector> #include <sstream> #include <iostream> #include <stdexcept> #include <functional> #include <GLFW/glfw3.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> #...
<commit_before>// Copyright (c) 2013-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Unit tests for alert system #include "alert.h" #include "chain.h" #include "chainparams.h" #include "clien...
<commit_before>/// Tests chunked upload and zipped upload against the Rackspace cloud files API /// https://developer.rackspace.com/docs/cloud-files/v1/developer-guide/#create-or-update-object #include <RESTClient/base/logger.hpp> #include <RESTClient/http/HTTP.hpp> #include <RESTClient/http/Services.hpp> #include <R...
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/hdf5/BlockHDF5...
<commit_before>/* * Copyright (C) 2017 The Android Open Source Project * * 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 ...
<commit_before>#ifndef TURBO_IPC_POSIX_PIPE_HPP #define TURBO_IPC_POSIX_PIPE_HPP #include <utility> #include <vector> namespace turbo { namespace ipc { namespace posix { class pipe { public: class front { public: ~front(); private: friend class pipe; typedef int handle; front(handle front); fron...
<commit_before>/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <limits> #include <algorithm> #include "util/exception.h" #include "kernel/metavar.h" #include "kernel/free_vars.h" #include "kernel...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before>#include <annis/api/search.h> using namespace annis; using namespace annis::api; Search::Search(std::string databaseDir) : databaseDir(databaseDir) { cache = std::unique_ptr<DBCache>(new DBCache()); } Search::~Search() {} long long Search::count(std::vector<std::string> corpora, std::string query...
<commit_before>/* Copyright (C) 2012 Rohan Garg <rohangarg@kubuntu.org> 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 of the License, or (at your optio...
<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 <string> #pragma warning(push, 0) #include "HTTPHeaderMap.h" #include "ResourceHandle.h" #include "R...
<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 <iostream> #include "base/at_exit.h" #include "base/basictypes.h" #include "base/command_line.h" #include "base/event_re...
<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. // Creates an instance of the test_shell. #include <stdlib.h> // required by _set_abort_behavior #include <windows.h> #include ...
<commit_before>// Copyright (c) 2011, Cornell University // 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 "condor_common.h" #include <stdlib.h> #include <sys/types.h> #include <netinet/in.h> #include "condor_classad.h" #include "proc_obj.h" #include "dgram_io_handle.h" #include "condor_attributes.h" #include "condor_expressions.h" #include "condor_collector.h" int send_classad_to_machine(DGRAM_IO_...
<commit_before>/* * Copyright (c) 2015-2016 Fotonic * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * * The Eclipse Public License is available at * ...
<commit_before>#include "ImgProcThread.h" #include <time.h> namespace cvImagePipeline { namespace Filter { IMPLEMENT_CVFILTER(ImgProcThread); ImgProcThread::ImgProcThread() : runProcessorThread(false), thead_handle(INVALID_HANDLE_VALUE), interval(0), eventHandle(INVALID_HANDLE_VALUE) { ::Initiali...
<commit_before>#include "linalg.h" #include <gsl/gsl_linalg.h> namespace votca { namespace tools { void linalg_qrsolve(ub::vector<double> &x, ub::matrix<double> &A, ub::vector<double> &b) { // now A is a tridiagonal system, solve it! double* pointer_m = &A(0,0); double* pointer_b = &b(0); const int N...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2020 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the...
<commit_before>/********************************************************************************** * NAN - Native Abstractions for Node.js * * Copyright (c) 2014 NAN contributors * * MIT +no-false-attribs License <https://github.com/rvagg/nan/blob/master/LICENSE> **************************************************...
<commit_before>#include "listformaction.h" #include "rssfeed.h" #include "view.h" namespace newsboat { ListFormAction::ListFormAction(View* v, std::string formstr, std::string list_name, ConfigContainer* cfg) : FormAction(v, formstr, cfg) , list(list_name, FormAction::f, cfg->get_configvalue_as_int("scrolloff")...
<commit_before>#include <string> #include <memory> #include <iostream> #include <limits.h> #include <llvm/LLVMContext.h> #include <llvm/Target/TargetSelect.h> #include <llvm/Bitcode/ReaderWriter.h> #include <llvm/ExecutionEngine/ExecutionEngine.h> //#include <llvm/ModuleProvider.h> #include <llvm/Support/MemoryBuffer....
<commit_before>/* * Copyright 2012 Adam Murdoch * * 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 ...
<commit_before>#include <iostream> #include "map/Level.h" Level::Level(uint32_t width, uint32_t height, Generator& level_generator) { _width = width; _height = height; initializeLevel(); level_generator.generateMap(_width, _height, _tiles); } Level::~Level() { } void Level::printLevel() { for(uint32_t x = 0;...
<commit_before>//===----------------------------------------------------------------------===// // // Peloton // // hybrid_scan_executor.cpp // // Identification: src/executor/hybrid_scan_executor.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===----------------...
<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 * "...
<commit_before>#include <iostream> using namespace std; #include "modelFunctions.cpp" #include "cameraFunctions.cpp" #if defined(__APPLE__) #include <OpenGL/OpenGL.h> #include <GLUT/GLUT.h> #else #include<GL/gl.h> #include<GL/freeglut.h> #endif /** TYPE DEFINITIONS **/ #ifndef __POINT_DEF__ #define __...
<commit_before>#include "nearby.h" #include "components/position.h" #include "entity_system.h" #include <algorithm> namespace { constexpr std::tuple<uint16_t, uint16_t> get_grid_position(float x, float y) { uint16_t gx = x / 1000.f; uint16_t gy = y / 1000.f; return {gx, gy}; } std::tuple<uint16_t, uint16...
<commit_before>#include "MACAddr.h" #ifdef _WIN32 #include <iphlpapi.h> #endif MACAddr::MACAddr() : addr(MAC_ADDR_LEN, 0){} MACAddr::MACAddr(const string & macStr){ addr.resize(6,0); std::istringstream macStream(macStr); for (uint8_t & macByte : addr){ int byte; char colon; macSt...
<commit_before>#include "vtkAppendFilter.h" #include "vtkCellData.h" #include "vtkIntArray.h" #include "vtkIdTypeArray.h" #include "vtkVersion.h" #include <unistd.h> #include <stdio.h> #include <getopt.h> #include <string> #include "mesh_converter.h" template <typename T> vtkUnstructuredGrid* read(char* fname) { ...
<commit_before>/* * Copyright 2007-2008 by Tommi Rantala <tt.rantala@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the *...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011-2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=================================...
<commit_before>/* * Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) * ...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_EVALUATION_PRODUCT_HH #define DUNE_GDT_EVALUATION_PRODUCT_HH #include <...
<commit_before>#ifndef DUNE_STUFF_COMMON_PARAMETER_TREE_HH #define DUNE_STUFF_COMMON_PARAMETER_TREE_HH #ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #else #include "config.h" #endif // ifdef HAVE_CMAKE_CONFIG #include <cstring> #include <sstream> #include <vector> #include <boost/algorithm/string/join.hpp> ...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <boost/noncopyable.hpp> #include <qi/future.hpp> #include <qi/signature.hpp> #include <qi/anyfunction.hpp> #include <qi/anyobject.hpp> qiLogCategory("qitype.functiontype"); namespace qi { //make destroy exceptio...
<commit_before>#include "MAVLinkDecoder.h" #include "UASManager.h" MAVLinkDecoder::MAVLinkDecoder(MAVLinkProtocol* protocol, QObject *parent) : QObject(parent) { mavlink_message_info_t msg[256] = MAVLINK_MESSAGE_INFO; memcpy(messageInfo, msg, sizeof(mavlink_message_info_t)*256); memset(receivedMessages...
<commit_before>#include <unistd.h> #include <getopt.h> #include <libgen.h> // FIXME #include <iostream> #include <fstream> #include <memory> #include <string> #include <map> #include "cppunit-header.h" typedef std::map<std::string, CppUnit::Outputter *> OutputterMap; typedef std::map<std::string, CppUnit::TestListen...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2009, Distributed Systems Architecture Group, Universidad */ /* Complutense de Madrid (dsa-research.org) */ /* ...
<commit_before>// __BEGIN_LICENSE__ // Copyright (C) 2006-2009 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ // System includes #include <iostream> #include <vector> #include <algorithm> #include <sstrea...
<commit_before> /* poedit, a wxWindows i18n catalogs editor --------------- gexecute.cpp Gettext execution code (c) Vaclav Slavik, 2000-2003 */ #ifdef __GNUG__ #pragma implementation #endif #include <wx/wxprec.h> #include <wx/utils.h> #include <wx/log.h> #include <wx/pro...
<commit_before>#include "convolution2d.hpp" void convolution2d ( const cv::Mat& src, cv::Mat& dst, const cv::Mat& kernel ) { const int half_size = (kernel.cols / 2); for (int y = half_size; y < (src.rows - half_size); y++) { for (int x = half_size; x < (src.cols - half_size); x++) { double sum = 0.0; ...
<commit_before>// tests.cpp #include <gtest/gtest.h> #include <math.h> double squareRoot(const double a) { double b = sqrt(a); if (b != b) // nan check { return -1.0; } else { return sqrt(a); } } TEST(SquareRootTest, PositiveNos) { ASSERT_EQ(6, squareRoot(36.0)); ASSERT_EQ(18.0, squareRoot(...
<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>/* Special class, initializers for windows */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <winsock2.h> #ifdef _MSC_VER #include "mailstream_ssl_private.h" #include "mmapstring_private.h" #endif class win_init { public: win_init() { wsocket_init(); #ifdef _MSC_VER /* Initialis...
<commit_before>/* Copyright 2016 Fixstars Corporation 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 agreed to in ...
<commit_before> #include "Library.h" #include "Debug.h" #if NV_OS_WIN32 #define WIN32_LEAN_AND_MEAN #define VC_EXTRALEAN #include <windows.h> #else #include <dlfcn.h> #endif void * nvLoadLibrary(const char * name) { #if NV_OS_WIN32 return LoadLibraryExA( name, NULL, 0 ); #else return dlopen(name, RTLD_LAZY); #end...
<commit_before>#include <cmath> #include <chrono> #include <numeric> #include <unistd.h> #include "openservorobot.h" #include <yaml-cpp/yaml.h> #define MEDIAN_WINDOW 20 using namespace openservo; float scale_servo_to_joint(const MotorData& si, float ad_pos) { float pos_deg = (ad_pos - si.AD_center) * si.factor;...
<commit_before>//===----------------------------------------------------------------------===// // // Peloton // // rule.h // // Identification: src/optimizer/rule.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===-------------------------------------------------...
<commit_before>//------------------------------------------------------------------------------ // oryol-shdc //------------------------------------------------------------------------------ #include "ExportUtil/CmdLineArgs.h" #include "ExportUtil/Log.h" #include "spirv_hlsl.hpp" #include "spirv_msl.hpp" #include "pys...
<commit_before>/* author: dongchangzhang */ /* time: Sat 01 Apr 2017 12:10:03 AM CST */ #include "grammar.h" #include "error.h" #include <algorithm> #include <fstream> #include <iostream> #include <sstream> Grammar::Grammar(std::string grammarf) { int code; bool first_which = true; std::ifstream in(gramma...
<commit_before>#include "tarch/logging/Log.h" #include "tarch/tests/TestCaseRegistry.h" #include "tarch/logging/CommandLineLogger.h" #include "tarch/parallel/Node.h" #include "peano/peano.h" #include "peanoclaw/runners/Runner.h" tarch::logging::Log _log(""); int main(int argc, char** argv) { peano::fillLookupTa...
<commit_before>static const char rcsid[] = "$Id: Clock.cpp,v 1.5 2001-04-10 14:39:09 bastiaan Exp $"; /* * See the COPYING file for the terms of usage and distribution. */ #include <stdlib.h> #include <sys/time.h> // for struct timeval #ifdef __osf__ # include <machine/builtins.h> // for __RPCC() #elif ...
<commit_before>#include "../Fixed.h" #include <iostream> #include <cassert> using Fixed = numeric::Fixed<16, 16>; #if __cplusplus >= 201402L #define STATIC_ASSERT14(expr) static_assert((expr), "") #else #define STATIC_ASSERT14(expr) assert((expr)) #endif int main() { Fixed f = 10.5f; std::cout << f << std::endl; ...
<commit_before>// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s typedef double * __attribute__((align_value(64))) aligned_double; void foo(aligned_double x, double * y __attribute__((align_value(32))), double & z __attribute__((align_value(128)))) { }; // CHECK: define void...
<commit_before>/* * Copyright (c) 2015, 2016, 2017, Intel Corporation * * 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, th...
<commit_before>#include "Platform.hpp" #include "genome.pb.h" #include "CellComponent.hpp" #include "ActivityStats.hpp" #include "Neuron.hpp" #include "Branch.hpp" #include "Synapse.hpp" #include "Base64.hpp" #include "Brain.hpp" #include "SimpleProteinEnvironment.hpp" #include "genome.pb.h" #include <time.h> namespac...
<commit_before>#include "base_simulation_test.h" #include <fstream> #include <chrono> #include <iostream> #include "json/json.h" #include "physics/default_force.h" #include "physics/physical_node_movement_listener.h" namespace bdm { using std::ofstream; using cells::Cell; using local_biology::CellElement; using ph...
<commit_before>// Copyright (C) 2018 The Android Open Source Project // // 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 req...
<commit_before>#include "prog_translator.h" #include <algorithm> #include "CoinPackedVector.hpp" #include "OsiSolverInterface.hpp" #include "cyc_limits.h" #include "exchange_graph.h" namespace cyclus { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ProgTranslator::ProgTranslator(Exc...
<commit_before>// Copyright (c) 2017 Kai Luo <gluokai@gmail.com>. All rights reserved. // Use of this source code is governed by the BSD license that can be found in // the LICENSE file. #include "buffer.h" #include "testkit.h" TEST(kl::Buffer, Constructor, 1024) { ASSERT(Cap() == 1024); } TEST(kl::Buffer, ExtendTo)...
<commit_before>#define PY_ARRAY_UNIQUE_SYMBOL rank_filter_PyArray_API //#define NO_IMPORT_ARRAY #include <iostream> #include <string> #include <utility> #include "rank_filter.hxx" #include <Python.h> #include <boost/python.hpp> #include <vigra/numpy_array.hxx> #include <vigra/numpy_array_converters.hxx> namespace...
<commit_before>// // src/recursive/mkdir.cc // tbd // // Created by inoahdev on 10/15/17. // Copyright © 2017 - 2018 inoahdev. All rights reserved. // #include <cerrno> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "../utils/path.h" #include "mkdir.h" namespace recursive::mkdir { inl...
<commit_before>/* * Copyright (c) 2012, Georgia Tech Research Corporation * All rights reserved. * * Author(s): Ana Huaman <ahuaman3@gatech.edu> * Date: 03-08-2012 * * Geoorgia Tech Graphics Lab and Humanoid Robotics Lab * * Directed by Prof. C. Karen Liu and Prof. Mike Stilman * <karenliu@cc.gatech.edu> <mst...
<commit_before>#include "cinder/app/AppBasic.h" #include "cinder/gl/gl.h" #include "cinder/Rand.h" #include "cinder/Timeline.h" using namespace ci; using namespace ci::app; using namespace std; // Simple class to demonstrate custom lerping struct Box { Box() : mColor( Color( 1, 0.5f, 0.25f ) ), mPos( 320, 240 ), mSi...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>#include "Halide.h" using namespace Halide; int main(int argc, char** argv) { ImageParam input1(type_of<float>(), 1); ImageParam input2(type_of<float>(), 2); Func output{"output"}; Var x{"x"}, y{"y"}; Expr a = input1(0); Expr b = input2(x, y); output(x, y) = a - a * b; output.vector...
<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 "chrome/browser/chromeos/native_theme_chromeos.h" #include "app/resource_bundle.h" #include "base/logging.h" #include "gfx/in...