text
stringlengths
54
60.6k
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: StartMarker.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-07-09 11:56:33 $ * * The Contents of this file are ma...
<commit_before>#include "Board.h" #include "Pawn.h" #include "Rook.h" #include "Knight.h" #include "Bishop.h" #include "Queen.h" #include "King.h" #include <iostream> #include <sstream> namespace Chess { Board::Board() { for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { pieces[x][y] = nullptr; }...
<commit_before>// test_keypairsign.cpp -- Test sodium::keypairsign // // ISC License // // Copyright (C) 2018 Farid Hajji <[email protected]> // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and ...
<commit_before>#include "controlpanel.h" #include <QVBoxLayout> #include <QHBoxLayout> controlPanel::controlPanel(QWidget *parent) : QWidget(parent), _playPauseButton(new QPushButton("Play/Pause")), _nextButton(new QPushButton("Next")), _previousButton(new QPushButton("Previous")), _volume...
<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>/* * Copyright 2017 CodiLime * * 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 "ezgraver.h" #include <QSerialPort> #include <QSerialPortInfo> #include <QDebug> #include <QBitmap> #include <QBuffer> #include <iterator> #include <algorithm> #include <functional> EzGraver::EzGraver(std::shared_ptr<QSerialPort> serial) : _serial{serial} {} void EzGraver::start(unsigned ch...
<commit_before>// @(#)root/roostats:$Id: FrequentistCalculator.cxx 37084 2010-11-29 21:37:13Z moneta $ // Author: Kyle Cranmer, Sven Kreiss 23/05/10 /************************************************************************* * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. * * All rights reser...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * * Razor - a lightweight, Qt based, desktop toolset * https://sourceforge.net/projects/razor-qt/ * * Copyright: 2010-2011 Razor team * Authors: * Alexander Sokoloff <[email protected]> * * This program is free software; you can redistribute it and/or * modi...
<commit_before>// SkipList: A STL-map like container using skip-list // Copyright (c) 2015 Guo Xiao <[email protected]> // 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>#define GLM_FORCE_RADIANS #include <glm/gtc/matrix_transform.hpp> #include <linux/input-event-codes.h> #include <wayfire/compositor-surface.hpp> #include <wayfire/output.hpp> #include <wayfire/opengl.hpp> #include <wayfire/core.hpp> #include <wayfire/decorator.hpp> #include <wayfire/view-transform.hpp>...
<commit_before>/* * Copyright © 2014 Intel Corporation * * 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, mod...
<commit_before>/** * @file range_search_impl.hpp * @author Ryan Curtin * * Implementation of the RangeSearch class. */ #ifndef __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_IMPL_HPP #define __MLPACK_METHODS_RANGE_SEARCH_RANGE_SEARCH_IMPL_HPP // Just in case it hasn't been included. #include "range_search.hpp" // Th...
<commit_before>/* Copyright (C) 2006 Imperial College London and others. Please see the AUTHORS file in the main source directory for a full list of copyright holders. Prof. C Pain Applied Modelling and Computation Group Department of Earth Science and Engineering Imperial College London ...
<commit_before>/* * This source file is part of ArkGameFrame * For the latest info, see https://github.com/ArkGame * * Copyright (c) 2013-2018 ArkGame 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 o...
<commit_before>#include <iostream> #include <algorithm> #include <cassert> using namespace std; // 大域変数 const int T = 9; // 全ターン数 const int P = 4; // プレイヤー数 const int N = 6; // プログラミングの言語数 const int maxpt = 6; const int minpt = 3; const int wdays = 5; const int hdays = 2; int A[N]; // 言語の注目数 int priority[N]; /* pr...
<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/Represent...
<commit_before>/* * Copyright © 2010 Intel Corporation * * 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, mod...
<commit_before><commit_msg>When removing a body from the scene, remove it also from the list of objects in contact<commit_after><|endoftext|>
<commit_before>// Copyright 2014 MongoDB 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 a...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the QtFeedback module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU Lesser Gene...
<commit_before>#ifndef BEAM_DUPLEX_UNORDERED_MIXED_HPP #define BEAM_DUPLEX_UNORDERED_MIXED_HPP #include <chrono> #include <functional> #include <memory> #include <tuple> #include <unordered_map> #include <asio/strand.hpp> #include <beam/duplex/common.hpp> #include <beam/internet/endpoint.hpp> #include <beam/message/bu...
<commit_before>//===-- gold-plugin.cpp - Plugin to gold for Link Time Optimization ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: resmgr.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2008-02-25 15:58:27 $ * * The Contents of this file are made a...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>#include <assert.h> #include <cstdio> #include <set> #ifndef HAVE_LLVM #error "This code needs LLVM enabled" #endif #include <llvm/IR/LLVMContext.h> #include <llvm/IR/Module.h> #include <llvm/IR/Instructions.h> #include <llvm/Support/SourceMgr.h> #include <llvm/Support/raw_os_ostream.h> #include <llvm...
<commit_before>#include <vector> #include <fstream> #include "board.hpp" #include "config.hpp" #include "log.hpp" namespace roadagain { Log::Log(int y, int x, BoardState stone) : y(y), x(x), stone(stone) { } void log_records(std::vector<Log>& logs, BoardState winner) { int size = logs.size(); std::ofstream ...
<commit_before>//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 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>/* * Copyright (c) 1998-2001, Index Data. * See the file LICENSE for details. * * $Id: yaz-socket-manager.cpp,v 1.20 2003-07-25 19:27:36 adam Exp $ */ #include <assert.h> #ifdef WIN32 #include <winsock.h> #else #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #endif #include <errno....
<commit_before>#include "vga/vga.h" #include "lib/common/attribute_macros.h" #include "lib/armv7m/exceptions.h" #include "lib/stm32f4xx/adv_timer.h" #include "lib/stm32f4xx/ahb.h" #include "lib/stm32f4xx/apb.h" #include "lib/stm32f4xx/dma.h" #include "lib/stm32f4xx/gpio.h" #include "lib/stm32f4xx/interrupts.h" #inclu...
<commit_before>// tOleInPlaceSite.cpp: implementation of the tOleInPlaceSite class. // ////////////////////////////////////////////////////////////////////// #include "tOleInPlaceSite.h" #include "tOleHandler.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ///////...
<commit_before>#ifndef STAN_MATH_PRIM_FUN_LOG_HPP #define STAN_MATH_PRIM_FUN_LOG_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/rev/meta.hpp> #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math/prim/fun/isinf.hpp> #include <stan/math/prim/fun/is_inf.hpp> #include <stan/math/prim/fun/is_nan.hpp> #in...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: config.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-07 15:05:21 $ * * The Contents of this file are made av...
<commit_before>/*------------------------------------------------------------------------------ | This file is distributed under the BSD 2-Clause License. | See LICENSE for details. *-----------------------------------------------------------------------------*/ #pragma once #include <cassert> #include <cstdint> name...
<commit_before>// Copyright 2013 Mirus 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 required by applicable law or agreed...
<commit_before>// // Area.cpp // Phantasma // // Created by Thomas Harte on 25/12/2013. // Copyright (c) 2013 Thomas Harte. All rights reserved. // #include "Area.h" #include "Object.h" #include <list> Object *Area::objectWithIDFromMap(ObjectMap *map, uint16_t objectID) { if(!map) return NULL; if(!map->count(ob...
<commit_before>#include "nimble/nimbleGraph.h" graphNode::graphNode(int inputCgraphID, NODETYPE inputType, const string &inputName ) : role(UNKNOWNROLE), type(inputType), CgraphID(inputCgraphID), name(inputName), touched(false), numChildren(0) { RgraphID = CgraphID + 1; }; void graphNode::addChild( grap...
<commit_before>// Petter Strandmark 2013. #include <cstdio> #include <queue> #include <set> #include <sstream> #include <spii/solver.h> #include <spii/spii.h> namespace spii { struct GlobalQueueEntry { double volume; IntervalVector box; double best_known_lower_bound; bool operator < (const GlobalQueueEntry& rh...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* Similar to #132. We need to look for factors q of \phi(9p) of the form q = 2^a5^b such that 9n | 10^q. Unlike #132, the restriction that 0 <= a, b <= 9 is removed here. */ #include <iostream> #include <vector> #include <algorithm> #include <cmath> #include "number_util.h" #include "prime_...
<commit_before>#include <windows.h> #include <gl\gl.h> #ifdef _MSC_VER #define _USE_MATH_DEFINES #endif #include <math.h> #include "Window.h" #include "Body.h" #include "Error.h" #include "Info.h" #define NAME_FONT_NAME "Arial" #define NAME_FONT_SIZE_AT_H600 24 #define NAME_FONT_SIZE (int)(NAME_...
<commit_before>#include "LICM.h" #include "CSE.h" #include "ExprUsesVar.h" #include "IREquality.h" #include "IRMutator.h" #include "IROperator.h" #include "Scope.h" #include "Simplify.h" #include "Substitute.h" namespace Halide { namespace Internal { using std::string; using std::map; using std::vector; using std::pa...
<commit_before>#include <iostream> #include <fstream> #include <stdexcept> #include <string> #include <vector> #include <algorithm> #include <functional> #include <unordered_map> #include "global.hpp" #include "operators.hpp" #include "tokens.hpp" #include "nodes.hpp" #include "builtins.hpp" #include "operator_maps.hp...
<commit_before>// // MCMC.cpp // EpiGenMCMC // // Created by Lucy Li on 06/05/2016. // Copyright (c) 2016 Lucy Li, Imperial College London. All rights reserved. // #define MATHLIB_STANDALONE #include <iostream> #include "MCMC.h" namespace EpiGenMCMC_MCMC { void initialise_logfile(std::string filename, Para...
<commit_before>#include "test/Test.h" #include <cstdio> int main() { Penciloid::PenciloidTest::RunTestAll(); char c; printf("Press any key to continue..."); scanf_s("%c", &c); return 0; }<commit_msg>Remove 'Press any key...'<commit_after>#include "test/Test.h" #include <cstdio> int main() { ...
<commit_before>#include "event.h" #include "augs/ensure.h" namespace augs { namespace window { namespace event { change::change() { std::memset(this, 0, sizeof(change)); } key_change change::get_key_change() const { switch (msg) { case message::ltripleclick: return key_change::PRESSED; cas...
<commit_before>/* * O ,- * o . - ' ,- * . ` . , * ( )) . ( * `-;_ . - `.`. * `._' * * Copyright (c) 2007-2011 Markus Fisch <[email protected]> * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php */ #includ...
<commit_before>#include "Page.h" Page::Page() { for (int i = 0; i < MAX_SEQUENCERS; i++) { sequencer[i] = NULL; } addNewLine(-1); cursor = 0; tool_seq_add = new Tool("+\nSEQ", OF_KEY_RETURN, new Change(TARGET_LEVEL_PAGE, OP_SEQ_ADD, 0)); tool_seq_add->key_string = "RET"; ...
<commit_before>#include <ygo/deck/User.h> #include <ygo/deck/DB.h> #include <ygo/deck/DeckSet.h> #include <mindbw/SQLite3.h> #include <ygo/data/Serialize.h> #include <cassert> #include <stdexcept> namespace ygo { namespace deck { User::User(std::string name, bool create) : mName(std::move(name)) { // check...
<commit_before> #include "Utf8.h" #include <Arduino.h> #define ENSURE(condition) do { if (!(condition)) {Serial.println("ENSURE failed at: "#condition); while(1); } } while(0) #define SIZE_OF_ARRAY(array) (sizeof((array))/sizeof((array)[0])) #define PTR_OFFSET_BYTES(ptr, nBytes) ((void*)(((char *)(ptr)) + (nByte...
<commit_before> #include "Utf8.h" #include <Arduino.h> #define ENSURE(condition) do { if (!(condition)) {Serial.println("ENSURE failed at: "#condition); while(1); } } while(0) #define SIZE_OF_ARRAY(array) (sizeof((array))/sizeof((array)[0])) #define PTR_OFFSET_BYTES(ptr, nBytes) ((void*)(((char *)(ptr)) + (nByte...
<commit_before>/* Copyright (c) 2012 Carsten Burstedde, Donna Calhoun 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 ...
<commit_before> #include "Util.hpp" // C++ headers #include <cstdlib> #include <sstream> #include <stdexcept> // C headers #include <pwd.h> #include <unistd.h> #include <string.h> #include <sys/types.h> using namespace mksrc; std::string util::GetHomeDirectory() { const char *homestr = std::getenv("HOME"); ...
<commit_before>/* Copyright 2008-2009 Larry Gritz and the other authors and contributors. 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 abov...
<commit_before>/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, 2014 Jeffrey Carpenter <[email protected]> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitt...
<commit_before>// Copyright 2008-present Contributors to the OpenImageIO project. // SPDX-License-Identifier: BSD-3-Clause // https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md #include <OpenImageIO/imageio.h> #include <OpenImageIO/tiffutils.h> #include <libheif/heif_cxx.h> // This plugin utilises libheif: ...
<commit_before>#include "scan/Scan.h" #include "scan/ScanIO.h" #include "diffusion/Diffusion.h" #include "settings.h" int main(int argc, char* argv[]) { Settings settings(argc, argv); Scan scan = ScanIO::read_from(settings.inputScan); scan.transform()->scale_values(0, 255); const int& nx = scan.data()->get...
<commit_before>// // main.cpp // antlr4-cpp-demo // // Created by Mike Lischke on 13.03.16. // #include <iostream> #include "ANTLRInputStream.h" #include "CommonTokenStream.h" #include "TLexer.h" #include "TParser.h" #include "Strings.h" using namespace antlrcpptest; using namespace org::antlr::v4::runtime; int...
<commit_before>#include "Halide.h" using namespace Halide; Expr lerp(Expr a, Expr b, Expr alpha) { return (1.0f - alpha)*a + alpha*b; } int main(int argc, char **argv) { if (argc < 2) { printf("Spatial sigma is a compile-time parameter, please provide it as an argument.\n" "(llvm's ptx...
<commit_before>/*! * a tool to combine different set of features into binary buffer * not well organized code, but does it's job * \author Tianqi Chen: [email protected] */ #define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_DEPRECATE #include <cstdio> #include <cstring> #include <ctime> #include <cmath> #...
<commit_before>class Solution { public: /** * @param s: a string * @return: an integer */ std::map<char, int> mapCtoSub; int lengthOfLongestSubstring(string s) { // write your code here int i,j,k,l_s=s.size(); int max_len=0; for (char c='a';c<='z';c++) ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: EnhancedCustomShapeEngine.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2006-06-19 14:56:40 $ * * The Contents of th...
<commit_before>/* * This istream filter removes HTTP chunking. * * author: Max Kellermann <[email protected]> */ #include "istream_dechunk.hxx" #include "http/ChunkParser.hxx" #include "FacadeIstream.hxx" #include "pool.hxx" #include <algorithm> #include <glib.h> #include <assert.h> #include <string.h> class Dechu...
<commit_before>#pragma once #include "physics/jacobi_coordinates.hpp" #include <experimental/optional> #include <iterator> namespace principia { namespace physics { template<typename Frame> JacobiCoordinates<Frame>::JacobiCoordinates(MassiveBody const& primary) { DegreesOfFreedom<PrimocentricFrame> motionless_or...
<commit_before>/* * Part of HTTPP. * * Distributed under the 3-clause BSD licence (See LICENCE.TXT file at the * project root). * * Copyright (c) 2014 Thomas Sanchez. All rights reserved. * */ #include "Connection.hpp" #include <curl/curl.h> #include <memory> #include <iostream> #include <vector> #include <t...
<commit_before>// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "platform/globals.h" #if defined(HOST_OS_WINDOWS) #include "bin/file_system_wa...
<commit_before>// // MultiClassify.cpp // // // Created by tim on 23/03/2017. // // #include <fstream> #include <memory> #include "SingleShotDetector.hpp" #include "MultiClassify.hpp" #include "GraphLoader.hpp" #include "Classifier.hpp" #include "FaceAlign.hpp" #include "Multibox.hpp" #include "timer.hpp" #includ...
<commit_before>#pragma once #include <stack> #include <memory> #include "acmacs-base/fmt.hh" // ---------------------------------------------------------------------- namespace in_json { inline namespace v1 { class error : public std::runtime_error { public: template <t...
<commit_before>#include "serialworker.h" #include <QSerialPort> #include <QDebug> SerialWorker::SerialWorker(QObject *parent) : QObject(parent) { serial = NULL; rx_state = IDLE; rx_step = 0; buildFrame = new CANFrame; } SerialWorker::~SerialWorker() { if (serial != NULL) delete serial; } void Se...
<commit_before>/******************************************************************************* * c7a/api/sort.hpp * * Part of Project c7a. * * Copyright (C) 2015 Alexander Noe <[email protected]> * * This file has no license. Only Chuck Norris can compile it. **************************************************...
<commit_before>/** * @file */ #pragma once #include "bi/io/bih_ostream.hpp" #include <list> namespace bi { /** * Output stream for Markdown files. * * @ingroup compiler_io */ class md_ostream: public bih_ostream { public: md_ostream(std::ostream& base); using bih_ostream::visit; virtual void visit(cons...
<commit_before>#include <stdio.h> #include <sstream> #include <cstring> #include <cassert> #include <set> #include <string> #include <queue> #include <iostream> #include "CallGraph.h" #include "CodeGen_Bash.h" #include "Parser.h" #include "IRVisitor.h" const std::string BISH_VERSION = "0.1"; const std::string BISH_URL...
<commit_before>#include <stdio.h> #include <stdlib.h> using namespace std; #define uint unsigned int int main(int argc, char* argv[]) { return 0; } <commit_msg>Update c++ template to print a newline<commit_after>#include <stdio.h> #include <stdlib.h> using namespace std; #define uint unsigned int int main(int a...
<commit_before>#include <vector> #include <ostream> #include "BST.h" /* namespace Graph { template <typename Key, typename Value> class BST {//A Binary Search Tree. private: Node<Key, Value> root; Value get( Node subtreeNode, Key getKey );//Returns the value of the node with a specified key that is within the...
<commit_before>#pragma once #include "imgui.h" void drawIGSLogo( const ImVec2& pos, const double time ); /** Show an info about window with animated IGS logo. Usage example: if( about_window_visible && aboutWindow( ICON_FA_INFO_CIRCLE " About", "My fancy tools\n" "Abla bli blub .......
<commit_before>#include "NMEAParser.cpp" #include "gtest/gtest.h" #include <cmath> namespace NMEA { TEST(ParseFloat, Valid_Float) { const std::string String = "3.0"; const float Expected = 3.0f; EXPECT_EQ(Expected, ParseFloat(String)); } TEST(ParseFloat, Invalid_Float) { const std::string String = "ASDF"; ...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
<commit_before>//--------------------------------------------------------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2009, 2010, 2012, 2013 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refe...
<commit_before>// Copyright 2011 Google 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/LICENSE-2.0 // // Unless require...
<commit_before>// // Screen_HX8353E.cpp // Library C++ code // ---------------------------------- // Developed with embedXcode // http://embedXcode.weebly.com // // Project new_screen_HX8353 // // Created by Rei VILO, mars 07, 2013 09:21 // embedXcode.weebly.com // // Apr 25, 2014 // Support for new LaunchPads with // ...
<commit_before>/************************************************************************* * * $RCSfile: indexentrysupplier_ja_phonetic.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $Date$ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>#include <stdio.h> #include <spikehw.h> SpikeHw *spikeHw; int main(int argc, const char **argv) { spikeHw = new SpikeHw(); // not needed yet //spikeHw->setupDma(memfd); // query mmcm and interrupt status spikeHw->status(); // read boot rom uint32_t firstword; spikeHw-...
<commit_before>#pragma once #include "acmacs-base/string.hh" #include "acmacs-base/fmt.hh" #include "acmacs-base/to-string.hh" #include "acmacs-base/float.hh" #include "acmacs-base/range.hh" // Simplified version of https://github.com/joboccara/NamedType // Also see https://github.com/Enhex/phantom_type // ---------...
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by 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 ...
<commit_before>#include <stdio.h> #include <spikehw.h> SpikeHw *spikeHw; int main(int argc, const char **argv) { spikeHw = new SpikeHw(); // not needed yet //spikeHw->setupDma(memfd); // query mmcm and interrupt status spikeHw->status(); // read boot rom uint32_t firstword; spikeHw-...
<commit_before>/* * 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 "colormap_editor.h" #include "ui_colormap_editor.h" #include "PlotJuggler/svg_util.h"...
<commit_before>// http://redd.it/29od55 // Challenge 169-Intermediate - Home-row Spell Check // Usage: aliensp // Spell check and correct alien input. // aliensp < file.in // Built using g++: g++ -std=c++0x -Wall -o alien_trans chal169.cpp // #include <iostream> #include "alien_translator.h" #include "string_uti...
<commit_before> #include <pcap.h> #include <stdio.h> #include <poll.h> #include <vector> #include <queue> #include <algorithm> #include <slankdev/util.h> #include <slankdev/ncurses.h> #include <slankdev/exception.h> #include <slankdev/net/protocol.h> class Packet { public: uint8_t buf[2000]; size_t len...
<commit_before>#include <cstdlib> #include <iostream> #include <fstream> #include <vector> #include <algorithm> #include "fasta_parser.h" #include "sa_is.h" struct suffix { unsigned int index; std::string suffix_string; }; bool compare(suffix i, suffix j) { return i.suffix_string < j.suffix_string ; } // Cre...
<commit_before>#include <stdint.h> #include <stddef.h> #include <stdarg.h> #include <stdbool.h> #include <new> typedef uint64_t u64; typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; typedef uintptr_t size_t; typedef unsigned int uint; extern "C" void start64() __attribute__((noreturn)); #define STRING...
<commit_before>#include <GL/glew.h> #define GLM_SWIZZLE #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp> #include "SDL.h" #undef main #include <list> #include <algorithm> #include <functional> #include "RenderingContext.h" #include "scene/GraphNode.h" #include "scene/Skyb...
<commit_before>/** @file 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>/* This file is part of Ingen. * Copyright (C) 2007 Dave Robillard <http://drobilla.net> * * Ingen 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 2 of the License, or (at y...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkFollower.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1996 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyrighted by K...
<commit_before>#include "HeaderModifier.hpp" #include "../Core/Core.hpp" namespace { NETStringList& _getProperBankBy(NECodeType::CodeType codetype) { NEScriptEditor::Banks& banks = Editor::getInstance().getScriptEditor().getBanks(); switch(codetype) { case NECodeType::NAME: return banks.getNameBank(); c...
<commit_before>// Scintilla source code edit control /** @file ContractionState.cxx ** Manages visibility of lines for folding and wrapping. **/ // Copyright 1998-2007 by Neil Hodgson <[email protected]> // The License.txt file describes the conditions under which this software may be distributed. #include <string...
<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) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>/********************************************************************************* * Copyright (c) 2014 David D. Marshall <[email protected]> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies...