text stringlengths 54 60.6k |
|---|
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkPowellOptimizer.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See I... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009, 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
// met:... |
<commit_before>#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;
bool hasUppercase(const string& str)
{
for (auto c : str)
if (isupper(c)) return true;
return false;
}
void makeLowercase(string& str)
{
for (auto& c : str)
if (isupper(c)) c = tolowe... |
<commit_before>//---------------------------------------------------------------------------//
//!
//! \file tstGeneralEstimatorDimensionDiscretization.cpp
//! \author Alex Robinson
//! \brief General estimator dimension discretization unit tests
//!
//----------------------------------------------------------------... |
<commit_before>//! @Alan @pezy
//!
//! Exercise 9.14:
//! Write a program to assign the elements from a list of char* pointers
//! to C-style character strings
//!
//! @Notice C-style character strings should use const char*, otherwise warning.
//!
#include <iostream>
#include <string>
#include <vector>
#include <list... |
<commit_before>//
// ex9_41.cpp
// Exercise 9.41
//
// Created by pezy on 12/4/14.
//
// @Brief Write a program that initializes a string from a vector<char>.
#include <iostream>
#include <vector>
#include <string>
using std::vector; using std::cout; using std::endl; using std::string;
int main()
{
vector<c... |
<commit_before>#include "Engine.h"
#include "Game.h"
#include "ObjectDummy.h"
#include "BodyRigid.h"
#include "BodyDummy.h"
#include "Physics.h"
#include "ShapeCapsule.h"
#include "ActorBase.h"
#include "Visualizer.h"
#include "sys/SysControl.h"
using namespace MathLib;
#ifdef MEMORY_INFO
#define new new(__FILE__, _... |
<commit_before>/*==========================================================================
Program:
Module: otherTimerLog.cxx
Language: C++
Date: $Date$
Version: $Revision$
==========================================================================*/
// .NAME
// .SECTION Description
// this ... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Bitsend developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core.h"... |
<commit_before>/* BSD 2-Clause License
Copyright (c) 2016, Doi Yusuke
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
lis... |
<commit_before>//
// Copyright (C) 2015 Clifford Wolf <clifford@clifford.at>
//
// Permission to use, copy, modify, and/or 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 SOFTW... |
<commit_before>#include <stdio.h>
#include <queue>
#include <mutex>
#include <thread>
#include <chrono>
#include <condition_variable>
template <class T> class Channel {
std::mutex mutex;
std::queue<T> queue;
std::condition_variable not_full, not_empty;
size_t capacity;
public:
explicit Channel(size_t capaci... |
<commit_before>#include <stdio.h>
#include <queue>
#include <mutex>
#include <thread>
#include <chrono>
#include <condition_variable>
template<class T>
class Channel {
std::mutex mutex;
std::queue<T> queue;
std::condition_variable not_full, not_empty;
size_t capacity;
public:
explicit Channel(size_t capacity = 1... |
<commit_before>/*
* cube.cpp
*
* Created on: Nov 25, 2013
* Author: leo
*/
#include "cube.h"
#include <iostream>
using namespace std;
GLfloat cube::side_vertices[] = {
// front base cube
-0.5, -0.5, 0.5,
0.5, -0.5, 0.5,
0.5, 0.5, 0.5,
-0.5, 0.5, 0.5,
// back base cube
-... |
<commit_before>// Copyright (c) 2018 The COLX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "curl.h"
#include "util.h"
#include "clientversion.h"
#include <stdlib.h>
#include <curl/curl.h>
using namespace... |
<commit_before>#include <iostream>
#include <vector>
#include <string>
#include <botan/pipe.h>
#include <botan/hex.h>
using namespace Botan;
#include "common.h"
void strip_comments(std::string& line)
{
if(line.find('#') != std::string::npos)
line = line.erase(line.find('#'), std::string::npos);
}
voi... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Co... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2006-2007 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
T... |
<commit_before>#if _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h>
#endif
#include <chrono>
#include <mutex>
#include <thread>
#include <unordered_map>
#include <stdio.h>
#include "LogVisor/LogVisor.hpp"
/* ANSI sequences */
#define RED "\x1b[1;31m"
#define YELLOW "\x1b[1;... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief VS1063 VLSI Audio Codec ドライバー
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <cstdint>
#include "G13/port.hpp"
#include "common... |
<commit_before>/*
* Copyright (C) 2008 Apple 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, this ... |
<commit_before>#include "BetaRand.h"
BetaRand::BetaRand(double shape1, double shape2)
{
setParameters(shape1, shape2);
}
std::string BetaRand::name()
{
return "Beta(" + toStringWithPrecision(getAlpha()) + ", " + toStringWithPrecision(getBeta()) + ")";
}
void BetaRand::setParameters(double shape1,... |
<commit_before>// Copyright Daniel Wallin, Arvid Norberg 2006. Use, modification and distribution is
// subject to 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)
#include <libtorrent/session.hpp>
#include <libtorrent/torrent.hpp>
#inc... |
<commit_before>/*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... |
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
// reserved. See file COPYRIGHT for details.
//
// This file is part of the MFEM library. For more information and source code
// availability see htt... |
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include <iostream>
#include "linbox/matrix/polynomial-matrix.h"
#include "linbox/randiter/random-fftprime.h"
#include "linbox/randiter/random-prime.h"
#include "linbox/ring/modular.h"
#include "linbox/algorithms/polynomial-m... |
<commit_before>#include <raindance/Core/Headers.hh>
#include <raindance/Core/OpenCL.hh>
class GPUGraph
{
public:
struct ParticleForce
{
glm::vec4 Direction;
};
struct NodeParticle
{
glm::vec4 Origin;
};
struct NodeInstance
{
typedef unsigned int ID;
glm::vec4 Position;
... |
<commit_before>//
#include "spack.h"
#include <cstdint>
#include <algorithm>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string/replace.hpp>
#include "sections_packer.h"
#include "import_packer.h"
#include "file_utils.h"
#include "tiny_logger.h"
typedef std::shared_ptr<PeLib::PeFile> PeFilePtr;
uint32... |
<commit_before><commit_msg>cppcheck reduce scope of var in vcl/unx/...wmadaptor.cxx<commit_after><|endoftext|> |
<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 distributed WITHOUT AN... |
<commit_before><commit_msg>Land additional doctype piece. toString fix of doctype.<commit_after><|endoftext|> |
<commit_before>#include "logics/tagrepository.h"
#include <TWebApplication>
#include <QJsonObject>
#include <QJsonDocument>
// make symlink for `tags` to public
namespace {
struct TagDirMakePublicLink {
TagDirMakePublicLink() {
const QString sourcePath = TagRepository().baseDir().absolutePath()... |
<commit_before>/*****************************************************************************
* timer.cpp : wxWindows plugin for vlc
*****************************************************************************
* Copyright (C) 2000-2003 VideoLAN
* $Id$
*
* Authors: Gildas Bazin <gbazin@videolan.org>
*
* This pr... |
<commit_before>// Author: Jan Kristian Sto. Domingo [jstod001@ucr.edu]
// main.cpp for rshell
#include <iostream>
using namespace std;
int main()
{
return 0;
}
<commit_msg>edited exec.cpp header<commit_after>// Author: Jan Kristian Sto. Domingo [jstod001@ucr.edu]
// exec.cpp for rshell
#include <iostream>
... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Jett
*
* 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
* ... |
<commit_before>// Copyright (c) 2015, Ming Wen
#ifndef _H_UTIL
#define _H_UTIL
#include "fys.hpp"
#include "json_images.hpp"
using namespace std;
using namespace cv;
namespace fys {
int checkDigit(string str);
string itoa(int idx);
string ftoa(double num);
string btoa(bool var);
bool atob(const char* s);
bool poi... |
<commit_before>/*
This file is part of Ingen.
Copyright 2007-2015 David Robillard <http://drobilla.net/>
Ingen 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 "Atm_condition.hpp"
Atm_condition & Atm_condition::begin( bool default_state /* = false */ ) {
const static state_t state_table[] PROGMEM = {
/* ON_ENTER ON_LOOP ON_EXIT EVT_ON EVT_OFF EVT_TOGGLE EVT_INPUT ELSE */
/* OFF */ ACT_OFF, -1, -1, ... |
<commit_before>#include "xchainer/numerical_gradient.h"
#include <algorithm>
#include <functional>
#include <vector>
#ifdef XCHAINER_ENABLE_CUDA
#include <cuda_runtime.h>
#endif // XCHAINER_ENABLE_CUDA
#include "xchainer/array.h"
#include "xchainer/array_repr.h"
#include "xchainer/error.h"
#include "xchainer/indexa... |
<commit_before>/*
*
* kPPP: A pppd front end for the KDE project
*
* $Id$
*
* (c) 1998 Mario Weilguni <mweilguni@kde.org>
*
* Copyright (C) 1997 Bernd Johannes Wuebben
* wuebben@math.cornell.edu
*
* based on EzPPP:
* Copyright (C) 1997 Jay Painter
*
* This program ... |
<commit_before>//
// Set.h
// Set
//
// Created by Antonio Seprano on 10/08/14.
// Copyright (c) 2014 Antonio Seprano. All rights reserved.
//
#include <vector>
#include <functional>
#include <utility>
#include <algorithm>
#ifndef _SET_HPP
#define _SET_HPP
template<class _T, class _Allocator = std::allocator<_T>... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
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 of condi... |
<commit_before>#include <nan.h>
#include <windows.h>
using namespace v8;
using namespace node;
NAN_METHOD(GetFileStats) {
NanScope();
Local<Object> returnObj = NanNew<Object>();
String::Utf8Value filePathV8(args[0]->ToString());
const char* filePath = std::string(*filePathV8).c_str();
int fileAttributes... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
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 of condi... |
<commit_before>/******************************************************************
*
* Round for C++
*
* Copyright (C) Satoshi Konno 2015
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <boost/test/unit_test.hpp>
#include <r... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by FThauer FHammer *
* f.thauer@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
*... |
<commit_before>
#include "game.hpp"
Game::Game()
: window(sf::VideoMode(720,480), "SFML App")
{
frameTime = sf::seconds(1.f / 60.f);
}
void Game::run()
{
sf::Clock clock;
sf::Time lastUpdateTime = sf::Time::Zero;
while (window.isOpen())
{
lastUpdateTime += clock.restart();
while (l... |
<commit_before>#ifndef GAME_HXX_
#define GAME_HXX_
#include "tunnel.hxx"
#include "distortion.hxx"
class Game {
Tunnel tunnel;
Distortion distortion;
public:
Game();
~Game();
void update(float);
void configureGL();
void draw();
void motion(float,float);
void button(unsigned);
bool running() cons... |
<commit_before>#ifndef __NODE_GDAL_GLOBAL_H__
#define __NODE_GDAL_GLOBAL_H__
// node
#include <node.h>
// nan
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <nan.h>
#pragma GCC diagnostic pop
// ogr
#include <ogr_api.h>
#include <ogrsf_frmts.h>
// gdal
#include "gdal_common... |
<commit_before>#include "mpi.h"
#include <Python.h>
#include <string>
#include <iostream>
#include <cstring>
#include "parquet/api/reader.h"
#include "parquet/arrow/reader.h"
#include "arrow/table.h"
using parquet::arrow::FileReader;
using parquet::ParquetFileReader;
int64_t pq_get_size(std::string* file_name, int64... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkMultiProcessController.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for deta... |
<commit_before>/*
* Copyright 2010-2012 PathScale, 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,
* thi... |
<commit_before>// Copyright (c) 2013 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 <stdio.h>
#include <stdlib.h>
#include <map>
#include "base/command_line.h"
#include "base/environment.h"
#include "base/fil... |
<commit_before>#include "otc/otcli.h"
#include "otc/util.h"
using namespace otc;
typedef otc::RootedTreeNode<RTSplits> Node_t;
typedef RTreeOttIDMapping<RTSplits> RootedTreeForNodeType;
typedef otc::RootedTree<RTSplits, RootedTreeForNodeType> Tree_t;
bool processNextTree(OTCLI & otCLI, std::unique_ptr<Tree_t> tree);
ex... |
<commit_before>/*
*
* MIT License
*
* Copyright (c) 2016-2017 The Cats Project
*
* 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>/*
*
* MIT License
*
* Copyright (c) 2016-2017 The Cats Project
*
* 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>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 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
// met:... |
<commit_before>extern "C" {
#include "q.h"
}
#include <gtest/gtest.h>
#include <deque>
#include <functional>
#include <algorithm>
#include <random>
#include <chrono>
#include <limits>
#include <iterator>
class Model : public ::testing::Test
{
protected:
virtual void SetUp()
{
seed = ... |
<commit_before>/*
Copyright (c) 2008-2012, Arvid Norberg
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 of ... |
<commit_before>//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2015 KONDO Takatoshi
//
// 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://ww... |
<commit_before>//----------------------------------------------------------------------------
/// \file rate_throttler.hpp
/// \author Serge Aleynikov
//----------------------------------------------------------------------------
/// \brief Efficiently calculates the throttling rate over a number of seconds.
///
/// ... |
<commit_before>/* <HttpRangeDef.cc>
*
* This file is part of the x0 web server project and is released under LGPL-3.
* http://www.xzero.io/
*
* (c) 2009-2012 Christian Parpart <trapni@gentoo.org>
*/
#ifndef x0_HttpRangeDef_ipp
#define x0_HttpRangeDef_ipp
#include <x0/Tokenizer.h>
// XXX http://tools.ietf.org/h... |
<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/chromeos/legacy_window_manager/initial_browser_window_observer.h"
#include "base/bind.h"
#include "base/file_... |
<commit_before>#include "grid.h"
#include <math.h>
int SCREEN_HEIGHT = 768, SCREEN_WIDTH = 1024;
float PADDING_TOP_BOTTOM = SCREEN_HEIGHT/10;
float PADDING_LEFT_RIGHT = SCREEN_WIDTH/10;
Grid::Grid() {
this->height = SCREEN_HEIGHT-PADDING_TOP_BOTTOM*2;
this->width = SCREEN_WIDTH-PADDING_LEFT_RIGHT*2;
this->cellW... |
<commit_before>#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
int do_install = 0;
int end_alert = 0;
int do_libinstall = 0;
int lib_exit = 0;
char type[256];
char bin[256];
char hdr[256];
char opc[256];
char doh[256];
cha... |
<commit_before>#include <iostream>
#include <functional>
#include <memory>
#include <future>
#include "integration_test_helper.h"
#include "dronecore.h"
using namespace dronecore;
using namespace std::placeholders; // for `_1`
static std::shared_ptr<MissionItem> add_mission_item(double latitude_deg,
... |
<commit_before>/******************************************************************************
* renderwindow_bind.cpp - bindings for Ogre::RenderWindow
******************************************************************************
* This file is part of
* __ __ _
* / // /_____ ____ (_)... |
<commit_before>/*************************************************************************/
/* lightmap_raycaster.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: randomwipe.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-07 20:57:04 $
*
* The Contents of this file are mad... |
<commit_before><commit_msg>Update GeneralServerFeature.cpp<commit_after><|endoftext|> |
<commit_before>
/**
* 所有 #include <外部文件> 的头文件 都必须保证 本文件被首先#include
* 以下项目可以由本文件保证包含:
* <cstdint>
* <cstddef>
* 并保证 全局名称空间包含所有stdint。
* CS_DEBUG = 1 时保证 #include <iostream>
*/
#pragma once
/**
* 平台兼容原则:以不大的代价换取一定的兼容性;以首要目标平台0-overhead为前提。
*/
#ifndef NDEBUG
# ifndef CS_DEBUG
# define CS_DEBUG 2
# endi... |
<commit_before>/***********************************************************************
dbdriver.cpp - Implements the DBDriver class.
Copyright (c) 2005-2009 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this file. See the
CREDITS.txt file in the top directory of the distrib... |
<commit_before>#include <iostream>
#include "bmp.hh"
namespace DG {
namespace Image {
void BMP::open(const std::string& fname) {
std::ifstream ifs(fname, std::ios::binary);
ifs >> data;
}
void BMP::write(const std::string& fname) {
std::ofstream ofs(fname, std::ios::binary);
ofs << data;
}
void BMP::byte_se... |
<commit_before>//=============================================================================
//File Name: ButtonTracker.hpp
//Description: Helps user determine if joystick button was just pressed or just
// released
//Author: FRC Team 3512, Spartatroniks
//=================================================... |
<commit_before>#include "cnn/training.h"
#include "cnn/gpu-ops.h"
namespace cnn {
using namespace std;
Trainer::~Trainer() {}
/**
@scale : proportional to the number of samples trained in parallel
*/
float Trainer::clip_gradients(float samples) {
float gscale = 1;
if (clipping_enabled) {
float gg = model... |
<commit_before>#include <algorithm>
#include <assert.h>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <exception>
#include <iostream>
#include "Map.h"
#include "MapManager.h"
#include "utils.h"
#include "Create.h"
#include "Create_Enums.h"
#include "File.h"
MapManager:... |
<commit_before>#ifndef VEXCL_BACKEND_OPENCL_COMPILER_HPP
#define VEXCL_BACKEND_OPENCL_COMPILER_HPP
/*
The MIT License
Copyright (c) 2012-2016 Denis Demidov <dennis.demidov@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ... |
<commit_before>/* Copyright 2011 Dirk-Willem van Gulik, All Rights Reserved.
* dirkx(at)webweaving(dot)org
*
* 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>#include "PoissonDiskSampling.h"
#include <random>
PoissonDiskSampling::PoissonDiskSampling(int pointWidth, int pointHeight, double pointMinDist, double pointCount) :
m_width(pointWidth),
m_height(pointHeight),
m_minDist(pointMinDist),
m_pointCount(pointCount),
m_cellSize(m_minDist / 1.414214),
m... |
<commit_before>/*
* nvbio
* Copyright (c) 2011-2014, NVIDIA CORPORATION. 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>#define DEBUG 1
/**
* File : B.cpp
* Author : Kazune Takahashi
* Created : 2/11/2019, 7:07:57 PM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
... |
<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 ap... |
<commit_before>/* Copyright (c) 2016 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 ap... |
<commit_before>/*************************************************************************
*
* $RCSfile: docsh.hxx,v $
*
* $Revision: 1.28 $
*
* last change: $Author: kz $ $Date: 2004-10-04 18:58:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, 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
* i... |
<commit_before>#include "ComponentTransform.h"
// Constructors =================================
ComponentTransform::ComponentTransform() : Component(COMP_TRANSFORMATION)
{
transform_matrix = math::float4x4::identity;
position = { 0,0,0 };
rotation_euler_angles = { 0,0,0 };
scale = { 0,0,0 };
}
ComponentTransform... |
<commit_before>#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImageRegionIterator.h"
#include "itkRGBPixel.h"
#include "itkRGBAPixel.h"
#include "itkRedColormapFunctor.h"
#include "itkGreenColormapFunctor.h"
#include "itkBlueColormapFunctor.h"
#include "itkGreyColorm... |
<commit_before><commit_msg>Delete Puentes itmos.cpp<commit_after><|endoftext|> |
<commit_before><commit_msg>Avoid nullptr dereferences in sycc444_to_rgb().<commit_after><|endoftext|> |
<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 "media/base/callback.h"
#include "media/base/media.h"
#include "remoting/base/capture_data.h"
#inclu... |
<commit_before>#include <muduo/base/Logging.h>
#include <muduo/net/Channel.h>
#include <muduo/net/EventLoop.h>
#include <map>
#include <boost/bind.hpp>
#include <stdio.h>
#include <unistd.h>
#include <sys/timerfd.h>
using namespace muduo;
using namespace muduo::net;
void print(const char* msg)
{
static std::map<... |
<commit_before>// -*- c-file-style: "cc-mode" -*-
#include "hemi.hpp"
extern "C" void Context_dealloc(Context* self) {
self->context.Dispose();
self->ob_type->tp_free((PyObject *)self);
}
extern "C" PyObject * Context_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds) {
Context *self = (Context ... |
<commit_before>#include "facepreprocessor.h"
#include <vector>
#include <algorithm>
#include <limits>
#include <cstdint>
#include <opencv2/imgproc/imgproc.hpp>
#include <QDebug>
static const double PI = std::atan(1.0) * 4;
using namespace cv;
FacePreprocessor::FacePreprocessor(FaceClassifiers classifiers, const M... |
<commit_before>#include "facepreprocessor.h"
#include <vector>
#include <algorithm>
#include <limits>
#include <cstdint>
#include <opencv2/imgproc/imgproc.hpp>
#include <QDebug>
static const double PI = std::atan(1.0) * 4;
using namespace cv;
static const bool MARK_FOUND_FEATURES = false;
FacePreprocessor::FaceP... |
<commit_before>/*
* Copyright (c) 2012 - 2014, Adrian M. Partl <apartl@aip.de>,
* eScience team AIP Potsdam
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this... |
<commit_before>#pragma once
#include <list>
#include <unordered_map>
#include <vector>
#include <optional>
#include <mutex>
#include <functional>
#include <ostream>
namespace lru_cache
{
namespace detail
{
/* Dummy replacement for mutex which defaults to cache with no thread safety */
class no... |
<commit_before>//===--- FileRemapper.cpp - File Remapping Helper -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- MachineLoopInfo.cpp - Natural Loop Calculator ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "iconv.h"
#include <v8.h>
#include <node.h>
#include <node_buffer.h>
#include <cstring>
#include <cerrno>
using namespace v8;
using namespace node;
namespace {
class Iconv: public ObjectWrap {
public:
static void Initialize(Handle<Object>& target);
static Handle<Value> New(const Argumen... |
<commit_before>//===--- ToolChains.cpp - ToolChain Implementations -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.