text stringlengths 54 60.6k |
|---|
<commit_before>#include <GLFW/glfw3.h>
#include <iostream>
#include <map>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "gl/Primitives.hpp"
#include "gl/Camera.hpp"
#include "gl/Element.hpp"
#include <GL/OOGL.hpp>
using namespace std;
void windowRefresh(GLFW... |
<commit_before>#include "basicfilelauncher.h"
#include "fileinfojob.h"
#include "mountoperation.h"
#include <gio/gdesktopappinfo.h>
#include <glib/gi18n.h>
#include <unordered_map>
#include <string>
#include <QObject>
#include <QEventLoop>
#include <QDebug>
#include "legacy/fm-app-info.h"
namespace Fm {
BasicFile... |
<commit_before>/**
* \file RMF/Category.h
* \brief Handle read/write of Model data from/to files.
*
* Copyright 2007-2013 IMP Inventors. All rights reserved.
*
*/
#include "RMF/decorator/alternatives.h"
#include "RMF/decorator/physics.h"
#include <numeric>
RMF_ENABLE_WARNINGS
namespace RMF {
namespace decor... |
<commit_before>/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
<commit_before>
/* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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://w... |
<commit_before>//Author: Stefan Toman
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <queue>
using namespace std;
struct interval {
int id;
long long end;
interval(int id, long long end) : id(id), end(end) {};
};
bool operator<(const interval& a, const interval& b) {
return a.end != b.en... |
<commit_before>#include "Obstacle.h"
Obstacle::Obstacle(Scene *s, double x, double y, double r): object_radius(r)
{
this->scene = s;
this->object_position = glm::vec2(x, y);
}
Obstacle::~Obstacle(void)
{
}
void Obstacle::Update(double delta_time)
{
}
void Obstacle::Draw()
{
glEnable(GL_LINE_SMOOTH);
glHint(GL... |
<commit_before>// Copyright 2020 Tangent Animation
//
// 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 appl... |
<commit_before>/*
* LogConsole.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "LogConsole.h"
using namespace megamol;
using namespace megamol::gui;
int megamol::gui::LogBuffer::sync(void) {
try {
auto message_str = this->str(... |
<commit_before>#include "proctor/basic_proposer.h"
namespace pcl
{
namespace proctor
{
void
BasicProposer::getProposed(int max_num, Entry &query, std::vector<std::string> &input, std::vector<std::string> &output)
{
std::vector<std::string>::iterator database_it;
vector<Candidate> ballo... |
<commit_before>#include "HeatFlowGrid.hpp"
using namespace std;
HeatFlowGrid::HeatFlowGrid(int sizex, int sizey, double lenghtx) {
if ((sizex * sizey == 0) || (lenghtx == 0)) {
//TODO: EXIT HERE AND ERROR
}
_sizex = abs(sizex);
_sizey = abs(sizey);
_step = lenghtx / (double) _sizex;
_time = 0.;
_cel... |
<commit_before>/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
#include "stdafx.h"
// Test the function methods
#include "Connector/Functions.h"
LOGGING (com.opengamma.language.connector.FunctionsTest);
#define TEST_LANGUAGE ... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<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 appli... |
<commit_before>/***********************************************************************************************************************
* Copyright (C) 2017 Andrew Zonenberg and contributors *
* ... |
<commit_before>/*
MusicXML Library
Copyright (C) Grame 2006-2013
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/.
Grame Research Laboratory, 11, cours de Verdun G... |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\file rdoparser_rdo.cpp
\authors
\authors ([email protected])
\date
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
#include "simulator/compiler/parser/pch.h"
// -----------... |
<commit_before>// Time: O(nlogn)
// Space: O(n)
class Solution {
public:
bool containsNearbyAlmostDuplicate(vector<int>& nums, int k, int t) {
deque<int64_t> window;
multiset<int64_t> bst;
for (int i = 0; i < nums.size(); ++i) {
// Only keep at most k elements.
if (... |
<commit_before>// Time: O(m * n * (logm + logn))
// Space: O(m * n)
// BFS with priority queue (min heap), refactored version.
class Solution {
public:
struct Cell {
int i;
int j;
int height;
};
struct Compare {
bool operator()(const Cell& a, const Cell& b) {
r... |
<commit_before>#include <iostream>
using namespace std;
int sum (int num){
if (num==0)
return 0;
return (sum(num-1)+(num));
}
int main(){
int num;
cout << "Enter a number" << endl;
cin >> num;
cout << sum(num) << endl;
}
<commit_msg>Update S5_Sum.cpp<commit_after>//
// Program Name - S5_Sum.cpp
// ... |
<commit_before>/*
* This file is part of telepathy-accounts-kcm
*
* Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
*
* 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... |
<commit_before><commit_msg>Gtk: Fix file selector moving up one dir each time you use it.<commit_after><|endoftext|> |
<commit_before><commit_msg>Set infobar height on a different widget.<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <vector>
#include <SFML/Graphics.hpp>
#include <easylogging++.h>
#include <Controller.h>
INITIALIZE_EASYLOGGINGPP
using namespace std;
using namespace con;
void setStack(rlim_t stackSize) {
struct rlimit rl;
if (getrlimit(RLIMIT_STACK, &rl) == 0) {
if (rl.r... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Lukasz Janyst <[email protected]>
//------------------------------------------------------------------------------
#include <iostream>
#include <vecto... |
<commit_before>// @(#)root/reflex:$Id: Class.cxx 20883 2007-11-19 11:52:08Z rdm $
// Include files----------------------------------------------------------------
#include "Reflex/Reflex.h"
#include "Reflex/PluginService.h"
#include "Reflex/SharedLibrary.h"
#include "../dir_manip.h"
#include <cstdlib>
#include <set>
... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include "App.h"
#include <Directory.h>
#include <NodeMonitor.h>
App::App(void)
: BApplication("application/x-vnd.lh-MyDropboxClient")
{
//start watching ~/Dropbox folder
BDirectory dir("/boot/home/Dropbox");
node_ref nref;
status_t err;
if(dir.InitChe... |
<commit_before>#include "ArraySort.h"
namespace NP_ARRAYSORT
{
//-------------------------------------------------------------------------
// function: strangeSort(Comparable ** array, int fromIndex, int toIndex)
// description: Uses quicksort if it's more than 4 items and insertion sort
// otherwise.
/... |
<commit_before>#include "auth/http-auth.h"
#include <utility>
HttpAuth::HttpAuth(QString type, QString url, QList<AuthField*> fields, QString cookie, QString redirectUrl, QString csrfUrl, QStringList csrfFields)
: FieldAuth(std::move(type), std::move(fields)), m_url(std::move(url)), m_cookie(std::move(cookie)), m_re... |
<commit_before>#include "response.h"
#include "config.h"
#include "string_stream.h"
const std::string rs::httpserver::Response::keepAliveHeaderValue_ = std::string("timeout=") + boost::lexical_cast<std::string>(Config::KeepAliveTimeoutTotal);
void rs::httpserver::Response::Send(const std::string& data) {
StringSt... |
<commit_before>/***************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information ([email protected])
**
**
** Non-Open Source Usage
**
** Licensees may use thi... |
<commit_before>/************************************************************************************
* Copyright (C) 2014-2015 by Savoir-Faire Linux *
* Author : Emmanuel Lepage Vallee <[email protected]> *
* ... |
<commit_before>#include "MeshLoader.hpp"
#include "File.hpp"
#include "Mesh.hpp"
bool MeshLoader::LoadMesh(const char* filePath, Mesh& mesh)
{
using uint = unsigned int;
using ushort = unsigned short;
Buffer<unsigned char> file = File::Read(filePath);
size_t fileSize = file.Count();
const uint headerSize = 16;... |
<commit_before>// MS WARNINGS MACRO
#define _SCL_SECURE_NO_WARNINGS
#include <boost/network/protocol/http/server.hpp>
#include <iostream>
#include <string>
#include <fstream>
#include "server.hpp"
#include "tools.hpp"
#include "problem.hpp"
#include "answer.hpp"
namespace http = boost::network::http;
/*<< Defines t... |
<commit_before>#include "changecreditsdialog.h"
#include "ui_changecreditsdialog.h"
#include <QMessageBox>
#include "src/structures.hpp"
#include "src/uvmanager.hpp"
#include "src/exceptions.hpp"
#define CUM CategorieUVManager::getInstance()
#define UVM UvManager::getInstance()
//! Ouverture du Pop up de changement... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief スケーリング(拡大、縮小)
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*... |
<commit_before>#pragma once
#include <entwine/util/pool.hpp>
#include <greyhound/defs.hpp>
#include <greyhound/manager.hpp>
namespace greyhound
{
template<typename S>
class Router
{
using Req = typename S::Request;
using Res = typename S::Response;
using ReqPtr = std::shared_ptr<typename S::Request>;
... |
<commit_before>/*************************************************************************
*
* $RCSfile: pdfexport.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: sj $ $Date: 2002-09-10 15:28:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before><commit_msg>Added check for failed triangulation.<commit_after><|endoftext|> |
<commit_before><commit_msg>`Scene`: `dynamics_world` is `std::unique_ptr<btDiscreteDynamicsWorld>`.<commit_after><|endoftext|> |
<commit_before>#include <Kernel/Scheduler.hh>
#include <Kernel/Thread.hh>
#include <X86/ThreadContext.hh>
#include <Parameters.hh>
#include <Debug.hh>
#include <spinlock.h>
#include <list>
#include <cstdio>
using namespace Kernel;
namespace
{
spinlock_softirq_t threadLock = SPINLOCK_SOFTIRQ_STATIC_INITIALIZER;
... |
<commit_before>#include <cstring>
#include <cctype>
#include "countTokens.h"
#include "misc.h"
#include "processTokens.h"
#include "yy.h"
#ifndef MODULE_FINDER
#include "chapel.tab.h"
#else
#include "modulefinder.tab.h"
#define countNewline()
#define countSingleLineComment(x)
#define countMultiLineComment(x)
#define co... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one ... |
<commit_before>#include "generated.hpp"
#include "impl_test_interface.hpp"
#include "checkpoint.hpp"
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/test/unit_test.hpp>
#include <silicium/sink/iterator_sink.hpp>
#include <silicium/source/memory_source.hpp>
BOOST_AUTO_TEST_CASE(async_cl... |
<commit_before>#include <apf.h>
#include <gmi_mesh.h>
#include <gmi_sim.h>
#include <apfMDS.h>
#include <apfMesh2.h>
#include <apfNumbering.h>
#include <PCU.h>
#include <SimUtil.h>
#include <cstdlib>
int main(int argc, char** argv)
{
MPI_Init(&argc,&argv);
PCU_Comm_Init();
SimUtil_start();
Sim_readLicenseFile(... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 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... |
<commit_before>#include <gtest/gtest.h>
#include "simple_graph/list_graph.hpp"
#include "simple_graph/astar.hpp"
namespace {
using simple_graph::vertex_index_t;
class ListGraphUndirectedTest : public ::testing::Test {
protected:
simple_graph::ListGraph<false, std::pair<float, float>, float> g;
};
static float d... |
<commit_before>#define BOOST_TEST_MODULE TestCuFFT
#include "libraries/cufft/cufft_helper.hpp"
#include <boost/test/included/unit_test.hpp> // Single-header usage variant
#include <iostream>
using namespace gearshifft::CuFFT;
BOOST_AUTO_TEST_CASE( Device )
{
int nr=0;
try {
CHECK_CUDA( cudaGetDeviceCount(&n... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
/**
* @file InventoryAsset.cpp
* @brief A class representing asset in inventory.
*/
#include "
#include "StableHeaders.h"
#include "InventoryAsset.h"
#include "InventoryFolder.h"
namespace Inventory
{
I... |
<commit_before>#include "libtorrent/session.hpp"
#include "libtorrent/session_settings.hpp"
#include "libtorrent/hasher.hpp"
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/filesystem/operations.hpp>
#include "test.hpp"
#include "setup_transfer.hpp"
using boost::filesystem::remove_all;
v... |
<commit_before>// thiefControl.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
BZ_GET_PLUGIN_VERSION
class ThiefControl : public bz_EventHandler
{
public:
ThiefControl() {} ;
virtual ~ThiefControl() {};
virtual void process( bz_EventData *eventData );
};
ThiefControl thiefHandle... |
<commit_before>// mapnik
#include "mapnik3x_compatibility.hpp"
#include <mapnik/map.hpp>
#include <mapnik/layer.hpp>
#include <mapnik/image_util.hpp>
#include <mapnik/graphics.hpp>
#include <mapnik/agg_renderer.hpp>
#include <mapnik/save_map.hpp>
#include <mapnik/map.hpp>
#include <mapnik/feature.hpp>
#include <mapnik/... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>// Copyright (c) 2012, Susumu Yata
// 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 lis... |
<commit_before>// This file is triangularView of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <[email protected]>
//
// 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... |
<commit_before>/*
* Copyright (C) 2013-2016 Alexander Saprykin <[email protected]>
*
* 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) ... |
<commit_before>/*
* Renzoku - Re-build, re-test, and re-run a program whenever the code changes
* Copyright (C) 2015 Colton Wolkins
*
* 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... |
<commit_before>#include "ClientDataModel.hpp"
#include <graphene/app/api.hpp>
#include <graphene/chain/protocol/protocol.hpp>
#include <fc/rpc/websocket_api.hpp>
using namespace graphene::app;
ChainDataModel::ChainDataModel( fc::thread& t, QObject* parent )
:QObject(parent),m_thread(&t){}
Asset* ChainDataModel::g... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkSampleFunction.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighte... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkVolumeProperty.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighte... |
<commit_before>//
// AY-3-8910.cpp
// Clock Signal
//
// Created by Thomas Harte on 14/10/2016.
// Copyright © 2016 Thomas Harte. All rights reserved.
//
#include "AY38910.hpp"
using namespace GI::AY38910;
AY38910::AY38910() :
selected_register_(0),
tone_counters_{0, 0, 0}, tone_periods_{0, 0, 0}, tone_outpu... |
<commit_before>/*
open source routing machine
Copyright (C) Dennis Luxen, 2010
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
any later version.
T... |
<commit_before>#include "Resources.h"
#include "Engine.h"
#include "Common.h"
#include <cstdio>
// Memory leak debug
#if defined(_MSC_VER) && defined(_WIN32) && defined(_DEBUG)
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#ifndef DBG_NEW
#define DBG_NEW new ( _NORMAL_BLOCK... |
<commit_before>#include "test.h"
#include "test-stats.h"
#include "grok/context.h"
#include "input/input-stream.h"
#include "input/readline.h"
#include "lexer/lexer.h"
#include "object/jsbasicobject.h"
#include "object/argument.h"
#include "object/function.h"
#include "parser/parser.h"
#include "vm/codegen.h"
#include... |
<commit_before>/**
* @file radon.cpp
*
*/
#include "radon.h"
#include "logger_factory.h"
#include "plugin_factory.h"
#include "util.h"
#include <sstream>
#include <thread>
using namespace std;
using namespace himan::plugin;
const int MAX_WORKERS = 32;
static once_flag oflag;
radon::radon() : itsInit(false), itsR... |
<commit_before>//put global includes in 'BasicIncludes'
// hi
#include "BasicIncludes.h"
#include "rand.h"
#include "Camera.h"
#include "Input.h"
#include "Object.h"
//Function List
void Update(double);
void Draw();
void CameraInput();
void MouseInput();
void InitializeWindow();
void Terminate();
void Run();
//Vari... |
<commit_before>#include <stdio.h>
#include <fstream>
#include "StringLibrary.h"
#include <stdlib.h>
#include <string>
#include "LinkerEngine.h"
#include "ModuleEngine.h"
#include "ObjectCode.h"
#include "FileLibrary.h"
using std::cout;
using std::cin;
using std::advance;
using std::string;
using std::ifstream;
int m... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon ([email protected])
Version 1.2.0, packaged on September 2009.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can... |
<commit_before>// Copyright (c) 2002-2010, Boyce Griffith
// 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>#include "stdafx.h"
void* NULLC::defaultAlloc(int size)
{
return ::new(std::nothrow) char[size];
}
void NULLC::defaultDealloc(void* ptr)
{
::delete[] (char*)ptr;
}
void* (*NULLC::alloc)(int) = NULLC::defaultAlloc;
void (*NULLC::dealloc)(void*) = NULLC::defaultDealloc;
void* NULLC::alig... |
<commit_before>/* Copyright (C) 2000 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; either version 2 of the License, or
(at your option) any later version.
This program is d... |
<commit_before>/*
* File: Wheel.hpp
* Author: Barath Kannan
*
* Created on 13 June 2016, 12:50 AM
*/
#ifndef WHEEL_HPP
#define WHEEL_HPP
#include <atomic>
namespace BSignals{ namespace details{
//T must be default constructable
template <class T, uint32_t N>
class Wheel{
public:
T& getSpoke(){
... |
<commit_before>/**
* @brief A high-performance and multi-threaded trie implementation based on Hdb.
* Incremental update is also supported.
* See TR "A high-performance and multi-threaded trie based on HdbTrie" for details.
* @author Wei Cao
* @date 2009-12-1
*/
#ifndef _MT_TRIE_H_
#define _MT_TRIE... |
<commit_before>/*! \file tuple.hpp
\brief Support for types found in \<tuple\>
\ingroup STLSupport */
/*
Copyright (c) 2014, Randolph Voorhies, Shane Grant
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following con... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
Copyright (c) 2008, 2009 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld
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 w... |
<commit_before>#ifndef LIBPORT_REFCOUNTED_HH
# define LIBPORT_REFCOUNTED_HH
namespace libport
{
class RefCounted
{
public:
RefCounted():count_(0) {}
void counter_inc() {++count_;}
bool counter_dec() {return !--count_;}
private:
int count_;
};
}
#endif
<commit_msg>Enable libport::refcounte... |
<commit_before>/*
Copyright (c) 2006, 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><?hh
abstract class BaseStore {
protected $class;
protected $db;
protected static $instance;
public function __construct(string $collection = null, string $class = null) {
if (defined('static::COLLECTION') && defined('static::MODEL')) {
$collection = static::COLLECTION;
$class =... |
<commit_before>#include "../include/BlueFile.h"
//Prpare pour la lecture
BlueFile::BlueFile(string nom_fichier) : nom_fichier(nom_fichier)
{
bits.reserve(BLOCK_SIZE);
determineTaille();
fichier_lecture = NULL;
fichier_ecriture = NULL;
cout << "__________/_\\__________" << endl;
cout << "CRYPTAGE/DECRYPTAGE DE... |
<commit_before>#ifndef NN_CONTAINER_HPP
#define NN_CONTAINER_HPP
#include "module.hpp"
namespace nnlib
{
/// The abtract base class for neural network modules that are made up of sub-modules.
template <typename T = double>
class Container : public Module<T>
{
public:
template <typename ... Ms>
Container(Ms... comp... |
<commit_before>#pragma once
#include <utility>
#include <type_traits>
#include <string>
#include "any.hpp"
#include <type_list.hpp>
#include <function_deduction.hpp>
#include <member_variable_deduction.hpp>
#include <void_t.hpp>
namespace shadow
{
// free function signature
typedef any (*free_function_binding_signa... |
<commit_before>#ifndef TUDOCOMP_VIEW_H
#define TUDOCOMP_VIEW_H
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <iomanip>
namespace tudocomp {
/// A view into a sli... |
<commit_before>#ifndef INTEGER_RANGE_HPP
#define INTEGER_RANGE_HPP
#include <boost/assert.hpp>
#include <type_traits>
#include <cstdint>
namespace osrm
{
namespace util
{
// Warning: do not try to replace this with Boost's irange, as it is broken on Boost 1.55:
// auto r = boost::irange<unsigned int>(0, 15);
/... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before>/**
* @file Database.cpp
* @ingroup SQLiteCpp
* @brief Management of a SQLite Database Connection.
*
* Copyright (c) 2012-2016 Sebastien Rombauts ([email protected])
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/l... |
<commit_before>#pragma once
#include <experimental/optional>
#include "keys.hh"
#include "dht/i_partitioner.hh"
#include "enum_set.hh"
namespace query {
// A range which can have inclusive, exclusive or open-ended bounds on each end.
template<typename T>
class range {
template <typename U>
using optional = s... |
<commit_before>/*
Copyright (c) 2013, Taiga Nomi
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list... |
<commit_before>// Copyright (c) Steinwurf ApS 2016.
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#include <petro/parser.hpp>
#include <petro/box/all.hpp>
#include <fstream>
#include <sstream>
#include <string>
#include <memory>
uint32_t read_sample_size(std... |
<commit_before>#ifndef GNR_DISPATCH_HPP
# define GNR_DISPATCH_HPP
# pragma once
#include <type_traits>
#include <utility>
#include "invoke.hpp"
namespace gnr
{
namespace detail::dispatch
{
template <std::size_t I, typename ...T>
using at_t = std::tuple_element_t<I, std::tuple<T...>>;
template <typename R>
using ... |
<commit_before>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <mapper/mapper.h>
#include "pwm_synth/pwm.h"
int done = 0;
void ctrlc(int)
{
done = 1;
}
void handler_freq(mapper_signal sig, int instance_id, const void *value,
int count, mapper_timetag_t *timetag)
{
if ... |
<commit_before>//=======================================================================
// Copyright (c) 2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>/* Copyright 2017 QReal Research Group
*
* 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 applica... |
<commit_before>// -*- mode:C++; tab-width:3; c-basic-offset:4; indent-tabs-mode:nil -*-
//Copyright: Universidad Carlos III de Madrid (C) 2016
//Authors: jgvictores, raulfdzbis, smorante
#include "CgdaIronFitnessFunction.hpp"
#define NTPOINTS 17
#define NFEATURES 6
#define NSQUARES 16
namespace teo
{
/************... |
<commit_before>#include <Python.h>
//For Travis
#include <moduleobject.h>const_cast<size_t>
#include "reformulation.h"
using namespace std;
static PyObject *
reformulation_init(PyObject *self, PyObject *args)
{
(void)self;
if (!PyArg_ParseTuple(args, ""))
return NULL;
if(init())
return Py_True;
e... |
<commit_before>//===--- Backend.cpp - Interface to LLVM backend technologies -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright (C) 1999 Lars Knoll ([email protected])
* (C) 2004-2005 Allan Sandfeld Jensen ([email protected])
* Copyright (C) 2006, 2007 Nicholas Shanks ([email protected])
* Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
* Copyright (C... |
<commit_before>//===- PPC64.cpp ----------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/* FREEVERB - a reverberator
This reverb instrument is based on Freeverb, by Jezar
(http://www.dreampoint.co.uk/~jzracc/freeverb.htm).
p0 = output start time
p1 = input start time
p2 = input duration
p3 = amplitude multiplier
p4 = room size (0-1.07143 ... don't ask)
p5 = p... |
<commit_before>// Copyright 2014 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 "platform/graphics/StaticBitmapImage.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/gra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.