text stringlengths 54 60.6k |
|---|
<commit_before>/**
* @file src/wrapper_unix_sockets.h
* @author Scott L. Price <prices@dflytech.com>
* @note (C) 2015 Scott L. Price
* @brief A small http server for embedded systems
* @details
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Scott Price
*
* Permission is hereby granted, free of ch... |
<commit_before>// Copyright (c) 2022 by Apex.AI Inc. 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
//
// Unless... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestCellDistanceSelector.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detai... |
<commit_before>//===-- AuxVector.cpp -------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include "depthai-shared/common/CameraBoardSocket.hpp"
#include "depthai-shared/common/CameraImageOrientation.hpp"
#include "depthai-shared/datatype/RawCameraControl.hpp"
#include "depthai-shared/properties/Properties.hpp"
namespace dai {
/**
* Specify properties for ColorCamera such as... |
<commit_before>#include "MeshRenderer.hh"
#include "ResourceManager/Texture.hh"
#include "Core/Engine.hh"
namespace Components
{
MeshRenderer::MeshRenderer(std::string const &name, std::string const &resource) :
AComponent(name),
_mesh(GameEngine::instance()->resources().getResource(resource)),
_next(NULL)
... |
<commit_before>/*
* Copyright (c) 2019-2020 Fastly, Inc., Toru Maesaka, Goro Fuji
*
* 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
... |
<commit_before>
#include <gloperate-osg/OsgFboRenderStage.h>
#include <osgViewer/Viewer>
#include <osgViewer/Renderer>
#include <osg/Camera>
#include <osg/Texture2D>
namespace gloperate_osg
{
void OsgFboRenderStage::updateFbo_osg()
{
// Get OSG camera
osg::Camera * camera = (viewer() ? viewer()->getCamera... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NeonPropFindRequest.cxx,v $
*
* $Revision: 1.21 $
*
* last change: $Author: obo $ $Date: 2008-01-04 14:35:30 $
*
* The Contents of this f... |
<commit_before>// CSV or DSV format (comma- or more generally delimiter-separated values)
// Licence: Lesser GNU Public License 2.1 (LGPL)
// $Id: $
#define BUILDING_XYLIB
#include "csv.h"
#include "util.h"
#include <limits>
#include <boost/tokenizer.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
using n... |
<commit_before>#include "zcm.h"
#include <zmq.h>
#include <unistd.h>
#include <dirent.h>
#include <cstring>
#include <cassert>
#include <cctype>
#include <cstdio>
#include <vector>
using std::vector;
#include <unordered_map>
using std::unordered_map;
#include <string>
using std::string;
#include <mutex>
#include ... |
<commit_before>/* predictionResultDialog.C
*
* Copyright (C) 2009 Marcel Schumann
*
* This file is part of QuEasy -- A Toolbox for Automated QSAR Model
* Construction and Validation.
* QuEasy is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... |
<commit_before>#include <Accelerometer_GY_521_mock.h>
int Accelerometer_GY_521_mock::_init_accelerometer_sensor(){
size_t len = 0;
char *update_string = NULL;
logger.log(LOG_DEBUG, "Opening the file for Accelerometer values");
//Opening the file (
save_file = fopen(SAVE_ACCELEROMETER_FILENAME, "r... |
<commit_before>#include <yafraycore/ccthreads.h>
#include <iostream>
#include <stdexcept>
#ifdef __APPLE__
#include <AvailabilityMacros.h>
#endif
using namespace std;
namespace yafthreads {
mutex_t::mutex_t()
{
#if HAVE_PTHREAD
int error=pthread_mutex_init(&m, NULL);
switch(error)
{
case EINVAL: throw std::ru... |
<commit_before>/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2021 Google LLC.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
<commit_before>/**
* @file linear_regression.cpp
* @author James Cline
*
* Implementation of simple linear regression.
*/
#include "linear_regression.hpp"
using namespace mlpack;
using namespace mlpack::regression;
LinearRegression::LinearRegression(arma::mat& predictors,
const... |
<commit_before>/*
irccontact.cpp - IRC Contact
Copyright (c) 2002 by Nick Betcher <nbetcher@kde.org>
Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2020. All rights reserved
*/
#ifndef _Stroika_Foundation_Cache_BloomFilter_inl_
#define _Stroika_Foundation_Cache_BloomFilter_inl_ 1
/*
********************************************************************************
***************************** Impl... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved
*/
#include "../StroikaPreComp.h"
#if qPlatform_AIX
#include <sys/stat.h>
#endif
#include "Process.h"
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Configuration;
using names... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2011. All rights reserved
*/
#include "../StroikaPreComp.h"
#include <map>
#include "../Debug/Trace.h"
#include "CriticalSection.h"
#include "Signals.h"
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Execution;
namespac... |
<commit_before>#include "openrasp_file.h"
static const char* mode_to_type(char *mode)
{
if (strchr(mode, '+') > mode)
{
return "writeFile";
}
else if (strchr(mode, 'r') != nullptr)
{
return "readFile";
}
else
{
return "writeFile";
}
}
static void check_file_... |
<commit_before>//===- unittest/AST/RecursiveASTMatcherTest.cpp ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Creator.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Co... |
<commit_before>/* This file is part of the KDE project.
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
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 o... |
<commit_before>#ifndef __ACTION_HLS_NVME_MEMCOPY_H__
#define __ACTION_HLS_NVME_MEMCOPY_H__
/*
* Copyright 2017 International Business Machines
*
* 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 Licen... |
<commit_before>// Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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 r... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>// Copyright 2020 The IREE Authors
//
// Licensed 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
//===--- FusionOfTensorsOps.cpp - Pass to fuse operations on tensors-------===//
/... |
<commit_before>/**
* SimpleTruthValue.cc
*
* @author Guilherme Lamacie
* @author Welter Silva
*/
#include "SimpleTruthValue.h"
#include "exceptions.h"
#include <math.h>
#define KKK 800.0f
SimpleTruthValue::SimpleTruthValue(float m, float c){
mean = m;
count = c;
}
SimpleTruthValue::SimpleTruthValue(SimpleTru... |
<commit_before>// RUN: %clang_cc1 -S -emit-llvm -g %s -o - | FileCheck %s
template <typename T>
struct a {
};
extern template class a<int>;
// CHECK-NOT: ; [ DW_TAG_structure_type ] [a<int>]
template <typename T>
struct b {
};
extern template class b<int>;
b<int> bi;
// CHECK: ; [ DW_TAG_structure_type ] [b<int>] {{.... |
<commit_before>#include "ContentWindowGraphicsItem.h"
#include "Content.h"
#include "ContentWindowManager.h"
#include "DisplayGroupManager.h"
#include "DisplayGroupGraphicsView.h"
#include "main.h"
qreal ContentWindowGraphicsItem::zCounter_ = 0;
ContentWindowGraphicsItem::ContentWindowGraphicsItem(boost::shared_ptr<C... |
<commit_before>/* Copyright (c) 2009-2012 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" ... |
<commit_before>#include <osg/Transform>
#include <osg/Billboard>
#include <osg/Geode>
#include <osg/Group>
#include <osg/Notify>
#include <osg/Material>
#include <osg/PolygonOffset>
#include <osg/PolygonMode>
#include <osgDB/Registry>
#include <osgDB/ReadFile>
#include <osgUtil/TrackballManipulator>
#include <osgUtil... |
<commit_before>/*
@file remove_noexcept
@Copyright Barrett Adair 2015-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_CLBL_TRTS_REMOVE_NOEXCEPT_HPP
#define BOOST_CLBL_TRTS_REMOVE_NOEXCEPT_HPP
#include <bo... |
<commit_before>
AliAnalysisTaskCaloTrackCorrelation *AddTaskPi0EMCALPbPb(
const TString data = "AOD",
const TString calorimeter = "EMCAL",
... |
<commit_before>/*
* Super Entity Game Server Project
* http://segs.sf.net/
* Copyright (c) 2006 Super Entity Game Server Team (see Authors.txt)
* This software is licensed! (See License.txt for details)
*
* $Id$
*/
#define _USE_MATH_DEFINES
#include <cmath>
#include "types.h"
#include "Events/InputState.h"
#incl... |
<commit_before>// Copyright (c) 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/process.h"
#include "base/logging.h"
#include "base/process_util.h"
namespace base {
void Process::Close() {
process... |
<commit_before>// @(#)root/base:$Name: $:$Id: TBrowser.cxx,v 1.5 2001/09/18 21:58:39 rdm Exp $
// Author: Fons Rademakers 25/10/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<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 "SkBenchmark.h"
#include "SkAAClip.h"
#include "SkPath.h"
#include "SkRegion.h"
#include "SkString.h"
#include "SkCanvas.h"
#include "SkRandom.h"
////... |
<commit_before>///
/// @file main.cpp
/// @brief This file contains the main() function of the primesieve
/// console (terminal) application.
///
/// Copyright (C) 2013 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level direc... |
<commit_before>/* This file is part of the Vc library.
Copyright (C) 2009 Matthias Kretz <kretz@kde.org>
Vc is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the Lic... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may... |
<commit_before>/*
* Copyright 2015 Real Logic Ltd.
*
* 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 la... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>/***************************************************************************
* Copyright (c) sliptonic (shopinthewoods@gmail.com) 2020 *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// t... |
<commit_before>//
// Projectname: amos-ss16-proj5
//
// Copyright (c) 2016 de.fau.cs.osr.amos2016.gruppe5
//
// This file is part of the AMOS Project 2016 @ FAU
// (Friedrich-Alexander University Erlangen-Nürnberg)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the 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 "base/utf_string_conversions.h"
#include "chrome/browser/automation/automation_util.h"
#include "chrome/browser/extensions/ext... |
<commit_before>// Copyright (c) 2014-2018 Sebastien Rombauts (sebastien.rombauts@gmail.com)
//
// Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
// or copy at http://opensource.org/licenses/MIT)
#include "GitSourceControlPrivatePCH.h"
#include "GitSourceControlMenu.h"
#include "GitSourceC... |
<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/logging.h"
#include "base/sha2.h"
#include "chrome/browser/safe_browsing/safe_browsing_util.h"
#include "googleu... |
<commit_before>// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "UnrealEnginePythonPrivatePCH.h"
void unreal_engine_init_py_module();
#if defined(UNREAL_ENGINE_PYTHON_ON_LINUX)
const char *ue4_module_options = "linux_global_symbols";
#endif
#if PY_MAJOR_VERSION < 3
char *PyUnicode_AsUTF8(PyObje... |
<commit_before>#include <chain.hpp>
#include <vector>
#include <list>
#include <string>
#include <vector>
#include <iterator>
#include <utility>
#include "catch.hpp"
using iter::chain;
using Vec = const std::vector<char>;
TEST_CASE("chain three strings", "[chain]") {
std::string s1{"abc"};
std::string s2{"m... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// main.cpp
//
// Identification: src/backend/main/main.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------------------------------... |
<commit_before>#include "pch.h"
#include "carousel.h"
Carousel::Carousel()
: _currentItemIndex(INVALID_ITEM_INDEX)
, _currentItemBeforeTouch(INVALID_ITEM_INDEX)
, _startScrollingPosition(0.0f, 0.0f)
, _itemScrollingClip(NULL)
, _rawScrollPosition(0, 0)
, _freeSliding(false)
{
}
Carousel::~... |
<commit_before>/*************************************************************************
*
* $RCSfile: prnmon.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: cd $ $Date: 2002-10-22 06:05:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/**
* \file dcs/testbed/rain_workload_driver.hpp
*
* \brief Workload driver based on the RAIN workload toolkit.
*
* \author Marco Guazzone (marco.guazzone@gmail.com)
*
* <hr/>
*
* Copyright (C) 2012 Marco Guazzone
* [Distributed Computing System (DCS) Group,
* ... |
<commit_before>#include "drawRule.h"
#include "tile/tile.h"
#include "scene/scene.h"
#include "scene/sceneLayer.h"
#include "scene/stops.h"
#include "scene/styleContext.h"
#include "style/style.h"
#include "platform.h"
#include <algorithm>
namespace Tangram {
DrawRuleData::DrawRuleData(std::string _name, int _id,
... |
<commit_before>#include <string>
#include "PointerSubgraphValidator.h"
namespace dg {
namespace analysis {
namespace pta {
namespace debug {
static void dumpNode(const PSNode *nd, std::string& errors) {
errors += std::string(PSNodeTypeToCString(nd->getType())) + " with ID " +
std::to_string(nd->getID(... |
<commit_before>/***************************************************************************
* @file main.cpp
* @author Alan.W
* @date 07 JAN 2014
* @remark
***************************************************************************/
//!
//! Exercise 13.47:
//! Give the copy constructor and cop... |
<commit_before><commit_msg>icoverity#705451: comparison of array against NULL<commit_after><|endoftext|> |
<commit_before><commit_msg>coverity#735386 Copy-paste error<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unoaprms.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2006-01-10 14:31:26 $
*
* The Contents of this file are made ... |
<commit_before>#ifndef STAN__MATH__MATRIX__MULTIPLY_LOWER_TRI_SELF_HPP
#define STAN__MATH__MATRIX__MULTIPLY_LOWER_TRI_SELF_HPP
#include <stan/math/matrix/typedefs.hpp>
namespace stan {
namespace math {
/**
* Returns the result of multiplying the lower triangular
* portion of the input matrix by its o... |
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__BETA_HPP__
#define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS__BETA_HPP__
#include <stan/agrad.hpp>
#include <stan/prob/traits.hpp>
#include <stan/math/error_handling.hpp>
#include <stan/math/special_functions.hpp>
#include <stan/prob... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: grviewsh.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: kz $ $Date: 2006-12-12 19:18:03 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabcontr.cxx,v $
*
* $Revision: 1.19 $
*
* last change: $Author: kz $ $Date: 2006-12-12 19:22:49 $
*
* The Contents of this file are made... |
<commit_before>#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <Plugins/RoutingServices/CrowFlyRoutingService/CrowFlyRoutingService.h>
#include <Engine/SceneManager/SceneManager.h>
#include <Engine/SceneManager/Scene.h>
#include <Engine/SceneManager/Operation.h>
#include <Engine/Concepts/Basic/Capacity.h>
#in... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000 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>
#ifdef NDA_CODE_AMD_MANTLE
// NDACodeStripper v0.17: 1181 lines removed
#endif
<commit_msg>Mantle backend updated to match D3D11 behaviour.<commit_after>
#ifdef NDA_CODE_AMD_MANTLE
// NDACodeStripper v0.17: 1328 lines removed
#endif
<|endoftext|> |
<commit_before>#ifndef INCLUDE_AL_CONVERSION_HPP
#define INCLUDE_AL_CONVERSION_HPP
/* Allocore --
Multimedia / virtual environment application class library
Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology, UCSB.
Copyright (C) 2006-2008. The Regents of the University of California (REGENTS). ... |
<commit_before>// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "bin/dartdev_utils.h"
#include <memory>
#include "bin/directory.h"
#include "... |
<commit_before>/* Copyright 2019 Benjamin Worpitz, René Widera
*
* This file is part of alpaka.
*
* 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 at http://mozilla.org/MPL/2.0/.
*/
#pragma once... |
<commit_before>/*******************************************************************************
* include/construction/building_blocks.hpp
*
* Copyright (C) 2018 Marvin Löbel <loebel.marvin@gmail.com>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
*********************************... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any... |
<commit_before>//最长公共子序列
//longest_common_subsequence.cpp
//求两长度相同的序列s1,s2的最长公共子序列的长度
//子序列中相邻的两个成员在原序列中可以是不相邻的,但在原序列中的相对顺序不变
//子序列中相邻的两个成员在原序列中可以是不相邻的,但在原序列中的相对顺序不变
//这意味着可以出现这样的情况,对于序列s1(1, 2, 3, 4, 5)和s2(1, 4, 0, 2, 3)
//它们的最长公共子序列是(1, 4),其中成员1和4在原序列s1中不相邻,但相对顺序不变
//
//设置f[i][j]表示s1中前i个元素,s2中前j个元素的最长公共子列... |
<commit_before><commit_msg>Call InitLogging() for courgette.<commit_after><|endoftext|> |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*
* ArcEmu MMORPG Server
* Copyright (C) 2008-2020 <http://www.ArcEmu.org/>
*
* 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
* ... |
<commit_before>#include <iostream>
#include <vector>
using namespace std;
int main(){
int length;
cin >> length;
vector<int> vector(length);
for (int i = 0; i < length; i++)
{
cin >> vector[i];
}
for (int i = 0; i < length; i++)
{
int j = i-1;
int intermediate... |
<commit_before>#include "Halide.h"
#include <tiramisu/utils.h>
#include <cstdlib>
#include <iostream>
#include "mkl_cblas.h"
#include "sgemm_wrapper.h"
#include "benchmarks.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} // extern "C"
#endif
int main(int, char **)
{
std::vector<std::chrono::dur... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentat... |
<commit_before>#include "schedulers/schedule.h"
namespace schedulers {
//TODO: Why the compiler asks me for explicit schedulers::?
schedulers::Sched::Sched(game::CarTracker* car_tracker, int horizon)
: car_tracker_(car_tracker), throttles_(horizon, 0), distance_(0), switch_position_(-1) {
// There is no state giv... |
<commit_before>//
// yas_operation.cpp
//
#include <atomic>
#include <deque>
#include <mutex>
#include <thread>
#include <vector>
#include "yas_operation.h"
using namespace yas;
#pragma mark - operation
class operation::impl : public base::impl {
public:
std::atomic<bool> canceled;
execution_f execution... |
<commit_before>/*Copyright (c) 2018 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
Unless required by applic... |
<commit_before>#ifndef CmdLineInterface_hpp
#define CmdLineInterface_hpp
#include "AppConfig.hpp"
class CmdLineInterface
{
private:
//void printUsage(std::string name);
AppConfig config;
public:
CmdLineInterface(int argc, char *argv[]);
AppConfig getConfig();
};
... |
<commit_before>#ifndef INCLUDE_ACKWARD_CORE_DETAIL_TUPLE_HPP
#define INCLUDE_ACKWARD_CORE_DETAIL_TUPLE_HPP
#include <boost/preprocessor/repetition/enum.hpp>
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
#include <boost/python/extract.hpp>
#include <ackward/core/Util.hpp>
namespace ackward {
namespace c... |
<commit_before>/* opendatacon
*
* Copyright (c) 2014:
*
* DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi
* yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA==
*
* 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... |
<commit_before>#include "stdafx.h"
#include "rvdbg.h"
BOOLEAN tDSend;
static void HandleSSE()
{
if (r_registers.bxmm0 == 1)
__asm movsd xmm0, r_registers.dxmm0;
else if (r_registers.bxmm0 == 2)
__asm movss xmm0, r_registers.xmm0;
if (r_registers.bxmm1)
__asm movsd xmm1, r_registers.dxmm1;
else if (r_regist... |
<commit_before>#include "server/user_manage.h"
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/lexical_cast.hpp>
#include <string>
#include <sstream>
#include "common/logging.h"
#include "common/timer.h"
#include "leveldb/write_batch.h"
#includ... |
<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
* "Li... |
<commit_before>#include "TopkHeader.h"
double inline ori_absdiff(double a, double b) {
double v = a - b;
if (v < 0) {
v = v * -1;
}
return v;
}
void original_topk_sim_join_plain_impl(const Table& ltoken_vector, const Table& rtoken_vector,
CandSet& cand_... |
<commit_before>/*******************************************************************************
* Copyright 2017, 2018 MINRES Technologies GmbH
*
* 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 Licen... |
<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"
nuiTextLine::nuiTextLine(const nuiTextLayout& rLayout, float X, float Y)
: mLayout(rLayout), mX(X), mY(Y)
{
}
nuiTextLine::~nuiTex... |
<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
* "... |
<commit_before>#ifndef VSMC_INTERNAL_COMPILER_INTEL_HPP
#define VSMC_INTERNAL_COMPILER_INTEL_HPP
#define VSMC_INTEL_NONEXIST 1000000UL
#define VSMC_GNUC_NONEXIST 1000000UL
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L
#if defined(__GNUC__) && defined (__GNUNC_MINOR__)
// C++11 language features
... |
<commit_before>/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCpu.h"
#include "SkOnce.h"
#if !defined(__has_include)
#define __has_include(x) 0
#endif
#if defined(SK_CPU_X86)
#if defined(SK_BUILD_FOR_... |
<commit_before>/*************************************************************************
*
* $RCSfile: prevloc.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: pjunck $ $Date: 2004-10-28 09:57:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.