text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
#include <map>
#include <unordered_map>
#include <chrono>
#include <cmath>
#include <glm/vec3.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "helper.hxx"
namespace wonder_rabbit_project
{
namespace wonderland
{
namespace renderer
{
... |
<commit_before>#include "nkit/dynamic.h"
#include "nkit/logger_brief.h"
int main(void)
{
using namespace nkit;
Dynamic i0(0);
Dynamic i2(2);
Dynamic i6(-6);
CINFO(i2); // prints: 2
CINFO(i6); // prints: -6
CINFO(i6 / i2); // prints: -3
CINFO(i6 * i2); // prints: -12
Dynamic i3 = i6 / i2;
CINFO(i... |
<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: Jan Grewe <jan.gre... |
<commit_before>// Copyright Hugh Perkins 2016
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agr... |
<commit_before>//===--------------------------------------------------------------------------------*- C++ -*-===//
// _ _
// | | | |
// __ _| |_ ___| | __ _ _ __ __ _
// / _` | __/ __| |/ _` | '_ \ / _` |
// ... |
<commit_before>/******************************************************************************
* Copyright (c) 2014, Howard Butler (howard@hobu.co)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are m... |
<commit_before>// symbiosis: A hacky and lightweight compiler framework
//
#include "symbiosis.hpp"
#include <sys/stat.h>
#include <iostream>
#include <vector>
#include "cpu_defines.hpp"
using namespace std;
namespace symbiosis {
void dump(uchar* start, size_t s) {
for (size_t i = 0; i < s; i++) {
pri... |
<commit_before>/*****************************************************************************\
* ANALYSIS PERFORMANCE TOOLS *
* libparaver-api *
* API Library for libparaver-kernel ... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2014 Tavendo 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 License at
//... |
<commit_before>// Copyright 2017 The SwiftShader 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
//
// Un... |
<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 <catch2/catch.hpp>
#include <test_utils.hpp>
#include <libslic3r/SLA/EigenMesh3D.hpp>
#include <libslic3r/SLA/Hollowing.hpp>
#include "sla_test_utils.hpp"
using namespace Slic3r;
// Create a simple scene with a 20mm cube and a big hole in the front wall
// with 5mm radius. Then shoot rays f... |
<commit_before>#include <mart-netlib/port_layer.hpp>
#include <catch2/catch.hpp>
namespace pl = mart::nw::socks::port_layer;
namespace socks = mart::nw::socks;
// call ech function at least once to ensure the implementation is there
TEST_CASE( "net_port-layer_check_function_implementation_exists" )
{
[[maybe_unu... |
<commit_before>#include <cstdint>
#include <algorithm>
#include "Schema.hpp"
void newOrder (int32_t w_id, int32_t d_id, int32_t c_id, int32_t items, int32_t supware[15], int32_t itemid[15], int32_t qty[15], Timestamp datetime) {
// select w_tax from warehouse w where w.w_id=w_id;
auto warehouse_iter = std::find_if... |
<commit_before>// Copyright 2019 The TCMalloc Authors
//
// 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 applic... |
<commit_before>/**
* @file
* @author Alexander Sherikov
* @brief Simulate control loop, which is shorter than preview window iteration.
*/
#include <cstring> //strcmp
#include "tests_common.h"
///@addtogroup gTEST
///@{
int main(int argc, char **argv)
{
//---------------------------------------------------... |
<commit_before>#include "utest.h"
#include "tensor.h"
#include "io/istream.h"
#include "io/ibstream.h"
#include "io/obstream.h"
#include "math/random.h"
#include "math/epsilon.h"
#include "io/istream_mem.h"
#include "io/istream_std.h"
#include "tensor/numeric.h"
#include <cstdio>
#include <fstream>
using namespace nan... |
<commit_before>/*
* Logger.cpp
*
* Created on: Oct 9, 2012
* Author: Barber
*/
#include "../src/Helper/Logger.hpp"
#include <iostream>
void Log(LogTag tag, const char* title, const char* message)
{
// Doing nothing here on purpose
}
<commit_msg>Implemented a test logger.<commit_after>/*
* Logger.cpp
... |
<commit_before>#include "catch.hpp"
#include "Graphics/Engine.h"
#include "Graphics/Sprite.h"
#include "Platform/MemoryMappedFile.h"
#include "Platform/PathUtils.h"
#include "TestFixture.h"
using namespace CR;
using namespace CR::Graphics;
using namespace std;
TEST_CASE_METHOD(TestFixture, "sprites_basic", "") {
a... |
<commit_before>#ifndef ERROR_HPP
#define ERROR_HPP
#include <stdexcept>
#include <string>
#include <sstream>
#include <map>
#include "util.hpp"
#define GET_ERR_METADATA __FILE__, __PRETTY_FUNCTION__, __LINE__
#define ERR_METADATA_TYPES(arg1, arg2, arg3) std::string arg1, std::string arg2, int arg3
#define METADATA_P... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include <algorithm>
#include "ep_engine.h"
#include "tapconnmap.hh"
#include "tapconnection.hh"
void TapConnMap::disconnect(const void *cookie, int tapKeepAlive) {
LockHolder lh(notifySync);
st... |
<commit_before><commit_msg>coverity#704604 Explicit null dereferenced<commit_after><|endoftext|> |
<commit_before>/* The MIT License
*
* Copyright (c) 2011 Masaki Saito <rezoolab@gmail.com>
*
* 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 ... |
<commit_before>//=======================================================================
// Copyright (c) 2014-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>
/*
* benchmark.cpp - Contains benchmark code for measuring performance related
* numbers in this project
*
* This module should be compiled with all possible optimization flags, and
* also with libc debugging flag turned off
*/
#include "../src/AtomicStack.h"
#include "../src/Loca... |
<commit_before>#include "catch.hpp"
#include <scope.h>
using namespace shl;
TEST_CASE("Scope Name Test") {
SECTION("default contructor create a empty ScopeName") {
ScopeName name;
REQUIRE(name.name() == "");
REQUIRE(name.breakdown().size() == 0);
}
SECTION("scope name can be con... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by t... |
<commit_before>#include "gtest/gtest.h"
#include <tuple>
#include "../include/spica.h"
using namespace spica;
// -----------------------------------------------------------------------------
// Color class test
// -----------------------------------------------------------------------------
class ColorTest : public... |
<commit_before>/*
Copyright (c) 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 condi... |
<commit_before>#include "../include/optics/optics.h"
#include <vector>
void test_1(){
static const int N = 2;
typedef std::array<double, N> point; //A list of N cartesian coordinates makes a point
std::vector<point> points; //Your list of points goes here
points = { {100,100}, {102,100}, {101,101}, ... |
<commit_before>/*******************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Manuel Freiberger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to... |
<commit_before>/*
*
* Copyright 2015, Google 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, thi... |
<commit_before>#include <QMessageBox>
#include "sharefolderwindow.h"
#include "ui_sharefolderwindow.h"
#include "binapi.h"
#include "pcloudapp.h"
#include "common.h"
ShareFolderWindow::ShareFolderWindow(PCloudApp *a, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::ShareFolderWindow)
{
app=a;
setWind... |
<commit_before>/*****************************************************************************
* Media.hpp: Media API
*****************************************************************************
* Copyright © 2015 libvlcpp authors & VideoLAN
*
* Authors: Alexey Sokolov <alexey+vlc@asokolov.org>
* Hugo Be... |
<commit_before>/*
* Copyright (C) 2013 Pascal Giorgi
*
* Written by Pascal Giorgi <pascal.giorgi@lirmm.fr>
*
* ========LICENCE========
* This file is part of the library LinBox.
*
* LinBox is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public
* License... |
<commit_before>#ifndef CPPCHAN_CHANNEL_H
#define CPPCHAN_CHANNEL_H
#include <queue>
#include <future>
#include <mutex>
template <typename T>
class channel
{
public:
channel( int capacity = 0 );
void operator<<( const T & val );
void operator>>( T& retVal);
private:
void sync_set( const T & val );
T sync_g... |
<commit_before>#include "settings.hh"
// ----------------------------------------------------------------------
static const char* const SETTINGS_DEFAULT = R"(
{
"apply": [
"all_grey",
"egg",
"vaccines"
]
}
)";
rjson::value settings_default()
{
try {
return rjson::parse_string(SETTINGS_DE... |
<commit_before>#include "client.hpp"
#include "ircd.hpp"
#include "tokens.hpp"
#include "modes.hpp"
void Client::send_motd()
{
send(RPL_MOTDSTART, ":- " + server.name() + " Message of the day - ");
const auto& motd = server.get_motd();
for (const auto& line : motd)
send(RPL_MOTD, ":" + line);
send(RP... |
<commit_before>//-*- Mode: C++; indent-tabs-mode: nil; tab-width: 4 -*-
/* The MIT License (MIT)
*
* Copyright (c) 2017 Brandon Schaefer
* brandontschaefer@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation ... |
<commit_before>/**
* @file clitest.cpp
* @brief Brief description of file.
*
*/
#include <pthread.h>
#include <string>
#include <map>
#include <queue>
#include "tcp.h"
#include "messages.h"
#include "data.h"
#include "time.h"
namespace diamondapparatus {
/// this is the database the client writes stuff to from... |
<commit_before>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define BUFSIZE 122
#define FILENAME "Testfile"
#define TEST_FILENAME "Testfile2"... |
<commit_before>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define BUFSIZE 122
#define FILENAME "Testfile"
#define TEST_FILENAME "Testfile2"... |
<commit_before>#include "core/table.h"
#include "catch.hpp"
TEST_CASE("table-from_csv_default", "[table]")
{
const auto firstcol = Column{"a", "1"};
const auto firstcolstring = Column{"a b", "1"};
const auto secondcol = Column{"b", "2"};
SECTION("not ending with newline")
{
const auto table = TableFrom... |
<commit_before>#include "mainwindow.h"
#include <QApplication>
#include <QSplashScreen>
#include <QThread>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
QSplashScreen *splash = new QSplashScreen(QPixmap("ucm.png"),Qt::WindowStaysOnTopHint | Qt::SplashScreen);
splash->sho... |
<commit_before>// TasksFrame.cpp : implmentation of the CTasksFrame class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "aboutdlg.h"
#include "TasksView.h"
#include "TasksFrame.h"
#include <jira/jira.hpp>
#include <jira/server.hpp>... |
<commit_before>#ifndef WEBSOCKET_HPP
#define WEBSOCKET_HPP
#include <functional>
#include "buffer.h"
#include "websock.h"
namespace websock
{
using Handshake = websock_handshake;
using Message = websock_message;
enum Error
{
UnexpectedDisconnect,
ReadFailed,
WriteFailed,
HandshakeFailed,
UnmaskedMessag... |
<commit_before>#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <sys/stat.h>
#include <math.h>
#include <algorithm>
#include <string.h>
#include <stdint.h>
#include <sstream>
#include <iomanip>
#include <gdal_priv.h>
#include <cpl_conv.h>
#include <ogr_spatialref.h>
using namespace... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
Version 1.0.0, packaged on August, 2008.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can r... |
<commit_before>
#include "common.h"
#include <iostream>
bool init_gl(
const int width,
const int height,
EGLDisplay& display,
EGLConfig& config,
EGLContext& context,
EGLSurface& surface
) {
const EGLint config_attribute_list[] =
{
//EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
... |
<commit_before>/*
Copyright (C) 2001 by W.C.A. Wijngaards
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later ... |
<commit_before>/*
* 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 distributed in the hope... |
<commit_before>// This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://open... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Sven Kaulmann
#ifndef DUNE_STUFF_COMMON_MATRIX_HH
#d... |
<commit_before>#ifndef DUNE_STUFF_RANGES_RANGES_HH
#define DUNE_STUFF_RANGES_RANGES_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#if HAVE_DUNE_GRID
# include <dune/stuff/common/disable_warnings.hh>
# include <dune/grid/common/gridview.hh>
# incl... |
<commit_before>// Author: Enrico Guiraud, Danilo Piparo CERN 12/2016
/*************************************************************************
* Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Brad van der Laan
*
* 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 ... |
<commit_before>#include <gtest/gtest.h>
#include <ostream>
#include "ButtonStatus.hpp"
#include "Config.hpp"
#include "KeyCode.hpp"
using namespace org_pqrs_Karabiner;
Config config;
std::ostream& operator<<(std::ostream& os, const EventType& v) { return os << v.get(); }
std::ostream& operator<<(std::ostream& os, co... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/*******************************
Copyright (c) 2016-2018 Gr�goire Angerand
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 righ... |
<commit_before>// Copyright 2014 Velodyne Acoustics, 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 at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... |
<commit_before>#include <gtest/gtest.h>
#include <MakeReseedable.h>
#include <ModuleFactories.h>
class TestReseedable : public ::testing::Test {
protected:
Reseedable x;
Reseedable y;
Reseedable c05;
TestReseedable() :
x(makeX()),
y(makeY()),
c05(makeReseedable(std::make_shared... |
<commit_before>// Declares clang::SyntaxOnlyAction.
#include "clang/Frontend/FrontendActions.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Tooling.h"
// Declares llvm::cl::extrahelp.
#include "llvm/Support/CommandLine.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatch... |
<commit_before>//
// Created by Miguel Rentes on 23/01/2017.
//
#include "STL.h"
int main(void) {
int T; cin >> T;
cout << setiosflags(ios::uppercase);
cout << setw(0xf) << internal;
while(T--) {
double A;
cin >> A;
double B;
cin >> B;
double C;
cin >> C... |
<commit_before>//
// Created by Miguel Rentes on 23/01/2017.
//
#include "STL.h"
int main(void) {
int T; cin >> T;
cout << setiosflags(ios::uppercase);
cout << setw(0xf) << internal;
while(T--) {
double A;
cin >> A;
double B;
cin >> B;
double C;
cin >> C... |
<commit_before>#include "Thread.h"
#include <assert.h>
////////////////////////////////////////////////////////////////////////////////
//
// Base Implementation
//
////////////////////////////////////////////////////////////////////////////////
TCThreadBase::TCThreadBase(const TCThreadBaseImplFactory &factory)
: ... |
<commit_before>#ifndef BOOST_FUSION_ADAPTED_STRUCT_PRINTER_HPP
#define BOOST_FUSION_ADAPTED_STRUCT_PRINTER_HPP
#include <boost/variant.hpp>
#include <pre/boost/fusion/traits/is_boost_variant.hpp>
#include <boost/fusion/include/tag_of.hpp>
#include <boost/fusion/include/is_sequence.hpp>
#include <pre/boost/fusion/for_... |
<commit_before>using namespace std;
class Matrix {
private:
int row, col, **mas;
public:
Matrix(int length = 4);
Matrix(int, int);
Matrix(const Matrix&);
~Matrix();
void fill(const char*);
void show() const;
Matrix operator+(const Matrix&) const;
Matrix operator*(const Matrix&) const;
};
<commit_msg>Update m... |
<commit_before>/*! \file serial.hpp
*/
#ifndef __SERIAL_HPP__
#define __SERIAL_HPP__
#include "ring_buffer.hpp"
#include "serial_base.hpp"
/*! \class
*/
class Serial : public SerialBase {
protected:
/*!
*/
inline void initUSART(const int baudrate) const __attribute__((always_inline)) {
uint16_t ubbr_valu... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: WW8ResourceModelImpl.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hbrinkm $ $Date: 2006-11-01 09:14:32 $
*
* The Contents of th... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: resourcemodel.cxx,v $
* $Revisio... |
<commit_before>/*****************************************************************************
*
* YEXTEND: Help for YARA users.
* This file is part of yextend.
*
* Copyright (c) 2104-2016, Bayshore Networks, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modi... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
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 conditions are met:
* Redistributions of source code must retain the above copyright
... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <cstdlib>
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Containers/Set.h"
#if qHasFeature_sqlite
#include "Stroika/Foundation/Database... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <MultiRegions/ExpList.h>
#include <MultiRegions/ExpList1D.h>
#include <MultiRegions/ExpList2D.h>
#include <MultiRegions/ExpList3D.h>
#include <MultiRegions/ExpList2DHomogeneous1D.h>
#include <MultiRegions/ExpList3DHomogeneous1D.h>
using namespace Nektar;
#... |
<commit_before>/*
Copyright (c) 2012 Vladimir Jimenez
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 list of conditions ... |
<commit_before>// $Header$
#include "BoxSet.h"
#include <TRandom.h>
#include <TBuffer3D.h>
#include <TBuffer3DTypes.h>
#include <TVirtualPad.h>
#include <TVirtualViewer3D.h>
using namespace Reve;
/**************************************************************************/
// Box
/************************************... |
<commit_before>//===- AsmWriterEmitter.cpp - Generate an assembly writer -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>#include <TinyExtender.h>
#include "TinyWindow.h"
using namespace TinyWindow;
using namespace TinyExtender;
/**< loads a text file into a string buffer */
GLchar* FileToBuffer(const GLchar* path)
{
FILE* file = fopen(path, "rt"); // open a read only filestream
if (file == nullptr)
{
printf( "Erro... |
<commit_before> // Size of space
#define KSIZE 10
// Number of EOF used in final compression
#define MSIZE 5
#define MAX_ITER 100
#define TOL 1.0e-7
#define RANDOM_SEED 123456
#include <random>
#include <algorithm>
#include <mpi.h>
#include <iostream>
#include "usi_compression.h"
#include "read_timeseries_matrix... |
<commit_before>//
// Created by Dmitry Mozgin on 28/04/2017.
//
#include "CameraImpl.h"
#include "../../VoidApp.h"
using namespace vd;
CameraImpl::CameraImpl(VoidApp &app)
: VoidAppObject(app),
_nearClipPlane(0.1f),
_backgroundColor(Color::White),
_transform(std::make_shared<Ca... |
<commit_before>
#include <boost/asio.hpp>
#include "vtrc-common/vtrc-mutex-typedefs.h"
#include "vtrc-bind.h"
#include "vtrc-function.h"
#include "vtrc-protocol-layer-s.h"
#include "vtrc-monotonic-timer.h"
#include "vtrc-data-queue.h"
#include "vtrc-hash-iface.h"
#include "vtrc-transformer-iface.h"
#include "vtrc-t... |
<commit_before>// Copyright 2011 the V8 project authors. 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 2011 the V8 project authors. 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>/******************************************************************************
* Controls.cpp
*
* Contains the yaw_controller() and depth_controller functions
******************************************************************************/
#include "Mapper.h"
/*******************************************... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
<commit_before><commit_msg>fix multi-console problem for bat on win32<commit_after><|endoftext|> |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/fast_value.h>
#include <vespa/eval/eval/simple_value.h>
#include <vespa/eval/eval/tensor_function.h>
#include <vespa/eval/instru... |
<commit_before>#include "base64.h"
#include <cstdint>
#include <iostream>
#include "../leanify.h"
namespace
{
int Base64Decode(const uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len)
{
static const uint8_t d[] =
{
66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 64, 66, 66, 64, 66, 66, 66, 66, 66, 6... |
<commit_before><commit_msg>Use WINDOW instead of BUBBLE for the throbber widget.<commit_after><|endoftext|> |
<commit_before><commit_msg>GTK: add NULL check in StatusBubbleGtk to fix crasher.<commit_after><|endoftext|> |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2010-2011 Razor team
* Authors:
* Alexander Sokoloff <sokoloff.a@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or mo... |
<commit_before>#include "nodeinstanceserverproxy.h"
#include <QLocalServer>
#include <QLocalSocket>
#include <QProcess>
#include <QCoreApplication>
#include <QUuid>
#include "propertyabstractcontainer.h"
#include "propertyvaluecontainer.h"
#include "propertybindingcontainer.h"
#include "instancecontainer.h"
#include ... |
<commit_before>#ifndef Exc_Ruby___cpp__st__hpp_
#define Exc_Ruby___cpp__st__hpp_
/*! \file
* \brief Hacks to allow functions in st.h to be called from C++
* programs.
*/
#include "ruby.hpp"
// Ruby doesn't put extern "C" around st.h
extern "C"
{
#include "st.h"
}
// Older versions of Ruby don't have proper sign... |
<commit_before>// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/node_debugger.h"
#include "base/command_line.h"
#include "libplatform/libplatform.h"
namespace atom {
NodeDebugger::NodeDebugger(node::Environm... |
<commit_before>//
// AdvancedADSREnvelope.hpp
// AudioKit
//
// Created by Jeff Cooper on 5/21/20.
// Copyright © 2020 AudioKit. All rights reserved.
//
// Attack, Hold, Decay, Sustain, Release-hold, Release envelope
// 1) Attack fades in from 0 for attackSamples
// 2) Holds value at 1 for holdSamples
// 3) Decays ... |
<commit_before>// @(#)root/rint:$Name: $:$Id: TRint.cxx,v 1.17 2002/11/18 23:02:19 rdm Exp $
// Author: Rene Brun 17/02/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include <string>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include "rpc/server.h"
#include "rpc/client.h"
#include "log_service_impl.h"
using namespace std;
using namespace rpc;
using namespace rlog;
RLogService *g_ls = NULL;
Server *g_server = NULL;
static void signal_handler(int... |
<commit_before>#include "Display.h"
#include <CommCtrl.h>
#include "../3RVX/DisplayManager.h"
#include "../3RVX/LanguageTranslator.h"
#include "../3RVX/Logger.h"
#include "../3RVX/Settings.h"
#include "resource.h"
void Display::Initialize() {
using std::placeholders::_1;
INIT_CONTROL(CHK_ONTOP, Checkbox, _... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.