text stringlengths 54 60.6k |
|---|
<commit_before>#include "ddQVTKWidgetView.h"
#include "ddFPSCounter.h"
#include "vtkTDxInteractorStyleCallback.h"
#include "vtkSimpleActorInteractor.h"
#include <vtkBoundingBox.h>
#include <vtkSmartPointer.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkInteractorStyle.h>
#include <vtkObjectFact... |
<commit_before>//===--- TextDiagnosticPrinter.cpp - Diagnostic Printer -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <iostream>
#include <thread>
#include <chrono>
#include <opencv2/opencv.hpp>
#include <bot_core/timestamp.h>
#include <jpeg-utils/jpeg-utils.h>
#include <lcm/lcm-cpp.hpp>
#include <ConciseArgs>
#include <flycapture/FlyCapture2.h>
#include <lcmtypes/bot_core/image_t.hpp>
int main(const int iAr... |
<commit_before>#include <FAST/Testing.hpp>
#include <FAST/Importers/WholeSlideImageImporter.hpp>
#include <FAST/Visualization/ImagePyramidRenderer/ImagePyramidRenderer.hpp>
#include <FAST/Visualization/ImageRenderer/ImageRenderer.hpp>
#include <FAST/Visualization/SimpleWindow.hpp>
#include <FAST/Data/ImagePyramid.hpp>
... |
<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 "base/logging.h"
#include "views/window/client_view.h"
#if defined(OS_LINUX)
#include "views/window/hit_test.h"
#endif
#includ... |
<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 "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "ipc/ipc_channel_proxy.h"
#include "ipc/ipc_logging.h... |
<commit_before>/** Copyright (C) 2017 European Spallation Source ERIC */
#include <test/TestBase.h>
#pragma GCC diagnostic push
#ifdef SYSTEM_NAME_DARWIN
#pragma GCC diagnostic ignored "-Wkeyword-macro"
#pragma GCC diagnostic ignored "-Wmacro-redefined"
#endif
#define protected public
#include <common/clustering/Abst... |
<commit_before>#include "GUI.hpp"
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QDir>
#include <QLabel>
#include <QImage>
#include <FAST/Visualization/ImageRenderer/ImageRenderer.hpp>
#include <FAST/Streamers/IGTLinkStreamer.hpp>
#include "OpenIGTLinkClient.hpp"
#in... |
<commit_before>//===-- X86SelectionDAGInfo.cpp - X86 SelectionDAG Info -------------------===//
//
// 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>#include "pyramid.h"
#include <iostream>
#include <cassert>
int main(int argc, const char* argv[]) {
{
Pyramid<int> a = {0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4};
assert(a[0][0] == 0);
assert(a[1][0] == 1);
assert(a[2][0] == 2);
assert(a[3][0] == 3);
... |
<commit_before>// Copyright 2014 The Chromium Embedded Framework 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 "libcef/browser/window_delegate_view.h"
#include "content/public/browser/web_contents.h"
#include "ui/views/ba... |
<commit_before>/*******************************************************************************
* libproxy - A library for proxy configuration
* Copyright (C) 2006 Nathaniel McCallum <nathaniel@natemccallum.com>
* Copyright (C) 2021 Zhaofeng Li <hello@zhaofeng.li>
*
* This library is free software; you can redistr... |
<commit_before>/* Rapicorn
* Copyright (C) 2005 Tim Janik
*
* 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 License, or (at your option) any later version.... |
<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 "base/debug_util.h"
#include <unistd.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <f... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
extern "C" {
#include "clhash.h"
#include "cw-trick.h"
#include "multiply-shift.h"
#include "tabulated.h"
}
inline uint64_t RDTSC_START() {
unsig... |
<commit_before>//---------------------------------------------------------------------------//
/*!
* \file DataTransferKit_CopyOperator_Def.hpp
* \author Stuart Slattery
* \brief CopyOperator template member definitions.
*/
//---------------------------------------------------------------------------//
#ifndef ... |
<commit_before>//EtherEvent - Easy to use password authenticated network communication between Arduinos and EventGhost Network Event Sender/Receiver plugin, EventGhost TCPEvents plugin, Girder, and NetRemote http://github.com/per1234/EtherEvent
#include <Arduino.h>
#include "EtherEvent.h"
#include <SPI.h>
#include <Eth... |
<commit_before>
#include <adios2/common/ADIOSMPI.h>
#include <memory>
#include "SstParamParser.h"
#include "adios2/helper/adiosFunctions.h"
#include "adios2/toolkit/sst/sst.h"
using namespace adios2::core;
void SstParamParser::ParseParams(IO &io, struct _SstParams &Params)
{
auto lf_SetBoolParameter = [&](const... |
<commit_before>/**
* \file
* \brief SerialPort class implementation
*
* \author Copyright (C) 2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* distrib... |
<commit_before>#include <boost/test/minimal.hpp>
#include <trance/local_function.hpp>
int
test_main( int, char *[] )
{
TRANCE_LOCAL_FUNCTION( int, inc, ( int _n ),
{
return _n + 1;
} );
BOOST_REQUIRE( 1 == inc( 0 ) );
TRANCE_LOCAL_FUNCTION( int, dec, ( int _n ),
{
return _n - ... |
<commit_before>#include "musicnetworkthread.h"
#include "musicconnectionpool.h"
#include "musicsettingmanager.h"
#include <QHostInfo>
MusicNetworkThread::MusicNetworkThread()
: QObject(nullptr), m_networkState(true)
{
M_CONNECTION_PTR->setValue(getClassName(), this);
connect(&m_timer, SIGNAL(timeout()), S... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "GameScreenState.h"
#include <algorithm>
#include <SFML/Graphics.hpp>
//const int TOP = 1;
//const int BOTTOM = 2;
//const int LEFT = 4;
//const int RIGHT = 8;
const unsigned char TOP = 0;
const unsigned char BOTTOM = 1;
const unsigned char LEFT = 2;
const unsigned char RIGHT = 3;
GameScreenSt... |
<commit_before>//
// ByteOrder.cpp
//
// Copyright (c) 2001-2004 Virtual Terrain Project.
// Free for all uses, see license.txt for details.
//
#include "ByteOrder.h"
static int GetDataTypeSize( DataType type )
{
switch ( type )
{
case DT_SHORT: return sizeof(short); break;
case DT_INT: return sizeof(int); bre... |
<commit_before>/*
digital.c - wiring digital implementation for esp8266
Copyright (c) 2015 Hristo Gochkov. 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 Pub... |
<commit_before>/*
* Copyright (C) 2019 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 your op... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University o... |
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "miopen_common.h"
#include "gsl/gsl"
#include "core/providers/cpu/tensor/utils.h"
#include "core/providers/rocm/shared_inc/rocm_call.h"
namespace onnxruntime {
namespace rocm {
MiopenTensor::Miopen... |
<commit_before>// Copyright (c) 2009 hp-FEM group at the University of Nevada, Reno (UNR).
// Distributed under the terms of the BSD license (see the LICENSE
// file for the exact terms).
// Email: hermes1d@googlegroups.com, home page: http://hpfem.org/
#include "matrix.h"
#include "solvers.h"
#ifdef COMMON_WITH_UMFP... |
<commit_before>static int cmp(int a, int b);
#include "../src/vector_brodnik.h"
#include "../src/vector_bagwell.h"
#include "../src/vector_block.h"
#include "../src/vector_realloc.h"
#include "../src/vector_malloc.h"
#include "../src/losertree.h"
#include "../src/routines.h"
#include "../src/util/insertion_sort.h"
#in... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkGEAdwImageIO.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCo... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RL78/G13 グループ・システム・レジスター定義 @n
Copyright 2016 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "common/io_ut... |
<commit_before>/*
Copyright 2008 Brain Research Institute, Melbourne, Australia
Written by Robert E. Smith, 31/07/13.
This file is part of MRtrix.
MRtrix 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 Softw... |
<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 <algorithm>
#include "webkit/appcache/appcache.h"
#include "base/logging.h"
#include "base/string_util.h"
#include "webkit/a... |
<commit_before>/*
* Copyright (c) 2013 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>//
// Copyright (c) 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 <string.h>
#include <cassert>
#include <vector>
#include "EGLWindow.h"
#include "OSWindow.h"
#ifdef _WIN32
#elif ... |
<commit_before>/*
* RemoteHttpResource.cpp
*
* Created on: Feb 22, 2013
* Author: ndp
*/
#include <sstream>
#include <GNURegex.h>
#include "util.h"
#include "debug.h"
#include "Error.h"
#include "BESSyntaxUserError.h"
#include "BESInternalError.h"
#include "BESError.h"
#include "BESRegex.h"
#include "The... |
<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>// main.cc for FbRun
// Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen(at)linuxmail.org)
//
// 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 ... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "RexUUID.h"
#include <iomanip>
using namespace std;
/// Converts a single char to a value of 0-15. (4 bits)
namespace
{
static uint8_t CharToNibble(char c)
{
if (isdigit(c))
return c - '0... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** f... |
<commit_before>/*
* Copyright 2011-2013 Intel Corporation
* Modifications Copyright 2014, Blender Foundation.
*
* 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>/* vim: set sw=4 ts=4: */
/*
* clay-bindgen.cpp
* This program generates clay bindings for C source files.
* This file wraps around the "BindingsConverter" ASTConsumer which does all
* conversion.
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <cstdlib>
usi... |
<commit_before><commit_msg>PWGPP-571, PWGPP-529 -TStatToolkit::MakePDFMap() - memory leak fix<commit_after><|endoftext|> |
<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 <Zmey/EngineLoop.h>
#include <iostream>
#include <Zmey/Memory/Allocator.h>
#include <Zmey/Memory/MemoryManagement.h>
#include <Zmey/Logging.h>
namespace Zmey
{
class MallocAllocator : public Zmey::IAllocator
{
public:
virtual void* Malloc(size_t size, unsigned)
{
return s... |
<commit_before>#include "Path.hpp"
#ifdef _WIN32
#include <algorithm>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <direct.h>
#elif __linux__
#include <dirent.h>
#include <limits.h>
#include <stdlib.h>
// Very beautiful.
#define MAX_PATH 4096
#else
#error "This no work on OS X :("
#endif
void Util::setSa... |
<commit_before>#include <iostream>
#include <conio.h>
#include <string>
#include <sstream>
#include "world.h"
using namespace std;
int main() {
string userInput;
World theShip;
char inputKey;
vector<string> tokens;
std::cout << "Welcome to Swashbuckler! - The true pirates Zork-like game" << std::endl;
std::co... |
<commit_before>/**
* @file game.cpp
* @brief Purpose: Contains methods that create and specify a hitbox.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
#include "game.hpp"
#include <unistd.h>
#include "log.hpp"
using namespace engine;
G... |
<commit_before>/**
* @file game.cpp
* @brief Purpose: Contains methods that create and specify a hitbox.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
#include "game.hpp"
#include <unistd.h>
#include "log.hpp"
using namespace engine;
G... |
<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 "libcef/browser/browser_context.h"
#include <map>
#include "libcef/browser/browser_host_impl.h"
#include "libcef/browser/con... |
<commit_before>#include "memstorage.h"
#include "../utils/utils.h"
#include "../compression.h"
#include "../flags.h"
#include "subscribe.h"
#include "chunk.h"
#include "../timeutil.h"
#include "inner_readers.h"
#include <limits>
#include <algorithm>
#include <map>
#include <tuple>
#include <assert.h>
#include <mutex>
... |
<commit_before>/*****************************************************************************
* baseConvert.c++
*****************************************************************************
* Unit tests for the baseConvert() functions.
*****************************************************************************/
... |
<commit_before>#include <freertos/FreeRTOS.h>
#include <freertos/queue.h>
#include <nvs_flash.h>
#include "Motors_Controller.h"
#include "MPU9250.h"
#include "MPU6050.h"
#include "Mahony_Filter.h"
#include "Complementary_Filter.h"
#include "WiFi_Controller.h"
#include "CRC.h"
#include "LEDs.h"
using name... |
<commit_before>#include "_global.h"
void* RtlAllocateMemory(bool InZeroMemory, SIZE_T InSize)
{
void* Result = ExAllocatePoolWithTag(NonPagedPool, InSize, 'HIDE');
if(InZeroMemory && (Result != NULL))
RtlZeroMemory(Result, InSize);
return Result;
}
void RtlFreeMemory(void* InPointer)
{
... |
<commit_before>#include "BoardMarker.hpp"
BoardMarker::BoardMarker (void) : m(NONE), c(' ') {}
bool BoardMarker::apply_modifier(Modifier& m) {
if (this->m != NONE) {
return false;
}
this->m = m;
return true;
}
bool BoardMarker::set_char(char& c) {
if (this->c != ' ') {
return false;
}
this->c =... |
<commit_before>/*"name": "sensorflare",
Author: "LPFraile <lidiapf0@gmail.com>",
License: "BSD",
Version: "0.0.1",
Description: "Include your Particle Core on Sensorflare"
File: Example: Control trough your Sensorflare account the PWM outputs on your Particle Core
*/
//Include the SensorFlare library
#include "sensorf... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkLabelOverlayImageFilterTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reser... |
<commit_before>#include "gtest/gtest.h"
#include "Priority.hpp"
#include "But/Log/Backend/FieldInfo.hpp"
using But::Log::Field::Priority;
namespace
{
struct ButLogFieldPriority: public testing::Test
{ };
TEST_F(ButLogFieldPriority, ConvertingToString)
{
EXPECT_EQ( toString(Priority::debug), "debug" );
EXPECT... |
<commit_before>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open public ... |
<commit_before>#include <exodus/program.h>
programinit()
function main() {
var dbname2 = COMMAND.a(2);
var filenames = COMMAND.field(FM, 3, 999999);
if (not dbname2) {
var syntax =
"dbattach - Attach other database files into the current/default database\n"
"\n"
"Syntax is dbattach TARGETDB [FILENAME,...]... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkImportImageTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See I... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkNonUniformBSplineTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
... |
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "transformer_memcpy.h"
#include "core/framework/kernel_registry_manager.h"
#include "core/framework/execution_providers.h"
using namespace ONNX_NAMESPACE;
namespace onnxruntime {
// implements MemC... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: ThinPlateSplinesApplication.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vclxaccessiblebutton.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:37:06 $
*
* The Contents of this fi... |
<commit_before>#include "mount.hpp"
#include <server/path.hpp>
#include <fuse.h>
namespace fileserver
{
namespace
{
char const * const hello_path = "/hello";
char const * const hello_str = "Hello, fuse!\n";
int hello_getattr(const char *path, struct stat *stbuf)
{
int res = 0;
memset(stbuf, 0, sizeof... |
<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 "Lice... |
<commit_before>/*
Copyright (C) 2014 Sadman Kazi, Wojciech Swiderski, Serge Babayan, Shan Phylim
This file is part of MyoPad.
MyoPad 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 3 o... |
<commit_before>/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
#include <osquery/tables.h>
#include "osquery/core/windows/wmi.h"
namespace... |
<commit_before>/*************************************************************************
*
* $RCSfile: token.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: pjunck $ $Date: 2004-11-02 11:57:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#ifndef SOLARIZED_HPP
#define SOLARIZED_HPP
#include <wx/colour.h>
#include "ColorScheme/ColorSchemeBase.hpp"
namespace Slic3r { namespace GUI {
/// S O L A R I Z E
/// http://ethanschoonover.com/solarized
///
/// Implements a colorscheme lookup of wxColors
class Solarized : public ColorScheme {
publi... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are per... |
<commit_before>/***************************************************************************
* Copyright (c) 2013 Jrgen Riegel <juergen.riegel@web.de> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>/*
Copyright 2011 StormMQ Limited
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 ... |
<commit_before>#include "cld2wrapper.h"
CLD2Wrapper::CLD2Wrapper()
{
}
const char* CLD2Wrapper::detect(const char* &buffer) {
int FLAGS_repeat = 1;
bool FLAGS_plain = false;
// Detect language
const char* tldhint = "";
int enchint = UNKNOWN_ENCODING;
CLD2::Language langhint = CLD2::UNKNOWN_LANGUAGE;
... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>/*
* Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde
* 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 ... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>#include "NdefRecord.h"
NdefRecord::NdefRecord()
{
//Serial.println("NdefRecord Constructor 1");
_tnf = 0;
_typeLength = 0;
_payloadLength = 0;
_idLength = 0;
_type = (byte *)NULL;
_payload = (byte *)NULL;
_id = (byte *)NULL;
}
NdefRecord::NdefRecord(const NdefRecord& rh... |
<commit_before>/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "physics/Environment.hpp"
#include "SimulatorWindow.hpp"
#include "SimulatorGLUTThread.hpp"
#include <QApplication>
#include <QFile>
#include <QThread>
#include <stdio.h>
#include <signal.h>
using namespace std;
void quit(int signal)
{
fprintf(stderr, "Exiting due to signal %d\n", signal);
... |
<commit_before>/*************************************************************************/
/* base_object_glue.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/**********************************************************************************/
/* godotsharp_editor.cpp */
/**********************************************************************************/
/* The MIT License (MIT) ... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE JPetEventTest
#include <boost/test/unit_test.hpp>
#include "../JPetEvent/JPetEvent.h"
BOOST_AUTO_TEST_SUITE(FirstSuite)
BOOST_AUTO_TEST_CASE( default_constructor )
{
JPetEvent event;
BOOST_REQUIRE(event.getHits().empty());
}
BOOST_AUTO_TEST_CAS... |
<commit_before>#include <cmath>
#include <cstdio>
#include <omp.h>
#include <mpi.h>
#include <cassert>
// (Sub-optimum) Array of Structure - good OOP. Bad Performance.
// Structure of individual particle
//struct ParticleType {
// float x, y, z;
// float vx, vy, vz;
//};
// (Optimum) Structure of Array - bad OOP.... |
<commit_before>/* Copyright 2010 Jukka Jylnki
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 agr... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<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>#pragma once
#include <stdint.h>
#include <array>
#include <bitset>
#include <Memory.hpp>
// The NES CPU, the 2A03 (or 2A07 for PAL), is based on the 6502.
class CPU {
public:
CPU(Memory* mem);
// Initialize registers to their power on state.
void powerOn();
// Handle any interrupt an... |
<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 "net/base/tcp_client_socket.h"
#include "base/memory_debug.h"
#include "base/string_util.h"
#include "base/trace_event.h... |
<commit_before>#include "lwtnn/Graph.hh"
#include "lwtnn/Exceptions.hh"
#include "lwtnn/Stack.hh"
namespace lwt {
// Sources
VectorSource::VectorSource(const std::vector<VectorXd>&& vv):
m_inputs(std::move(vv))
{
}
VectorXd VectorSource::at(size_t index) const {
if (index >= m_inputs.size()) {
... |
<commit_before>#include"../header/IQBit.hpp"
#include<ostream>
using namespace std;
namespace nQCircuit
{
IQBit::~IQBit(){}
ostream& operator<<(ostream &os,const IQBit &val)
{
return val.print(os);
}
ostream& Q_empty_bit::print(ostream &os) const
{
return os<<"q";
}
ostream& Q_not_bit::print(ostream &os... |
<commit_before>/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the fi... |
<commit_before>#include "Common.h"
#include "Input.h"
#include "Window.h"
//#include <CEGUI/System.h>
//#include <CEGUI/GUIContext.h>
//#include <CEGUI/InjectedInputReceiver.h>
Input :: Input(Window* window):
m_pWindow(window)
{
m_DummySwitch.make_dummy();
m_bRelMouse = !m_bRelMouse; // undo initial s... |
<commit_before>#include <iostream>
using namespace std;
bool two(int number){
if (number % 2 != 0 || number == 2)
return false;
return true;
}
int main(){
int n;
cin >> n;
if (two(n))
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
<commit_msg>Refa... |
<commit_before>#include "Level.h"
#include <OgreManualObject.h>
#include <OgreRenderOperation.h>
#include <iostream>
using namespace std;
#include "PolyVox/SurfaceExtractor.h"
#include "PolyVox/SurfaceMesh.h"
using namespace PolyVox;
#include "SurfacePatchRenderable.h"
#include "Burrower.h"
#include "VoxelVolume.h"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.