text stringlengths 54 60.6k |
|---|
<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/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/memor... |
<commit_before>#include "stdafx.h"
#include "Writer.h"
Writer::Writer()
{
Filing* file = new Filing();
file->Startup();
string path;
//setup converter
using convert_type = codecvt_utf8<wchar_t>;
wstring_convert<convert_type, wchar_t> converter;
path = converter.to_bytes(*file->LogDirectoryPath);
path.appen... |
<commit_before>#include <iostream>
#include <algorithm>
#include <cstdint>
#include <cassert>
#include <vector>
#include <array>
#include <random>
#include <memory>
#include <set>
// utility class
void VectorRandomInitialize(std::vector<float>& input)
{
std::cout << "Random Initializing Weights: " << input.size() ... |
<commit_before>/* pocl-ptx-gen.c - PTX code generation functions
Copyright (c) 2016 James Price / University of Bristol
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 restric... |
<commit_before>#pragma once
#ifndef RAZ_FLOATUTILS_HPP
#define RAZ_FLOATUTILS_HPP
#include <algorithm>
#include <cmath>
#include <limits>
#include <type_traits>
namespace Raz {
namespace FloatUtils {
// Near-equality floating point check
template <typename T>
inline constexpr bool areNearlyEqual(T val1, T val2) {
... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
////////////////////////////////////////////////////////////////////////////////
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
/... |
<commit_before>/**
* @file modifier.cpp
* @author partio
*/
#include "modifier.h"
using namespace himan;
modifier::modifier()
: itsMissingValuesAllowed(false)
, itsFindNthValue(1) // first
{
}
const std::vector<double>& modifier::Result() const
{
assert(itsResult.size());
return itsResult;
}
bool modifier... |
<commit_before>//
// Main.cpp
// Addie
//
// Created by Joachim Wester on 22/04/16.
// Copyright © 2016 Joachim Wester, Starcounter AB.
//
#include "VM.hpp"
#include "Reader.hpp"
#include "Compiler.hpp"
#include <iostream>
using namespace Addie;
using namespace Addie::Internals;
#ifdef USE_VECTOR
extern void Te... |
<commit_before>#ifndef DUNE_MULTISCALE_MSFEM_DIFFUSION_EVALUATION_HH
#define DUNE_MULTISCALE_MSFEM_DIFFUSION_EVALUATION_HH
#include <dune/multiscale/msfem/msfem_traits.hh>
#include <dune/multiscale/problems/base.hh>
#include <dune/multiscale/problems/selector.hh>
#include <dune/gdt/functionals/l2.hh>
namespace Dune {... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <string>
#include <algorithm>
#include <chrono>
#include "mpihead.hpp"
#include "epa.hpp"
using namespace std;
static void print_help()
{
cout << "EPA - Evolutionary Placement Algorithm" << endl << endl;
cout << "USAGE: epa [options]" << endl << end... |
<commit_before>#include "SelectSpritesOP.h"
#include "FontBlankSprite.h"
#include "SymbolMgr.h"
#include "SpriteFactory.h"
#include "EditCMPT.h"
#include "MultiSpritesImpl.h"
#include "StageCanvas.h"
#include "SpriteSelection.h"
#include "EditPanelImpl.h"
#include "DrawSelectedSpriteVisitor.h"
#include "sprite_msg.h"
#... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>#ifndef SRC_PORTS_DETAIL_ACTIVE_SOURCE_PROXY_HPP_
#define SRC_PORTS_DETAIL_ACTIVE_SOURCE_PROXY_HPP_
#include <functional>
#include <core/detail/connection.hpp>
#include <core/ports.hpp>
namespace fc
{
namespace detail
{
//policy classes for determining argument order in connect calls in the proxy
st... |
<commit_before>/**
* @file
* Zenderer/Math/Matrix.hpp - A 4x4 matrix class wrapper for handling
* various graphical math operations.
*
* @author George Kudrayvtsev (halcyon)
* @version 1.0
* @copyright Apache License v2.0
* Licensed under the Apache License, Version 2.0 (the "License"). \n... |
<commit_before>#include <GL/freeglut.h>
#include <iostream>
#include <thread>
#include "sim/Constants.h"
#include "sim/Maze.h"
#include "sim/MazeFileUtilities.h"
#include "sim/MazeGraphic.h"
#include "sim/Mouse.h"
#include "sim/MouseGraphic.h"
#include "sim/MouseInterface.h"
#include "sim/Parameters.h"
#include "sim/T... |
<commit_before>#include "NormalPack.h"
#include "MaxRectsBinaryPack2.h"
#include "ImageTrimData.h"
#include <ee/FileHelper.h>
#include <ee/Exception.h>
#include <ee/StringHelper.h>
#include <ee/ImagePack.h>
#include <ee/Image.h>
#include <ee/LibpngAdapter.h>
#include <json/json.h>
#include <string>
#include <assert... |
<commit_before>#pragma once
#include "apple_hid_usage_tables.hpp"
#include "constants.hpp"
#include "event_manipulator.hpp"
#include "gcd_utility.hpp"
#include "human_interface_device.hpp"
#include "iokit_utility.hpp"
#include "iopm_client.hpp"
#include "logger.hpp"
#include "manipulator.hpp"
#include "spdlog_utility.... |
<commit_before>#include "stdafx.h"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/background_segm.hpp>
#include <opencv2/opencv.hpp>
#include "Utils.hpp"
using namespace cv;
using namespace std;
int main(int argc, char** argv) {
// open the webcam
VideoCapture cam(0);
if (!cam.isOpened()) {
cerr... |
<commit_before>#include "application.h"
#include "memory.h"
Application::Application()
{
memset(&m_callbacks, 0, sizeof(m_callbacks));
}
Application::~Application()
{
}
void Application::ManagerFunc()
{
std::vector<NotificationMessage*> messages;
{
CSLocker locker(&m_csMessages);
messages = m... |
<commit_before>// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#pragma once
#ifndef PROTOCOL_ANALYZER_LOCKED_DEQUE_HPP
#define PROTOCOL_ANALYZER_LOCKED_DEQUE_HPP
#include <mutex> // std::mutex, std::scop... |
<commit_before>#include <SFML/Graphics.hpp>
#include "Main.h"
#include "TextureLoader.h"
int main(){
sf::RenderWindow window(sf::VideoMode(MAIN_WINDOW_WIDTH,
MAIN_WINDOW_HEIGHT), MAIN_NAME);
// Syncs framerate with monitor; should be ~60f/s.
// This helps avoid frame tearing.
window.setVertical... |
<commit_before>#include "general.hpp"
#include "course.hpp"
#include "student.hpp"
using namespace std;
vector<Course> all_courses;
Student user;
void loadCourses(string filename) {
ifstream infile(filename.c_str());
string str; // read in the header line
getline(infile, str);
while (infile.peek() != -1){
Cours... |
<commit_before>/*
* Raging MIDI (https://github.com/waddlesplash/ragingmidi).
*
* Copyright (c) 2012 WaddleSplash & contributors (see AUTHORS.txt).
*
* 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... |
<commit_before>#include <lv.h>
using namespace std;
int main(int argc, char** argv)
{
// BLAS
var bt;
bt = 1.0f, 1.2f, 0.8f, -2.0f;
cout << bt << " sums to " << lv::sum(bt) << endl;
cout << bt << " asums to " << lv::asum(bt) << endl;
// Broadcasting scalars
var t1 = lv::irange(16.0f).vi... |
<commit_before>#include <algorithm>
#include "ChunkSet.h"
template <typename T>
auto ChunkSet<T>::getIter(const Int2 &point, const ChunkList &chunks)
{
const auto iter = std::find_if(this->chunks.begin(), this->chunks.end(),
[&point](const auto &pair)
{
return pair.first == point;
});
return iter;
}
templat... |
<commit_before><commit_msg>Outlined cpp file for Companionship robot [#61]<commit_after>#include "ros/ros.h"
#include <unistd.h>
#include <sstream>
#include "std_msgs/Empty.h"
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Point.h>
#include <tf/tf.h>
#include <queue>
#include... |
<commit_before>/*************************************************************************
*
* $RCSfile: targetstatecontrol.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2005-02-25 09:21:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/*************************************************
* Copyright © 2015, afr-consulting GmbH *
* *
* See the file COPYING for copying permissions. *
*************************************************/
#ifndef CXXUTILS_NONCOPYABLE_HXX
#define CXXUTIL... |
<commit_before>/*
Copyright (C) 2013,2014 Wei Dong <wdong@wdong.org>. All Rights Reserved.
*/
#ifndef KGRAPH_VALUE_TYPE
#define KGRAPH_VALUE_TYPE float
#endif
#include <sys/time.h>
#include <cctype>
#include <random>
#include <iomanip>
#include <type_traits>
#include <boost/timer/timer.hpp>
#include <boost/tr1/r... |
<commit_before>// Copyright (c) 2014, Salesforce.com, 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, ... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2016 musikcube team
//
// 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>// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-mandrake.com/
// http://www.mandrakesoft.com/
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Les... |
<commit_before>// $Id$
//
// Class to make emcal particles in AOD/ESD events.
//
// Author: S.Aiola
#include <TClonesArray.h>
#include "AliLog.h"
#include "AliVTrack.h"
#include "AliVCluster.h"
#include "AliEmcalParticle.h"
#include "AliEmcalParticleMaker.h"
ClassImp(AliEmcalParticleMaker)
//______________________... |
<commit_before>/* Copyright (C) 2005-2006 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be usefu... |
<commit_before>#include "../../include/stupid/Service.hpp"
#include "../../include/stupid/Client.hpp"
#include "../../include/stupid/internal/CommunicationThread.hpp"
#include <base/Prompt.hpp>
namespace cutehmi {
namespace stupid {
Service::Service(const QString & name, Client * client, QObject * parent):
services... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: datetime.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2007-06-27 22:09:05 $
*
* The Contents of this file are made ... |
<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/environment.h"
#include "base/memory/scoped_ptr.h"
#include "base/win/scoped_com_initializer.h"
#include "media/audio/au... |
<commit_before>#include <stdio.h>
#include <sstream>
#include <stdexcept>
#include <SDL_image.h>
#include <GL/gl.h>
#include "Texture.h"
namespace Common {
Texture::Texture(const SDLSurface& surf, unsigned int startrow, unsigned int height)
{
setupSDLSurface(surf.getSurface(), startrow, height);
}
Texture::Textur... |
<commit_before>#ifndef CPP_PCP_CLIENT_SRC_CONNECTOR_CONNECTION_H_
#define CPP_PCP_CLIENT_SRC_CONNECTOR_CONNECTION_H_
#include <cpp-pcp-client/connector/timings.hpp>
#include <cpp-pcp-client/connector/client_metadata.hpp>
#include <cpp-pcp-client/util/thread.hpp>
#include <cpp-pcp-client/export.h>
#include <string>
#i... |
<commit_before>
#include "film.h"
#include <numeric>
#include <iterator>
#include <algorithm>
using std::transform;
using std::back_inserter;
using std::copy;
using std::cout;
using std::ostream_iterator;
using std::accumulate;
Film::Film(uint w_, uint h_, ImageSampleFilter* f) : width(w_), height(h_), plate(w_ * h_)... |
<commit_before>/*$Id$
*
* This source file is a part of the Berlin Project.
* Copyright (C) 1999 Stefan Seefeld <stefan@berlin-consortium.org>
* http://www.berlin-consortium.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* Lic... |
<commit_before>#include "cmake.h"
#include "sourcefile.h"
#include <regex>
#include "singletons.h"
#include <iostream> //TODO: remove
using namespace std; //TODO: remove
CMake::CMake(const boost::filesystem::path &path) {
const auto find_cmake_project=[this](const boost::filesystem::path &cmake_path) {
for(auto... |
<commit_before>//
// scan.cpp
// See the file "LICENSE.md" for the full license governing this code.
//
#include "compile.h"
#if COMPILE_DMZ
#include "scan.h"
#include "expiry_categorize.h"
#include "expiry_seg.h"
#define SCAN_FOREVER 0 // useful for performance profiling
#define EXTRA_TIME_FOR_EXPIRY_IN_MICROSEC... |
<commit_before>// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Core/Flags.hpp>
#include <utility>
#include <Nazara/Core/Debug.hpp>
namespace Nz
{
/*!
* \ingroup core
* \cla... |
<commit_before>//
// Copyright 2012 Francisco Jerez
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify,... |
<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>/*
* Copyright 2014-2020 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief Aql, list of running queries
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache Licens... |
<commit_before><commit_msg>MSAA VSMs seem to now work on Qualcomm h/w<commit_after><|endoftext|> |
<commit_before>/*
* KDots
* Copyright (c) 2011-2012 Minh Ngo <ignotusp@fedoraproject.org>
*
* 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
... |
<commit_before>/*
Copyright (c) 2007, 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>/****************************************************************************
* File: toolChecker.cpp
* Author: Matthew Rollings
* Date: 19/06/2015
*
* Description : Root checking JNI NDK code
*
****************************************************************************/
/**********... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) 2010 Kitware 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>/*
Copyright (c) 2015-present Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>#include "RDom.h"
#include "Util.h"
#include "IROperator.h"
#include "IRPrinter.h"
namespace Halide {
using namespace Internal;
using std::string;
using std::vector;
RVar::operator Expr() const {
if (!min().defined() || !extent().defined()) {
user_error << "Use of undefined RDom dimension... |
<commit_before>#include <iostream>
#include <Poco/Logger.h>
#include <Poco/Message.h>
#include <Poco/File.h>
#include <Poco/Util/Option.h>
#include <Poco/Util/OptionSet.h>
#include <Poco/Util/HelpFormatter.h>
#include <Poco/Util/ServerApplication.h>
#include "server/MongooseServer.h"
#include "di/DependencyInjector.h"... |
<commit_before>/*
Copyright (c) 2008 Kevin Krammer <kevin.krammer@gmx.at>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any ... |
<commit_before>///////////////////////////////////////////////////////////////////
// //
// AddCaloHFEpp //
// Author: T. Suzuki Univ. of Tsukuba //
// ... |
<commit_before>// Copyright (c) 2015, Daniel Pfeifer <daniel@pfeifer-mail.de>
//
// 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 SOFTWARE I... |
<commit_before>#include <gflags/gflags.h>
#include <rans.hpp>
#include <iostream>
#include <fstream>
#include <string>
DEFINE_bool(dump_dfa, false, "dump DFA as dot language.");
DEFINE_bool(dump_matrix, false, "dump Matrix.");
DEFINE_bool(dump_exmatrix, false, "dump Extended Matrix.");
DEFINE_bool(dump_scc, false, "d... |
<commit_before>/*
* httpstream.cpp - HTTP stream parser
* Copyright (C) 2013 Il'inykh Sergey (rion)
*
* 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 of the Li... |
<commit_before>// Copyright © 2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner ... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef CLUSTERING_ADMINISTRATION_ISSUES_LOCAL_HPP_
#define CLUSTERING_ADMINISTRATION_ISSUES_LOCAL_HPP_
#include <string>
#include <vector>
#include "clustering/administration/issues/issue.hpp"
#include "concurrency/watchable.hpp"
#include "contain... |
<commit_before>/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: RooFitTools
* File: $Id: RooGaussian.cc,v 1.11 2001/10/03 16:17:56 verkerke Exp $
* Authors:
* DK, David Kirkby, Stanford University, kirkby@hep.stanf... |
<commit_before>/*
* Copyright 2008 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that th... |
<commit_before>/******************************************************************************
* Copyright 2018 The Apollo 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 ... |
<commit_before>//===- ConstantMerge.cpp - Merge duplicate global constants ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SalGtkFilePicker.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: ihi $ $Date: 2007-11-19 16:25:22 $
*
* The Contents of this file... |
<commit_before>#pragma once
#include "CSingleton.hpp"
#include "types.hpp"
#include <string>
#include <atomic>
#include <json.hpp>
using json = nlohmann::json;
class Role
{
public:
Role(RoleId_t pawn_id, json &data);
~Role() = default;
private:
const RoleId_t m_PawnId;
Snowflake_t m_Id;
std::string m_Nam... |
<commit_before>#ifndef __CALCULATE_WRAPPER_HPP__
#define __CALCULATE_WRAPPER_HPP__
#include <memory>
#include <type_traits>
#include <tuple>
#include <vector>
#include <utility>
#include "exception.hpp"
namespace calculate {
namespace detail {
template<typename Function, typename... Args>
struct NoExcept {
st... |
<commit_before>/*
Copyright (C) 2012 Kolibre
This file is part of kolibre-narrator.
Kolibre-narrator 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 of the License, or
(at your option) ... |
<commit_before>#pragma once
#include <type_traits>
#include <iterator>
#include <utility>
namespace helene
{
namespace detail
{
template <class Iterator, class IteratorTag>
constexpr bool is_iterator_of_category_v =
std::is_same<typename std::iterator_traits<Iterator>::iterator_category,
Iterato... |
<commit_before>/*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/skottie/src/effects/Effects.h"
#include "include/effects/SkRuntimeEffect.h"
#include "modules/skottie/src/Adapter.h"
#include "modules/skotti... |
<commit_before>/*
Copyright 2014 Rogier van Dalen.
This file is part of Rogier van Dalen's Mathematical tools library for C++.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the... |
<commit_before>//===- CloneModule.cpp - Clone an entire module ---------------------------===//
//
// This file implements the CloneModule interface which makes a copy of an
// entire module.
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Utils/Cloning.h"
... |
<commit_before>// Copyright 2019 Google LLC.
#include "include/core/SkTypeface.h"
#include "modules/skparagraph/include/FontCollection.h"
#include "modules/skparagraph/include/Paragraph.h"
#include "modules/skparagraph/src/ParagraphImpl.h"
namespace skia {
namespace textlayout {
bool FontCollection::FamilyKey::operat... |
<commit_before>//CPUĸ
#if !defined (_WIN32) && !defined (_WIN64)
#define LINUX
#include <sysconf.h>
#else
#define WINDOWS
#include <windows.h>
#endif
unsigned core_count()
{
unsigned count = 1; // һ
#if defined (LINUX)
count = sysconf(_SC_NPROCESSORS_CONF);
#elif defined (WINDOWS)
SYSTEM_INFO si;
GetSystemI... |
<commit_before>#include "File.h"
#include "gtest/gtest.h"
#include <random>
using namespace joedb;
static const uint64_t joedb_magic = 0x0000620165646A6FULL;
class File_Test: public::testing::Test
{
protected:
virtual void SetUp()
{
File file("existing.tmp", Open_Mode::create_new);
file.write<uint64_t>(j... |
<commit_before>/*=============================================================================
Copyright (c) 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 Evan Drumwright
* This library is distributed under the terms of the Apache V2.0
* License (obtainable from http://www.apache.org/licenses/LICENSE-2.0).
****************************************************... |
<commit_before>//===- LowerSwitch.cpp - Eliminate Switch instructions --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "..\include\SceneNode.h"
namespace FGF
{
SceneNode::SceneNode(SceneNode* parent)
{
this->parent = NULL;
setParent(parent);
rot = 0.0f;
dx = dy = 0.0f;
sx = sy = 1.0f;
}
SceneNode::~SceneNode(void)
{
for(std::list<SceneNode*>::iterator i = child.begin(); i != child.end(); i++)
... |
<commit_before>#include <Salamandre-stats/stats.hpp>
#include <Salamandre-daemon/Daemon.hpp>
#include <Salamandre-daemon/ServerBroadcast.hpp>
#include <Salamandre-daemon/define.hpp>
#include <utils/log.hpp>
#include <sys/file.h>
#include <unistd.h>
#include <iostream>
#include <csignal>
#include <tclap/CmdLine.h>
n... |
<commit_before>
#include <gtest/gtest.h>
#include <httplib.h>
#include <future>
#include <iostream>
#ifdef _WIN32
#include <process.h>
#define msleep(n) ::Sleep(n)
#else
#define msleep(n) ::usleep(n * 1000)
#endif
using namespace std;
using namespace httplib;
const char* HOST = "localhost";
const int PORT = 1234;
... |
<commit_before>#include <time.h>
#include <string>
#include <sstream>
#include "Foundation.h"
#include "AlembicLicensing.h"
#include "Alembic.h"
using namespace std;
int gLicenseToken = EC_LICENSE_RESULT_NO_LICENSE;
#if defined( EXOCORTEX_RLM_ONLY )
#include "RlmSingletonDeclarations.h"
#endif // EXOCORTEX_RLM_ONLY... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* https://lxqt.org
*
* Copyright: 2021 LXQt team
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License a... |
<commit_before>#include "EndScreen.hpp"
#include "../Application.hpp"
#include "Room.hpp"
#include "Player.hpp"
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <SFML/Graphics/Shader.hpp>
#include <SFML/Graphics/Text.hpp>
using namespace Game;
sf::Shader grayTone;
EndS... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2011. All rights reserved
*/
#ifndef _Stroika_Foundation_Math_Angle_inl_
#define _Stroika_Foundation_Math_Angle_inl_ 1
/*
********************************************************************************
***************************** Implement... |
<commit_before>//
// Created by Esha Uboweja on 12/5/16.
//
#include "BinaryLayer.h"
#include "TestBinaryConvolution.h"
#define DEBUG 1
using namespace bd;
using namespace bconv;
void TestBinaryConvolution::printTestArma2(std::string testName, std::string desc, arma::mat input) {
#ifdef DEBUG
std::cout << "[Tes... |
<commit_before>
/*
DISCLAIMER
This software can be used freely under GNU/LGPL license.
File : Session.h
Author : Mustafa K. GILOR
Purpose : Session class for the libtcp server.
All individual session info are stored in this class.
It is automatically destroyed when last shared_ptr instance is released.
*/... |
<commit_before>/***************************************************************************
* Copyright (c) 2007 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>#include <osg/Geometry>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
static void add_user_value_func_AttributeBinding(osgDB::IntLookup* lookup)
{
lookup->add("BIND_OFF",0); // ADD_USER_VALUE("ADD_USER_VALUE( BIND_OFF );
lookup->add("BI... |
<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 "config.h"
#include "webkit/glue/image_decoder.h"
#pragma warning(push, 0)
#include "ImageSourceSkia.h"
#include "IntSiz... |
<commit_before>/*=========================================================================
*
* Copyright NumFOCUS
*
* 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:... |
<commit_before>// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
#include <vector>
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR... |
<commit_before>#pragma once
#include <sal/config.hpp>
#include <sal/logger/fwd.hpp>
#include <sal/logger/event.hpp>
#include <sal/logger/sink.hpp>
#include <sal/assert.hpp>
#include <sal/file.hpp>
#include <sal/spinlock.hpp>
#include <mutex>
#include <string>
__sal_begin
namespace logger { namespace __bits {
tem... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageLuminance.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to C. Charles Law who developed this class.
Copyright (c) 1993-1995 Ken Mart... |
<commit_before>#pragma once
#include <gcl/mp/concepts.hpp>
namespace gcl::mp::value_traits
{
template <auto... values>
requires(std::equality_comparable_with<
decltype(std::get<0>(std::tuple{values...})),
decltype(values)>&&...) constexpr static auto equal_v = []() consteval
{
... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2010 Siddharth Srivastava <akssps011@gmail.com>
// Copyright 2010 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.