text
stringlengths
54
60.6k
<commit_before>#include "benchmark/BenchmarkKernel.h" #include <iostream> using namespace std; BenchmarkKernel::~BenchmarkKernel() { } int main(int argc, const char* argv[]) { if (argc < 2) { cerr << "Usage: " << argv[0] << " <input files>... <output file>" << endl; return 1; } vect...
<commit_before>/* libvisio * Version: MPL 1.1 / GPLv2+ / LGPLv2+ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License or as specified alternatively below. You may obtain a copy of * the License at h...
<commit_before>#include "contextpanewidgetimage.h" #include "ui_contextpanewidgetimage.h" #include <qmljs/qmljspropertyreader.h> #include <QFile> #include <QPixmap> #include <QPainter> namespace QmlDesigner { ContextPaneWidgetImage::ContextPaneWidgetImage(QWidget *parent) : QWidget(parent), ui(new Ui::Context...
<commit_before>/* * qmqtt_network.cpp - qmqtt network * * Copyright (c) 2013 Ery Lee <ery.lee at gmail dot com> * 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>#include <fstream> #include <iostream> #include <string> #include <cstring> #include <vector> #include "mugen_item_content.h" #include "mugen_section.h" #include "mugen_reader.h" // Check for Clsn static bool checkClsn( const std::string &clsn ){ return ( clsn.find("Clsn") != std::string::npos ); } ...
<commit_before>#pragma once #include "helix/nasdaq/nordic_itch_messages.h" #include "helix/order_book.hh" #include "helix/helix.hh" #include "helix/net.hh" #include <unordered_map> #include <vector> #include <memory> #include <set> namespace helix { namespace nasdaq { // NASDAQ OXM Nordic ITCH feed. // // This is ...
<commit_before>#include <nimble/common.h> #include <nimble/utils/utils.h> uint8_t na::HexToByte(char c) { c = (char)tolower(c); if (c >= '0' && c <= '9') { return (uint8_t)(c - '0'); } if (c >= 'a' && c <= 'f') { return (uint8_t)(0xA + (c - 'a')); } return 0; } na::Bounds na::ParseBounds(const char* sz) { ...
<commit_before>// nnet/nnet-component.cc // Copyright 2011-2013 Brno University of Technology (Author: Karel Vesely) // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Licen...
<commit_before>#include <mlopen/convolution.hpp> #include <mlopen/mlo_internal.hpp> namespace mlopen { mlopenStatus_t ConvolutionDescriptor::FindConvFwdAlgorithm(mlopen::Handle& handle, const mlopen::TensorDescriptor& xDesc, const cl_mem x, const mlopen::TensorDescriptor& wDesc, const cl_mem w, cons...
<commit_before>#ifndef TOKEN_PARSER_HPP #define TOKEN_PARSER_HPP #include <string> #include <vector> #include "baseParser.hpp" #include "ast.hpp" #include "token.hpp" #include "operator.hpp" /* EBNF-ish format of a program: program = block ; block = [ statement, ";", { statement, ";" } ] ; statement = dec...
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* ------------------------------------------------------------------------- ATS License: see $ATS_DIR/COPYRIGHT Author: Ethan Coon Default base with a few methods implemented in standard ways. ---------------------------------...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2011 Ulrich von Zadow // // 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 of the Li...
<commit_before>#include "transactionview.h" #include "transactionfilterproxy.h" #include "transactionrecord.h" #include "walletmodel.h" #include "addresstablemodel.h" #include "transactiontablemodel.h" #include "bitcoinunits.h" #include "csvmodelwriter.h" #include "transactiondescdialog.h" #include "editaddressdialog....
<commit_before>#ifndef _SG_EVENT_MGR_HXX #define _SG_EVENT_MGR_HXX #include <simgear/props/props.hxx> #include <simgear/structure/subsystem_mgr.hxx> #include "callback.hxx" class SGEventMgr; struct SGTimer { double interval; SGCallback* callback; SGEventMgr* mgr; bool repeat; bool simtime; v...
<commit_before>/*! * @file pline_fill.cpp * @brief Simple tool for filling polygonal holes in meshes * @author Bastian Rieck <bastian.rieck@iwr.uni-heidelberg.de> */ #include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <string> #include <vector> #include <limits> #include <getopt.h> ...
<commit_before>class Solution { public: /** * @param S, T: Two string. * @return: Count the number of distinct subsequences */ int numDistinct(string &S, string &T) { // write your code here vector<vector<int>> t(T.length()+10,vector<int>(S.length()+10,0)); for(int i...
<commit_before>/* * Written by Nitin Kumar Maharana * nitin.maharana@gmail.com */ /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ //Using one stack but modifies the in...
<commit_before>class Solution { public: /** * @param n: Given the range of numbers * @param k: Given the numbers of combinations * @return: All the combinations of k numbers out of 1..n */ vector<vector<int> > combine(int n, int k) { // write your code here vector<vector<int>...
<commit_before>/* The overall strategy is to consider all possible vertices of triangles, and to search through a relevant adjacency list how many triangles there are. First, we split the lines into three grids, and then color these grids: Blue: Lines parallel or perpendicular to the line joinin...
<commit_before>/* * Written by Nitin Kumar Maharana * nitin.maharana@gmail.com */ class Solution { int depthSum(vector<NestedInteger>& nestedList, int depth) { int res = 0; for(auto l: nestedList) { res += (l.isInteger() ? (depth * l.getInteger()) : depthSum(l.getList(), depth + ...
<commit_before>class Solution { public: /** * @param s A string * @return Whether the string is a valid palindrome */ bool isPalindrome(string& s) { // Write your code here int len_s = s.size(),i,j,k; string s1; for (auto ch1:s){ if (::isaln...
<commit_before>/************************************************************************** * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before> // ChildView.cpp : implementation of the CChildView class // #include "stdafx.h" #include "Tekenprogramma.h" #include "ChildView.h" #include "AShape.h" #include "ACircle.h" #include "ALine.h" #include "ARectangle.h" #include "Settings.h" #include <vector> #include <iostream> #include <std...
<commit_before> #include "register_types.h" #include "object_type_db.h" #include "reference.h" // Wrap for oda #include "engine.h" #include <vector> #include <string> namespace { using std::string; using std::vector; const string *paths = {"patches"}; class ODAModule : public Reference { OBJ_TYPE(ODAModule, Ref...
<commit_before>#include "toast/net/socket.hpp" #include "toast/bootstrap.hpp" #include "toast/bootstrap/loader.hpp" #include "toast/bootstrap/driver.hpp" #include "toast/bootstrap/state.hpp" #include "toast/bootstrap/server.hpp" #include "toast/memory.hpp" #include "toast/filesystem.hpp" #include "toast/logger.hpp" #in...
<commit_before>#include "static.h" #include "page.h" #include "../render.h" using namespace Render; void Html::quickStart(){ header("Thanks"); o << "<div class=\"message\">Now that you've registered you can upload tracks: just click your name at the top right corner of the page.</div>"; footer(); } void ...
<commit_before>#define SPICA_PHOTON_MAP_EXPORT #include "photon_map.h" #include <ctime> #include "../utils/sampler.h" #include "../random/random_sampler.h" #include "scene.h" #include "camera.h" #include "render_parameters.h" namespace spica { Photon::Photon() : _position() , ...
<commit_before>/******************************************************************************* * c7a/api/reduce.hpp * * DIANode for a reduce operation. Performs the actual reduce operation * * Part of Project c7a. * * Copyright (C) 2015 Matthias Stumpp <mstumpp@gmail.com> * Copyright (C) 2015 Alexander Noe <al...
<commit_before>#include <algorithm> #include <cassert> #include <mutex> #include <tuple> #include <utility> #include "ReadWriteLock.h" #include "bitset/Bitset.h" #include "malloc_debug.h" #include <array> #include <atomic> #include "free.h" #include "global.h" #include "malloc.h" #include "shared.h" #include "stuff....
<commit_before>// Copyright (c) 2013 Maciej Gajewski #include "profiling_gui/flowdiagram.hpp" #include <QGraphicsLineItem> #include <QGraphicsRectItem> #include <QDebug> namespace profiling_gui { FlowDiagram::FlowDiagram(QObject *parent) : QObject(parent) { } void FlowDiagram::loadFile(const QString& path, QG...
<commit_before><commit_msg>193 - Graph Coloring<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2008-2012 Juli Mallett. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, th...
<commit_before>#include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <dlfcn.h> #include <signal.h> #include <iostream> #include <vector> #include <string> #include <map> #include "config.h" #include "hal.h" #include ...
<commit_before>// // C++ Implementation: TaskManager // // Description: // // // Author: Douglas Scott <netdscott@netscape.net>, (C) 2010 // // #include "TaskManager.h" #include "Lockable.h" #include <pthread.h> #include <stack> #include <stdio.h> #include <assert.h> #undef DEBUG #ifndef RT_THREAD_COUNT #define RT_...
<commit_before>/*========================================================================= * * Copyright RTK 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>#include "reportgenerator.h" /** * @brief ReportGenerator::ReportGenerator * The constructor will assign parameters to the class members. * @param proj, the current project that we are creating document for. * @param file_handler, the file_handler that is used to get path information for saving. */...
<commit_before>#ifndef ecmdStructs_H #define ecmdStructs_H // Copyright ********************************************************** // // File ecmdStructs.H // ...
<commit_before>/* * Copyright (C) 2006 George Staikos <staikos@kde.org> * Copyright (C) 2006 Dirk Mueller <mueller@kde.org> * Copyright (C) 2006 Zack Rusin <zack@kde.org> * Copyright (C) 2006 Simon Hausmann <hausmann@kde.org> * * All rights reserved. * * Redistribution and use in source and binary forms, with o...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: types.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-07 17:47:36 $ * * The Contents of this file are made ava...
<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 "ash/wm/shelf_layout_manager.h" #include "ash/launcher/launcher.h" #include "ash/screen_ash.h" #include "ash/shell.h" #includ...
<commit_before>// Copyright 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/metro_viewer/chrome_metro_viewer_process_host_aurawin.h" #include "ash/shell.h" #include "base/logging.h" #includ...
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/notifications/notification_conversion_helper.h" #include "base/strings/utf_string_conversions.h" #include "chrome...
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h" #include <math.h> #include "base/strings/string_split.h...
<commit_before>// // Log.hpp // MusicPlayer // // Created by Albert Zeyer on 07.01.14. // Copyright (c) 2014 Albert Zeyer. All rights reserved. // #ifndef MusicPlayer_Log_hpp #define MusicPlayer_Log_hpp #include <iostream> #include <sstream> #include <string> #include <time.h> #include <sys/time.h> struct Log { ...
<commit_before>/* This file is part of Groho, a simulator for inter-planetary travel and warfare. Copyright (c) 2020 by Kaushik Ghose. Some rights reserved, see LICENSE */ #include <exception> #include <string> #include "serialize.hpp" namespace groho { Serialize::Serialize( double dt, const std::vector<NAIFbod...
<commit_before>/** ** \file scheduler/scheduler.cc ** \brief Implementation of scheduler::Scheduler. */ //#define ENABLE_DEBUG_TRACES #include <cassert> #include <libport/compiler.hh> #include <libport/containers.hh> #include <libport/foreach.hh> #include "kernel/userver.hh" #include "scheduler/scheduler.hh" #i...
<commit_before>#include <vector> #include <string> #include <cstdlib> #include <botan/botan.h> #include <botan/lookup.h> #include <botan/look_pk.h> #include <botan/filters.h> #if defined(BOTAN_HAS_RANDPOOL) #include <botan/randpool.h> #endif #if defined(BOTAN_HAS_X931_RNG) #include <botan/x931_rng.h> #endif #in...
<commit_before>#include "OBJ.h" OBJ::OBJ(std::string p) { path = ""; } OBJ::OBJ(char * p) { path = p; } void OBJ::load(Mesh * m) { std::ifstream in(path); std::vector<std::string> tokens; Group * g = new Group(); m->push_group(g); Vertex * v; bool createGroup = false; Face * face; std::vecto...
<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/util/util.hpp>...
<commit_before>//===--- Quality.cpp --------------------------------------------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------...
<commit_before>/** The MIT License (MIT) Copyright (c) 2016 Ryotaro Onuki 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 t...
<commit_before>/************************************************************************** * * Copyright 2011 Jose Fonseca * All Rights Reserved. * * 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 t...
<commit_before><commit_msg>TODO-721: WIP<commit_after><|endoftext|>
<commit_before> #include <stdio.h> #include <vector> #include <time.h> #include <libmemcached/memcached.h> using namespace std; #define MAX_HOST 255 /* Returns random number between [min, max] */ size_t random(size_t min, size_t max) { return rand() % (max - min + 1) + min; } /* Helpful typedefs */ typedef p...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkTrivialProducer.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkTrivialProducer.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#include <system/Locale.h> #if defined(HX_WINDOWS) #include <windows.h> #elif defined(HX_LINUX) #include <stdlib.h> #include <string.h> #include <clocale> #endif namespace lime { std::string* Locale::GetSystemLocale () { #if defined(HX_WINDOWS) char locale[8]; int length = GetLocaleIn...
<commit_before>/* * Copyright (c) 2013, Roland Bock * 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, * t...
<commit_before>// // Copyright (c) 2012, University of Erlangen-Nuremberg // Copyright (c) 2012, Siemens AG // 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 c...
<commit_before>/*========================================================================= Program: Visualization Library Module: CArray.hh Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reproduc...
<commit_before>#include "stack.hpp" #ifndef STACK_CPP #define STACK_CPP template <typename T> stack<T>::stack() : count_(0), array_size_(1), array_(new T[array_size_]) /*strong*/ {} template <typename T> size_t stack<T> :: count() const /*noexcept*/ { return count_; } template <typename T> stack<T>::~stack() /*noexc...
<commit_before>#include <iostream> using namespace std; template <typename T> class stack { public: stack(); stack(const stack<T> &); size_t count() const; void print()const; void push(T const &); void swap(const stack<T>&); T pop(); stack<T>& operator=(const stack<T> &); ~stack(); private: T * array_; siz...
<commit_before>#include <iostream> using namespace std; template <typename T> class stack { public: stack();/*noexept*/ stack(const stack<T> &);/*strong*/ size_t count() const; /*noexcept*/ void print()const;/*noexcept*/ void push(T const &); /*strong*/ void swap(stack<T>&); /*noexcept*/ void pop(); /*strong*/...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2015-2016. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================================...
<commit_before>/* Copyright (c) 2015, Wator Vapor 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 conditio...
<commit_before>#include "Representations/Infrastructure/AccelerometerData.h" #include "Messages/Framework-Representations.pb.h" #include <google/protobuf/io/zero_copy_stream_impl.h> using namespace naoth; using namespace std; Vector3d AccelerometerData::getAcceleration() const { Vector3d acc(data); acc.z += Math:...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkSpanTreeLayoutStrategy.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Th...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
<commit_before>// // DebugOptions.cpp // TimGameLib // // Created by Tim Brier on 05/10/2014. // Copyright (c) 2014 tbrier. All rights reserved. // // ============================================================================= // Include Files // ------------------------------------------------------------------...
<commit_before>/** * The MIT License (MIT) * * Copyright Daniel Adamitskiy. All Rights Reserved. * * 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 witho...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ // Disable "'this': used in base member initializer list" #ifdef _MSC_VER # pragma warning( push ) # pragma warning(disable: 4355) #endif #include <iostream> #include <cstring> #include <map> #ifdef ANDROID #include <linux...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unoapi.hxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2006-06-19 14:47:11 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * $RCSfile: unoapi.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: kz $ $Date: 2005-01-21 15:42:31 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fchrfmt.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:45:04 $ * * The Contents of this file are made a...
<commit_before>template<class T> struct StarrySkyTree { using int_type = T; vector<T> data; vector<T> lazy; int N; StarrySkyTree(int n) { N=1; while(N<n) N<<=1; data.assign(2*N-1, 0); lazy.assign(2*N-1, 0); } // [a,b) void add(int a,int b, int_type val) { ...
<commit_before>/** * @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required b...
<commit_before>#define CATCH_CONFIG_RUNNER #include <catch.hpp> // #include <glm/glm.hpp> // #include <glm/gtx/intersect.hpp> #include "sphere.hpp" #include "box.hpp" #include "material.hpp" #include "light.hpp" #include "camera.hpp" #include "sdfloader.hpp" #include "renderer.hpp" TEST_CASE("test material", "[test ma...
<commit_before>#define CATCH_CONFIG_RUNNER #include <catch.hpp> #include <sphere.hpp> #include <box.hpp> #include <fstream> #include <iostream> #include <glm/glm.hpp> #include <glm/gtx/intersect.hpp> /* SDF Test */ TEST_CASE("SDFRead","[SDF]") { std::string line; std::ifstream sdf("../sdf/test.txt"); if(sdf.is_o...
<commit_before>/* This file is part of the Vc library. Copyright (C) 2009 Matthias Kretz <kretz@kde.org> Vc is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the Lic...
<commit_before>/* This file is part of the Vc library. {{{ Copyright (C) 2009-2013 Matthias Kretz <kretz@kde.org> Vc is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of ...
<commit_before>/* Used to calculate the m-dimension submatrices used in the Four Russians algorithm. Each submatrix is calculated like a Wagner-Fischer edit matrix with cells as follows: - (i-1, j-1) to (i, j) with +1 score added if the characters at (i, j) match, 0 otherwise - (i-1, j) to (i, j) with -1 score added - ...
<commit_before>#include "cnn/hsm-builder.h" #include <fstream> #include <iostream> using namespace std; namespace cnn { using namespace expr; HierarchicalSoftmaxBuilder::HierarchicalSoftmaxBuilder(unsigned rep_dim, const std::string& cluster_file, Dict* wor...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* We rely on wrapped syscalls */ #include "libEpollFuzzer/epoll_fuzzer.h" #include "App.h" /* We keep this one for teardown later on */ struct us_listen_socket_t *listen_socket; struct us_socket_t *client; /* This test is run by libEpollFuzzer */ void test() { /* ws->getUserData returns one of these...
<commit_before>/* This file is part of Akregator. Copyright (C) 2004 Sashmit Bhaduri <smt@vfemail.net> 2005 Frank Osterfeld <frank.osterfeld at kdemail.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
<commit_before>#include "SysControl.h" #include "ControlsApp.h" #include "ControlsXPad360.h" #include "Engine.h" #include "App.h" #include "Engine.h" #include "App.h" #include "Input.h" #include "ObjectGui.h" #include "WidgetLabel.h" //解决跨平台字符集兼容问题 #ifdef _WIN32 #pragma execution_character_set("utf-8") #endif using ...
<commit_before>#include "mc2lib/codegen/ops/armv7.hpp" #include "mc2lib/codegen/rit.hpp" #include "mc2lib/memconsistency/cats.hpp" #include <gtest/gtest.h> using namespace mc2lib; using namespace mc2lib::codegen; using namespace mc2lib::memconsistency; TEST(CodeGen, ARMv7) { std::default_random_engine urng(1238); ...
<commit_before>// Copyright 2008 Paul Hodge #include "common_headers.h" #include "branch.h" #include "builtins.h" #include "debug.h" #include "introspection.h" #include "parser.h" #include "runtime.h" #include "term.h" #include "testing.h" #include "type.h" #include "values.h" namespace circa { namespace branch_test...
<commit_before>#include "UT4WebAdmin.h" #include "Base64.h" #define UT4WA_PLUGIN_FOLDER "UT4WebAdmin" #define UT4WA_HTML_FOLDER "www" #define LISTENING_PORT "8080" int WelcomeHandler(struct mg_connection *conn, void *cbdata) { mg_printf(conn, "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " "close\r...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>#include <stdio.h> #include "../SynCommonLib/RelationsIterator.h" #include "../common/SyntaxHolder.h" void GetAnanlytForms(const CSentence& Sentence, string& Res) { for( int WordNo = 0; WordNo<Sentence.m_Words.size(); WordNo++ ) { const CSynWord& W = Sentence.m_Words[WordNo]; if (...
<commit_before><commit_msg>First iteration of creating udp sink.<commit_after>#include "Mocks.hpp" #include <boost/asio.hpp> #include <boost/lexical_cast.hpp> namespace asio = boost::asio; namespace blackhole { namespace sink { class socket_t { asio::io_service io_service; asio::ip::udp::endpoint endpoint;...
<commit_before>/** * @file posix/wait.cpp * @brief POSIX event/timeout handling * * (c) 2013-2014 by Mega Limited, Wellsford, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set fo...
<commit_before>#include "stdafx.h" #include "Calculator.h" float Calculator::parseExpr(boost::string_ref &ref) { float result = parseExprSum(ref); if (!ref.empty()) { return std::numeric_limits<float>::quiet_NaN(); } return result; } float Calculator::parseExprSum(boost::string_ref &ref) { ...
<commit_before>#pragma once #include "../geometry/point2d.hpp" #include "../base/assert.hpp" #include "../base/base.hpp" #include "../base/buffer_vector.hpp" #include "../base/logging.hpp" #include "../base/math.hpp" #include "../std/algorithm.hpp" namespace covering { enum CellObjectIntersection { CELL_OBJECT_NO_I...
<commit_before>/* This file is part of Zanshin Todo. Copyright 2008 Kevin Ottens <ervin@kde.org> Copyright 2008, 2009 Mario Bensi <nef@ipsquad.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software...
<commit_before>/* * Copyright 2009 The VOTCA Development Team (http://www.votca.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0...
<commit_before>#include "messages/MessageElement.hpp" #include "Application.hpp" #include "controllers/moderationactions/ModerationActions.hpp" #include "debug/Benchmark.hpp" #include "messages/Emote.hpp" #include "messages/layouts/MessageLayoutContainer.hpp" #include "messages/layouts/MessageLayoutElement.hpp" #inclu...
<commit_before>#include "AgentController.h" #include <assert.h> namespace fetch { namespace ui { AgentController::AgentController(Agent* agent) : agent_(agent) , runlevel_(UNKNOWN) { assert(agent); } void AgentController::poll() { RunLevel current = queryRunLevel(); if(current==runlevel_) return; // nothi...
<commit_before>#include "QsLog.h" #include "AutoUpdateDialog.h" #include "ui_AutoUpdateDialog.h" #include <QMessageBox> #include <QDesktopServices> #include <QPushButton> AutoUpdateDialog::AutoUpdateDialog(const QString &version, const QString &targetFilename, const QString &url, QWi...