text stringlengths 54 60.6k |
|---|
<commit_before>/******************************************************************************\
* File: shell.cpp
* Purpose: Implementation of class wxExSTCShell
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2009 Anton van Wezenbeek
* All rights are reserved. Reproduct... |
<commit_before>#include <gtest/gtest.h>
#include <string>
#include <cpr/cprtypes.h>
#include <cpr/ssl_options.h>
#include "httpsServer.hpp"
using namespace cpr;
static HttpsServer* server;
TEST(SslTests, HelloWorldTest) {
std::this_thread::sleep_for(std::chrono::seconds(1));
std::string url = Url{server-... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDataSetReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistr... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLTexture.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistr... |
<commit_before>/**************************************************************************
*
* Copyright 2015 VMware, Inc
* 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 th... |
<commit_before>/**
* @doc The Vec class
*
* @copyright 2012-2013 David H. Bronke and Christopher S. Case
* Licensed under the MIT license; see the LICENSE file for details.
*/
#include <cmath>
#include <erl_nif.h>
#include "angles.h"
#include "Vec.h"
/* -------------------------------------------------------... |
<commit_before>/*
* GridMapTest.cpp
*
* Created on: Mar 24, 2015
* Author: Martin Wermelinger
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#include "grid_map_core/GridMap.hpp"
#include "grid_map/GridMapRosConverter.hpp"
#include "grid_map_core/iterators/GridMapIterator.hpp"
// gtest
#include <gtest... |
<commit_before>// Copyright 2014-2015 Open Source Robotics Foundation, 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
//
// Unle... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include "ovpCBoxAlgorithmFrequencyBandSelector.h"
using namespace OpenViBE;
using namespace OpenViBE::Kernel;
using namespace OpenViBE::Plugins;
using namespace OpenViBEPlugins;
using namespace OpenViBEPlugins::SignalProcessing;
#include <vector>
#include <string>
#include <cstdio>
#define min(a,b) ... |
<commit_before>// -*- Mode: c++-mode; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 2; -*-
//
// Copyright (C) 2003 Grzegorz Jaskiewicz <gj at pointblue.com.pl>
//
// gaduregisteraccount.cpp
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public ... |
<commit_before>#pragma ident "$Id$"
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
//... |
<commit_before>#include <stdio.h>
#include <memory.h>
#include <assert.h>
#include <stdlib.h>
#include <malloc.h>
#include "halide_benchmark.h"
#include "pipeline_cpu.h"
#include "pipeline_hvx64.h"
#include "pipeline_hvx128.h"
#include "HalideRuntimeHexagonHost.h"
#include "HalideBuffer.h"
template <typename T>
T c... |
<commit_before>#include "terminal.h"
#include <iostream>
#include "logging.h"
#include "singletons.h"
#include <unistd.h>
#include <sys/wait.h>
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
//TODO: Windows...
//A working implementation of popen3, with all pipes getting closed properly.
//TOD... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkGradientShader.h"
namespace skiagm {
static void makebm(SkBitmap* bm, int w, int h) {
bm->allocN32Pixels... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dlg_ObjectProperties.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2007-05-22 17:59:32 $
*
* The Contents of this fi... |
<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/autocomplete/extension_app_provider.h"
#include <algorithm>
#include <cmath>
#include "base/string16.h"
#inc... |
<commit_before>/*
Start edit with Emacs
the project is hosted at https://github.com/igoumeninja/Stem-Cell-Orchestra-Project
Aris Bezas
*/
#include <string>
//using namespace std;
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
//ofSetVerticalSync(tr... |
<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/dom_ui/print_preview_ui_html_source.h"
#include <algorithm>
#include <vector>
#include "base/message_loop.h"... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <texture.h>
#include <cmath>
#include <glm.hpp>
using namespace std;
Texture::Texture(int type, int w, int h)
{
textureType = type;
width = w;
height = h;
data = new float[width*height*4];
for (int i = 0;i<width*height*4;i++)
... |
<commit_before>// *************************************************************************
//
// Licensed under the MIT License (see accompanying LICENSE file).
//
// The author of this code is: Daniel Farrell
//
// Based on mmtf_python, adapted to c++ standards 2018
//
// ********************************************... |
<commit_before>#include "highlighters.hh"
#include "assert.hh"
#include "window.hh"
#include "highlighter_registry.hh"
#include "highlighter_group.hh"
#include "regex.hh"
namespace Kakoune
{
using namespace std::placeholders;
typedef boost::regex_iterator<BufferIterator> RegexIterator;
template<typename T>
void hi... |
<commit_before>/*
* runinbg.cpp
* PHD Guiding
*
* Created by Andy Galasso.
* Copyright (c) 2014 Andy Galasso
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
<commit_before>#include "VerifyFormat.h"
#include "corelib.h"
#include "StringXStream.h"
static bool verifyDTvalues(int yyyy, int mon, int dd,
int hh, int min, int ss)
{
const int month_lengths[12] = {31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31};... |
<commit_before>#include "game.hpp"
#include <fstream>
#include <sstream>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Window/Event.hpp>
#include "../../messageBus/messageBus.hpp"
//Global Function
void initGui(aw::GuiController &gui);
namespace aw
{
Game::Game(StateMachine &statemachine, MessageBus &m... |
<commit_before>/*
* Copyright (c) 2016 Alex Spataru <alex_spataru@outlook.com>
*
* This file is part of qMDNS, which is released under the MIT license.
* For more information, please read the LICENSE file in the root directory
* of this project.
*/
#include "Console.h"
#include <QTimer>
#include <QDe... |
<commit_before>#include "async_web_server_cpp/http_server.hpp"
#include "async_web_server_cpp/http_reply.hpp"
namespace async_web_server_cpp
{
HttpServer::HttpServer(const std::string &address, const std::string &port,
HttpServerRequestHandler request_handler, std::size_t thread_pool_size)
: ... |
<commit_before>#ifndef INCLUDEGUARD_palgo_static_kdtree_hpp
#define INCLUDEGUARD_palgo_static_kdtree_hpp
/** @file
* @brief A test of specifying the paritioners statically using the template arguments.
*
* Still in alpha.
*/
#include <array>
#include <vector>
// TODO - Remove this include once fully tested
#incl... |
<commit_before>#include <set>
#include <vector>
#include <map>
#include <cmath>
#include "util.hpp"
#include "tatum_error.hpp"
#include "TimingGraph.hpp"
#include "TimingConstraints.hpp"
using tatum::TimingGraph;
using tatum::TimingConstraints;
using tatum::NodeId;
using tatum::EdgeId;
using tatum::NodeType;
templa... |
<commit_before>/*
* http_server.cpp
*
* Created on: Oct 26, 2014
* Author: liao
*/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/epoll.h>
#include... |
<commit_before>#include <gtest/gtest.h>
#include <arrayfire.h>
#include <af/dim4.hpp>
#include <af/traits.hpp>
#include <string>
#include <vector>
#include <iostream>
#include <testHelpers.hpp>
using std::string;
using std::cout;
using std::endl;
using std::vector;
using af::af_cfloat;
using af::af_cdouble;
template<... |
<commit_before>/*
* Copyright 2012-2013 BrewPi/Elco Jacobs.
* Copyright 2013 Matthew McGowan.
*
* This file is part of BrewPi.
*
* BrewPi 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... |
<commit_before><commit_msg>Clean up includes<commit_after><|endoftext|> |
<commit_before>#ifndef PYTHONIC_TYPES_NUMPY_IEXPR_HPP
#define PYTHONIC_TYPES_NUMPY_IEXPR_HPP
#include "pythonic/types/nditerator.hpp"
#include "pythonic/types/tuple.hpp"
#include <numeric>
namespace pythonic {
namespace types {
template<class Arg, class... S>
struct numpy_gexpr;
tem... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of mcompositor.
**
** If you have questions regarding the... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: parrtf.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 19:30:55 $
*
* The Contents of this file are made av... |
<commit_before>/*************************************************************************
*
* $RCSfile: element.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: lo $ $Date: 2004-02-26 14:43:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>#ifndef _IRC_BOT_H
#define _IRC_BOT_H
#include <string>
#include <vector>
#include <unordered_map>
#include <functional>
#include <algorithm>
#include "./types.hpp"
#include "./server.hpp"
#include "./packet.hpp"
namespace IRC {
class Bot {
struct Command {
std::string trigger, desc;
std::... |
<commit_before>//===-- tsan_external.cc --------------------------------------------------===//
//
// 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: dstribut.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: hr $ $Date: 2007-06-27 17:03:55 $
*
* The Contents of this file are made... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#ifndef ALGORITHM
#define ALGORITHM
#include<algorithm> //find_if, remove_if
#include<cstddef> //ptrdiff_t
#include<functional> //equal_to
#include<iterator> //iterator_traits, next
namespace nAlgorithm
{
template<class T,class UnaryPred>
bool all_of_val(T begin,const T end,const UnaryPred pred)
{
... |
<commit_before>#include <semaphore.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <mist/defines.h>
#include "input.h"
#include <sstream>
#include <fstream>
#include <iterator>
namespace Mist {
Input * Input::singleton = NULL;
void Input::userCallback(char * data, size_t len, unsigned int id){
for (in... |
<commit_before><commit_msg>Don't bother calling slice_alleles at all; just make big nodes and dice them<commit_after><|endoftext|> |
<commit_before>/*
includes
object for each entry
square
row
column
am I complete
array[9] available numbers
test if subsquare is valid
test line for valid entries
test if game is complete
main
*/
#include <iostream>
#include <iomanip>
#include <vector>
#include <getopt.h> //for getopt()
#include <cstdlib> //... |
<commit_before>/*
* Copyright (c) 2015-2015, 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,
* ... |
<commit_before>/**
* @file icing.cpp
*
* Created on: Jan 03, 2013
* @author aaltom
*/
#include "icing.h"
#include <iostream>
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/lexical_cast.hpp>
#include "util.h"
#define HIMAN_AUXILIARY_INCLUDE
#include "fetcher.h"
#undef HIMAN_AUXILIARY_... |
<commit_before>/*
Copyright (C) 2019 The Falco 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 of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gfx/font.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
using gfx::Font;
class FontTest : public test... |
<commit_before>/*
* (C) Copyright 2015 ETH Zurich Systems Group (http://www.systems.ethz.ch/) and others.
*
* 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/... |
<commit_before>// kmfiltermgr.cpp
#include <kapplication.h>
#include <kdebug.h>
#include <kmessagebox.h>
#include <klocale.h>
#include "kmfoldermgr.h"
#include "kmfiltermgr.h"
#include "kmfilterdlg.h"
#include "kmmessage.h"
//todo
#include <kdebug.h>
//--------------------------------------------------------------... |
<commit_before>/**
* @file neons.cpp
*
* @date Nov 20, 2012
* @author partio
*/
#include "neons.h"
#include "logger_factory.h"
#include "plugin_factory.h"
#include <thread>
#include <sstream>
#include "util.h"
using namespace std;
using namespace himan::plugin;
const int MAX_WORKERS = 16;
once_flag oflag;
neon... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: excel.cxx,v $
* $Revision: 1.26 ... |
<commit_before>/*!
\copyright (c) RDO-Team, 2012
\file rdolocale.cpp
\authors Пройдаков Евгений (lord.tiran@gmail.com)
\authors Урусов Андрей (rdo@rk9.bmstu.ru)
\date 20.10.2012
\brief Настройка локали для РДО
\indent 4T
*/
// ---------------------------------------------------------... |
<commit_before><commit_msg>Let's make this more consistent / readable.<commit_after><|endoftext|> |
<commit_before>#include "nsearch/TextReader.h"
#include "nsearch/Utils.h"
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
/*
* TextStreamReader
*/
TextStreamReader::TextStreamReader( std::istream& is ) : mInput( is ) {
mInput.seekg( 0, mInput.end );
mTotalBytes = mInput.tellg();
... |
<commit_before>/*************************************************************************
*
* $RCSfile: xltools.hxx,v $
*
* $Revision: 1.20 $
*
* last change: $Author: rt $ $Date: 2005-01-28 17:21:49 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: expbase.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2007-07-06 12:39:36 $
*
* The Contents of this file are made a... |
<commit_before>/*
ATT_IOT.cpp - SmartLiving.io Arduino library
*/
#define DEBUG //turns on debugging in the IOT library. comment out this line to save memory.
#include "ATT_IOT.h"
#define RETRYDELAY 5000 //the nr of milliseconds that we pause before retrying to create the connection
#define ETHERNETDELAY ... |
<commit_before><commit_msg>simplify SwClient::GoEnd()<commit_after><|endoftext|> |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Version: MPL 1.1 / GPLv3+ / LGPLv3+
*
* 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 spec... |
<commit_before><commit_msg>Hopefully fix Android build<commit_after><|endoftext|> |
<commit_before><commit_msg>CID#736509 memleaks on early exit<commit_after><|endoftext|> |
<commit_before>#include "editor/editor_config.hpp"
#include "base/stl_helpers.hpp"
#include "std/algorithm.hpp"
#include "std/cstring.hpp"
#include "std/unordered_map.hpp"
namespace
{
using EType = feature::Metadata::EType;
// TODO(mgsergio): It would be nice to have this map generated from editor.config.
static un... |
<commit_before>/*
* drakeUtil.cpp
*
* Created on: Jun 19, 2013
* Author: russt
*/
#include "drakeUtil.h"
#include <string.h>
#include <string>
#include <math.h>
#include <limits>
#include <Eigen/Dense>
using namespace std;
bool isa(const mxArray* mxa, const char* class_str)
// mxIsClass seems to not be ab... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: drdefuno.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 22:45:47 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: paratr.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: os $ $Date: 2002-07-04 14:46:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/*************************************************************************
*
* $RCSfile: frminf.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2003-12-01 17:21:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before><commit_msg>stop unbalanced OutputDevice Push/Pop warnings on closing help<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: porftn.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-09 04:58:44 $
*
* The Contents of this file are made av... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
<commit_before>#include "BRDBoard.h"
#include "FileFormats/BRDFile.h"
#include <cerrno>
#include <fstream>
#include <functional>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
using namespace std::placeholders;
const string BRDBoard::kNetUnconnectedPrefix = "UNCONNEC... |
<commit_before>// Vasilii Bodnariuk
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <string>
using namespace std;
int good_str(char* data) {
int i = 0;
bool binary_operator = false;
while(data[i] != '\0') {
switch (data[i]) {
case '+':
case '/':
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: labprt.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-10-22 15:15:36 $
*
* The Contents of this file are made av... |
<commit_before>// @(#)root/graf:$Name: $:$Id: TArc.cxx,v 1.9 2005/11/11 17:31:48 couet Exp $
// Author: Rene Brun 16/10/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* inc... |
<commit_before>/**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <eosio/chain/block_log.hpp>
#include <fstream>
#include <fc/io/raw.hpp>
#define LOG_READ (std::ios::in | std::ios::binary)
#define LOG_WRITE (std::ios::out | std::ios::binary | std::ios::app)
namespace eosio { namespace chain {
n... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2001 Cornelius Schumacher <schumacher@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... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
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, co... |
<commit_before>/* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (cint@pcroot.cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#include <stdio.h>
... |
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc.
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, c... |
<commit_before>#include "JSONExpr.h"
#include "llvm/Support/Format.h"
namespace clang {
namespace clangd {
namespace json {
using namespace llvm;
void Expr::copyFrom(const Expr &M) {
Type = M.Type;
switch (Type) {
case T_Null:
case T_Boolean:
case T_Number:
memcpy(Union.buffer, M.Union.buffer, sizeof(U... |
<commit_before><commit_msg>coverity#1292225 variable guards dead code<commit_after><|endoftext|> |
<commit_before><commit_msg>fix old indent<commit_after><|endoftext|> |
<commit_before>/*-------------geometrical_optics.cpp-----------------------------------------//
*
* geometrical optics
*
* Purpose: to simulate light going through a lens with a variable refractive
* index. Not wave-like.
*
*------------------------------------------------------------------------... |
<commit_before><commit_msg>silence unknown packing spew<commit_after><|endoftext|> |
<commit_before><commit_msg>coverity#1187640 this code has no effect<commit_after><|endoftext|> |
<commit_before>/*
Copyright 2022 Jordi SUBIRANA
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, modify, merge, publi... |
<commit_before>// Copyright Joshua Boyce 2010-2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com>
#inc... |
<commit_before>//
// Copyright (c) 2013-2017 Ian Godin and Kimball Thurston
// All rights reserved.
// Copyrights licensed under the MIT License.
// See the accompanying LICENSE.txt file for terms
//
#include "system.h"
#include "screen.h"
#include "window.h"
#include "dispatcher.h"
#include <platform/platform.h>
#in... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: CustomAnimationCloner.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:50:26 $
*
* The Contents of this f... |
<commit_before>#include "mex.h"
#include <iostream>
#include "drakeUtil.h"
#include "RigidBodyManipulator.h"
#include "math.h"
#include <sstream>
using namespace Eigen;
using namespace std;
#define BIG 1e20
inline void getInclusionIndices(vector<bool> const & inclusion, vector<size_t> & indices, bool get_true_indice... |
<commit_before>#include <iostream>
#include <cstdio>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <cstring>
#include <string>
#include <vector>
#include <iomanip>
#include <cmath>
#include <list>
#include <bitset>
using namespace std;
#define ll long long
#define lson... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: LayerTabBar.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:07:52 $
*
* The Contents of this file are ma... |
<commit_before>#include "File.h"
#include "gtest/gtest.h"
#include <random>
using namespace joedb;
static const uint64_t joedb_magic = 0x0000620165646A6FULL;
class File_Test: public::testing::Test
{
protected:
virtual void SetUp()
{
File file("existing.tmp", Open_Mode::create_new);
file.write<uint64_t>(j... |
<commit_before>// Copyright (c) 2015 The Khronos Group Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and/or associated documentation files (the
// "Materials"), to deal in the Materials without restriction, including
// without limitation the rights to use, ... |
<commit_before>#include <QDebug>
#include <QSortFilterProxyModel>
#include <QTime>
#include <QTimer>
#include <QXmlInputSource>
#include <QXmlSimpleReader>
#include <cmath>
#include "katlasglobe.h"
#include "pntmap.h"
#include "texcolorizer.h"
#include "tilescissor.h"
#include "katlasdirs.h"
#include "katlastilecreator... |
<commit_before>#ifndef RPTUI_UITOOLS_HXX
#define RPTUI_UITOOLS_HXX
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: UITools.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: vg $ $Date: 2008-02-12 13... |
<commit_before>//
// Created by salmon on 16-11-4.
//
#include <simpla/SIMPLA_config.h>
#include <iostream>
#include <simpla/mesh/MeshCommon.h>
#include <simpla/mesh/Atlas.h>
#include <simpla/physics/Field.h>
#include <simpla/manifold/Calculus.h>
#include <simpla/simulation/TimeIntegrator.h>
using namespace simpla;... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "Copyright (c) 2012-2013 Tokutek Inc. All rights reserved."
#ident "$Id$"
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <vector>
#include <valgrind/valgrind... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.