text stringlengths 54 60.6k |
|---|
<commit_before>#include <stdlib.h>
#include <windows.h>
#include "refalrts-platform-specific.h"
bool refalrts::api::get_main_module_name(
char (&module_name)[refalrts::api::cModuleNameBufferLen]
) {
DWORD length = GetModuleFileName(NULL, module_name, cModuleNameBufferLen);
return (length != 0)
&& (
l... |
<commit_before>#include "TrayIcon.h"
#include <QApplication>
#include <QLibraryInfo>
#include <QMessageBox>
#include <QShowEvent>
#include <QTranslator>
#include <QtQml>
#include "ViewModels/SettingsViewModel.h"
#include "ViewModels/SourceViewModel.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);... |
<commit_before>#include "platform_gl.h"
ELEMENTARY_GLVIEW_GLOBAL_DEFINE()
namespace Tangram {
GLenum GL::getError() {
return __evas_gl_glapi->glGetError();
}
const GLubyte* GL::getString(GLenum name) {
return __evas_gl_glapi->glGetString(name);
}
void GL::clear(GLbitfield mask) {
__evas_gl_glapi->glCle... |
<commit_before>/* Generated from orogen/lib/orogen/templates/typekit/corba/Convertions.hpp */
#ifndef __OROGEN_GENERATED_<%= typekit.name.upcase %>_CORBA_CONVERTIONS_HPP
#define __OROGEN_GENERATED_<%= typekit.name.upcase %>_CORBA_CONVERTIONS_HPP
#include "../../Types.hpp"
#include "<%= typekit.name %>/transports/corb... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_SPACE_RAVIARTTHOMAS_FEM_LOCALFUNCTIONS_HH
#define DUNE_GDT_SPACE_RAVIART... |
<commit_before>///
/// @file pi_deleglise_rivat_parallel2.cpp
/// @brief Parallel implementation of the Lagarias-Miller-Odlyzko prime
/// counting algorithm with the improvements of Deleglise and
/// Rivat. In this implementation the easy leaves have been
/// split up into clustered easy leaves an... |
<commit_before>//===-- llvm/CodeGen/MachineBasicBlock.cpp ----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, 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 a... |
<commit_before><commit_msg>Added a comment.<commit_after><|endoftext|> |
<commit_before>/*
* ChaCha20Poly1305 AEAD
* (C) 2014,2016,2018 Jack Lloyd
* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/chacha20poly1305.h>
#include <botan/loadstor.h>
namespace Botan {
ChaCha20Poly1305_Mode::ChaCha20... |
<commit_before>// @(#)root/tmva $Id$
// Author: Kim Albertsson
/*************************************************************************
* Copyright (C) 2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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 S... |
<commit_before>/*=============================================================================
Copyright (c) 2012-2014 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>// Copyright 2013 The Flutter 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 "flutter/shell/platform/windows/flutter_windows_view.h"
#include <comdef.h>
#include <comutil.h>
#include <oleacc.h>
#include <io... |
<commit_before>/*
Q Light Controller Plus
gradient.cpp
Copyright (c) Giorgio Rebecchi
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.t... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... |
<commit_before>// Copyright (c) 2021 The Orbit 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 "Api/EnableInTracee.h"
#include <absl/base/casts.h>
#include <absl/container/flat_hash_map.h>
#include <absl/strings/match.h>
#... |
<commit_before>#include <SofaValidation/Monitor.h>
using sofa::component::misc::Monitor;
#include <SofaBaseMechanics/MechanicalObject.h>
using sofa::component::container::MechanicalObject;
#include <SofaTest/Sofa_test.h>
#include <SofaSimulationGraph/DAGSimulation.h>
#include <sofa/simulation/Simulation.h>
using sofa:... |
<commit_before>/*************************************************************************
*
* $RCSfile: indexentrysupplier_ja_phonetic.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: khong $Date: 2002/06/18 22:29:26 $
*
* The Contents of this file are made available subject to the terms of
* either... |
<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 "Lic... |
<commit_before>/*************************************************************************
*
* $RCSfile: fuolbull.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2004-01-20 11:07:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>//
// FacebookRequestDelegate.cpp
// ee_x_mobile_facebook
//
// Created by eps on 3/21/18.
//
#include "ee/facebook/internal/FacebookRequestDelegate.hpp"
#include "ee/core/IMessageBridge.hpp"
#include <ee/nlohmann/json.hpp>
namespace ee {
namespace facebook {
using Self = RequestDelegate;
namespac... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undoback.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2006-12-12 17:28:22 $
*
* The Contents of this file are made ... |
<commit_before>//===-- DWARFDebugFrame.h - Parsing of .debug_frame -------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source Licens... |
<commit_before>#include "ImGuiEntityEditorSystem.hpp"
#include "EntityManager.hpp"
#include "components/ImGuiComponent.hpp"
#include "components/SelectedComponent.hpp"
#include "functions/Basic.hpp"
#include "functions/ImGuiEditor.hpp"
#include "packets/AddImGuiTool.hpp"
#include "imgui.h"
auto ImGuiEntityEditor(k... |
<commit_before>#include "CameraAim.h"
#include "Subsystems/Chassis.h"
#include "Subsystems/Catapult.h"
#include "OI.h"
#include "Misc/Video.h"
CameraAim::CameraAim(Target_side side)
: m_side(side)
, m_prevAngle(0)
, m_gotVisual(false)
{
Requires(Chassis::GetInstance());
}
// Called just before this Command runs t... |
<commit_before>/*
* GLShaderSourcePatcher.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "GLShaderSourcePatcher.h"
#include <LLGL/ShaderFlags.h>
#include <string.h>
namespace LLGL
{
static bool IsWhitespace(... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_getecid.C $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_getecid.C $ ... |
<commit_before>/*************************************************************************
*
* $RCSfile: AccessiblePresentationShape.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: af $ $Date: 2002-02-08 17:01:33 $
*
* The Contents of this file are made available subject to the terms of
* either of ... |
<commit_before>#include "pch.h"
#include "aiInternal.h"
#include "aiContext.h"
#include "aiObject.h"
#include "aiAsync.h"
#include <istream>
#ifdef WIN32
#include <windows.h>
#include <io.h>
#include <fcntl.h>
#endif
static std::wstring L(const std::string& s)
{
return std::wstring_convert<std::codecvt... |
<commit_before>/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this ... |
<commit_before>#include <stdlib.h>
#include <Arduino.h>
#include <avr/pgmspace.h>
#include "generator.h"
void g_generator_init(void *_self, g_method method, int32_t period, int32_t phase, int32_t amplitude, int32_t offset)
{
generator_t *self = (generator_t *)_self;
self->method = method;
self->period = pe... |
<commit_before>#include "dgltreeview.h"
#include "dglgui.h"
#include <set>
#include <climits>
DGLTreeView::DGLTreeView(QWidget* parrent, DglController* controller):QDockWidget(tr("State Tree"), parrent), m_TreeWidget(this),m_controller(controller) {
setObjectName("DGLTreeView");
m_TreeWidget.setMini... |
<commit_before>/*
* Copyright (c) 2012, Matias Fontanini
* 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>// Author: Danilo Piparo, Stefan Wunsch, Massimiliano Galli CERN 08/2018
// Original PyROOT code by Wim Lavrijsen, LBL
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MDriver.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-08 06:18:42 $
*
* The Contents of this file are made a... |
<commit_before>/*==========================================================================
SeqAn - The Library for Sequence Analysis
http://www.seqan.de
===========================================================================
Copyright (C) 2010
This library is free software; you can redistribute it an... |
<commit_before>#include <agency/future.hpp>
#include <agency/new_executor_traits.hpp>
#include <iostream>
#include <cassert>
#include "test_executors.hpp"
template<class Executor>
void test()
{
using executor_type = Executor;
size_t n = 1;
auto int_ready = agency::detail::make_ready_future(0);
auto vo... |
<commit_before>#include <Arduino.h>
/*
SPLODER - a connected button for blowing stuff up. Or whatever else you want to do with it.
Check the README.md for info on the Sploder circuit.
Copyright (C) 2015 George White <stonehippo@gmail.com>. All rights reserved.
See https://raw.githubusercontent.com/stonehippo/splode... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2015.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
... |
<commit_before>#define P(p) const point3d &p
#define L(p0, p1) P(p0), P(p1)
#define PL(p0, p1, p2) P(p0), P(p1), P(p2)
struct point3d {
double x, y, z;
point3d() : x(0), y(0), z(0) {}
point3d(double _x, double _y, double _z)
: x(_x), y(_y), z(_z) {}
point3d operator+(P(p)) const {
return point3d(x + p.x... |
<commit_before>#include "dg/analysis/PointsTo/Pointer.h"
#include "dg/analysis/PointsTo/PSNode.h"
#ifndef NDEBUG
#include <iostream>
namespace dg {
namespace analysis {
namespace pta {
void Pointer::dump() const {
target->dump();
std::cout << " + ";
offset.dump();
}
void Pointer::print() const {
dum... |
<commit_before>#include <stdio.h>
#include <cmath>
#include <stdlib.h>
#include <stdbool.h>
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <math.h>
#include <poll.h>
#include <sys/mman.h>
#include "common/util.h"
#include "common/swaglog.h"
#include "common/visionimg.h"
#include "common/utilpp.h"... |
<commit_before>#include "RhoFromPressureTemperatureIC.h"
#include "SinglePhaseFluidProperties.h"
template <>
InputParameters
validParams<RhoFromPressureTemperatureIC>()
{
InputParameters params = validParams<InitialCondition>();
params.addRequiredParam<UserObjectName>("fp", "The name of fluid properties user objec... |
<commit_before>/***********************************************************************
filename: CEGUIOgreRenderer.cpp
created: Tue Feb 17 2009
author: Paul D Turner
*************************************************************************/
/********************************************************... |
<commit_before>#include "../include/json_generator.hpp"
#include "../../grammar/include/grammar.hpp"
#include "../../grammar/include/nonterminal.hpp"
#include "../../grammar/include/production.hpp"
#include "../../grammar/include/token.hpp"
#include "../../grammar/include/nonterminal.hpp"
#include "../../table/include/... |
<commit_before>/*
* This file is part of TelepathyQt4
*
* Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2008 Nokia Corporation
*
* 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 b... |
<commit_before>/*
* CoinSpark asset tracking server 1.0 beta
*
* Copyright (c) 2014 Coin Sciences Ltd - coinspark.org
*
* Distributed under the AGPLv3 software license, see the accompanying
* file COPYING or http://www.gnu.org/licenses/agpl-3.0.txt
*/
#include "bitcoin.h"
void SHA256(void *src,cs_int32 len... |
<commit_before>//
// Name: StyleDlg.cpp
//
// Copyright (c) 2004 Virtual Terrain Project.
// Free for all uses, see license.txt for details.
//
#ifdef __GNUG__
#pragma implementation "StyleDlg.cpp"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#include "wx/colordlg... |
<commit_before>// Copyright (c) 2016 ASMlover. 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 o... |
<commit_before>/*
* Copyright (c) 2008-2010 Digital Bazaar, Inc. All rights reserved.
*/
#include "bitmunk/eventreactor/DefaultObserverContainer.h"
#include "bitmunk/common/Logging.h"
#include "monarch/event/ObserverDelegate.h"
#include <algorithm>
using namespace std;
using namespace monarch::event;
using namespa... |
<commit_before>/****************** <VPR heading BEGIN do not edit this line> *****************
*
* VR Juggler Portable Runtime
*
* Original Authors:
* Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira
*
* -----------------------------------------------------------------
* File: $RC... |
<commit_before>/****************** <VPR heading BEGIN do not edit this line> *****************
*
* VR Juggler Portable Runtime
*
* Original Authors:
* Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira
*
* -----------------------------------------------------------------
* File: $RC... |
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*-
gnupgprocessbase.cpp
This file is part of libkleopatra, the KDE keymanagement library
Copyright (c) 2004 Klarlvdalens Datakonsult AB
Libkleopatra is free software; you can redistribute it and/or
modify it under the terms of the GNU General ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>#include "rodsClient.hpp"
#include "reFuncDefs.hpp"
#include "rods.hpp"
#include "reGlobalsExtern.hpp"
#include "rsGlobalExtern.hpp"
#include "rcGlobalExtern.hpp"
extern "C" {
/**
* \fn msiobjput_slink(msParam_t* inMSOPath, msParam_t* inCacheFilename, msParam_t* inFileSize, ruleExecInfo_t*... |
<commit_before>/*
* The Biomechanical ToolKit
* Copyright (c) 2009-2012, Arnaud Barré
* 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 re... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/app_list_view_delegate.h"
#include <vector>
#include "base/callback.h"
#include "base/files/file... |
<commit_before>// Filename: dcparse.cxx
// Created by: drose (05Oct00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// So... |
<commit_before>/*
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice,... |
<commit_before>/*
* Copyright (c) 2010, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* ... |
<commit_before>// This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
#include "models/sagtension/line_cable_to_catenary_cable_converter.h"
#include "models/transmissionline/cable_unit_load_calculator.h"
#include "models/transmission... |
<commit_before>#include <config.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/select.h>
#include "concurrency/Monitor.h"
#include "TSocket.h"
#include "TTransportException.h"
... |
<commit_before>#include <gtest/gtest.h>
#ifdef __APPLE__
# include <libkern/OSByteOrder.h>
# define htobe32(x) OSSwapHostToBigInt32(x)
# define htobe64(x) OSSwapHostToBigInt64(x)
#else
# include <endian.h>
#endif
#include "receiver.h"
#include "stream.h"
#include "buffer.h"
#include <cstdio>
#include <inttypes.h... |
<commit_before>/*************************************************************************
*
* $RCSfile: about.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:52:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "demoloop.h"
#include <SDL_ttf.h>
#include <GL/glew.h>
#include <SDL_opengl.h>
#include "cleanup.h"
#include <glm/gtc/matrix_transform.hpp>
#ifdef EMSCRIPTEN
#include <AL/al.h>
#include <AL/alc.h>
#else
#include <al.h>
#include <alc.h>
#endif
#ifdef EMSCRIPTEN
#include <emscripten.h>... |
<commit_before>//===-- GDBRemoteCommunicationReplayServer.cpp ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<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 "testing/gtest/include/gtest/gtest.h"
#include "content/common/gpu/media/h264_bit_reader.h"
using content::H264BitReader;
T... |
<commit_before>#include "sprite_importer.h"
#include "halley/tools/assets/import_assets_database.h"
#include "halley/bytes/byte_serializer.h"
#include "halley/resources/metadata.h"
#include "halley/file_formats/image.h"
#include "halley/tools/file/filesystem.h"
#include "halley/core/graphics/sprite/sprite_sheet.h"
#inc... |
<commit_before>// The MIT License (MIT)
//
// Copyright (c) 2016 Northeastern University
//
// 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 limitatio... |
<commit_before>// breaker.cc see license.txt for copyright and terms of use
// code for breaker.h
// Scott McPeak, 1997,1998 This file is public domain.
#include "breaker.h" // this module
#ifdef __BORLANDC__
# pragma warn -use
#endif
void ackackack(int*) {}
void breaker()
{
static int i=0;
int... |
<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>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p10/procedures/hwp/sbe/p10_sbe_ext_defs.H $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_cxa_scom.C $ ... |
<commit_before>#ifndef INTERSECTION_BASED_CALLER
#define INTERSECTION_BASED_CALLER
#include <opengm/opengm.hxx>
#include <opengm/inference/intersection_based_inf.hxx>
#include "inference_caller_base.hxx"
#include "../argument/argument.hxx"
namespace opengm {
namespace interface {
template <class IO, c... |
<commit_before>#include <stdio.h>
#include <queue>
#include <vector>
#include <utility>
#include <iostream>
#include <string>
#include <stack>
#include <queue>
using namespace std;
queue<string> lv1;
queue<string> lv2;
queue<string> lv3;
queue<string> lv4;
string temp;
int templv;
int temptime=0;
int usernum;
int us... |
<commit_before>/*
kopeteavatarmanager.cpp - Global avatar manager
Copyright (c) 2007 by Michaël Larouche <larouche@kde.org>
Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>#include <cstdarg>
#include <string>
#include <cstring>
#include <functional>
#include "toy/Log.hpp"
#include "toy/Windows.hpp"
#include "toy/Utf.hpp"
#ifdef TOY_ANDROID
#include <android/log.h>
#endif
//----------------PrintStr let you choose the way to print string----------------start
namespace to... |
<commit_before>#include <string>
#include <iostream>
#include <fstream>
#include "Matrix.hpp"
Matrix::Matrix(const Matrix &matrix) : m_rows(matrix.m_rows), m_columns(matrix.m_columns)
{
setElements(matrix.m_elements);
}
Matrix::Matrix(unsigned int rows, unsigned int columns) : m_rows(rows), m_columns(columns)
{
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before><commit_msg>Change the zoom factor to 2^(1/6), hopefully it fits all :-)<commit_after><|endoftext|> |
<commit_before>/*
* statswindow.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 permitte... |
<commit_before>/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* 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... |
<commit_before>// Test ../include/Spectra/LinAlg/BKLDLT.h
#include <Eigen/Core>
#include <Spectra/LinAlg/BKLDLT.h>
using namespace Spectra;
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
using Eigen::MatrixXd;
using Eigen::VectorXd;
// Solve (A - s * I)x = b
void run_test(const MatrixXd& A, const VectorXd& b, doubl... |
<commit_before>#include "jsaubase.h"
#include <cmath>
#include <set>
using namespace std;
// PARAMETERS GO HERE
enum
{
kParam_VolumeLevel
};
// PROPERTIES GO HERE
// see oscilloscope example for how to use these - this
// simple volume example has none.
enum
{
};
class Audio;
// This is the main plug in class.
cl... |
<commit_before>//-----------------------------------------------------------
//
// Copyright (C) 2015 by the deal2lkit authors
//
// This file is part of the deal2lkit library.
//
// The deal2lkit library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesse... |
<commit_before>/*
* Copyright (C) 2021-present ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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... |
<commit_before> // General-purpose timestamp-based log utility
// Leigh Garbs
#if !defined LOG_HPP
#define LOG_HPP
#include <iostream>
class Log
{
public:
// Log constructor; initializes output_stream
Log(std::ostream& output_stream = std::cout);
// Log destructor; does nothing
~Log();
// Se... |
<commit_before>#ifndef ANN_ENGINE
#define ANN_ENGINE
#undef DLL
//windows DLL
#ifdef DLLDIR_EX
#define DLL __declspec(dllexport) // export DLL information
#else
#define DLL __declspec(dllimport) // import DLL information
#endif
//bypass on linux
#ifdef __gnu_linux__
#undef DLL
#define DLL
#endif
//C++ STD... |
<commit_before>#include "evpp/inner_pre.h"
#include "evpp/connector.h"
#include "evpp/event_loop.h"
#include "evpp/fd_channel.h"
#include "evpp/sockets.h"
#include "evpp/libevent_headers.h"
#include "evpp/dns_resolver.h"
namespace evpp {
Connector::Connector(EventLoop* l, const std::string& raddr, Duration timeout)
... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2013.
// 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>#include "csound.h"
#include "winsound.h"
extern int do_exit;
extern Fl_Double_Window *ew, *xw, *uw;
CSOUND *csound;
int cs_compile_run(void);
int main(int argc, char **argv)
{
Fl_Double_Window* mw = make_mainwindow();
ew = make_environ();
uw = make_utils();
xw = make_extras();
csoun... |
<commit_before>//----------------------------------------------------------------------------
/// \file pcap.hpp
/// \author Serge Aleynikov
//----------------------------------------------------------------------------
/// \brief Support for PCAP file format writing.
//-----------------------------------------------... |
<commit_before>#include <fcntl.h>
#include "au/ThreadManager.h"
#include "gtest/gtest.h"
#include "samson/worker/SamsonWorker.h"
#include "unitTest/TestClasses.h"
TEST(samson_worker_SamsonWorker, basic) {
EXPECT_EQ(0, au::Singleton<au::ThreadManager>::shared()->num_threads());
// Init engine
engine::Engine::... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.