text
stringlengths
54
60.6k
<commit_before>// Copyright (c) 2019 PaddlePaddle 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 // // ...
<commit_before>// Filename: collisionHandlerPusher.cxx // Created by: drose (16Mar02) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda ...
<commit_before>// Filename: config_parametrics.cxx // Created by: drose (19Mar00) // //////////////////////////////////////////////////////////////////// #include "classicNurbsCurve.h" #include "config_parametrics.h" #include "cubicCurveseg.h" #include "curveFitter.h" #include "hermiteCurve.h" #include "nurbsCurveDr...
<commit_before>#include <catch.hpp> #include <rapidcheck/catch.h> #include <numeric> #include "rapidcheck/detail/BitStream.h" #include "rapidcheck/detail/Utility.h" using namespace rc; using namespace rc::detail; template <typename T> class SeqSource { public: template <typename Arg, typename = typena...
<commit_before><commit_msg>Added comments.<commit_after><|endoftext|>
<commit_before>#include "benchmark/benchmark_api.h" #include "test_configs.h" #include "test_utils.h" #include<algorithm> #include<deque> #include<map> #include<list> #include<set> #include<unordered_map> #include<unordered_set> #include<vector> // TODO: get, operator[], count, equal_range, erase, lower_bound, upper_...
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>/* * LucasCandaePyramidTracker.cpp * * Created on: Feb 21, 2013 * Author: link */ #include "LucasCandaePyramidTracker.hpp" #include "opencv2/video/tracking.hpp" const cv::TermCriteria DEFAULT_TERM_CRITERIA = cv::TermCriteria( CV_TERMCRIT_ITER + CV_TERMCRIT_EPS, 40, 0.001); const cv::Size D...
<commit_before>/* AddRepoWindow.cpp * Copyright 2016 Brian Hill * All rights reserved. Distributed under the terms of the BSD License. */ #include "AddRepoWindow.h" #include <Alert.h> #include <Application.h> #include <Catalog.h> #include <Clipboard.h> #include <LayoutBuilder.h> #include "constants.h" #undef B_...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkPointwiseMutualInformation.cxx ------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE...
<commit_before>/* * Copyright (C) 2004-2007 Marc Boris Duerner * * 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 option) any later ...
<commit_before>#include <AndroidClient.h> #include <jni.h> #include <android/log.h> #include <vector> AndroidClientCache::AndroidClientCache(JNIEnv * _env) { _env->GetJavaVM(&javaVM); auto env = getJNIEnv(); cookieManagerClass = (jclass) env->NewGlobalRef(env->FindClass("android/webkit/CookieManager")); httpC...
<commit_before>// ElementSet.cpp #include "ElementSet.h" //------------------------------------------------------------------------------------------ // Element //------------------------------------------------------------------------------------------ Element::Element( void ) { collection = nullp...
<commit_before>#include "pch.h" #include "AudioRenderer.h" namespace SaneAudioRenderer { AudioRenderer::AudioRenderer(ISettings* pSettings, IMyClock* pClock, HRESULT& result) : m_deviceManager(result) , m_myClock(pClock) , m_flush(TRUE/*manual reset*/) , m_dspVolume(*this) ...
<commit_before>#include <vector> #include <fstream> #include <iostream> #include <cassert> #include <cmath> #include "RandomNumberGenerator.h" using namespace std; using namespace DNest3; class Data { private: vector<double> logw, run_id; vector< vector<double> > scalars; int N; public: Data() { } voi...
<commit_before>/// /// @file help.cpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primecount.hpp> #include <iostream> #include <cstdlib> #include <string> using namespace st...
<commit_before> #include <iostream> #include <fstream> #include <sstream> #include <string> #include "http_server.h" #include "date.h" #include "file_interpreter.h" #include "path_resolution.h" using namespace std; #define BUFFER_SIZE 32 HTTPServer::HTTPServer(unsigned short port) : Server(port) { } void HTTPServ...
<commit_before>/* This file is part of Zanshin Copyright 2014 Kevin Ottens <ervin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or (at your ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include <stdio.h> #include <node.h> #include <v8.h> #include <string> #include "Types.h" #include "JuliaExecEnv.h" using namespace std; using namespace v8; static JuliaExecEnv *J = 0; void returnNull(const FunctionCallbackInfo<Value> &args,Isolate *I) { args.GetReturnValue().SetNull(); } void ret...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "DebugOperatorNew.h" #include "UiAPI.h" #include "UiMainWindow.h" #include "UiGraphicsView.h" #include "QtUiAsset.h" #include "UiProxyWidget.h" #include "Application.h" #include "Framework.h" #include "AssetAPI.h" ...
<commit_before>#include <boost/filesystem.hpp> #include <boost/range/algorithm/mismatch.hpp> #include <boost/algorithm/string/join.hpp> #include <boost/algorithm/string/predicate.hpp> #include <unordered_set> #include <fstream> #include <iostream> namespace meka { namespace folder { auto const build = "build"...
<commit_before>// ========================================================================== // // This file is part of DO++, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2013 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // Lic...
<commit_before>#include <iostream> #include <vector> #include <set> #include <string> #include <algorithm> #include <cmath> using namespace std; int main() { int n = 0; cin >> n; vector<long long> v(n, 0); for (int i = 0; i < n; ++i) { cin >> v[i]; } // Alice opration bool Ali...
<commit_before>#pragma once #include <fc/reflect/variant.hpp> #include <functional> #include <string> #include <fc/optional.hpp> #include <fc/variant.hpp> //#include <fc/network/ip.hpp> //#include <fc/variant.hpp> namespace bts { namespace api { enum method_prerequisites { no_prerequisites = 0, json_...
<commit_before>/* * Copyright (c) 2015, 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, this list of c...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * 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 c...
<commit_before>/***************************************************************************** bedtools.cpp bedtools command line interface. Thanks to Heng Li, as this interface is inspired and based upon his samtools interface. (c) 2009-2011 - Aaron Quinlan Quinlan Laboratory Department of Public Hea...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right 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>#ifndef MEMORY_ARENA_HPP #define MEMORY_ARENA_HPP #include <cstdint> #include <cstdlib> #include <utility> #include <vector> #include "slice.hpp" /** * A memory arena. */ template <size_t MIN_CHUNK_SIZE=4096> class MemoryArena { struct Chunk { size_t size = 0; size_t used = 0; char* data = nul...
<commit_before>#ifndef STRAGGLER_EVENT_HPP #define STRAGGLER_EVENT_HPP namespace warped { // This is a Straggler event class class StragglerEvent : public Event { public: StragglerEvent() = default; StragglerEvent( const std::string& receiver_name, const std::string& sender_name, ...
<commit_before>#include "Riostream.h" #include "Coefficient.h" #include "RooAbsReal.h" #include <math.h> #include "TMath.h" ClassImp(doofit::roofit::functions::bdecay::Coefficient) namespace doofit { namespace roofit { namespace functions { namespace bdecay { Coefficient::Coefficient(const std::string& name, ...
<commit_before>/************************************************************************* * * $RCSfile: macropg.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: kz $ $Date: 2005-01-21 14:55:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>#include "dg/llvm/analysis/PointsTo/PointerSubgraph.h" #include "llvm/llvm-utils.h" namespace dg { namespace analysis { namespace pta { PSNode *LLVMPointerSubgraphBuilder::createAlloc(const llvm::Instruction *Inst) { PSNodeAlloc *node = PSNodeAlloc::get(PS.create(PSNodeType::ALLOC)); addNode(In...
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<commit_before>#include "env.hpp" namespace Vole { Env::Env(Env* par) : parent(par) { } Value Env::lookup(Symbol name) { for (auto current = this; current; current = current->parent) { if (current->bindings.count(name)) { return current->bindings[name]; } } throw "unbound variabl...
<commit_before>/*============================================================================= Copyright (c) 2012-2013 Richard Otis 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>/* ** Author(s): ** - Laurent LEC <llec@aldebaran-robotics.com> ** ** Copyright (C) 2012 Aldebaran Robotics */ #include <qi/log.hpp> #include <qimessaging/qt/QiTransportSocket> #include "src/qitransportsocket_p.h" #include <QTcpSocket> #include <QSslSocket> #include <QHostAddress> #include <qimessaging...
<commit_before>/* ESP8266WiFiSTA.cpp - WiFi library for esp8266 Copyright (c) 2014 Ivan Grokhotkov. All rights reserved. This file is part of the esp8266 core for Arduino environment. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public ...
<commit_before>/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
<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 "net/tools/quic/test_tools/http_message_test_utils.h" #include <vector> #include "base/basictypes.h" #include "base/logging....
<commit_before>// Copyright 2010-2012 Google // 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>#ifndef TURBO_CONTAINER_SPSC_RING_QUEUE_HPP #define TURBO_CONTAINER_SPSC_RING_QUEUE_HPP #include <cstdint> #include <array> #include <atomic> #include <functional> #include <memory> #include <vector> #include <turbo/toolset/attribute.hpp> namespace turbo { namespace container { template <class value_t...
<commit_before>/* * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com> */ #pragma once #include <climits> #include <cstddef> #include <cmath> #include <uavcan/build_config.hpp> #ifndef UAVCAN_CPP_VERSION # error UAVCAN_CPP_VERSION #endif #if UAVCAN_CPP_VERSION < UAVCAN_CPP11 # include <float.h> // c...
<commit_before>#include <FWApplication.h> #include <Dialog.h> #include <GridView.h> #include <TableLayout.h> #include <PlatformThread.h> #include <SysEvent.h> #include <LinearLayout.h> #include <FrameLayout.h> #include <TextLabel.h> #include <TextField.h> #include <Button.h> using namespace std; class AppMessageDial...
<commit_before>/*********************************************************************** filename: CEGUIDefaultResourceProvider.cpp created: 8/7/2004 author: James '_mental_' O'Sullivan *************************************************************************/ /**************************************...
<commit_before>// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>/*********************************************************************** created: Fri, 4th July 2014 author: Henri I Hyyryläinen *************************************************************************/ /*************************************************************************** * Copy...
<commit_before>/* * Copyright 2010, 2011 Esrille 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 applic...
<commit_before>#include "chainerx/routines/reduction.h" #include <cmath> #include <cstdint> #include <numeric> #include <utility> #include <vector> #include <absl/types/optional.h> #include "chainerx/array.h" #include "chainerx/axes.h" #include "chainerx/backprop_mode.h" #include "chainerx/backward_builder.h" #inclu...
<commit_before>/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * **********************...
<commit_before>#include <iostream> #include <boost/timer/timer.hpp> #include "perf_sim.h" static const uint32 PORT_LATENCY = 1; static const uint32 PORT_FANOUT = 1; static const uint32 PORT_BW = 1; PerfMIPS::PerfMIPS(bool log) : Log( log), rf(), checker() { executed_instrs = 0; wp_fetch_2_decode = make_wri...
<commit_before>/* * OpenSSL utilities. * * author: Max Kellermann <mk@cm4all.com> */ #ifndef BENG_PROXY_SSL_UNIQUE_HXX #define BENG_PROXY_SSL_UNIQUE_HXX #include <openssl/ssl.h> #include <memory> struct OpenSslDelete { void operator()(SSL *ssl) { SSL_free(ssl); } void operator()(SSL_CTX *ss...
<commit_before><commit_msg>Add const to read-only variables.<commit_after><|endoftext|>
<commit_before> /* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundatio...
<commit_before>// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2007 Torsten Rahn <tackat@kde.org>" // Copyright 2007 Inge Wall...
<commit_before>#include "filedownloader.hpp" using namespace player; #define BITRATE 800.0 //kbits #define DATA_SIZE 4096.0 //byte FileDownloader::FileDownloader(int interest_lifetime) : m_face(m_ioService) { this->interest_lifetime = interest_lifetime; } shared_ptr<itec::Buffer> FileDownloader::getFile(string na...
<commit_before>#include <boost/format.hpp> #include <boost/make_shared.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boost/range/adaptor/map.hpp> #include "KinBodyMarker.h" using boost::ref; using boost::format; using boost::str; using boost::algorithm::ends_with; using boost::adaptors::map_values; us...
<commit_before>#include <PCU.h> #include "phPartition.h" #include "phInput.h" #include <parma.h> #include <apfZoltan.h> #include <apfMDS.h> #include <apfMesh2.h> namespace ph { apf::Migration* getSplitPlan(Input& in, apf::Mesh2* m) { assert(in.recursivePtn <= 1); assert(in.splitFactor >= 1); apf::Migration* pla...
<commit_before>/*************************************************************************** * Copyright (C) 2003 by Unai Garro * * uga@ee.ed.ac.uk * * ...
<commit_before>/* * Copyright 2007-2020 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * 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...
<commit_before>#ifndef _C4_TYPES_HPP_ #define _C4_TYPES_HPP_ #include <stdint.h> #include <stddef.h> #include <type_traits> /** @file types.hpp basic types, and utility macros and traits for types. * @ingroup basic_headers */ C4_BEGIN_NAMESPACE(c4) using i8 = int8_t; using u8 = uint8_t; using i16 = int16_t; using ...
<commit_before>#include <Poco/Net/HTTPClientSession.h> #include <Poco/Net/HTTPRequest.h> #include <Poco/Net/HTTPResponse.h> #include <Poco/StreamCopier.h> #include <Poco/Path.h> #include <Poco/URI.h> #include <Poco/Exception.h> #include <iostream> #include <string> using namespace Poco::Net; using namespace Poco; usin...
<commit_before>#include "widget.h" #include <QDebug> #include <QPainter> #include <QFontMetrics> Widget::Widget(QWidget *parent) : QWidget(parent) { resize(402, 322); } Widget::~Widget() { } void Widget::paintEvent(QPaintEvent *event) { QPainter painter(this); /*! * Draw the border */ QRect rect = this...
<commit_before>/* * dialer - MeeGo Voice Call Manager * Copyright (c) 2009, 2010, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ #include "common.h"...
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>/* Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. 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 "fmv.hpp" #include "imgui/imgui.h" #include "core/audiobuffer.hpp" #include "gamedata.hpp" #ifdef _WIN32 #include <windows.h> #endif #ifdef __APPLE__ # include <OpenGL/gl.h> #else # include <GL/gl.h> #endif/*__APPLE__*/ class FmvUi { private: char buf[4096]; ImGuiTextFilter mFilter; ...
<commit_before>// // Copyright (c) 2002-2013 The ANGLE 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 "AnalyzeCallDepth.h" AnalyzeCallDepth::FunctionNode::FunctionNode(TIntermAggregate *node) : node(node...
<commit_before>/* *Copyright (c) 2013-2013, yinqiwen <yinqiwen@gmail.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 source code must retain the above cop...
<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/login/eula_view.h" #include <signal.h> #include <sys/types.h> #include <string> #include "app/l10n_...
<commit_before>/** * @file SimpleMotionBehaviorControl.cpp * * @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a> * @author <a href="mailto:goehring@informatik.hu-berlin.de">Daniel Goehring</a> * Implementation of class SimpleMotionBehaviorControl */ #include "SimpleMotionBehaviorCon...
<commit_before>// Copyright (c) 2009 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/crx_installer.h" #include "app/l10n_util.h" #include "base/file_util.h" #include "base/scoped_temp...
<commit_before>#include "doofit/plotting/Plot/Plot.h" // STL #include <string> #include <sstream> #include <vector> // boost #include <boost/regex.hpp> // ROOT #include "TIterator.h" // from RooFit #include "RooArgList.h" #include "RooAbsRealLValue.h" #include "RooAbsData.h" #include "RooAbsPdf.h" #include "RooPlo...
<commit_before>#include "country.hpp" #include "../version/version.hpp" #include "../platform/platform.hpp" #include "../indexer/data_header.hpp" #include "../coding/streams_sink.hpp" #include "../coding/file_reader.hpp" #include "../coding/file_writer.hpp" #include "../coding/file_container.hpp" #include "../base...
<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/net/load_timing_observer.h" #include "base/time.h" #include "chrome/browser/browser_thread.h" #include "chrom...
<commit_before>/* This file is part of SWGANH. For more information, visit http://swganh.com Copyright (c) 2006 - 2011 The SWG:ANH Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either v...
<commit_before>#include "storage.hpp" #include "../base/logging.hpp" #include "../base/string_utils.hpp" #include "../indexer/data_header.hpp" #include "../coding/file_writer.hpp" #include "../coding/file_reader.hpp" #include "../coding/file_container.hpp" #include "../coding/strutil.hpp" #include "../version/versi...
<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/sync/notification_method.h" #include "base/logging.h" namespace browser_sync { const NotificationMethod kDe...
<commit_before>#include <assert.h> #include <float.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include "bnet.hpp" #include "matrix.hpp" #include "rand.hpp" #define VERBOSE 1 #define SAVE_NETWORKS 0 double dirichlet_score_famil...
<commit_before>/** \file * Implements safer c++ wrappers for the sysctl() interface. */ #ifndef _POWERDXX_SYS_SYSCTL_HPP_ #define _POWERDXX_SYS_SYSCTL_HPP_ #include "error.hpp" /* sys::sc_error */ #include <sys/types.h> /* sysctl() */ #include <sys/sysctl.h> /* sysctl() */ namespace sys { /** * Thi...
<commit_before>// Copyright (c) 2009 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/browser_bubble.h" #include "app/l10n_util_win.h" #include "chrome/browser/views/frame/browser_view.h" #...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * 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 c...
<commit_before>#include "compass_filter.hpp" #include "location_state.hpp" #include "../geometry/angles.hpp" #include "../base/logging.hpp" #include "../platform/location.hpp" #define LOW_PASS_FACTOR 0.5 CompassFilter::CompassFilter() { m_headingRad = m_smoothedHeadingRad = 0; // Set hard smoothing treshold ...
<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/autofill/autofill_agent.h" #include "base/utf_string_conversions.h" #include "chrome/common/autofill_message...
<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/pepper_scrollbar_widget.h" #include "base/basictypes.h" #include "base/keyboard_codes.h" #include "base/logg...
<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/speech_input_dispatcher.h" #include "chrome/renderer/render_view.h" #include "third_party/WebKit/WebKit/chro...
<commit_before>/* This file is part of VoltDB. * Copyright (C) 2008-2013 VoltDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your...
<commit_before>/* * bacteria-core, core for cellular automaton * Copyright (C) 2016 Pavel Dolgov * * See the LICENSE file for terms of use. */ #include <boost/test/unit_test.hpp> #include "Model.hpp" typedef void (Implementation::Model::*OneArgMethod) ( const Abstract::Point& coordinates ); typedef void (I...
<commit_before>#include "AmsFont.h" #include "constants.h" const int CHAR_SIZE = 24; const int MAX_COLUMN = SCREEN_W / CHAR_SIZE; const int MAX_LINE = SCREEN_H / CHAR_SIZE; AmsFont::AmsFont(char* fileName) { font = SDL_LoadBMP(fileName); SDL_Surface* surface = SDL_CreateRGBSurface(0, SCREEN_W, SCREEN_H, 32, 0, 0...
<commit_before>/*************************************************************************** * Copyright (c) 2015 Stefan Tröger <stefantroeger@gmx.net> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>// // Copyright 2016 Giovanni Mels // // 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 ...
<commit_before>/* NUI3 - C++ cross-platform GUI framework for OpenGL based applications Copyright (C) 2002-2003 Sebastien Metrot licence: see nui3/LICENCE.TXT */ #include "nui.h" #include "nuiSocket.h" #include "nuiNetworkHost.h" #ifdef WIN32 #include <Ws2tcpip.h> #undef GetAddrInfo #else #include <sys/types.h> ...
<commit_before>// Copyright 2010-2012 UT-Battelle, LLC. See LICENSE.txt for more information. #include "eavlVTKExporter.h" #include <iostream> void eavlVTKExporter::Export(ostream &out) { out<<"# vtk DataFile Version 3.0"<<endl; out<<"vtk output"<<endl; out<<"ASCII"<<endl; ExportUnstructured(out); } ...
<commit_before>#ifndef RESULT_BENCHMARK_HPP_ #define RESULT_BENCHMARK_HPP_ #include <math.h> #include <iostream> #include <array> #include <vector> #include <assert.h> #include <regex> namespace gearshifft { /** Result data generated after a benchmark has completed the runs */ template<int T_NumberRuns, int T_Numb...
<commit_before>#include <string> #include <vector> #include <fstream> #include <windows.h> #include "simple/string.h" typedef struct tagHEADER { WORD idReserved; WORD idType; WORD idCount; } HEADER, *LPHEADER; typedef struct tagICONDIRENTRY { BYTE bWidth; BYTE bHeight; BYTE bColorCount; ...
<commit_before>#pragma once #include "systemMacro.h" #include <OgreSharedPtr.h> #include <OgreResourceManager.h> #include <vector> #include <algorithm> #include <sndfile.h> #include "AnnTypes.h" namespace Annwvyn { class AnnDllExport AnnAudioFile : public Ogre::Resource { ///Where the data is actually stored, as ...
<commit_before>//////////////////////////////////////////////////////////// // // The MIT License (MIT) // // Copyright (c) 2014 stevehalliwell // // 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 So...
<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...