text
stringlengths
54
60.6k
<commit_before>#include "stdafx.h" #include "parser.hpp" #include "tiny_obj_loader.h" #include "matrix.hpp" #include "geometry.hpp" #include "curve.hpp" #include "film.hpp" #include "draw.hpp" #include "profiler.hpp" using namespace renderer; using json = nlohmann::json; void SDLExit(const char *msg) { printf("%s: ...
<commit_before> // This file is part of node-lmdb, the Node.js binding for lmdb // Copyright (c) 2013 Timur Kristóf // Licensed to you under the terms of the MIT license // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Softwa...
<commit_before>#include <sys/mount.h> #include <v8.h> #include <node.h> v8::Handle<v8::Value> Mount(const v8::Arguments &args) { v8::HandleScope scope; if (args.Length() < 3) { // TODO: make it raise a proper exception return v8::ThrowException(v8::String::New("`mount` needs at least 3 parameters")); } ...
<commit_before>/* Copyright 2013-2014 Dietrich Epp. This file is part of Oubliette. Oubliette is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include <algorithm> #include <cstdlib> #include <vector> #include <assert.h> #include "defs.hpp" #include "pack.hpp" n...
<commit_before>/** * \file perft.cc * \author Jason Fernandez * \date 11/10/2022 */ #include <chrono> #include <cstddef> #include <cstdint> #include <cstdlib> #include <iostream> #include <stdexcept> #include <string> #include "argparse/argparse.hpp" #include "chess/position.h" #include "chess/movegen.h" ...
<commit_before>#include <stdlib.h> #include <algorithm> #include <iostream> #include <vector> #include <unistd.h> #include <dirent.h> #include <fstream> #include <queue> #include "omp.h" // Contains the various options the user can pass ptgz. struct Settings { Settings(): extract(), compress(), verbose(), ...
<commit_before>#include <SDL/SDL.h> #include <GL/gl.h> #include <GL/glu.h> #include <stdlib.h> #include <stdio.h> #include "test.h" // TODO: this is all hacky test code - refactor into nicely modularized code SDL_Surface *display_surf; bool init_video(int w, int h, int bpp, bool fullscreen) { Uint32 flags = SDL_H...
<commit_before>/* Copyright (c) 2009, Arvid Norberg 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 of condi...
<commit_before>/* * v8cgi main file. Loosely based on V8's "shell" sample app. */ #define _STRING(x) #x #define STRING(x) _STRING(x) #include <sstream> #include <v8.h> #ifdef FASTCGI # include <fcgi_stdio.h> #endif #include "js_system.h" #include "js_io.h" #include "js_socket.h" #include "js_common.h" #include ...
<commit_before>#include <tinyxml.h> #include <dirent.h> #include <sys/stat.h> #include <string> #include <list> #include <vector> #include <unordered_map> #include <functional> #include <algorithm> #include "zone.h" #include "world.h" #include "room.h" #include "staticObject.h" #include "event.h" #include "utils.h" #in...
<commit_before>#pragma once #include "../../Include/CallResult.h" #include "../../Asm/IAsmHelper.h" #include "../Process.h" #include <type_traits> // TODO: Find more elegant way to deduce calling convention // than defining each one manually namespace blackbone { template<typename R, typename... Args> class R...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RL78/L1C グループ・ペリフェラル @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RL78/blob/...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ContextHelper.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2006-09-17 13:23:06 $ * * The Contents of this file are...
<commit_before>// Copyright (c) 2014-2017 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAOCPP_PEGTL_INCLUDE_INTERNAL_FILE_READER_HPP #define TAOCPP_PEGTL_INCLUDE_INTERNAL_FILE_READER_HPP #include <cstdio> #include <memory> #include <string> #incl...
<commit_before> /* * Copyright (c) The Shogun Machine Learning Toolbox * Written (w) 2015 Wu Lin * 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 ...
<commit_before> #include "CTypeEffect.h" CTypeEffect::CTypeEffect(CPlayer* follower) { mFollower = follower; mDirection = mFollower->GetPlayerRotation(); SetCenter(mFollower->GetCenter()); SetPosition(mFollower->GetPlayerPosition().GetX() - 65.f, mFollower->GetPlayerPosition().GetY() - 80.f); mAnimation = NNAnim...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "keystore.h" #include "script.h" bool CKeyStore::GetPubKe...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2015, Image Engine Design 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:...
<commit_before>#include <cmath> #include <complex> #include <stdlib.h> #include "eFFT.h" #define M_PI 3.141592653589793 eFFT::eFFT(){ } eFFT::~eFFT(){ } int * eFFT::rrotate(int * input,unsigned int bits, int n){ int lsb=0; for(int i=0;i<n;i++){ lsb=(input[i])&1; lsb<<=(bits-1); input[i]=lsb|((input[i])>>1)...
<commit_before>#include<iostream> #include<sstream> #include<vector> using namespace std; /*class Node{ public: Node *up, *down, *left, *right; int state; enum State { WALL, SPACE, START, END }; };*/ typedef struct { bool passed; char state; int preR, preC; enum State { WALL, SPACE, START, END...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>#include "stdafx.h" #include "rdoprocess_shape_MJ.h" #include "rdoprocess_method_proc2rdo_MJ.h" #include "rdoprocess_shape_process_MJ.h" #include "rdoprocess_shape_create_MJ.h" #include "rdoprocess_shape_decide.h" #include "rdoprocess_shape_terminate_MJ.h" #include "rdoprocess_shape_resource.h" ...
<commit_before>/* * Read a Standard MIDI File. Externally-assigned function pointers are * called upon recognizing things in the file. See midifile(3). */ /***************************************************************************** * Change Log * Date | who : Change *-----------+---------...
<commit_before>#include "storage_engine/compression.h" #include "util.h" #include <fstream> #include <cstdlib> #include <algorithm> #include <zlib.h> #include <cstring> using namespace Akumuli; int main(int argc, char** argv) { if (argc == 1) { return 1; } std::string file_name(argv[1]); std:...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2010, Willow Garage, 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...
<commit_before>/************************************************************************* * * $RCSfile: ForbiddenCharactersEnum.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: mtg $ $Date: 2001-04-02 14:49:56 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>#include "viewer/primitives/simple_geometry.hh" #include "viewer/window_3d.hh" #include "geometry/visualization/put_stl.hh" #include "planning/jet/jet_dynamics.hh" #include "planning/jet/jet_planner.hh" #include "planning/jet/jet_model.hh" // TODO CLEANUP #include "viewer/primitives/camera.hh" #inclu...
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*- kpgpwrapper.cpp This file is part of libkleopatra, the KDE keymanagement library Copyright (c) 2004 Ingo Kloecker <kloecker@kde.org> Libkleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU General ...
<commit_before>#include <cetty/protobuf/service/builder/ProtobufClientBuilder.h> #include <cetty/protobuf/service/builder/ProtobufServerBuilder.h> #include <cetty/zurg/slave/SlaveServiceImpl.h> #include <cetty/zurg/slave/Heartbeat.h> #include <cetty/logging/LoggerHelper.h> #include <cetty/zurg/master/master.pb.h> #incl...
<commit_before>/* The OpenTRV project licenses this file to you under the Apache Licence, Version 2.0 (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
<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 (c) 2011 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/accessibility_util.h" #include "base/callback.h" #include "base/logging.h" #include "chrome/browser/...
<commit_before><commit_msg>[cros] migrate to safe ownership API<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2011 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/extensions/component_loader.h" #include "base/command_line.h" #include "base/path_service.h" #include "base/j...
<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 "chrome/browser/instant/instant_field_trial.h" #include "base/command_line.h" #include "base/metrics/field_trial.h" #include ...
<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/views/page_info_bubble_view.h" #include "app/l10n_util.h" #include "base/utf_string_conversions.h" #include "...
<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>// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316 // XFAIL: android // // RUN: %clangxx_asan -DSHARED %s -shared -o %T/stack_trace_dlclose.so -fPIC // RUN: %clangxx_asan -DSO_DIR=\"%T\" %s %libdl -o %t // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:exitcode=0 %run %t 2>&1 | FileCheck %s ...
<commit_before>// Copyright 2014 the V8 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. #include <limits> #include "src/compiler/control-builders.h" #include "src/compiler/generic-node-inl.h" #include "src/compiler/node-prop...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkEllipsoidInteriorExteriorSpatialFunctionExample.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2001 Insight Consortium All...
<commit_before>/** * @file filelocation_messages_test.cc * @author Bartek Kryza * @copyright (C) 2018 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in * 'LICENSE.txt' */ #include "messages/fuse/fileBlock.h" #include "messages/fuse/fileLocation.h" #include <gtest/gtest.h> u...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICE...
<commit_before>#include "TestClass.hpp" static int magic = 0x11223344; int TestClass::testOutlineFunction() { return someData_ * reinterpret_cast<int>(&magic); } int TestClass::testOutlineFunctionWithStaticVariable() { static int staticVar = -1; staticVar += testOutlineFunction(); return staticVar; ...
<commit_before>#ifndef PCL_TRACKING_IMPL_COHERENCE_H_ #define PCL_TRACKING_IMPL_COHERENCE_H_ namespace pcl { namespace tracking { template <typename PointInT> double PointCoherence<PointInT>::compute (PointInT &source, PointInT &target) { return computeCoherence (source, target); } ...
<commit_before>#define DEBUG 1 /** * File : A.cpp * Author : Kazune Takahashi * Created : 2020/6/28 20:51:38 * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <climits> #include <cmath> #include <complex> #include <cstdint...
<commit_before>/**------------------------------------------------------------------------- @file uart_bleintrf.cpp @brief Implementation of UART BLE Interface object The interface can be either Nordic NUS or BlueIO UART based @author Hoang Nguyen Hoan @date Feb. 18, 2019 @license Copyright (c) 2019, I-SYST inc., ...
<commit_before>//==- UninitializedValues.cpp - Find Unintialized Values --------*- C++ --*-==// // // The LLVM Compiler Infrastructure // // This file was developed by Ted Kremenek and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------...
<commit_before>#include <boost/lexical_cast.hpp> #include <gtest/gtest.h> #include <ostream> #include "pqrs/string.hpp" TEST(pqrs_string, string_from_file) { std::string actual; int error = 0; error = pqrs::string::string_from_file(actual, "data/sample"); EXPECT_EQ("{{AAA}} {{BBB}} {{ CCC }}\n", actual); EX...
<commit_before>// SkipList: A STL-map like container using skip-list // Copyright (c) 2015 Guo Xiao <guoxiao08@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 restrict...
<commit_before>#include "onair/okui/FileTexture.h" #include <gsl.h> #include <png.h> #include <turbojpeg.h> namespace onair { namespace okui { namespace { constexpr bool IsPowerOfTwo(int x) { return (x != 0) && !(x & (x - 1)); } constexpr int NextPowerOfTwo(int x) { if (x < 0) { ...
<commit_before>/*************************************************************************/ /* spin_box.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>/* Kopete Yahoo Protocol Notifies about buddy icons Copyright (c) 2005 André Duffeck <duffeck@kde.org> ************************************************************************* * * * This library is free softw...
<commit_before>// RUN: cat %s | %cling -I%p -Xclang -verify 2>&1 | FileCheck %s // Test the removal of decls from the redeclaration chain, which are marked as // redeclarables. extern int my_int; .rawInput 1 int my_funct(); .rawInput 0 .storeState "testRedeclarables" #include "Redeclarables.h" .compareState "testRed...
<commit_before>/* Created and copyrighted by Zachary J. Fields. All rights reserved. */ #include "gtest/gtest.h" #include "gmock/gmock.h" #include "../mcp23s17.h" #include "MOCK_wiring.h" class TC_mcp23s17 : public mcp23s17 { public: TC_mcp23s17 ( mcp23s17::HardwareAddress hw_addr_ ): mcp23s17(hw_a...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2017, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>#include "AppExample03.h" #include <GL/glew.h> #include <SDL2/SDL.h> #include <vector> #include "utils/OpenGLUtils.h" #include "utils/FileUtils.h" #include "data.h" GLuint VAO1, VAO2 = 0; GLfloat perspectiveMatrix[16]; GLuint programId = 0; GLuint perspectiveMatrixUnif = 0; GLuint offsetUniform = 0; A...
<commit_before>/* * Copyright 2016 Nu-book 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 applicable law or ag...
<commit_before>#include "net/telnet.h" #include "autoconf.h" #define TELCMDS // To get the array of Telnet command names #define TELOPTS // To get the array of Telnet option names #include <arpa/telnet.h> namespace { std::string trim(std::string const& str) { // Find the first non-whitespace charact...
<commit_before>#ifndef NEURO_TILE_HPP #define NEURO_TILE_HPP #include<memory> #include<set> #include<list> #include"ui/Observable.hpp" namespace neuro { class Tile; using TileP = std::shared_ptr< Tile >; /** * @brief All the possible types of tiles. */ enum class TileType { INSTANT_ACTION, HQ, MODULE,...
<commit_before>#define THEWIZARDPLUSPLUS_WIZARD_PARSER_PARSER_MACROSES #include "vendor/better-enums/enum_strict.hpp" #include "vendor/fmt/format.hpp" #include "vendor/range/v3/view/transform.hpp" #include "vendor/docopt/docopt.hpp" #include "vendor/range/v3/view/filter.hpp" #include "vendor/range/v3/to_container.hpp"...
<commit_before>#include <iostream> #include <cassert> using namespace std; template <typename T> class SmartPtr { public: explicit SmartPtr(T *p = nullptr) : count_(new size_t(1)), obj_ptr_(p) { } ~SmartPtr() { dispose(); } SmartPtr(const SmartPtr<T> &other) :count_(other.count_), obj_pt...
<commit_before>// Copyright 2012-2013 Samplecount S.L. // // 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>#ifndef _TCUINTERVAL_HPP #define _TCUINTERVAL_HPP /*------------------------------------------------------------------------- * drawElements Quality Program Tester Core * ---------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache Licens...
<commit_before>#ifdef _RPI_ #include "components/VideoPlayerComponent.h" #include "utils/StringUtil.h" #include "AudioManager.h" #include "Renderer.h" #include "Settings.h" #include <fcntl.h> #include <unistd.h> #include <wait.h> class VolumeControl { public: static std::shared_ptr<VolumeControl> & getInstance(); i...
<commit_before>/* * Bayes++ the Bayesian Filtering Library * Copyright (c) 2002 Michael Stevens, Australian Centre for Field Robotics * See Bayes++.htm for copyright license details * * $Header$ */ /* * Example of using Bayesian Filter Class to solve a simple problem. * A linear filter with one state and cons...
<commit_before>/* MIT License Copyright (c) 2018, Alexey Dynda 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 ...
<commit_before>#ifdef _RPI_ #include "components/VideoPlayerComponent.h" #include <boost/algorithm/string/predicate.hpp> #include "AudioManager.h" #include "Renderer.h" #include "ThemeData.h" #include "Settings.h" #include "Util.h" #include <signal.h> #include <wait.h> #include <sys/types.h> #include <sys/stat.h> #incl...
<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 law or ag...
<commit_before>/** Copyright (c) 2013, Philip Deegan. 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 of conditions...
<commit_before> #include "joystickDrive.hpp" //static SDL_Joystick *joystick; int main() { joystickDrive jD; for(;;) { jD.setMotor(); usleep(1000); } } joystickDrive::joystickDrive() { joystick_open(); m_motorCtr.SetupSerial(); } joystickDrive::~joystickDrive() { joystick_close(); } //return [0,2 P...
<commit_before>#pragma once #include <functional> #include <list> #include <map> #include <memory> #include "base/not_null.hpp" #include "geometry/grassmann.hpp" #include "geometry/named_quantities.hpp" #include "physics/degrees_of_freedom.hpp" #include "quantities/named_quantities.hpp" #include "serialization/physic...
<commit_before>#include "Image.hpp" #include "StringEx.hpp" #include "TargaImage.hpp" #include "PNGImage.hpp" using namespace std; using namespace MPACK::Core; namespace MPACK { namespace Graphics { Image::Image() : m_width(0), m_height(0), m_GLFormatType(0), m_bytesPerPixel(0), m_imageBuffer(NULL), m_in...
<commit_before>//===- GenerateCode.cpp - Functions for generating executable files ------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<commit_before>#include "LinearTransformation.hpp" #include <boost/numeric/ublas/operation.hpp> #include <boost/numeric/ublas/lu.hpp> #include <boost/numeric/ublas/io.hpp> using namespace boost::numeric::ublas; namespace fast { /** * Initializes linear transformation object to identity matrix */ LinearTransformati...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// /// General FIR digital filter routines with MMX optimization. /// /// Note : MMX optimized functions reside in a separate, platform-specific file, /// e.g. 'mmx_win.cpp' or 'mmx_gcc.cpp' /// /// Author :...
<commit_before> #include "libtorrent/rss.hpp" #include "libtorrent/session.hpp" #include "libtorrent/bencode.hpp" using namespace libtorrent; void print_feed(feed_status const& f) { printf("FEED: %s\n",f.url.c_str()); if (f.error) printf("ERROR: %s\n", f.error.message().c_str()); printf(" %s\n %s\n", f.titl...
<commit_before>#include "offset_estimator.h" #include <Eigen/Dense> #include "eigen_wrappers.h" namespace InSituFTCalibration { struct ForceTorqueOffsetEstimator::ForceTorqueOffsetEstimatorPrivateAttributes { Eigen::Matrix<double,6,1> offset; //< Offset value estimated by the algorithm EIGEN_MAKE_ALIGNED_...
<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 distr...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * The Contents of this file are made available subject to the terms of * either of the following licenses * * - GNU Lesser General Pu...
<commit_before>/* * main.cpp * Copyright (C) 2012 xent * Project is distributed under the terms of the GNU General Public License v3.0 */ #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iostream> #include <vector> #include "commands.hpp" #include "crypto.hpp" #...
<commit_before>//-*- Mode: C++ -*- /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * ...
<commit_before>#include <iostream> #include <iomanip> #include <boost/filesystem.hpp> #include <nanikanizer/nanikanizer.hpp> #include "game.hpp" #include "enumerate_action.hpp" #include "apply_state.hpp" #include "random_state_generator.hpp" namespace shogi { void pretrain( nnk::linear_layer<float>& l1, nnk::lin...
<commit_before>//==- IdempotentOperationChecker.cpp - Idempotent Operations ----*- C++ -*-==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------...
<commit_before>// Time: O(logn), n is the value of the integer // Space: O(1) class Solution { public: string numberToWords(int num) { if (num == 0) { return "Zero"; } const unordered_map<int, string> lookup = {{0, "Zero"}, {1, "One"}, {2, "Two"}, ...
<commit_before>// Copyright (c) 2013-2016 Anton Kozhevnikov, Thomas Schulthess // 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 cop...
<commit_before>//===- DeadMachineInstructionElim.cpp - Remove dead machine instructions --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// Time: O(n) // Space: O(1) class Solution { public: /** * @param source: A string * @param target: A string * @return: A string denote the minimum window * Return "" if there is no such a string */ string minWindow(string &source, string &target) { if...
<commit_before>/* * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Disa Mhembere (disa@jhu.edu) * * This file is part of FlashGraph. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
<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/renderer/page_click_tracker.h" #include "chrome/common/render_messages.h" #include "chrome/renderer/page_click_listen...
<commit_before>#include "layouter.h" #include "utf-8.h" #include <harfbuzz/hb.h> #include <harfbuzz/hb-ft.h> #include <fribidi/fribidi.h> #include <linebreak.h> #include <vector> #include <string> #include <memory> #include <algorithm> typedef struct { std::vector<textLayout_c::commandData> run; int dx, dy; ...
<commit_before>//===- DeadMachineInstructionElim.cpp - Remove dead machine instructions --===// // // 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 the elastix software. Copyright (c) University Medical Center Utrecht. All rights reserved. See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for details. This software is distributed WITHOUT...
<commit_before>// For stat, getcwd #include <cerrno> #include <cstring> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <libport/unistd.h> #include <libport/file-system.hh> // For bad_alloc #include <exception> #include <boost/format.hpp> #include <object/directory.hh> #include <object/file...
<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/test/nacl/nacl_sandbox_test.h" #include "base/file_util.h" #include "base/path_service.h" #include "chrome/common/chr...
<commit_before>/** * C S O U N D V S T * * A VST plugin version of Csound, with Python scripting. * * L I C E N S E * * This software 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 ...
<commit_before>// // MIT License // // Copyright 2017-2019 // // 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, ...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2014 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 p...
<commit_before>#include "gtest/gtest.h" #include "test_utils/test_utils.hpp" #include "cpputil/math_utils.hpp" #include "Models/ChisqModel.hpp" #include "Models/PosteriorSamplers/IndependentMvnVarSampler.hpp" #include "Models/StateSpace/MultivariateStateSpaceRegressionModel.hpp" #include "Models/StateSpace/StateMode...
<commit_before>#include "Console.hpp" #include "logger.hpp" #define PUTC(c) pc.putc(c) #define GETC pc.getc #define PRINTF(...) pc.printf(__VA_ARGS__) const std::string Console::RX_BUFFER_FULL_MSG = "RX BUFFER FULL"; const std::string Console::COMMAND_BREAK_MSG = "*BREAK*\033[K"; shared_ptr<Console> Console::i...
<commit_before>//===-- HexagonCFGOptimizer.cpp - CFG optimizations -----------------------===// // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------...